/* Thomson Reserve microsite — Melissa Chan Properties */
/* Fonts are served from this site (SIL Open Font License, see /fonts/README.txt) */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
:root {
  --forest: #1f3a2e;
  --forest-2: #2b4b3c;
  --moss: #506b4b;
  --bronze: #8a5a2e;
  --gold: #d2a774;
  --gold-2: #c08f57;
  --cream: #f8f4ec;
  --sand: #f0e9dc;
  --paper: #fffdf8;
  --ink: #1b241f;
  --muted: #5a675f;
  --line: #e0d7c6;
  --wa: #14803e;
  --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: #0f6e35; }
.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-logo { display: block; height: 34px; width: auto; }
.brand-sub { font-size: .62rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); margin-top: 3px; }
.nav ul { display: flex; gap: clamp(12px, 1.6vw, 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:not(.cv) { 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; }
/* A table too wide for the screen (phones): main.js adds .cards, and each row becomes a card of labelled values. */
.table-scroll.as-cards { overflow: visible; border: 0; border-radius: 0; background: none; }
.mix.cards, .mix.cards tbody, .mix.cards tfoot, .mix.cards tr, .mix.cards th, .mix.cards td { display: block; }
.mix.cards { min-width: 0; }
.mix.cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mix.cards tr { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 16px; margin-bottom: 10px; }
.mix.cards tbody tr:hover { background: var(--paper); }
.mix.cards tfoot tr { background: var(--sand); }
.mix.cards tbody th, .mix.cards tfoot th { padding: 12px 0 10px; border-bottom: 1px solid var(--line); white-space: normal; font-size: 1rem; background: none; }
.mix.cards td { display: grid; grid-template-columns: 39% 1fr; column-gap: 3%; align-items: start; padding: 9px 0; text-align: left; border-bottom: 1px dashed var(--line); white-space: normal; background: none; }
.mix.cards td:last-child { border-bottom: 0; }
.mix.cards td::before { content: attr(data-label); margin-top: 3px; font-size: .7rem; line-height: 1.35; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mix.cards td .cv { min-width: 0; }
.mix.cards td:not([data-label]) { display: block; }
.mix.cards td:empty { display: none; }
.mix.cards .share { width: auto; }

/* 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; }
.walk { list-style: none; padding: 0; margin: 10px 0 8px; border-top: 1px solid var(--line); }
.walk li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.walk b { white-space: nowrap; color: var(--forest); }
.views-wrap { margin-top: 36px; }
.fin-photos.views { grid-template-columns: repeat(2, 1fr); }
.views .fin-photo img { height: auto; aspect-ratio: 16 / 9; }
@media (max-width: 700px) { .fin-photos.views { grid-template-columns: 1fr; } }
.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-cap .plan-tour { color: var(--forest); font-weight: 600; font-size: .85rem; }
.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: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--gold); background: var(--sand); }
.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-logo { display: block; height: 40px; width: auto; margin-bottom: 8px; }
.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-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-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-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-sun { font-size: .86rem; background: #fdf3e4; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.u-sun b { color: var(--bronze); }
.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-notes span.feat { background: #fdf3e4; color: var(--bronze); box-shadow: inset 0 0 0 1px #e8cfa8; }
b.feat { color: var(--bronze); font-weight: 700; font-family: var(--sans); font-size: inherit; }
.u-cmp { width: 100%; margin: 0 0 12px; font-size: .95rem; padding: .75em 1em; background: var(--forest); border-color: var(--forest); color: #fff; }
.u-cmp:hover { background: #15291f; }
.u-cmp.on { border-color: var(--forest); background: #e9efe9; color: var(--forest); }
.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: min(640px, calc(100% - 24px)); 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-stage.has-sun .x-tray { max-width: calc(100% - 560px); }   /* beside the sun slider (thomsonreserve.allurehomes.sg only) */
.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, .x-stage.has-sun .x-tray { left: 12px; right: 12px; max-width: none; bottom: 12px; }
  .x-stage.has-sun .x-tray { 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-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; }
  /* two compact rows of controls on phones: search, then filter + compare */
  .x-top { gap: 6px; }
  .x-search { flex: 1 1 100%; }
  .x-search input { width: auto; flex: 1; min-width: 0; padding: 9px 6px 9px 14px; }
  #x-filter { flex: 1 1 0; min-width: 0; max-width: none; padding: 9px 10px; }
  .x-cmp-btn { flex: 0 0 auto; padding: 8px 14px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- multi-page additions ---------- */
.nav a[aria-current="page"], .mnav a[aria-current="page"] { color: var(--bronze); font-weight: 700; }
.lead { font-size: clamp(1.02rem, .95rem + .35vw, 1.15rem); color: var(--muted); max-width: 760px; }

/* launch strip (home) */
.launch { background: var(--sand); border-bottom: 1px solid var(--line); }
.launch-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; padding: 18px 0; }
.launch-in div { display: grid; }
.launch-in span { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze); }
.launch-in b { font: 600 1.25rem/1.2 var(--serif); color: var(--forest); }
.launch-in .btn { margin-left: auto; }
@media (max-width: 700px) { .launch-in .btn { margin-left: 0; width: 100%; } }

/* sub-page header */
.page-head { background: var(--sand); border-bottom: 1px solid var(--line); padding: 34px 0 30px; }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); margin-bottom: .3em; }
.page-head .chips { margin: 18px 0 0; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.chip { text-decoration: none; display: inline-block; }

/* lists */
.ticks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--moss); font-weight: 800; }
.small-ticks { font-size: .9rem; margin-top: 14px; }
.steps { padding-left: 1.2em; display: grid; gap: 8px; }
.show-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.show-list a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); text-decoration: none; color: var(--ink); }
.show-list a:hover { border-color: var(--moss); }
.show-list a.show-tour { display: inline-block; padding: 6px 4px 2px; border: 0; background: none; color: var(--forest); font-weight: 600; font-size: .92rem; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.timeline li { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--bronze); border-radius: var(--radius); padding: 16px 18px; }
.timeline li.tl-key { background: var(--sand); border-top-color: var(--forest); }
.timeline .tl-date { display: block; font: 600 1.4rem/1.2 var(--serif); color: var(--forest); }
.timeline b { display: block; margin: 4px 0 6px; }
.timeline p { margin: 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; } }
.school-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 16px; }
.school-col { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.school-col h3 { font-size: 1.2rem; }
.school-col ul { margin: 0; padding-left: 1.1em; }
@media (max-width: 760px) { .school-grid { grid-template-columns: 1fr; } }

/* page cards (home) */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--moss); transform: translateY(-2px); }
.card h3 { margin: 0; font-size: 1.35rem; }
.card p { margin: 0; font-size: .9rem; color: var(--muted); flex: 1; }
.card span { font-weight: 700; color: var(--bronze); font-size: .88rem; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* YouTube (thumbnail until played) */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); margin-bottom: 10px; }
.yt button { all: unset; cursor: pointer; display: block; width: 100%; height: 100%; position: relative; }
.yt button:focus-visible { outline: 3px solid var(--gold); }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; margin: -25px 0 0 -36px; border-radius: 14px; background: rgba(200, 30, 30, .92); }
.yt-play::after { content: ""; position: absolute; left: 29px; top: 15px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.yt iframe { width: 100%; height: 100%; border: 0; display: block; }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq-group { font-size: 1.6rem; margin: 30px 0 12px; }
.faq-group:first-child { margin-top: 0; }
.faq { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 1.4rem; color: var(--bronze); }
.faq[open] summary::after { content: "–"; }
.faq > div { padding: 0 18px 14px; }
.faq > div p:last-child { margin-bottom: 0; }
.pay td, .pay th { font-size: .9rem; }

/* footer links */
.ftr-social { display: flex; gap: 14px; margin: 8px 0 0; }
.ftr-links { display: grid; gap: 4px; }
.ftr-links a { color: rgba(255, 255, 255, .8) !important; }

/* floor plan index + layout pages */
.plan-group { margin-bottom: 40px; scroll-margin-top: calc(var(--hdr-h) + 12px); }
.plan-group h2 small { font: 600 .9rem var(--sans); color: var(--muted); margin-left: 8px; }
.plan-card { transition: border-color .2s, transform .2s, box-shadow .2s; }
.plan-card:hover { border-color: var(--moss); transform: translateY(-2px); }
.plan-card.picked { border-color: var(--forest); box-shadow: 0 0 0 2px var(--forest); }
.plan-link { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; flex: 1; }
.plan-link .plan-img { display: block; }
.plan-link .plan-img img { width: 100%; height: auto; aspect-ratio: 1.41; object-fit: contain; }
.plan-cap { padding: 12px 14px 14px; display: grid; gap: 2px; border-top: 1px solid var(--line); }
.plan-cap b { font-size: 1rem; }
.plan-cap span:not(.coll-tag) { font-size: .82rem; color: var(--muted); }
/* compare two layouts (floor plans page) */
.plan-cmp { margin: 0 14px 14px; border: 1.5px solid var(--forest); border-radius: 999px; background: var(--paper); color: var(--forest); font: 700 .9rem var(--sans); padding: .6em 1em; cursor: pointer; }
.plan-cmp:hover { background: #e9efe9; }
.plan-cmp[aria-pressed="true"] { background: var(--forest); color: #fff; }
.cmp-hint { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 10px 16px; border-radius: 12px; background: #fdf3e4; box-shadow: inset 0 0 0 1px #e8cfa8; font-size: .92rem; }
.cmp-hint i { font-style: normal; font-size: 1.2rem; color: var(--bronze); }
.ptray { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 45; width: min(780px, calc(100% - 24px)); display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px;
  background: var(--forest); color: #fff; border-radius: 16px; padding: 10px 12px 10px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.ptray[hidden] { display: none; }
.ptray .tlbl { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.ptray .tchip { background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 3px 4px 3px 3px; }
.ptray .tchip button { color: rgba(255, 255, 255, .8); }
.ptray .thint { font-size: .84rem; color: rgba(255, 255, 255, .85); }
.ptray .tgo { margin-left: auto; }
body.has-ptray { padding-bottom: var(--ptray-h, 70px); }
body.has-ptray .wa-float { bottom: calc(var(--ptray-h, 70px) + 22px); }
.cmp-stacks { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.plan-big { all: unset; display: block; cursor: zoom-in; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.plan-big img { width: 100%; height: auto; }
.plan-big:focus-visible { outline: 3px solid var(--gold); }
.stacks-table { min-width: 760px; }
.stacks-table td, .stacks-table th { font-size: .88rem; }
.addr { min-width: 520px; }

@media (max-width: 420px) { .brand-logo { height: 28px; } }

/* ---------- Compare tab ---------- */
.anchor { display: block; position: relative; top: calc(-1 * var(--hdr-h) - 12px); visibility: hidden; height: 0; }
.x-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--sand); border-radius: 12px; padding: 4px; margin: 0 0 16px; position: sticky; top: 0; z-index: 2; }
.x-tabs button { border: 0; background: none; border-radius: 9px; padding: 10px 8px; font: 700 .9rem var(--sans); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.x-tabs button[aria-selected="true"] { background: var(--paper); color: var(--forest); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.tab-badge { font-size: .7rem; font-weight: 800; background: var(--forest); color: #fff; border-radius: 999px; padding: 2px 7px; }
.x-cmp-btn { border: 2px solid #fff; border-radius: 999px; padding: 10px 20px; font: 800 .95rem var(--sans); color: #24170a; background: var(--gold); box-shadow: 0 4px 14px rgba(0, 0, 0, .22); cursor: pointer; }
.x-cmp-btn:hover, .x-cmp-btn.on { background: var(--gold-2); }
.x-cmp-btn.pulse { animation: cmp-pulse 1.4s ease-out 3; }
@keyframes cmp-pulse {
  0% { box-shadow: 0 4px 14px rgba(0, 0, 0, .22), 0 0 0 0 rgba(210, 167, 116, .85); }
  100% { box-shadow: 0 4px 14px rgba(0, 0, 0, .22), 0 0 0 16px rgba(210, 167, 116, 0); }
}
.x-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.x { scroll-margin-top: calc(var(--hdr-h) + 8px); }
.slots { display: grid; gap: 12px; margin: 14px 0; }
.slot { border: 2px solid var(--line); border-radius: 14px; padding: 12px; background: var(--paper); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.slot.active { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(210, 167, 116, .25); }
.slot.filled { cursor: default; }
.slot-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.slot-h b { font-size: .95rem; }
.slot-acts { margin-left: auto; display: flex; gap: 6px; }
.slot-acts button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 9px; font: 600 .76rem var(--sans); color: var(--forest); cursor: pointer; }
.slot-sel { display: grid; grid-template-columns: 1fr; gap: 6px; }
.slot-sel select { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 7px 6px; font: 500 .8rem var(--sans); background: #fff; color: var(--ink); }
.slot-sel select:disabled { opacity: .5; }
.slot-sum { margin-top: 10px; font-size: .88rem; line-height: 1.45; }
.slot-sum span { color: var(--muted); font-size: .82rem; }
.slot-sum.empty { color: var(--muted); font-style: italic; font-size: .84rem; }
.cmp-mini { font-size: .86rem; background: #fdf3e4; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.cmp-go { width: 100%; }
.cmp-go:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 960px) {
  .x-tabs { position: static; }
}

/* phone bar: tapped unit + price on the model */
.x-mini { display: none; }
@media (max-width: 960px) {
  .x-mini:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 6;
    background: var(--forest); color: #fff; border-radius: 14px; padding: 10px 10px 10px 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
  .mini-acts { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mini-cmp { border: 0; border-radius: 999px; background: #fff; color: var(--forest); font: 800 .84rem var(--sans); padding: 9px 14px; cursor: pointer; white-space: nowrap; }
  .mini-t { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
  .mini-t b { font: 600 1.15rem/1.2 var(--serif); }
  .mini-t em { font: 700 .95rem var(--sans); font-style: normal; color: var(--gold); margin-left: 8px; white-space: nowrap; }
  .mini-t span { font-size: .8rem; color: rgba(255, 255, 255, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mini-go { border: 0; border-radius: 999px; background: var(--gold); color: #24170a; font: 700 .84rem var(--sans); padding: 9px 14px; cursor: pointer; white-space: nowrap; }
  .mini-x { border: 0; background: none; color: rgba(255, 255, 255, .8); font-size: 1.4rem; line-height: 1; padding: 4px 6px; cursor: pointer; }
  .x-stage.has-mini .x-tray { bottom: 128px; }
  .x-stage.has-sun .x-mini:not([hidden]) { bottom: 112px; }
  .x-stage.has-sun.has-mini .x-tray { bottom: 228px; }
  .wa-float { transition: transform .2s, opacity .2s; }
  body.fab-off .wa-float { opacity: 0; pointer-events: none; transform: scale(.8); }
}

/* ---------- finishes ---------- */
.u-fin { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; background: var(--paper); }
.u-fin-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; font-size: .86rem; }
.u-fin-h a { font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.u-fin ul { margin: 0; padding-left: 1.1em; font-size: .84rem; }
.u-fin li { margin: 2px 0; }
.fin-h { font-size: 1.3rem; margin: 22px 0 8px; }
.fin-table { min-width: 860px; }
.fin-table td, .fin-table tbody th { font-size: .88rem; vertical-align: top; }
.fin-table thead th { font: 600 1.15rem/1.2 var(--serif); text-transform: none; letter-spacing: 0; color: var(--forest); scroll-margin-top: calc(var(--hdr-h) + 16px); }
.fin-table thead th.luxury { color: var(--bronze); }
.fin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.fin-card { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--moss); border-radius: var(--radius); padding: 18px 20px; scroll-margin-top: calc(var(--hdr-h) + 16px); }
.fin-card.luxury { border-top-color: var(--bronze); }
.fin-card h3 { font-size: 1.25rem; margin-bottom: .3em; }
.fin-card ul { padding-left: 1.1em; margin: 8px 0 0; font-size: .9rem; }
.fin-card .fin-extra { list-style: none; padding: 8px 0 0; border-top: 1px dashed var(--line); margin-top: 10px; }
.fin-card .fin-extra li::before { content: "★ "; color: var(--bronze); }
.fin-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 14px; }
.fin-photos figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fin-photo { all: unset; display: block; cursor: zoom-in; width: 100%; }
.fin-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fin-photo:focus-visible { outline: 3px solid var(--gold); }
.fin-photos figcaption { padding: 10px 12px; display: grid; gap: 2px; font-size: .86rem; }
.fin-photos figcaption span { color: var(--muted); font-size: .78rem; }
.cards { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* top bar: back to the main site, and the other launches */
.topbar { background: #15281f; color: rgba(255, 255, 255, .78); font-size: .8rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.topbar a { color: rgba(255, 255, 255, .9); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--gold); }
.tb-home span[aria-hidden] { color: var(--gold); font-weight: 800; margin-right: 2px; }
.tb-launches { display: flex; align-items: center; gap: 14px; }
.tb-launches a[aria-current="page"] { color: var(--gold); }
.tb-lbl { color: rgba(255, 255, 255, .55); }
@media (max-width: 640px) {
  .tb-long, .tb-launches a[aria-current="page"] { display: none; }
  .tb-home { white-space: nowrap; }
  /* three launches don't fit on a phone: one "Also:" label, and the links scroll sideways on one line */
  .tb-launches { min-width: 0; overflow-x: auto; white-space: nowrap; gap: 10px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 18px; }
  .tb-launches::-webkit-scrollbar { display: none; }
  .tb-lbl { font-size: 0; }
  .tb-lbl::before { content: "Also:"; font-size: .8rem; }
}
.mnav-main { display: flex; flex-direction: column; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 4px; }
.mnav-main a { font-size: .9rem; color: var(--muted) !important; }

/* primary schools within 1 km (home page, under the launch dates) */
.schools-band { background: var(--paper); border-bottom: 1px solid var(--line); }
.sb-in { display: grid; grid-template-columns: minmax(220px, .9fr) repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: stretch; padding: 22px 0; }
.sb-head h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 0 0 .2em; }
.sb-head .kicker { margin-bottom: .4em; }
.sb-head p:last-child { margin: 0; font-size: .9rem; color: var(--muted); }
.sb-card { display: grid; gap: 3px; align-content: start; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; background: var(--cream); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.sb-card:hover { border-color: var(--gold-2); transform: translateY(-1px); }
.sb-card b { font: 600 1.3rem/1.15 var(--serif); color: var(--forest); }
.sb-meta { font-size: .78rem; font-weight: 700; color: var(--muted); }
.sb-line { font-size: .9rem; }
.sb-go { font-size: .84rem; font-weight: 800; color: var(--bronze); margin-top: 2px; }
@media (max-width: 760px) { .sb-in { grid-template-columns: 1fr; gap: 10px; padding: 18px 0; } }

/* "Within 1 km of …" in the hero, linking to the schools band */
.school-pill { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 2px; padding: 8px 14px 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1.5px solid var(--gold); color: #fff; text-decoration: none; font-size: .95rem; line-height: 1.3; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: background .2s; }
.school-pill:hover { background: rgba(255, 255, 255, .24); }
.school-pill svg { flex: none; color: var(--gold); }
.school-pill b { color: var(--gold); font-weight: 700; }
.school-pill i { font-style: normal; color: var(--gold); font-weight: 800; }
@media (max-width: 560px) { .school-pill { font-size: .88rem; } }

/* two videos side by side (Part 1 and Part 2) */
.vids2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vids2 figure { margin: 0; }
.vids2 figcaption { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.vids2 figcaption .tag { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; background: var(--forest); color: var(--gold); }
.vids2 figcaption b { font-weight: 700; }
@media (max-width: 760px) { .vids2 { grid-template-columns: 1fr; } }
/* maintenance fees and car park */
.costs .mix td.num, .costs .mix th.num { text-align: right; }
.costs .spec { margin-top: 4px; }
.more-row { margin-top: 20px; }
.plan-orig { max-width: 380px; margin-top: 18px; }
/* floor plans page: the site plan with every layout drawn in */
.spl-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.spl-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #eef0e6; -webkit-overflow-scrolling: touch; }
.spl { position: relative; min-width: 1100px; }
.spl img { display: block; width: 100%; height: auto; }
.spl svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.spl-u polygon { fill: rgba(255, 255, 255, 0); stroke: none; transition: fill .15s; }
.spl-u:hover polygon, .spl-u:focus-visible polygon { fill: rgba(226, 54, 63, .2); stroke: #e2363f; stroke-width: 4; }
.spl-u:focus { outline: none; }
.spl-u text { font: 800 21px var(--sans); fill: #1b241f; paint-order: stroke; stroke: rgba(255, 255, 255, .94); stroke-width: 7px; stroke-linejoin: round; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.spl.no-labels .spl-u text { display: none; }
.costs .split > div { min-width: 0; }
.costs .mix th, .costs .mix td { white-space: normal; }
.plan-orig .fin-photo { all: unset; display: block; cursor: zoom-in; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.plan-orig img { display: block; width: 100%; height: auto; }
.plan-orig p { margin-top: 6px; }
.costs .split > div { min-width: 0; }
.costs .mix { min-width: 0; }
.costs .mix th, .costs .mix td { white-space: normal; }

/* top bar: one link to all launches (no fade needed) */
.tb-launches { -webkit-mask-image: none !important; mask-image: none !important; padding-right: 0 !important; }

/* comparison article: Thomson Reserve vs Upper Thomson Parcel A */
.vs-body > * { max-width: 860px; }
.vs-body h2 { margin-top: 36px; }
.vs-body h2:first-child { margin-top: 0; }
.vs-short { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 20px 22px 6px; box-shadow: var(--shadow); }
.vs-short h2 { margin: 0 0 12px; }
.vs-table { min-width: 680px; }
.vs-table tbody tr { cursor: auto; }
.vs-table tbody tr:hover { background: transparent; }
.vs-table tbody th { white-space: normal; width: 22%; vertical-align: top; }
.vs-table td { vertical-align: top; width: 39%; }
.vs-table .vs-tr { background: rgba(210, 167, 116, .12); }
.vs-table thead .vs-tr { color: var(--forest); }
.vs-who { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vs-who h3 { margin-top: 0; }
@media (max-width: 760px) { .vs-who { grid-template-columns: 1fr; } }
.vs-take { background: var(--forest); color: #fff; border-radius: var(--radius); padding: 24px 26px; }
.vs-take .kicker { color: var(--gold); }
.vs-take a:not(.btn) { color: var(--gold); }
.vs-take .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.vs-note { margin-top: 18px; padding: 12px 16px; border-left: 4px solid var(--gold); background: var(--paper); border-radius: 0 10px 10px 0; }
/* phones: each row becomes the item name, then both projects side by side, so nothing hides off-screen */
@media (max-width: 640px) {
  .vs-table { min-width: 0; }
  .vs-table thead { display: none; }
  .vs-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .vs-table tbody th { grid-column: 1 / -1; width: auto; padding: 10px 12px 6px; border-bottom: 0; background: var(--sand); font-size: .9rem; }
  .vs-table td { width: auto; border-bottom: 0; padding: 8px 12px 12px; font-size: .86rem; }
  .vs-table td::before { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
  .vs-table td.vs-tr::before { content: "Thomson Reserve"; color: var(--forest); }
  .vs-table td:not(.vs-tr)::before { content: "Parcel A"; }
}
/* home "Everything else" cards: six cards as two rows of three on wide screens */
@media (min-width: 961px) { #more .cards { grid-template-columns: repeat(3, 1fr); } }

/* official indicative starting prices (15 Oct 2026) */
.prices .split > div { min-width: 0; }
.prices .mix { min-width: 0; }
.prices .mix tbody tr { cursor: default; }
.prices .mix tbody tr:hover { background: none; }
.prices .mix th, .prices .mix td { white-space: normal; }
.prices .fin-photo { all: unset; display: block; max-width: 520px; cursor: zoom-in; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prices .fin-photo:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.prices .fin-photo img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.prices .fin-photo + p { margin-top: 6px; }
/* showflat page: what to bring on booking day */
.prices .table-scroll + p { margin-top: 12px; }
.prices .mix td.num { white-space: nowrap; }
/* homes still available (home page since the launch, as on the other launched projects: Melissa, 1 Nov 2026) */
.price-table th, .price-table td { padding: 11px 12px; }
.price-table tbody th small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
.price-table tbody th small:empty { display: none; }
.price-table .pp { font: 600 1.3rem/1.1 var(--serif); color: var(--bronze); white-space: nowrap; }
.price-asof { display: inline-block; margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: #fbf1df; border: 1px solid #ecd3a8; color: #6b4423; font-size: .9rem; }
.sold-out { font: 800 .78rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #8b857c; }
.poa { font: 700 .8rem/1.3 var(--sans); color: var(--bronze); }
.prices .table-scroll + .hero-cta { margin-top: 22px; }
@media (max-width: 420px) { .price-table .pp { font-size: 1.1rem; } }
/* phone cards: a sold-out home type shrinks to its name, "Sold out" and the Units link */
.price-table.cards tr.out td:not([data-left]):not(:last-child) { display: none; }
.price-table.cards tr.out th { padding-bottom: 6px; }
@media (max-width: 480px) { .prices .mix th, .prices .mix td { padding: 11px 8px; } .prices .mix thead th { letter-spacing: .06em; } }
