/* Đoàn Tuyển BĐS — hệ màu: trắng / xanh #0066FF / navy #102748 / xanh nhạt #EAF3FF */
:root {
  --white: #FFFFFF;        /* nền chính */
  --ivory: #EAF3FF;        /* nền khối tư vấn, nền phụ */
  --navy: #102748;         /* nội dung chính, footer */
  --navy-700: #1B3A61;     /* navy sáng hơn khi rê chuột */
  --navy-900: #0A1A30;     /* navy đậm nhất */
  --gold: #0066FF;         /* CTA, tab đang chọn, liên kết */
  --gold-600: #0052CC;     /* CTA khi rê chuột */
  --gold-100: #EAF3FF;     /* nền nhạt của màu nhấn */
  --ink: #102748;          /* chữ nội dung */
  --muted: #64748B;        /* nội dung phụ */
  --line: #E2E8F0;         /* viền, đường phân cách */
  --line-strong: #CBD5E1;  /* viền đậm hơn cho ô nhập */
  --danger: #b6413a;
  --success: #2f7a4d;
  --container: 1200px;
  --gutter: 32px;
  --gap: 24px;
  --section: 80px;
  --radius-card: 10px;
  --radius-ui: 6px;
  --header-h: 80px;
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; color: var(--navy); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 52px; line-height: 1.15; }
h2 { font-size: 36px; }
h3 { font-size: 20px; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section-ivory { background: var(--ivory); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gap); margin-bottom: 32px; }
.section-head .sub { margin-top: 8px; color: var(--muted); }
.eyebrow { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.link-more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 500; color: var(--navy); text-decoration: none; white-space: nowrap; }
.link-more:hover { color: var(--gold-600); }
.link-more svg { width: 16px; height: 16px; }
.text-muted { color: var(--muted); }
.note { font-size: 13px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius-ui); border: 1px solid transparent; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-600); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* Form controls */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--navy); }
.field label .req { color: var(--danger); }
.control, .field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-ui); background: var(--white); color: var(--ink); transition: border-color .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .control:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(0,102,255,.18); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field .error { display: none; font-size: 13px; color: var(--danger); }
.field.invalid .error { display: block; }
.field .hint { font-size: 13px; color: var(--muted); }
select.control, .field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.segmented { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-ui); overflow: hidden; }
.segmented label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 10px; font-weight: 500; font-size: 15px; color: var(--navy); cursor: pointer; border-right: 1px solid var(--line-strong); }
.segmented label:last-child { border-right: 0; }
.segmented input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.segmented input:checked + label, .segmented label:has(input:checked) { background: var(--gold-100); color: var(--navy); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: -2px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--gold); flex: none; }
.upload { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius-ui); background: var(--ivory); cursor: pointer; }
.upload svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.upload b { display: block; font-weight: 500; color: var(--navy); font-size: 15px; }
.upload span { font-size: 13px; color: var(--muted); }
.upload input { display: none; }
.form-status { display: none; padding: 12px 14px; border-radius: var(--radius-ui); font-size: 14px; }
.form-status.show { display: block; }
.form-status.info { background: var(--gold-100); color: var(--navy); }
.form-status.success { background: #e7f3ec; color: var(--success); }
.form-status.error { background: #f9e7e6; color: var(--danger); }

/* Header */
.header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo svg { width: 36px; height: 36px; flex: none; }
.logo b { display: block; font-size: 18px; font-weight: 700; letter-spacing: .02em; line-height: 1.1; }
.logo small { display: block; white-space: nowrap; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; border-radius: var(--radius-ui); }
.nav a:hover { color: var(--navy); background: var(--ivory); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--white); color: var(--navy); text-decoration: none; cursor: pointer; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold-600); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-toggle { display: none; }
.mobile-nav { position: fixed; inset: 0; z-index: 200; display: none; }
.mobile-nav.open { display: block; }
.mobile-nav .backdrop { position: absolute; inset: 0; background: rgba(16,39,72,.55); }
.mobile-nav .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--white); display: flex; flex-direction: column; overflow-y: auto; }
.mobile-nav .panel-head { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.mobile-nav nav { display: flex; flex-direction: column; padding: 12px 8px; }
.mobile-nav nav a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; font-size: 17px; font-weight: 500; color: var(--navy); text-decoration: none; border-radius: var(--radius-ui); }
.mobile-nav nav a[aria-current="page"] { background: var(--ivory); color: var(--gold-600); }
.mobile-nav .panel-foot { margin-top: auto; padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.mobile-nav .hotline { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font-weight: 600; }
.mobile-nav .hotline svg { width: 22px; height: 22px; color: var(--gold); }

/* Hero */
.hero { position: relative; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; color: var(--white); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,39,72,.78) 0%, rgba(16,39,72,.55) 45%, rgba(16,39,72,.15) 100%); }
.hero-inner { width: 100%; padding: 64px 0 80px; }
.hero-content { max-width: 55%; }
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero p { font-size: 18px; color: rgba(255,255,255,.88); margin-bottom: 32px; max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tagline { position: absolute; right: var(--gutter); top: 28%; font-style: italic; font-size: 15px; color: rgba(255,255,255,.75); text-align: right; line-height: 1.5; transform: rotate(-6deg); }

/* Search box */
.search-section { background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; }
.res-count { color: var(--muted); margin-bottom: 24px; }
.search-wrap { position: relative; z-index: 5; margin-top: 0; }
.search-box { background: var(--white); border-radius: var(--radius-card); border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(16,39,72,.06); }
.search-tabs { display: flex; gap: 0; padding: 0 24px; border-bottom: 1px solid var(--line); }
.search-tabs button { min-height: 48px; padding: 0 20px; background: none; border: 0; border-bottom: 2px solid transparent; font-weight: 500; color: var(--muted); cursor: pointer; margin-bottom: -1px; }
.search-tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--gold); }
.search-form { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; align-items: end; padding: 24px; }
.search-form .field label { font-size: 13px; }
.search-form .search-btn { grid-column: 5 / 7; }

/* Trust strip */
.trust { padding: 32px 0; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.trust-item { display: flex; gap: 16px; align-items: flex-start; padding: 0 24px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item svg { width: 36px; height: 36px; flex: none; color: var(--gold); stroke-width: 1.4; }
.trust-item h3 { font-size: 16px; margin-bottom: 4px; }
.trust-item p { font-size: 14px; color: var(--muted); }

/* Project cards */
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.project-card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-card); overflow: hidden; text-decoration: none; color: var(--white); background: var(--navy); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.project-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,39,72,0) 40%, rgba(16,39,72,.85) 100%); }
.project-card .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px; }
.project-card .cap b { display: block; font-size: 17px; font-weight: 600; }
.project-card .cap span { display: block; font-size: 13px; color: rgba(255,255,255,.8); margin-top: 2px; }
.project-card:hover img { transform: scale(1.03); }

/* Listing cards */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.section-head > div { min-width: 0; max-width: 100%; }
.section-head.center { justify-content: center; text-align: center; }
.chips-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll .chips { flex-wrap: nowrap; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); color: var(--navy); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.card { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ivory); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.badge { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 5px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--white); background: var(--navy); }
.badge.rent { background: var(--gold); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px; flex: 1; }
.card-body h3 { font-size: 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { color: var(--gold-600); }
.card-loc { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.card-loc svg { width: 15px; height: 15px; flex: none; }
.card-price { font-size: 20px; font-weight: 600; color: var(--gold-600); }
.card-price small { font-size: 13px; font-weight: 400; color: var(--muted); margin-right: 6px; }
.card-specs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); }
.card-specs span + span::before { content: '|'; color: var(--line-strong); margin-right: 14px; }
.card-extra { font-size: 13px; color: var(--muted); }
/* Không còn nút CTA: đẩy khối giá xuống đáy để các card trong cùng hàng thẳng nhau. */
.card-price { margin-top: auto; }
.card-media a { display: block; height: 100%; }
.grid-foot { display: flex; justify-content: center; margin-top: 32px; }
.list-note { margin-top: 16px; text-align: right; font-size: 13px; color: var(--muted); }

/* Consign section */
.consign { position: relative; color: var(--white); background: var(--navy); isolation: isolate; }
.consign-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.consign-media img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.consign-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,39,72,.9), rgba(16,39,72,.65)); }
.consign-grid { display: grid; grid-template-columns: 45fr 55fr; gap: 48px; align-items: center; }
.consign h2 { color: var(--white); margin-bottom: 16px; }
.consign .lead { color: rgba(255,255,255,.85); margin-bottom: 24px; max-width: 480px; }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.benefits li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.benefits svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.consign-quote { margin-top: 40px; font-style: italic; color: rgba(255,255,255,.7); }
.form-card { background: var(--white); color: var(--ink); border-radius: var(--radius-card); padding: 32px; }
.form-card h3 { font-size: 22px; margin-bottom: 20px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-media { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4 / 3; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { margin-bottom: 16px; }
.about .lead { color: var(--muted); margin-bottom: 24px; }
.points { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.points li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--navy); }
.points svg { width: 24px; height: 24px; color: var(--gold); flex: none; stroke-width: 1.6; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); position: relative; }
.step { position: relative; padding-right: 24px; }
.step-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step-num { font-size: 22px; font-weight: 600; color: var(--gold); }
.step-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); }
.step-icon svg { width: 20px; height: 20px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); }
.step:not(:last-child)::after { content: ''; position: absolute; top: 22px; right: 0; width: 24px; height: 1px; background: var(--line-strong); }

/* Posts */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.post-card .post-media { aspect-ratio: 16 / 9; overflow: hidden; }
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover img { transform: scale(1.03); }
.post-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.post-cat { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.post-body h3 { font-size: 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-body h3 a { text-decoration: none; }
.post-body p { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* FAQ */
.faq { max-width: 900px; margin: 0 auto; }
.faq h2 { margin-bottom: 24px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 56px; padding: 12px 0; background: none; border: 0; text-align: left; font-weight: 500; font-size: 16px; color: var(--navy); cursor: pointer; }
.faq-q svg { width: 20px; height: 20px; flex: none; transition: transform .25s var(--ease); }
.faq-q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 18px; color: var(--muted); max-width: 800px; }
.faq-a.open { display: block; }

/* CTA band */
.cta-band { background: var(--gold-100); padding: 40px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); }
.cta-text { display: flex; align-items: center; gap: 18px; }
.cta-text svg { width: 44px; height: 44px; color: var(--gold); flex: none; stroke-width: 1.4; }
.cta-text h2 { font-size: 24px; margin-bottom: 4px; }
.cta-text p { color: var(--muted); }
.cta-actions { display: flex; gap: 12px; }

/* Footer */
.footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer .logo { color: var(--white); margin-bottom: 16px; }
.footer .logo small { color: rgba(255,255,255,.6); }
.footer p { font-size: 14px; }
.footer h4 { color: var(--white); font-size: 15px; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer li a { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; font-size: 14px; color: rgba(255,255,255,.8); text-decoration: none; }
.footer li a:hover { color: var(--gold); }
.footer li svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); color: var(--white); text-decoration: none; }
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0; font-size: 13px; color: rgba(255,255,255,.65); }
.footer-bottom a { color: inherit; text-decoration: none; margin-right: 16px; }
.footer-bottom a:hover { color: var(--gold); }

/* Quick contact */
.quick { position: fixed; right: 20px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.quick a, .quick button { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 0; color: var(--white); text-decoration: none; cursor: pointer; box-shadow: 0 4px 14px rgba(16,39,72,.25); }
.quick svg { width: 22px; height: 22px; }
.quick .q-call { background: var(--gold); }
.quick .q-zalo { background: #0068ff; font-weight: 700; font-size: 12px; }
.quick .q-fb { background: #1877f2; }
.quick .q-top { background: var(--navy); opacity: 0; pointer-events: none; max-height: 0; margin-top: -10px; overflow: hidden; transition: opacity .3s, max-height .3s, margin .3s; }
.quick .q-top.show { opacity: 1; pointer-events: auto; max-height: 48px; margin-top: 0; }
.mobile-bar { display: none; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal .backdrop { position: absolute; inset: 0; background: rgba(16,39,72,.6); }
.modal-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--white); border-radius: var(--radius-card); padding: 28px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h3 { font-size: 22px; }
.modal form { display: grid; gap: 14px; }

/* Page header (sub pages) */
.page-head { background: var(--ivory); padding: 40px 0; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 40px; margin-bottom: 8px; }
.page-head p { color: var(--muted); max-width: 640px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; color: var(--line-strong); }

/* Listing page */
.listing-layout { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.listing-layout > aside { align-self: stretch; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 22px; display: grid; gap: 16px; }
.filters h3 { font-size: 17px; }
.filters-head { display: flex; align-items: center; justify-content: space-between; }
.filters-head button { background: none; border: 0; color: var(--gold-600); font-size: 14px; font-weight: 500; cursor: pointer; min-height: 44px; }
.listing-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.listing-toolbar .count { font-size: 15px; color: var(--muted); }
.listing-toolbar .sort { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.listing-toolbar select { min-height: 44px; width: auto; }
.listing-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.empty { padding: 60px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-card); color: var(--muted); }
.empty svg { width: 48px; height: 48px; color: var(--gold); margin: 0 auto 12px; stroke-width: 1.3; }
.empty h3 { margin-bottom: 8px; }
/* Phan trang: flex-wrap de hang nut xuong dong chu khong bi cat mat khi man hinh hep */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination button { min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-ui); background: var(--white); color: var(--navy); font: inherit; font-size: 15px; font-weight: 500; line-height: 1; cursor: pointer; transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease); }
.pagination button:hover:not([disabled]):not([aria-current="page"]) { border-color: var(--gold); color: var(--gold); }
.pagination button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pagination button[aria-current="page"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination button[disabled] { opacity: .45; cursor: not-allowed; }
.pagination .pg-nav { font-size: 18px; }
.pagination .pg-gap { min-width: 26px; text-align: center; color: var(--muted); user-select: none; }
.filters-toggle { display: none; }

/* Detail page */
.detail-meta svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.detail-price { font-size: 30px; font-weight: 600; color: var(--gold-600); margin-bottom: 24px; }
.detail-price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 32px; }
.spec { padding: 14px 16px; background: var(--ivory); border-radius: var(--radius-ui); }
.spec span { display: block; font-size: 13px; color: var(--muted); }
.spec b { font-weight: 600; color: var(--navy); }
.detail-section { margin-bottom: 32px; }
.detail-section h2 { font-size: 24px; margin-bottom: 12px; }
.detail-section p { color: var(--ink); margin-bottom: 10px; }
.detail-section ul { margin: 0; padding-left: 20px; color: var(--ink); display: grid; gap: 6px; }

/* Project detail */
.project-hero { position: relative; height: 420px; color: var(--white); display: flex; align-items: flex-end; }
.project-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,39,72,.1), rgba(16,39,72,.85)); }
.project-hero .container { position: relative; z-index: 1; padding-bottom: 40px; }
.project-hero h1 { color: var(--white); }
.project-hero p { color: rgba(255,255,255,.85); }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0; }
.prose { max-width: 820px; }
.prose h2 { font-size: 28px; margin: 32px 0 12px; }
.prose h3 { font-size: 20px; margin: 24px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ul { padding-left: 20px; margin: 0 0 14px; display: grid; gap: 6px; }
.prose .post-hero { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 16 / 9; margin: 24px 0; }
.prose .post-hero img { width: 100%; height: 100%; object-fit: cover; }
.legal { max-width: 820px; }
.legal h2 { font-size: 22px; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--ink); margin-bottom: 10px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.contact-info .item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info svg { width: 24px; height: 24px; color: var(--gold); flex: none; stroke-width: 1.6; }
.contact-info b { display: block; color: var(--navy); font-weight: 600; }
.contact-info a { color: var(--ink); text-decoration: none; }
.map-box { aspect-ratio: 16 / 9; border-radius: var(--radius-card); background: var(--ivory); display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
/* Menu ngang 5 mục vừa khung từ 1150px trở lên; hẹp hơn thì dùng nút menu.
   Số này đo thật sau khi khoá bề ngang logo, không phải ước lượng. */
@media (max-width: 1149px) {
  .nav { display: none; }
  .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 1100px) {
  .nav a { padding: 0 10px; font-size: 14px; }
  .search-form { grid-template-columns: repeat(3, 1fr); }
  .search-form .search-btn { grid-column: 2 / 4; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-layout { grid-template-columns: 260px 1fr; }
  .listing-grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .step:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --gutter: 24px; --section: 56px; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .hero-content { max-width: 70%; }
  .hero-tagline { display: none; }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .consign-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .listing-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: grid; }
  .filters-toggle { display: inline-flex; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; gap: 16px; }
  .trust-item { border-left: 0; padding: 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --section: 48px; --header-h: 64px; }
  .pagination { gap: 4px; margin-top: 24px; }
  .pagination button { min-width: 40px; padding: 0 6px; font-size: 14px; }
  .pagination .pg-gap { min-width: 18px; }
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  h3 { font-size: 18px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 24px; }
  .section-head .link-more { min-height: 36px; }
  .logo b { font-size: 16px; }
  .logo small { font-size: 9px; letter-spacing: .08em; }
  .hero { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
  .hero-inner { padding: 48px 0 56px; }
  .hero-content { max-width: 100%; }
  .hero p { font-size: 16px; margin-bottom: 24px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .search-section { padding: 24px 0; }
  .search-box { box-shadow: none; }
  .search-tabs { padding: 0 16px; }
  .search-tabs button { flex: 1; }
  .search-form { grid-template-columns: 1fr; padding: 16px; gap: 12px; }
  .search-form .search-btn { grid-column: auto; order: 9; }
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .project-card .cap { padding: 12px; }
  .project-card .cap b { font-size: 15px; }
  .project-card .cap span { display: none; }
  .listing-grid, .post-grid { grid-template-columns: 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { padding: 0 0 28px 28px; border-left: 1px solid var(--line-strong); margin-left: 22px; }
  .step:last-child { padding-bottom: 0; }
  .step::after { display: none !important; }
  .step-top { margin-left: -50px; }
  .form-card { padding: 24px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; align-items: stretch; }
  .cta-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding-bottom: 72px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .quick { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .quick .q-call, .quick .q-zalo, .quick .q-fb, .quick .q-top { display: none; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--white); border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .mobile-bar a, .mobile-bar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; font-size: 12px; font-weight: 500; font-family: inherit; color: var(--navy); text-decoration: none; border: 0; background: none; cursor: pointer; border-radius: var(--radius-ui); }
  .mobile-bar a svg, .mobile-bar button svg { width: 20px; height: 20px; }
  .mobile-bar .primary { background: var(--gold); color: var(--white); }
  body.keyboard-open .mobile-bar, body.keyboard-open .quick { display: none; }
  .page-head { padding: 28px 0; }
  .page-head h1 { font-size: 30px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-price { font-size: 26px; }
  .project-hero { height: 320px; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .modal-card { padding: 22px 18px; }
  .listing-toolbar { align-items: flex-start; }
}

/* ---------- Trang phân khu ---------- */
.pk-grid { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.pk-grid .lead { font-size: 17px; line-height: 1.7; color: var(--muted); }
.pk-towers { margin-top: 28px; }
.pk-towers h3 { font-size: 16px; margin-bottom: 12px; }
.pk-towers .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-towers .chip { cursor: default; }
.pk-stats { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; display: grid; gap: 14px; }
.pk-stat { display: flex; align-items: baseline; gap: 8px; }
.pk-stat b { font-size: 28px; font-weight: 600; color: var(--gold-600); line-height: 1; }
.pk-stat span { font-size: 14px; color: var(--muted); }
.pk-stats .btn { margin-top: 4px; }
.search-form.no-subarea .search-btn { grid-column: 4 / 7; }
@media (max-width: 900px) {
  .pk-grid { grid-template-columns: 1fr; gap: 32px; }
  .search-form.no-subarea .search-btn { grid-column: auto; }
}

/* Khối "Về chúng tôi" dưới banner: ảnh vuông 1:1 bên trái, chữ bên phải */
.about-top .about-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-top .about-media { aspect-ratio: 1 / 1; }
.about-top .about-grid > div:last-child { max-width: 56ch; text-align: center; margin-inline: auto; }
.about-top h2 { margin-bottom: 20px; }
.about-top p { color: var(--muted); margin-bottom: 16px; }
.about-top p:last-child { margin-bottom: 0; }
.about-top .lead { color: var(--navy); font-size: 18px; }
@media (max-width: 900px) {
  .about-top .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-top .about-media { max-width: 300px; margin-inline: auto; }
  .about-top .about-grid > div:last-child { max-width: none; }
  .about-top .lead { font-size: 15px; }
}

/* Dien thoai rat hep: thu nho day so trang them mot nac cho gon trong mot hang */
@media (max-width: 380px) {
  .pagination { gap: 3px; }
  .pagination button { min-width: 34px; padding: 0 4px; }
  .pagination .pg-gap { min-width: 14px; }
}
