/* ===== Bổ sung cho WordPress: ảnh thật, trang dự án, trang tin đăng ===== */
.fill, .ph img.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ph:has(img)::after { display: none; }
.feature-img .tag { display: block; }
.project .info { z-index: 2; }
.listing .ph { position: relative; }
.listing .ph .badge { z-index: 2; }
.sec-foot { text-align: center; margin-top: 56px; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: -6px; }
.empty { grid-column: 1 / -1; padding: 40px; text-align: center; background: var(--card); border: 1px dashed var(--line); color: var(--muted); }
.empty a { color: var(--accent); }

.page-head { padding: 80px 0 30px; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 54px); margin-top: 16px; }
.page-head .badge { color: var(--navy); }
.page-head p { color: var(--muted); margin-top: 12px; max-width: 640px; font-size: 16px; }
.page-head .back { display: block; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.page-head .back:hover { color: var(--accent); }
.page-head .price { margin-top: 10px; font-size: 34px; }
.page-body { padding: 30px 0 90px; }
.search.inline { margin: 0 0 36px; }

.single-cover { height: 520px; margin-bottom: 50px; }
.single-grid { display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: start; }
.facts { background: var(--card); border: 1px solid var(--line); padding: 28px; position: sticky; top: 100px; }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; font-size: 14px; margin: 18px 0 24px; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; text-align: right; }
.facts .btn { width: 100%; justify-content: center; margin-top: 10px; }

.prose { font-size: 16px; min-width: 0; }
.prose.narrow { max-width: 760px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 36px; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { height: auto; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 6px; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; }

.post-list { display: grid; gap: 16px; max-width: 760px; }
.post-item { display: block; background: var(--card); border: 1px solid var(--line); padding: 24px; }
.post-item small { color: var(--muted); }
.post-item p { color: var(--muted); margin-top: 6px; }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { padding: 8px 14px; border: 1px solid var(--line); background: var(--card); }
.page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== Quy hoạch ===== */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); transition: .35s; }
.article:hover { border-color: var(--navy); }
.article .ph { aspect-ratio: 16/10; }
.article .body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article .meta { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.article h3 { font-size: 21px; line-height: 1.35; }
.article p { color: var(--muted); font-size: 14px; flex: 1; }
.article .link-arrow { align-self: flex-start; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.chips a { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; padding: 9px 18px; border: 1px solid var(--line); }
.chips a.active, .chips a:hover { background: var(--navy); color: #f2f0eb; border-color: var(--navy); }
.related { margin-top: 110px; }
.page-head .eyebrow + h1 { margin-top: 18px; }

/* Landing page toàn màn hình: khối thường giữ trong khung, khối "full width" / Elementor trải rộng */
.landing-body { padding-bottom: 60px; }
.landing-body > *:not(.alignfull):not(.elementor) { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: 28px; padding-right: 28px; }
.landing-body > * + * { margin-top: 1.2em; }
.landing-body .alignfull { width: 100%; }

.admin-bar .header { top: 32px; }

/* Nút Zalo nổi */
.float-call .zalo-tag { background: var(--navy); color: #f2f0eb; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; padding: 5px 12px; border-radius: 20px; margin-left: 4px; }

@media (max-width: 1024px) {
  .articles { grid-template-columns: repeat(2, 1fr); }
  .single-grid { grid-template-columns: 1fr; gap: 40px; }
  .facts { position: static; }
}
@media (max-width: 782px) {
  .admin-bar .header { top: 46px; }
}
@media (max-width: 680px) {
  .single-cover { height: 260px; margin-bottom: 32px; }
  .articles { grid-template-columns: 1fr; }
  .landing-body > *:not(.alignfull):not(.elementor) { padding-left: 16px; padding-right: 16px; }
  .related { margin-top: 72px; }
  .page-head { padding: 40px 0 10px; }
}
