/* Thomson Reserve microsite — Allure Homes */
:root {
  --forest: #1f3a2e;
  --forest-2: #2b4b3c;
  --moss: #5f7a5a;
  --bronze: #a8703f;
  --gold: #d2a774;
  --gold-2: #c08f57;
  --cream: #f8f4ec;
  --sand: #f0e9dc;
  --paper: #fffdf8;
  --ink: #1b241f;
  --muted: #5a675f;
  --line: #e0d7c6;
  --wa: #1fa855;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27, 36, 31, .06), 0 8px 28px rgba(27, 36, 31, .08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hdr-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.65 var(--sans); color: var(--ink); background: var(--cream); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--bronze); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; color: var(--forest); letter-spacing: -.005em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.8rem); }
h3 { font-size: 1.5rem; }
h4 { margin: 1.2em 0 .5em; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--forest); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.kicker { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); margin-bottom: .7em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .72em 1.3em; border-radius: 999px; border: 1.5px solid transparent; font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .95em 1.7em; font-size: 1rem; }
.btn-gold { background: var(--gold); color: #24170a; }
.btn-gold:hover { background: var(--gold-2); }
.btn-line { border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn-line:hover { background: rgba(255, 255, 255, .14); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178a45; }
.btn-ghost { border-color: var(--line); color: var(--forest); background: var(--paper); }
.btn-ghost:hover { border-color: var(--forest); }

/* header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(248, 244, 236, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { height: var(--hdr-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.05; margin-right: auto; }
.brand-mark { font: 600 1.45rem/1 var(--serif); color: var(--forest); letter-spacing: .01em; }
.brand-sub { font-size: .66rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); margin-top: 4px; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; }
.nav a:hover { color: var(--bronze); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--forest); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mnav { display: flex; flex-direction: column; padding: 8px 16px 18px; gap: 2px; border-top: 1px solid var(--line); }
.mnav[hidden] { display: none; }
.mnav a:not(.btn) { padding: 12px 4px; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.mnav .btn { margin-top: 12px; }
@media (max-width: 1020px) {
  .nav, .hdr-cta { display: none; }
  .burger { display: block; }
}

/* hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--forest); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 28, 22, .5), rgba(15, 28, 22, 0) 65%), linear-gradient(180deg, rgba(15, 28, 22, .05) 25%, rgba(15, 28, 22, .55) 62%, rgba(15, 28, 22, .85) 100%); }
.hero-in { position: relative; padding: 140px 0 72px; max-width: 760px; margin-left: max(16px, (100% - 1200px) / 2); }
.hero .kicker { color: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(3rem, 2rem + 5vw, 5.6rem); font-weight: 500; margin-bottom: .2em; }
.hero .lead { font-size: clamp(1.02rem, .95rem + .35vw, 1.18rem); max-width: 620px; color: rgba(255, 255, 255, .92); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ai { position: absolute; right: 92px; bottom: 12px; margin: 0; font-size: .72rem; color: rgba(255, 255, 255, .75); }
@media (max-width: 700px) {
  .hero-shade { background: linear-gradient(180deg, rgba(15, 28, 22, .15) 0%, rgba(15, 28, 22, .6) 38%, rgba(15, 28, 22, .88) 100%); }
  .hero-in { padding-top: 120px; }
}

/* facts strip */
.facts { background: var(--forest); color: #fff; }
.facts-in { display: grid; grid-template-columns: repeat(6, 1fr); }
.facts-in > div { padding: 22px 14px; border-left: 1px solid rgba(255, 255, 255, .12); }
.facts-in > div:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font: 600 2rem/1.1 var(--serif); color: var(--gold); }
.facts span { font-size: .8rem; color: rgba(255, 255, 255, .78); }
@media (max-width: 900px) {
  .facts-in { grid-template-columns: repeat(3, 1fr); }
  .facts-in > div:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
  .facts-in > div:nth-child(n + 4) { border-top: 1px solid rgba(255, 255, 255, .12); }
}
@media (max-width: 520px) {
  .facts-in { grid-template-columns: repeat(2, 1fr); }
  .facts-in > div { border-left: 0 !important; padding-left: 0 !important; }
  .facts-in > div:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .facts b { font-size: 1.7rem; }
}

/* sections */
.sec { padding: clamp(64px, 5vw + 32px, 112px) 0; }
.sec.alt { background: var(--sand); }
.sec-head { max-width: 760px; margin-bottom: 36px; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* project */
.colls { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.coll { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 8px; border-top: 4px solid var(--moss); }
.coll-luxury { border-top-color: var(--bronze); }
.coll h3 { font-size: 1.35rem; margin-bottom: .2em; }
.coll-meta { font-size: .82rem; font-weight: 600; color: var(--muted); }
.coll p:last-child { font-size: .92rem; }
@media (max-width: 560px) { .colls { grid-template-columns: 1fr; } }
.pic { margin: 0 0 24px; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pic figcaption { position: absolute; right: 10px; bottom: 8px; font-size: .7rem; color: rgba(255, 255, 255, .85); }
.spec { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.spec dd { margin: 0; font-size: .93rem; }
@media (max-width: 480px) { .spec > div { grid-template-columns: 1fr; gap: 2px; } }

/* unit mix */
.table-scroll { position: relative; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.mix { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 640px; }
.mix th, .mix td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mix thead th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--sand); font-weight: 700; }
.mix tbody th { font-weight: 600; white-space: nowrap; }
.mix tbody tr { cursor: pointer; transition: background .15s; }
.mix tbody tr:hover { background: #faf5ea; }
.mix td small { display: block; color: var(--muted); font-size: .78rem; }
.mix .num { text-align: right; font-variant-numeric: tabular-nums; }
.mix tfoot th, .mix tfoot td { border-bottom: 0; font-weight: 700; background: var(--sand); }
.mix abbr { text-decoration: none; color: var(--muted); font-weight: 500; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 10px; vertical-align: -1px; background: var(--c, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.share { width: 150px; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.share span { display: inline-block; height: 8px; width: calc(var(--w) * 2.4); max-width: 90px; min-width: 4px; background: var(--moss); border-radius: 4px; margin-right: 8px; vertical-align: 1px; }
.go3d { font-weight: 700; font-size: .85rem; text-decoration: none; white-space: nowrap; }

/* clubs */
.clubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.club { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.club img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.club-b { padding: 22px 22px 14px; }
.club ul { padding-left: 1.1em; margin: 0 0 8px; font-size: .92rem; }
.club li { margin-bottom: 4px; }
.club li::marker { color: var(--bronze); }
@media (max-width: 960px) { .clubs { grid-template-columns: 1fr; max-width: 620px; } }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 14px; overflow-x: auto; margin-top: 26px; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.strip figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; scroll-snap-align: start; }
.strip img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.strip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; font-size: .82rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }

/* location */
.loc { display: grid; gap: 4px; }
.loc h3 { font-size: 1.25rem; margin: 18px 0 8px; }
.loc ul { padding-left: 1.1em; margin: 0 0 8px; font-size: .94rem; }
.loc li { margin-bottom: 5px; }
.dirs { list-style: none; padding: 0 !important; }
.dirs li { display: grid; grid-template-columns: 54px 1fr; gap: 8px; }
.dirs b { font-size: .78rem; color: var(--bronze); letter-spacing: .06em; padding-top: 2px; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; height: 100%; background: #e6e1d4; }
.map iframe { border: 0; width: 100%; height: 100%; min-height: 420px; display: block; }

/* floor plans */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; align-items: center; }
.chip { border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); padding: .5em 1em; border-radius: 999px; font: 600 .86rem/1.2 var(--sans); cursor: pointer; }
.chip:hover { border-color: var(--moss); }
.chip.on { background: var(--forest); border-color: var(--forest); color: #fff; }
.chip-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.plan { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.plan[hidden] { display: none; }
.plan-img { display: block; border: 0; padding: 0; background: #fff; cursor: zoom-in; position: relative; }
.plan-img img { width: 100%; height: auto; aspect-ratio: 1.41; object-fit: contain; }
.plan .badge { position: absolute; top: 10px; left: 10px; background: var(--forest); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; }
.plan figcaption { padding: 12px 14px 14px; display: grid; gap: 2px; border-top: 1px solid var(--line); flex: 1; }
.plan figcaption b { font-size: 1rem; }
.plan figcaption span { font-size: .84rem; color: var(--muted); }
.plan figcaption .go3d { margin-top: 6px; }
.plan .coll-tag { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--moss); }
.plan .coll-tag.lux { color: var(--bronze); }

/* register */
.register { background: var(--forest); color: #fff; }
.register h2 { color: #fff; }
.register .kicker { color: var(--gold); }
.agent-card p { color: rgba(255, 255, 255, .85); }
.agent { display: flex; gap: 14px; align-items: center; margin: 26px 0 22px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--gold); color: var(--forest); display: grid; place-items: center; font: 600 1.3rem/1 var(--serif); flex: none; }
.agent b { display: block; font-size: 1.1rem; }
.agent small { display: block; color: rgba(255, 255, 255, .72); font-size: .8rem; }
.agent a { color: var(--gold); font-weight: 600; text-decoration: none; }
.reg { background: var(--paper); color: var(--ink); border-radius: 18px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.reg label { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.reg input, .reg select, .reg textarea { font: 400 1rem/1.4 var(--sans); color: var(--ink); padding: .72em .85em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }
.reg input:focus, .reg select:focus, .reg textarea:focus { border-color: var(--moss); outline: none; box-shadow: 0 0 0 3px rgba(95, 122, 90, .18); }
.reg .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reg .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .82rem; line-height: 1.45; }
.reg .consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--forest); }
.reg .invalid { border-color: #c0432f !important; }
.hp { position: absolute; left: -5000px; }
.form-msg { margin: 0; font-size: .9rem; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: #1e7a45; }
.form-msg.err { color: #b33a26; }
@media (max-width: 560px) { .reg .row2 { grid-template-columns: 1fr; } }

/* footer */
.ftr { background: #14261e; color: rgba(255, 255, 255, .8); padding: 48px 0 92px; font-size: .9rem; }
.ftr-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ftr-brand { font: 600 1.6rem/1 var(--serif); color: #fff; margin-bottom: 6px; }
.ftr .muted { color: rgba(255, 255, 255, .6); }
.ftr-agent { display: grid; gap: 2px; text-align: right; }
.ftr-agent b { color: #fff; }
.ftr a { color: var(--gold); text-decoration: none; }
.disclaimer { padding-top: 20px; font-size: .78rem; color: rgba(255, 255, 255, .55); }
@media (max-width: 600px) { .ftr-agent { text-align: left; } }

/* whatsapp float */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 80; background: rgba(12, 18, 15, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 12px 20px; }
.lb[hidden] { display: none; }
.lb img { max-width: min(1400px, 100%); max-height: calc(100% - 40px); object-fit: contain; background: #fff; border-radius: 8px; }
.lb-cap { color: #fff; margin: 12px 0 0; font-size: .9rem; text-align: center; }
.lb-x { position: absolute; top: 10px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }

/* ---------- 3D explorer ---------- */
.explore { padding-bottom: 40px; }
.x { width: min(1400px, 100% - 32px); margin: 0 auto; display: grid; grid-template-columns: 1fr 340px; gap: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.x-stage { position: relative; height: min(78vh, 760px); min-height: 480px; background: linear-gradient(#cfe0ea, #eef0e6); touch-action: none; overflow: hidden; }
.x-stage canvas { display: block; width: 100%; height: 100%; outline: none; }
.x-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); font-weight: 600; z-index: 3; }
.x-loading[hidden] { display: none; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(31, 58, 46, .18); border-top-color: var(--forest); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.x-top { position: absolute; top: 12px; left: 12px; right: 64px; display: flex; flex-wrap: wrap; gap: 8px; z-index: 4; pointer-events: none; }
.x-top > * { pointer-events: auto; }
.x-search { display: flex; background: rgba(255, 253, 248, .96); border-radius: 999px; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); overflow: hidden; }
.x-search input { border: 0; background: none; padding: 10px 6px 10px 16px; font: 500 .95rem var(--sans); width: 190px; color: var(--ink); }
.x-search input:focus { outline: none; }
.x-search button { border: 0; background: var(--forest); color: #fff; font: 700 .85rem var(--sans); padding: 0 16px; cursor: pointer; }
#x-filter { border: 0; border-radius: 999px; padding: 10px 14px; font: 600 .86rem var(--sans); color: var(--ink); background: rgba(255, 253, 248, .96); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); max-width: 240px; }
.x-tools { position: absolute; top: 12px; right: 12px; display: grid; gap: 8px; z-index: 4; }
.x-tools button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 253, 248, .96); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); font-size: 1.2rem; color: var(--forest); cursor: pointer; }
.x-compass { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 253, 248, .96); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); position: relative; }
.x-compass i { position: absolute; inset: 0; display: grid; place-items: start center; font: 800 .7rem/1 var(--sans); font-style: normal; color: #b0402c; padding-top: 4px; }
.x-compass i::after { content: ""; position: absolute; left: 50%; top: 15px; width: 2px; height: 18px; margin-left: -1px; background: linear-gradient(#b0402c 50%, #9aa59e 50%); border-radius: 2px; }
.x-tip { position: absolute; z-index: 5; pointer-events: none; background: rgba(27, 36, 31, .92); color: #fff; font-size: .8rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, calc(-100% - 14px)); }
.x-sun { position: absolute; left: 12px; right: 12px; bottom: 12px; max-width: 520px; background: rgba(255, 253, 248, .96); border-radius: 14px; box-shadow: 0 2px 12px rgba(0, 0, 0, .14); padding: 10px 14px 8px; z-index: 4; }
.x-sun-row { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 700; }
.x-sun-row label { margin-right: auto; color: var(--bronze); }
.x-sun-row select { border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; font: 600 .82rem var(--sans); background: #fff; color: var(--ink); }
#x-play { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--forest); color: #fff; cursor: pointer; font-size: .8rem; }
#x-time { width: 100%; accent-color: var(--bronze); margin: 6px 0 0; }
.x-panel { border-left: 1px solid var(--line); padding: 20px; overflow-y: auto; max-height: min(78vh, 760px); }
.x-panel h3 { font-size: 1.4rem; }
.x-panel ol { padding-left: 1.2em; font-size: .9rem; color: var(--muted); }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.legend button { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 6px 8px; border-radius: 8px; font: 500 .86rem var(--sans); color: var(--ink); cursor: pointer; text-align: left; }
.legend button:hover { background: var(--sand); }
.legend button.on { background: var(--forest); color: #fff; }
.legend .sw { margin: 0; flex: none; }
.legend .ct { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .78rem; }
.legend button.on .ct { color: rgba(255, 255, 255, .7); }
.nb-toggle { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 4px 10px; padding: 6px 8px; font-size: .86rem; font-weight: 500; cursor: pointer; border-radius: 8px; }
.nb-toggle:hover { background: var(--sand); }
.nb-toggle input { margin: 0; accent-color: var(--forest); }
.nb-toggle .sw { margin: 0; }
.nb-toggle small { grid-column: 3; color: var(--muted); font-size: .76rem; }
.u-out { font-size: .86rem; background: #eef1f3; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.u-out b { color: #3d4650; }
/* prices, notes, compare */
.u-price { background: var(--forest); color: #fff; border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; display: grid; gap: 2px; }
.u-price .lbl { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.u-price b { font: 600 1.7rem/1.1 var(--serif); }
.u-price b.por { font: 700 1rem/1.3 var(--sans); }
.u-price .psf { font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .85); }
.u-price small { font-size: .72rem; line-height: 1.4; color: rgba(255, 255, 255, .7); margin-top: 4px; }
.u-price .muted { color: rgba(255, 255, 255, .7); }
.u-price.sold { background: #6d6a64; }
.u-notes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.u-notes span { font-size: .76rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--sand); color: var(--forest); }
.u-cmp { width: 100%; margin: 0 0 12px; font-size: .88rem; padding: .6em 1em; }
.u-cmp.on { border-color: var(--forest); background: #e9efe9; }
.legend-static { display: flex; align-items: center; gap: 10px; padding: 6px 8px; font-size: .86rem; }
.legend-static .ct { margin-left: auto; color: var(--muted); font-size: .78rem; }
.x-tray { position: absolute; right: 12px; bottom: 12px; z-index: 5; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; max-width: calc(100% - 560px); min-width: 260px; background: rgba(255, 253, 248, .97); border-radius: 14px; box-shadow: 0 2px 12px rgba(0, 0, 0, .16); padding: 8px 10px; }
.x-tray[hidden] { display: none; }
.x-tray .tlbl { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.x-tray .thint { font-size: .8rem; color: var(--muted); }
.x-tray .tgo { padding: .5em 1em; font-size: .86rem; margin-left: auto; }
.tchip { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 700; }
.tchip i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: .74rem; background: #a8703f; }
.tchip.b i { background: #4a8296; }
.tchip button { border: 0; background: none; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 2px; }
.cmp { position: fixed; inset: 0; z-index: 70; background: rgba(12, 18, 15, .6); padding: 4vh 12px; overflow-y: auto; overflow-x: hidden; }
.cmp[hidden] { display: none; }
.cmp-box { background: var(--paper); border-radius: 18px; width: 100%; max-width: 860px; margin: 0 auto; padding: clamp(16px, 3vw, 28px); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.cmp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cmp-head h3 { margin: 0; }
.cmp-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sand); font-size: 1.5rem; cursor: pointer; color: var(--forest); }
.cmp-diff { margin: 12px 0 16px; padding: 12px 14px; border-radius: 12px; background: #fdf3e4; font-size: .92rem; }
.cmp-diff .sold-note { color: #8a3b2a; font-weight: 700; }
.cmp-scroll { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: .9rem; table-layout: fixed; }
.cmp-table th, .cmp-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp-table thead th { font: 600 1.15rem/1.2 var(--serif); color: var(--forest); border-bottom: 2px solid var(--line); }
.cmp-table thead th:first-child { width: 22%; }
.cmp-table thead .tchip { margin-right: 6px; vertical-align: 2px; }
.cmp-table tbody th { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cmp-table small { display: block; color: var(--muted); font-size: .78rem; font-family: var(--sans); font-weight: 500; }
.cmp-table td b { font: 600 1.25rem/1.2 var(--serif); }
.cmp-table .u-plan { width: 100%; }
.cmp-table .u-plan img { aspect-ratio: 1.41; width: 100%; height: auto; max-width: 100%; }
.cmp-table td, .cmp-table th { overflow-wrap: anywhere; }
.cmp-note { font-size: .78rem; color: var(--muted); margin: 12px 0; }
.cmp-cta { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 960px) {
  .x-tray { left: 12px; right: 12px; max-width: none; bottom: 104px; }
}
@media (max-width: 560px) {
  .cmp { padding: 0; }
  .cmp-box { border-radius: 0; min-height: 100%; }
  .cmp-table { font-size: .82rem; }
  .cmp-table thead th:first-child { width: 26%; }
  .cmp-table th, .cmp-table td { padding: 8px 5px; }
  .cmp-table td b { font-size: 1.05rem; }
  .cmp-cta .btn { width: 100%; }
}
.x-unit .back { border: 0; background: none; color: var(--bronze); font: 700 .82rem var(--sans); padding: 0; cursor: pointer; margin-bottom: 10px; }
.x-unit h3 { margin-bottom: 2px; font-size: 1.7rem; }
.x-unit .u-sub { font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.x-unit .tag { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--sand); color: var(--moss); }
.x-unit .tag.lux { color: var(--bronze); }
.x-unit .tag.show { background: var(--forest); color: #fff; }
.u-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.u-grid div { background: var(--cream); border-radius: 10px; padding: 9px 11px; }
.u-grid dt { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.u-grid dd { margin: 0; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.u-sun { font-size: .86rem; background: #fdf3e4; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.u-sun b { color: var(--bronze); }
.u-plan { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; cursor: zoom-in; display: block; padding: 0; width: 100%; }
.u-plan img { width: 100%; aspect-ratio: 1.41; object-fit: contain; }
.u-note { font-size: .78rem; color: var(--muted); margin: 6px 0 12px; }
.u-floor { display: flex; align-items: center; gap: 8px; margin: 12px 0; font-size: .86rem; font-weight: 600; }
.u-floor button { width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 1rem; color: var(--forest); }
.u-floor button:disabled { opacity: .35; cursor: default; }
.u-cta { display: grid; gap: 8px; }
.u-cta .btn { width: 100%; }
.x-note { margin-top: 12px; }

@media (max-width: 960px) {
  .x { grid-template-columns: 1fr; width: 100%; border-radius: 0; border-left: 0; border-right: 0; }
  .x-stage { height: 66vh; min-height: 440px; }
  .x-panel { border-left: 0; border-top: 1px solid var(--line); max-height: none; }
  .x-search input { width: 150px; }
  #x-filter { max-width: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
