/* ==========================================================================
   Chung Cư Sài Gòn – giao diện
   Màu: navy (chính) · đồng (điểm nhấn, chỉ dùng cho viền / icon / nhãn) · nền trắng ngà
   ========================================================================== */

:root {
	--navy: #1F3A5F;
	--navy-d: #152A45;
	--navy-50: #EEF2F7;
	--navy-100: #DCE4EE;
	--bronze: #B08D57;
	--bronze-d: #7A5C32;
	--bronze-50: #F6EFE3;
	--bg: #FAF8F4;
	--bg-2: #F3EEE5;
	--surface: #FFFFFF;
	--text: #1A2230;
	--muted: #59626F;
	--line: #E6E0D6;
	--line-2: #D3CBBE;
	--ok: #2E6B4F;
	--ok-50: #E8F3EC;
	--err: #A3352B;
	--err-50: #FBECEA;
	--r: 14px;
	--r-s: 10px;
	--r-l: 20px;
	--sh: 0 1px 2px rgba(26, 34, 48, .04), 0 10px 28px rgba(26, 34, 48, .07);
	--ff: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--ff-h: 'Lora', Georgia, 'Times New Roman', serif;
	--top: var(--wp-admin--admin-bar--height, 0px);
	--sbar-h: 140px;
}

/* ---------- Nền tảng ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 90px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15.5px/1.6 var(--ff); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-d); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; color: var(--navy-d); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 800px; }
.page-pad { padding-top: 40px; padding-bottom: 64px; }
.page-t { font-family: var(--ff-h); font-weight: 600; font-size: 34px; margin-bottom: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-s); }
.skip:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.ic { flex: none; display: inline-block; vertical-align: middle; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze-d); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--bronze); }

/* ---------- Nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--r-s); border: 1px solid transparent; font-weight: 600; font-size: 15px; line-height: 1.2; text-align: center; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-d); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--navy); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy-d); }
.btn--sm { min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--text); }
.icon-btn:hover { background: var(--navy-50); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; min-height: 44px; }

/* ---------- Đầu trang ---------- */
.site-h { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 40; }
.site-h__in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-d); }
.logo:hover { text-decoration: none; color: var(--navy-d); }
.logo__mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--navy); color: #fff; box-shadow: inset 0 -2px 0 var(--bronze); }
.logo__txt { font-family: var(--ff-h); font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.logo__txt em { font-style: normal; color: var(--bronze-d); }
.custom-logo-link img { max-height: 48px; width: auto; }
.site-nav { flex: 1; }
.site-nav .menu { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--text); font-weight: 500; }
.site-nav a:hover { background: var(--navy-50); text-decoration: none; color: var(--navy-d); }
.site-nav .current-menu-item > a { color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--bronze); border-radius: 0; }
.site-h__cta { display: flex; align-items: center; gap: 8px; }
.saved-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--navy); }
.saved-link:hover { background: var(--navy-50); }
.saved-link__n { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.nav-tg { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--surface); color: var(--navy); align-items: center; justify-content: center; }

/* ---------- Đoạn chọn (Thuê / Mua, kiểu xem) ---------- */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--navy-50); }
.seg__b { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; min-width: 76px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--text); font-weight: 600; font-size: 15px; cursor: pointer; }
.seg__b:hover { text-decoration: none; color: var(--navy-d); background: rgba(255, 255, 255, .6); }
.seg__b input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg__b.is-on, .seg__b:has(input:checked) { background: var(--navy); color: #fff; }
.seg__b:has(input:focus-visible) { outline: 2px solid var(--bronze); outline-offset: 2px; }
.seg--lg .seg__b { min-height: 44px; min-width: 92px; }
.seg--sm .seg__b { min-height: 40px; min-width: 0; font-size: 14px; padding: 0 12px; }

/* ---------- Lựa chọn trong bộ lọc ---------- */
.opts--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opts--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opts--grid .opt__box { width: 100%; justify-content: space-between; }
.opts--rows { display: flex; flex-direction: column; }
.opts--rows:not(.is-open) [data-more-item] { display: none; }
.opt { position: relative; cursor: pointer; }
.opt--chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__box { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 15px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 14.5px; font-weight: 500; color: var(--text); transition: background .15s, border-color .15s, color .15s; user-select: none; }
.opt:hover .opt__box { border-color: var(--navy); }
.opt--chip input:checked + .opt__box { background: var(--navy); border-color: var(--navy); color: #fff; }
.opt--chip input:checked + .opt__box .opt__n { color: rgba(255, 255, 255, .78); }
.opt--chip input:focus-visible + .opt__box { outline: 2px solid var(--bronze); outline-offset: 2px; }
.opt__n { font-size: 12.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.opt--row { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14.5px; }
.opt--row input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--navy); cursor: pointer; }
.opt--row .opt__n { margin-left: auto; }
.opt--row:hover .opt__l { color: var(--navy); }
.opt.is-zero { opacity: .45; cursor: default; }
.opt.is-zero:hover .opt__box { border-color: var(--line-2); }
.more-btn { margin-top: 4px; padding: 0; min-height: 36px; border: 0; background: none; color: var(--navy); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.mini-search { position: relative; display: flex; align-items: center; margin-bottom: 8px; }
.mini-search .ic { position: absolute; left: 12px; color: var(--muted); }
.mini-search input { width: 100%; min-height: 40px; padding: 0 12px 0 36px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--surface); font-size: 14px; }

/* ---------- Trang chủ: khung lọc nhanh ---------- */
.hero { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 52px 0 40px; }
.hero__in { display: flex; flex-direction: column; gap: 26px; }
.hero__copy { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.hero__t { font-family: var(--ff-h); font-weight: 600; font-size: 44px; line-height: 1.15; letter-spacing: -.01em; }
.hero__sub { font-size: 17px; color: var(--muted); }

.qf { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; box-shadow: var(--sh); }
.qf__top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.qf__q { position: relative; flex: 1 1 280px; display: flex; align-items: center; }
.qf__q .ic, .sbar__q .ic { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.qf__q input, .sbar__q input { width: 100%; min-height: 50px; padding: 0 14px 0 44px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font-size: 15px; }
.qf__q input:focus, .sbar__q input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-100); }
.qf__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 18px; }
.qf__lbl { width: 128px; flex: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.qf__row .opts { flex: 1 1 520px; }
.qf__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.qf__more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }

.dd { position: relative; }
.dd__btn { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); list-style: none; cursor: pointer; font-size: 15px; }
.dd__btn::-webkit-details-marker { display: none; }
.dd__btn b { font-weight: 600; color: var(--navy-d); }
.dd__btn .ic:first-child { color: var(--muted); }
.dd[open] .dd__btn { border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-100); }
.dd__panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; width: min(600px, calc(100vw - 40px)); padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.dd__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.dd__foot { display: flex; justify-content: flex-end; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.quick__lbl { font-size: 14px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.quick__a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 14px; }
.quick__a:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }

/* ---------- Khối nội dung ---------- */
.sec { padding: 56px 0; }
.sec--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec--tight { padding: 48px 0 8px; }
.sec__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.sec__t { font-family: var(--ff-h); font-weight: 600; font-size: 30px; }
.sec__t::after { content: ""; display: block; width: 40px; height: 2px; margin-top: 10px; background: var(--bronze); }
.sec__more { text-align: center; margin-top: 18px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid.is-loading { opacity: .5; transition: opacity .15s; pointer-events: none; }

.districts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 14px; }
.dist { padding: 18px 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 4px; }
.dist__t { font-family: var(--ff-h); font-weight: 600; font-size: 20px; margin-bottom: 4px; }
.dist__t a { color: var(--navy-d); }
.dist__l { font-size: 14px; }
.dist__l a { font-weight: 600; }

.projects { display: flex; flex-wrap: wrap; gap: 10px; }
.proj { display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); }
.proj:hover { border-color: var(--navy); text-decoration: none; color: var(--text); }
.proj__n { font-weight: 600; color: var(--navy-d); }
.proj__m { font-size: 13px; color: var(--muted); }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.duo__card { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.duo__card--brand { background: var(--navy-50); border-color: var(--navy-100); border-top: 3px solid var(--bronze); }
.duo__t { font-family: var(--ff-h); font-weight: 600; font-size: 26px; }
.duo__card > p:not(.eyebrow) { color: var(--muted); }
.duo__card .lead { margin-top: 8px; }

/* ---------- Thẻ căn hộ ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--sh); transform: translateY(-2px); border-color: var(--line-2); }
.card__img { position: relative; }
.card__media { display: block; aspect-ratio: 3 / 2; background: var(--navy-50); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%; color: #8597AE; font-size: 13px; background: linear-gradient(135deg, var(--navy-50), #F4F1EA); }
.card__tags { position: absolute; top: 12px; left: 12px; right: 64px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--navy-d); font-size: 12px; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.tag--lux { background: var(--bronze-50); color: var(--bronze-d); border: 1px solid var(--bronze); }
.tag--new { background: var(--navy); color: #fff; }
.card__n { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; background: rgba(21, 42, 69, .78); color: #fff; font-size: 12px; }
.save-btn { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--navy-d); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.save-btn:hover { color: var(--bronze-d); }
.save-btn.is-on svg, .btn[data-save].is-on svg { fill: var(--bronze); stroke: var(--bronze-d); }
.card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 16px 18px; }
.card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.card__price strong { font-size: 20px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.card__price .muted { font-size: 13px; }
.card__alt { font-size: 13px; color: var(--muted); margin-top: -4px; }
.card__t { font-family: var(--ff); font-size: 15.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__t a { color: var(--text); }
.card__t a:hover { color: var(--navy); }
.card__loc { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.card__facts { display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 13.5px; }
.card__facts li:not(:last-child)::after { content: "·"; margin: 0 8px; color: var(--line-2); }
.card__meta { font-size: 12.5px; color: var(--muted); }
.card__act { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.card__act .btn { flex: 1; padding: 0 10px; }

/* ---------- Trang kết quả ---------- */
.sbar { position: sticky; top: var(--top); z-index: 35; background: rgba(250, 248, 244, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); }
.sbar__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.sbar__q { position: relative; flex: 1 1 320px; display: flex; align-items: center; }
.sbar__q input { min-height: 46px; }
.sbar__f { display: none; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 12px; }
.chips:empty { display: none; }
.chips__lbl { font-size: 13px; color: var(--muted); }
.chip-x { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px 0 14px; border: 1px solid var(--navy-100); border-radius: 999px; background: var(--navy-50); color: var(--navy-d); font-size: 13.5px; font-weight: 600; }
.chip-x:hover { border-color: var(--navy); }
.chips__clear { display: inline-flex; align-items: center; min-height: 34px; padding: 0 6px; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.sr { display: grid; grid-template-columns: 292px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 24px; padding-bottom: 64px; }
.fp { position: sticky; top: calc(var(--top) + var(--sbar-h) + 16px); max-height: calc(100vh - var(--top) - var(--sbar-h) - 32px); overflow: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; scrollbar-width: thin; }
.fp__head, .fp__foot { display: none; }
.fp__body { padding: 4px 18px 10px; }
.fg { border: 0; margin: 0; padding: 16px 0; min-width: 0; }
.fg + .fg { border-top: 1px solid var(--line); }
.fg__t { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 15px; color: var(--navy-d); }
.fg__t small { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.fg__t + * { clear: both; }
.fp-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(21, 42, 69, .45); }

.sr__main { min-width: 0; scroll-margin-top: calc(var(--top) + var(--sbar-h) + 12px); }
.sr__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.sr__t { font-family: var(--ff-h); font-weight: 600; font-size: 27px; }
.sr__n { margin-top: 4px; color: var(--muted); }
.sr__n b { color: var(--navy-d); }
.sr__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sel { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sel select { min-height: 44px; padding: 0 34px 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2359626F' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--text); font-size: 14.5px; -webkit-appearance: none; appearance: none; }

.empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 24px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.empty__ic { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--navy-50); color: var(--navy); }
.empty__t { font-family: var(--ff-h); font-weight: 600; font-size: 22px; }
.empty p { color: var(--muted); max-width: 460px; }
.empty__act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 32px 0 0; }
.pg { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--surface); color: var(--text); font-weight: 600; }
.pg:hover { border-color: var(--navy); text-decoration: none; }
.pg.is-cur { background: var(--navy); border-color: var(--navy); color: #fff; }
.pg--gap { border: 0; background: none; min-width: 20px; }

.map { height: 640px; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; background: var(--navy-50); z-index: 1; }
.map__err { padding: 24px; color: var(--muted); }
.pin-price { background: none; border: 0; }
.pin-price span { display: inline-block; transform: translate(-50%, -100%); padding: 4px 9px; border-radius: 999px; background: var(--navy); color: #fff; font: 600 12px/1.3 var(--ff); white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); border: 1px solid #fff; }
.pop { display: grid; grid-template-columns: 88px 1fr; gap: 4px 10px; width: 260px; color: var(--text); font-family: var(--ff); }
.pop:hover { text-decoration: none; color: var(--text); }
.pop img { grid-row: span 3; width: 88px; height: 66px; object-fit: cover; border-radius: 8px; }
.pop b { color: var(--navy); font-size: 14px; }
.pop span { font-size: 13px; line-height: 1.35; font-weight: 600; }
.pop small { font-size: 12px; color: var(--muted); }

.help { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; margin-top: 44px; }
.help__col { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.help__col--alt { background: var(--navy-50); border-color: var(--navy-100); }
.help__t { display: flex; align-items: center; gap: 8px; font-family: var(--ff-h); font-weight: 600; font-size: 21px; }
.help__t .ic { color: var(--bronze-d); }
.help .lead { margin-top: 8px; }

/* ---------- Form yêu cầu ---------- */
.lead { display: flex; flex-direction: column; gap: 12px; }
.lead__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lead--compact .lead__row { grid-template-columns: 1fr; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.fld small { font-weight: 400; color: var(--muted); }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--surface); font-size: 15px; font-weight: 400; }
.fld textarea { padding: 10px 12px; min-height: 0; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-100); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-s); font-size: 14px; font-weight: 500; }
.note--ok { background: var(--ok-50); color: var(--ok); }
.note--err { background: var(--err-50); color: var(--err); }

/* ---------- Trang chi tiết ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px 0; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--navy); }
.gal { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 210px 210px; gap: 8px; border-radius: 18px; overflow: hidden; }
.gal__i { position: relative; display: block; overflow: hidden; background: var(--navy-50); }
.gal__i img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gal__i:hover img { transform: scale(1.03); }
.gal__i:first-child { grid-row: span 2; }
.gal--1 { grid-template-columns: 1fr; grid-template-rows: 440px; }
.gal--1 .gal__i:first-child { grid-row: auto; }
.gal--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 420px; }
.gal--2 .gal__i:first-child { grid-row: auto; }
.gal--3 { grid-template-columns: 2fr 1fr; }
.gal--4 .gal__i:nth-child(4) { grid-column: span 2; }
.gal__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(21, 42, 69, .55); color: #fff; font-weight: 600; }
.gal__ph .ph { font-size: 14px; }

.single__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; align-items: start; margin-top: 28px; }
.single__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.single__tags .tag { background: var(--navy-50); box-shadow: none; }
.single__tags .tag--lux { background: var(--bronze-50); }
.single__t { font-family: var(--ff-h); font-weight: 600; font-size: 32px; line-height: 1.25; }
.single__loc { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--muted); }
.prices { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.price-b { display: flex; flex-direction: column; gap: 2px; padding: 14px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--bronze); border-radius: 12px; }
.price-b__l { font-size: 13px; color: var(--muted); }
.price-b strong { font-size: 26px; color: var(--navy); letter-spacing: -.01em; }
.price-b .muted { font-size: 13px; }
.h-sec { font-family: var(--ff-h); font-weight: 600; font-size: 22px; margin: 36px 0 14px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.facts__r { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.amen { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 20px; }
.amen li { display: flex; align-items: center; gap: 8px; }
.amen .ic { color: var(--bronze-d); }
.prose { line-height: 1.75; }
.prose p { margin: 0 0 1em; }
.prose h2, .prose h3 { font-family: var(--ff-h); margin: 1.4em 0 .5em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.map--single { height: 380px; }
.contact-box { position: sticky; top: calc(var(--top) + 24px); display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--bronze); border-radius: 18px; box-shadow: var(--sh); }
.contact-box__p { font-size: 26px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.contact-box__act { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 6px; }
.contact-box__t { font-family: var(--ff-h); font-weight: 600; font-size: 19px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.mbar { display: none; }

/* Ảnh phóng to */
.lb { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(12, 20, 32, .92); }
.lb img { max-width: min(1400px, 92vw); max-height: 86vh; object-fit: contain; border-radius: 6px; }
.lb button { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; }
.lb button:hover { background: rgba(255, 255, 255, .26); }
.lb__x { top: 16px; right: 16px; }
.lb__p { left: 16px; top: 50%; transform: translateY(-50%); }
.lb__nx { right: 16px; top: 50%; transform: translateY(-50%); }
.lb__n { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; }
body.lb-open { overflow: hidden; }

/* Tin tức */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 20px; }
.post-c { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.post-c__img img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.post-c__b { display: flex; flex-direction: column; gap: 6px; padding: 18px; }
.post-c__t { font-family: var(--ff-h); font-weight: 600; font-size: 20px; }
.post-hero { margin: 20px 0; border-radius: 16px; overflow: hidden; }

/* ---------- Chân trang ---------- */
.site-f { background: var(--bg-2); border-top: 1px solid var(--line); padding: 52px 0 0; }
.site-f__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-f__brand { display: flex; flex-direction: column; gap: 12px; }
.site-f__contact { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.site-f__contact li { display: flex; align-items: center; gap: 8px; }
.site-f__contact .ic { color: var(--bronze-d); }
.site-f__h { font-family: var(--ff); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-d); margin-bottom: 12px; }
.site-f nav li a { display: inline-block; padding: 4px 0; color: var(--text); font-size: 14.5px; }
.site-f nav li a:hover { color: var(--navy); }
.site-f__bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.site-f__menu { display: flex; flex-wrap: wrap; gap: 16px; }
.site-f__menu a { color: var(--muted); }
.fab-zalo { position: fixed; right: 18px; bottom: 18px; z-index: 45; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(21, 42, 69, .35); }
.fab-zalo:hover { background: var(--navy-d); color: #fff; }
.sheet-open .fab-zalo, .lb-open .fab-zalo { display: none; }

/* Leaflet gọn gàng */
.leaflet-container { font-family: var(--ff); }
.leaflet-popup-content-wrapper { border-radius: 12px; }

/* ==========================================================================
   Màn hình vừa và nhỏ
   ========================================================================== */
@media (max-width: 1100px) {
	.site-h__in { gap: 16px; }
	.site-nav a { padding: 0 8px; }
}

@media (max-width: 1024px) {
	.sr { grid-template-columns: minmax(0, 1fr); padding-top: 18px; }
	.sbar__f { display: inline-flex; }
	.fp { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; flex-direction: column; height: min(88vh, 780px); max-height: none; border-radius: 20px 20px 0 0; border: 0; transform: translateY(105%); transition: transform .25s ease; box-shadow: 0 -10px 40px rgba(0, 0, 0, .18); }
	.sheet-open .fp { transform: none; }
	.sheet-open { overflow: hidden; }
	.fp__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 6px 20px; border-bottom: 1px solid var(--line); }
	.fp__t { font-family: var(--ff-h); font-weight: 600; font-size: 20px; }
	.fp__body { flex: 1; overflow: auto; padding: 0 20px; }
	.fp__foot { display: flex; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
	.fp__foot .btn--primary { flex: 1; }
	.opts--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.single__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.contact-box { position: static; }
	.help, .duo { grid-template-columns: minmax(0, 1fr); }
	.site-f__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
	.nav-tg { display: inline-flex; order: 3; }
	.site-h__cta { order: 2; margin-left: auto; gap: 4px; }
	.site-h__in { flex-wrap: wrap; gap: 8px; min-height: 64px; }
	.logo__txt { font-size: 19px; }
	.logo__mark { width: 34px; height: 34px; }
	.site-nav { display: none; order: 5; flex-basis: 100%; padding-bottom: 12px; }
	.nav-open .site-nav { display: block; }
	.site-nav .menu { flex-direction: column; }
	.site-nav a { width: 100%; }
	.site-nav .current-menu-item > a { box-shadow: inset 3px 0 0 var(--bronze); border-radius: 0; }
	.site-h__cta .btn span { display: none; }
	.site-h__cta .btn { width: 44px; padding: 0; }
}

@media (max-width: 720px) {
	body { font-size: 15px; }
	.wrap { padding: 0 16px; }
	.hero { padding: 32px 0 28px; }
	.hero__t { font-size: 30px; }
	.hero__sub { font-size: 15.5px; }
	.qf { padding: 16px; border-radius: 16px; }
	.qf__top > * { flex: 1 1 100%; }
	.seg--lg { display: flex; }
	.seg--lg .seg__b { flex: 1; }
	.dd__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.qf__lbl { width: 100%; }
	.qf__row { gap: 8px; }
	.qf__foot { flex-direction: column-reverse; align-items: stretch; }
	.qf__foot .btn { width: 100%; }
	.qf__more { justify-content: center; }
	.sec { padding: 40px 0; }
	.sec__t { font-size: 25px; }
	.sbar__in { gap: 8px; }
	.sbar__q { order: 3; flex-basis: 100%; }
	.sbar .seg { flex: 1; }
	.sbar .seg__b { flex: 1; }
	.sr__t { font-size: 22px; }
	.sr__tools { width: 100%; flex-wrap: nowrap; justify-content: space-between; }
	.sel { flex: 1; min-width: 0; }
	.sel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.sel select { width: 100%; }
	.sr__tools .seg__b { padding: 0 10px; }
	.map { height: 70vh; }
	.grid, .grid--4 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.lead__row { grid-template-columns: minmax(0, 1fr); }
	.gal, .gal--1, .gal--2, .gal--3, .gal--4 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; border-radius: 14px; margin: 0 -16px; padding: 0 16px; }
	.gal__i { flex: 0 0 86%; height: 260px; scroll-snap-align: center; border-radius: 12px; }
	.gal--1 .gal__i { flex-basis: 100%; }
	.single__t { font-size: 25px; }
	.facts { grid-template-columns: minmax(0, 1fr); }
	.opts--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-f__grid { grid-template-columns: minmax(0, 1fr); }
	.single-can_ho .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); }
	.single-can_ho .mbar .btn { flex: 1; padding: 0 8px; }
	.single-can_ho { padding-bottom: 72px; }
	.single-can_ho .fab-zalo { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
