:root {
  --page: #fff; --ink: #18251e; --muted: #66736b; --line: #e8ece6; --water: #83becb; --frame-line: #e3e9df;
  --card: #fff; --soft: #f3f5f2; --seg: #f1f3f2; --seg-line: #d6e0cd; --seg-on: #fff; --dark: #17231d; --dark-line: #293b2e;
  --dglass: rgba(20, 30, 25, .86); --glass: rgba(246, 249, 245, .82); --glass-line: rgba(255, 255, 255, .92);
  --pin: rgba(238, 245, 234, .9); --pin-ink: #3f5a47; --body: #3a463f; --accent: #e8583f; --accent-soft: #fbdcd5;
  --shadow: 0 8px 28px rgba(36, 52, 34, .063), 0 1px 2px rgba(20, 33, 25, .05); --shadow-up: 0 12px 32px rgba(22, 37, 27, .16);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--page); color: var(--ink); }
body { font-family: Figtree, system-ui, sans-serif; display: flex; flex-direction: column; overflow: hidden; -webkit-font-smoothing: antialiased; letter-spacing: -.01em; height: 100dvh; }
button { font: inherit; color: inherit; letter-spacing: inherit; border: 0; background: none; cursor: pointer; padding: 0; text-align: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg { flex: none; }
[hidden] { display: none !important; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px 12px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand i { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); flex: none; }
.brand b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.brand small { display: block; font-size: 11px; color: var(--muted); }
.brand small a, .foot a { color: var(--ink); font-weight: 600; text-decoration: none; }
.brand small a:hover, .foot a:hover { color: var(--accent); text-decoration: underline; }
.foot { flex: none; padding: 0 16px 9px; text-align: center; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.top-r { display: flex; align-items: center; gap: 10px; min-width: 0; }
.snd { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--seg); border: 1px solid var(--seg-line); color: var(--ink); }
.snd .off { display: none; }
.snd[aria-pressed="false"] { color: var(--muted); }
.snd[aria-pressed="false"] .on { display: none; }
.snd[aria-pressed="false"] .off { display: inline; }
.seg { display: flex; padding: 3px; border-radius: 999px; background: var(--seg); border: 1px solid var(--seg-line); }
.seg button { padding: 8px 15px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; min-height: 34px; }
.seg button[aria-pressed="true"] { background: var(--seg-on); color: var(--ink); box-shadow: 0 1px 5px rgba(39, 59, 49, .08); }

/* frame */
.frame { position: relative; flex: 1; min-height: 0; margin: 0 14px 7px; border-radius: 28px; border: 1px solid var(--frame-line); overflow: hidden; background: #dfeaec; isolation: isolate; }
.stage { position: absolute; inset: 0; visibility: hidden; }
.stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.frame[data-view="location"] #mapHost, .frame[data-view="facilities"] #mapHost, .frame[data-view="balcony"] #mapHost { visibility: visible; }
.frame[data-view="homes"] { background: linear-gradient(180deg, #f6f7f3, #e7ebe4); }
.frame[data-view="homes"] #unitHost { visibility: visible; }
#pins { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.frame[data-view="overview"] #pins, .frame[data-view="details"] #pins, .frame[data-view="loan"] #pins { display: none; }

/* per-view panels */
.panel { position: absolute; z-index: 6; }
.view-location, .view-facilities, .view-homes, .only-map, .only-3d { display: none !important; }
.frame[data-view="location"] .view-location, .frame[data-view="facilities"] .view-facilities { display: flex !important; }
.frame[data-view="homes"] .view-homes { display: flex !important; }
.frame[data-view="homes"] #levelCard { display: block !important; }
.frame[data-view="homes"] #levelCard.walking { display: none !important; }
.frame[data-view="homes"] #walkTip { display: block !important; }
.frame[data-view="homes"] #walkTip[hidden] { display: none !important; }
.frame[data-view="location"] .only-map, .frame[data-view="facilities"] .only-map { display: flex !important; }
.frame[data-view="location"] .only-3d, .frame[data-view="facilities"] .only-3d, .frame[data-view="balcony"] .only-3d, .frame[data-view="homes"] .only-3d { display: flex !important; }

.dglass { background: var(--dglass); border: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--shadow-up); backdrop-filter: blur(20px) saturate(1.1); -webkit-backdrop-filter: blur(20px) saturate(1.1); color: #f7faf5; }
.glass { background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-up); backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2); }
.dpill { height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .19); background: rgba(255, 255, 255, .04); font-size: 11.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: #f7faf5; }
.dpill:hover { background: rgba(255, 255, 255, .1); }
.dpill[aria-pressed="true"] { background: rgba(255, 255, 255, .2); }
.dseg { display: flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.dseg button { padding: 6px 12px; min-height: 28px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: rgba(247, 250, 245, .7); white-space: nowrap; }
.dseg button[aria-pressed="true"] { background: #f7faf5; color: var(--ink); }
.dseg em { font-style: normal; font-weight: 500; opacity: .7; font-variant-numeric: tabular-nums; }
/* sun slider: a thin track with a round thumb, sunrise → noon → sunset marks under it */
.sunbar { padding-right: 14px; }
.sunslide { display: grid; gap: 1px; width: 280px; padding-top: 4px; }
#sunRange { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: grab; touch-action: none; }
#sunRange:active { cursor: grabbing; }
#sunRange::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, #f7faf5 var(--p), rgba(255, 255, 255, .22) var(--p)); }
#sunRange::-moz-range-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, #f7faf5 var(--p), rgba(255, 255, 255, .22) var(--p)); }
#sunRange::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7.5px; border-radius: 50%; background: #fff; border: 4px solid #f2c46b; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); transition: transform .15s; }
#sunRange::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 4px solid #f2c46b; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
#sunRange:active::-webkit-slider-thumb { transform: scale(1.18); }
#sunRange:focus-visible { outline: none; }
#sunRange:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(242, 196, 107, .55); }
.sunmarks { position: relative; height: 17px; margin: 0 9px; color: rgba(247, 250, 245, .72); } /* inset by the thumb's radius, so marks line up with the thumb's centre */
.sunmarks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-variant-numeric: tabular-nums; }
.sunmarks svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sunmarks em { font-style: normal; }
.sunmarks #mRise { transform: translateX(-9px); }
.sunmarks #mNight { transform: translateX(calc(-100% + 9px)); flex-direction: row-reverse; }
.suntime { min-width: 40px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: #f7faf5; text-align: right; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.lbl { font-size: 11px; opacity: .7; }

.sunbar { right: 18px; top: 18px; align-items: center; gap: 9px; padding: 6px 7px 6px 14px; border-radius: 999px; }
.toolbar { right: 18px; bottom: 18px; align-items: center; gap: 6px; padding: 7px; border-radius: 999px; }
.sq { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.sq:hover { background: rgba(255, 255, 255, .1); }
.sq[aria-pressed="true"] { background: rgba(255, 255, 255, .22); }
.tsep { width: 1px; height: 20px; margin: 0 2px; background: rgba(255, 255, 255, .18); }

/* traffic + rainfall panels (map views only, one at a time) */
.wx { display: none; right: 18px; bottom: 70px; width: 290px; padding: 14px 16px 12px 18px; border-radius: 26px; }
.frame[data-view="location"].layers-on #layers, .frame[data-view="facilities"].layers-on #layers { display: block; }
.lchips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: -4px -6px 12px -8px; }
.lchips button { height: 26px; padding: 0 4px; border-radius: 9px; font-size: 11px; font-weight: 500; color: #c2cec3; white-space: nowrap; }
.lchips button:hover { background: rgba(255, 255, 255, .08); color: #f7faf5; }
.lchips button[aria-pressed="true"] { background: rgba(255, 255, 255, .2); color: #fff; }
.lsec { display: none; }
.lsec.on { display: block; }
.wrows { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 12px; }
.wrows li { display: flex; align-items: center; gap: 8px; }
.wrows li > span { flex: 1; min-width: 0; color: #dfe7e0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrows li small { display: block; font-size: 11px; color: #a9b6ad; }
.wrows li b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wrows .meter { flex: 0 0 76px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.wrows .meter i { display: block; height: 100%; background: #2fa84f; }
.wrows.list { max-height: 168px; overflow: hidden auto; margin: 8px -6px 0; gap: 2px; }
.wrows.list li { padding: 5px 6px; border-radius: 9px; cursor: pointer; }
.wrows.list li:hover { background: rgba(255, 255, 255, .08); }
.wrows .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--k, #9fb0a6); }
.wramp { display: flex; gap: 2px; height: 7px; margin-top: 12px; }
.wramp i { flex: 1; border-radius: 2px; }
.wramp-l { display: flex; margin-top: 4px; font-size: 11px; color: #a9b6ad; }
.wramp-l span { flex: 1; }
.wnote { margin: 9px 0 0; font-size: 11px; line-height: 1.45; color: #a9b6ad; }
.wnote a { color: #f7faf5; }
.wleg .sw { width: 12px; height: 8px; border-radius: 2px; }
.wleg .sw.ring { width: 12px; height: 12px; border-radius: 50%; border: 1.5px dashed #f7faf5; }
.wleg .grow { flex: 1; }
.hchips { display: flex; gap: 4px; margin-top: 10px; }
.hchips button { flex: 1; height: 26px; border-radius: 9px; font-size: 11px; color: #c2cec3; border: 1px solid rgba(255, 255, 255, .14); }
.hchips button[aria-pressed="true"] { background: rgba(255, 255, 255, .2); color: #fff; border-color: transparent; }
.pin.school { width: auto; display: inline-flex; align-items: center; white-space: nowrap; border: 0; height: 24px; padding: 0 9px 0 7px; gap: 5px; border-radius: 999px; background: rgba(20, 30, 25, .86); color: #f7faf5; font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; text-shadow: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); pointer-events: auto; }
.pin.school::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--k, #9fb0a6); }
.wh { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wh b { display: block; font-size: 15px; font-weight: 500; }
.wh small { font-size: 11px; color: #c2cec3; }
.daysel { height: 26px; padding: 0 24px 0 10px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .2); background-color: rgba(255, 255, 255, .08); color: #f7faf5; font: inherit; font-size: 11px; font-weight: 500; cursor: pointer;
  appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-size: 4px 4px; background-position: right 12px center, right 8px center; background-repeat: no-repeat; }
.daysel option { color: #18251e; }
.wnow { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 12px; }
.wnow strong { font-size: 26px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.wnow span { font-size: 11px; color: #c2cec3; font-variant-numeric: tabular-nums; }
.wnow i { font-style: normal; }
.wline { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 11px; color: #c2cec3; }
.wline b { font-weight: 600; color: #f7faf5; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wbars { display: flex; align-items: flex-end; gap: 2px; height: 44px; margin-top: 12px; }
.wbars button { flex: 1; height: 100%; display: flex; align-items: flex-end; padding: 0; border-radius: 3px; background: none; }
.wbars button i { display: block; width: 100%; min-height: 2px; border-radius: 3px 3px 1px 1px; background: var(--lv); opacity: .78; transition: height .3s; }
.wbars button.sel i { opacity: 1; outline: 1.5px solid #fff; outline-offset: 1px; }
.wbars button:hover i { outline: 1.5px solid #fff; outline-offset: 1px; }
.rain .wbars button i { opacity: .92; }
.rain .wbars button.pour i { animation: pour 1.1s ease-in-out infinite; }
@keyframes pour { 50% { opacity: .55; } }
.waxis { position: relative; height: 14px; margin-top: 5px; font-size: 11px; color: #a9b6ad; }
.waxis span { position: absolute; top: 0; transform: translateX(-50%); }
.waxis .cur { font-weight: 700; color: #f7faf5; }
.wleg { display: flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 11px; color: #c2cec3; }
.wleg i { width: 16px; height: 5px; border-radius: 3px; }
.wleg .dpill { height: 26px; margin: 0 0 0 auto; padding: 0 11px; }
.wleg em { font-style: normal; white-space: nowrap; }
.wleg em b { font-weight: 600; color: #f7faf5; font-variant-numeric: tabular-nums; }
.l0 { --lv: #3dbb6e; background: #3dbb6e; } .l1 { --lv: #f4a62a; background: #f4a62a; } .l2 { --lv: #e5463a; background: #e5463a; } .l3 { --lv: #9e2420; background: #9e2420; }
.wbars button.l0, .wbars button.l1, .wbars button.l2, .wbars button.l3 { background: none; }
.rainveil { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(180deg, rgba(54, 68, 82, .46), rgba(54, 68, 82, .16) 72%); }

/* left column */
.side { left: 18px; top: 18px; bottom: 18px; width: 286px; flex-direction: column; gap: 12px; pointer-events: none; }
.side > * { pointer-events: auto; }
.dark-card { padding: 18px 20px; border-radius: 26px; background: var(--dark); border: 1px solid var(--dark-line); box-shadow: var(--shadow); color: #f7faf5; }
.dark-card .eyebrow { color: #f4a08e; }
.dark-card h2 { margin: 10px 0 8px; font-size: 21px; line-height: 1.14; font-weight: 600; letter-spacing: -.03em; }
.dark-card p { margin: 0; font-size: 12.5px; line-height: 1.45; color: #d3dcd4; }
.dark-card .dpill { margin-top: 12px; }
.maplink { text-decoration: none; }
.list-card { background: var(--card); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: 14px 8px 8px; min-height: 0; display: flex; flex-direction: column; }
.list-card.grow { flex: 1; }
.lh-btn { width: 100%; align-items: center; text-align: left; }
.lh-btn b { flex: 1; }
.lh-btn svg { flex: none; color: var(--muted); transition: transform .2s; }
.side.min { bottom: auto; }
.side.min .types, .side.min .rooms { display: none; }
.side.min .list-card { flex: none; padding: 10px 8px; }
.side.min .lh-btn { padding-bottom: 0; }
.side.min .lh-btn svg { transform: rotate(-90deg); }
.side.min { width: auto; }
.side.min .lh-btn { gap: 10px; white-space: nowrap; padding-right: 10px; }
.side.min .lh-btn small { display: none; }
.lh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 12px 8px; }
.lh b { font-size: 14px; font-weight: 600; letter-spacing: -.02em; }
.lh small { font-size: 11px; color: var(--muted); text-align: right; }
.q { display: flex; align-items: center; gap: 8px; height: 38px; flex: none; margin: 0 6px 10px; padding: 0 12px; border-radius: 999px; background: var(--seg); border: 1px solid var(--seg-line); color: var(--muted); transition: border-color .15s, box-shadow .15s, background .15s; }
.q:focus-within { background: var(--card); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232, 88, 63, .14); }
.q input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 13px; color: var(--ink); }
.q input::placeholder { color: var(--muted); }
.list-card mark, .fac mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
.dist, .fac, .rooms { scrollbar-width: thin; scrollbar-color: #d4dad3 transparent; }
.dist li { display: flex; align-items: center; gap: 2px; }
.dist li > button { flex: 1; min-width: 0; }
.dist .nm { min-width: 0; }
.dist .nm small { display: block; margin-top: 1px; font-size: 11px; font-weight: 500; color: var(--muted); }
.gm { flex: none; width: 32px; height: 32px; margin-right: 4px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.gm:hover { background: var(--accent-soft); color: var(--accent); }
.none { padding: 10px 12px 14px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.dist, .rooms { list-style: none; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; }
.dist button, .rooms button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; min-height: 38px; border-radius: 13px; font-size: 13px; }
.dist button:hover, .rooms button:hover { background: var(--soft); }
.dist b, .rooms small { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.rooms button[aria-pressed="true"] { background: var(--accent-soft); }
.rooms small { font-weight: 500; }
.fac { overflow-y: auto; overscroll-behavior: contain; padding: 0 4px; }
.fac h5 { margin: 8px 8px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fac button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; min-height: 36px; border-radius: 12px; font-size: 12.5px; line-height: 1.25; }
.fac button:hover { background: var(--soft); }
.fac button[aria-pressed="true"] { background: var(--accent-soft); }
.fac i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--dark); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 600; }

/* pins */
.pin { position: absolute; left: 0; top: 0; pointer-events: auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 11px; font-weight: 600; color: var(--pin-ink); background: var(--pin);
  border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 0 0 5px rgba(255, 255, 255, .28), 0 6px 14px rgba(30, 50, 35, .18); will-change: transform; cursor: pointer; }
.pin.active { background: var(--accent); color: #fff; }
.pin.label { width: auto; height: 30px; padding: 0 12px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 14px rgba(30, 50, 35, .18); font-weight: 600; font-size: 11.5px; }
.pin.site { background: var(--accent); color: #fff; border-color: #fff; height: 34px; font-size: 12.5px; }
.pin.far { display: inline-flex; align-items: center; background: var(--dglass); color: #f7faf5; border-color: rgba(255, 255, 255, .25); }
.pin.far em { font-style: normal; opacity: .7; margin-left: 5px; font-weight: 500; }
.pin.road { background: rgba(255, 255, 255, .9); color: var(--muted); height: 24px; font-size: 10.5px; cursor: default; }
.pin.room { height: 26px; font-size: 11px; font-weight: 600; background: rgba(255, 255, 255, .92); color: var(--ink); }
.pin.room.active { background: var(--accent); color: #fff; }
.pin.facn { background: var(--dark); color: #fff; border-color: rgba(255, 255, 255, .85); width: 26px; height: 26px; box-shadow: 0 4px 10px rgba(30, 50, 35, .3); }
.pin.facn.active { background: var(--accent); }
/* vintage map lettering: spaced capitals in cream, lifted off the relief by a dark halo */
.pin.label:not(.site):not(.far) { background: none; border: 0; box-shadow: none; height: auto; padding: 4px 6px; border-radius: 6px; color: #fffaee; text-transform: uppercase; letter-spacing: .2em; font-weight: 500; font-size: 11px;
  text-shadow: 0 0 2px rgba(38, 32, 14, .95), 0 0 5px rgba(38, 32, 14, .8), 0 0 10px rgba(38, 32, 14, .45), 0 1px 1px rgba(38, 32, 14, .9); }
.pin.label:not(.site):not(.far):hover { text-decoration: underline; text-underline-offset: 3px; }
.pin.label.active:not(.site):not(.far) { background: var(--accent); text-shadow: none; }
.pin.label.road { font-family: Georgia, 'Times New Roman', serif; font-style: italic; text-transform: none; letter-spacing: .04em; font-size: 13px; cursor: default; }
.pin.label.area { font-size: 13px; font-weight: 600; letter-spacing: .26em; cursor: default; pointer-events: none; }
.pin.label.peak { font-size: 10px; letter-spacing: .12em; cursor: default; pointer-events: none; }
.pin.label.road:hover, .pin.label.area:hover, .pin.label.peak:hover { text-decoration: none; }
.frame[data-view="location"], .frame[data-view="facilities"] { background: #e9dfc3; }

/* place card */
.card { right: 18px; top: 84px; width: 272px; padding: 12px; border-radius: 24px; z-index: 7; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .25s, transform .25s; }
.card.show { opacity: 1; transform: none; pointer-events: auto; }
.card .h { display: flex; align-items: center; gap: 11px; padding: 3px 32px 8px 4px; }
.num { flex: none; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 999px; background: var(--dark); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.card h4 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.card small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.card img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 15px; margin-top: 2px; }
.links { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 4px 4px; }
.links:empty { display: none; }
.links a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; font-size: 11.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.links a:first-child { background: var(--dark); color: #fff; }
.links a + a { border: 1px solid var(--seg-line); color: var(--ink); background: var(--card); }
.card p { margin: 8px 4px 4px; font-size: 12.5px; line-height: 1.42; color: var(--body); }
.close { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--card); }

/* homes */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; border-radius: 22px; background: var(--dark); box-shadow: var(--shadow); }
.types button { padding: 9px 8px 10px; border-radius: 16px; color: #d3dcd4; }
.types button b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: #f7faf5; }
.types button b i { width: 9px; height: 9px; border-radius: 50%; }
.types small { display: block; margin-top: 3px; font-size: 10.5px; line-height: 1.3; }
.types button[aria-pressed="true"] { background: #f7faf5; color: var(--muted); }
.types button[aria-pressed="true"] b { color: var(--ink); }
.typeD { grid-column: 1/-1; font-size: 11px; color: #c2cec3; padding: 2px 8px 5px; }
.levelcard { right: 18px; top: 84px; width: 300px; border-radius: 22px; padding: 10px; }
.lc-toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 2px 6px 8px; font-size: 13px; }
.lc-toggle b { font-weight: 600; }
.lc-toggle small { flex: 1; color: var(--muted); font-size: 11px; }
.lc-toggle svg { transition: transform .2s; }
.levelcard.closed .lc-toggle { padding-bottom: 2px; }
.levelcard.closed .lc-toggle svg { transform: rotate(-90deg); }
.levelcard.closed .lc-body { display: none; }
.lvl { position: relative; background: #fff; border-radius: 12px; overflow: hidden; line-height: 0; }
.lvl img { width: 100%; display: block; }
.lvl button { position: absolute; border-radius: 4px; }
.lvl button:hover { background: rgba(232, 88, 63, .18); }
.lvl button[aria-pressed="true"] { background: rgba(232, 88, 63, .28); outline: 2px solid var(--accent); outline-offset: -1px; }
.lc-info { padding: 9px 5px 2px; }
.lc-info b { display: block; font-size: 13px; font-weight: 600; }
.lc-info small { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.rng { display: flex; align-items: center; gap: 9px; padding: 6px 5px; font-size: 11.5px; color: var(--muted); }
.rng span { white-space: nowrap; min-width: 52px; }
.rng b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.rng input { flex: 1; min-width: 70px; accent-color: var(--accent); height: 24px; }
.rng.dark { color: rgba(247, 250, 245, .8); padding: 0 4px; }
.rng.dark b { color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 14px -6px rgba(232, 88, 63, .6); }
.btn.primary:hover { background: #d94c34; }
.btn.light { background: #fff; color: var(--ink); }
.levelcard .btn { width: 100%; }
.levelcard .btn + .btn { margin-top: 6px; }
.btn.soft { background: var(--accent-soft); color: #a83a26; }
.btn.soft:hover { background: #f8cdc3; }
.unitbar { left: 50%; transform: translateX(calc(-50% + 150px)); bottom: 18px; align-items: center; gap: 10px; padding: 7px 12px 7px 7px; border-radius: 999px; }
.tip { left: 50%; transform: translateX(calc(-50% + 150px)); bottom: 74px; padding: 9px 14px; border-radius: 999px; font-size: 12px; color: var(--body); white-space: nowrap; }
.balcony { left: 50%; transform: translateX(-50%); bottom: 18px; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; border-radius: 999px; display: flex; }
.balcony b { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.balcony small { display: block; font-size: 10.5px; opacity: .75; white-space: nowrap; }

/* pages */
.page { position: absolute; inset: 0; z-index: 9; background: var(--page); overflow-y: auto; display: none; }
.frame[data-view="overview"] #overview, .frame[data-view="details"] #details, .frame[data-view="loan"] #loan { display: block; }
.hero { position: relative; height: min(68vh, 620px); min-height: 380px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 18, 15, .62), rgba(10, 18, 15, .12) 62%), linear-gradient(0deg, rgba(10, 18, 15, .35), transparent 40%); }
.hero-text { position: absolute; left: 44px; bottom: 40px; z-index: 1; color: #fff; max-width: 620px; }
.hero-text .eyebrow { color: #fbdcd5; }
.hero-text h1 { margin: 12px 0 22px; font-size: clamp(36px, 5.2vw, 68px); line-height: 1.02; font-weight: 300; letter-spacing: -.035em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.stats { display: grid; grid-template-columns: max-content repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.stats > div { padding: 18px 22px; border-right: 1px solid var(--line); }
.stats > div:last-child { border: 0; }
.stats small { display: block; font-size: 11px; color: var(--muted); }
.stats b { display: block; margin-top: 5px; font-size: 15px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stats > div:first-child b { color: var(--accent); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; padding: 28px; align-items: stretch; }
.tower-img { border-radius: 22px; overflow: hidden; min-height: 320px; }
.tower-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.split-text { display: flex; flex-direction: column; justify-content: center; }
.split-text .eyebrow { color: var(--accent); }
.split-text h2 { margin: 10px 0 16px; font-size: clamp(26px, 3vw, 38px); line-height: 1.08; font-weight: 300; letter-spacing: -.03em; }
.go { display: flex; gap: 14px; align-items: flex-start; padding: 14px 4px; border-top: 1px solid var(--line); width: 100%; }
.go:hover b { color: var(--accent); }
.go i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); padding-top: 3px; }
.go b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.go small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.gal-h { padding: 8px 28px 12px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 28px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 16px; display: block; }
.gallery figcaption { padding: 8px 2px 0; font-size: 12.5px; color: var(--body); }
.fine { font-size: 11.5px; line-height: 1.5; color: var(--muted); }
#overview .fine { padding: 8px 28px 24px; margin: 0; }
.life-head { padding: 22px 28px 14px; border-top: 1px solid var(--line); }
.life-head .eyebrow { color: var(--accent); }
.life-head h2 { margin: 8px 0 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.08; font-weight: 300; letter-spacing: -.03em; }
.life { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 10px; padding: 0 28px; }
.life button { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 16px; background: var(--soft); }
.life button:nth-child(1), .life button:nth-child(4) { grid-column: span 2; grid-row: span 2; }
.life img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.life button:hover img { transform: scale(1.03); }
.life span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 13px 11px; background: linear-gradient(0deg, rgba(10, 18, 15, .78), rgba(10, 18, 15, 0)); color: #fff; }
.life b { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.life small { display: block; margin-top: 1px; font-size: 11.5px; opacity: .88; }
.lb { width: min(960px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 22px; overflow: auto; background: var(--card); color: var(--ink); }
.lb::backdrop { background: rgba(10, 18, 15, .68); }
.lb img { display: block; width: 100%; max-height: 66dvh; object-fit: contain; background: #10140f; }
.lb .close { z-index: 1; }
.lb-t { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 13px 16px; }
.lb-t b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.lb-t small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.lb-t .credit a { color: inherit; }
.lb-t .links { margin: 0; }
.dt { max-width: 860px; margin: 0 auto; padding: 34px 28px 40px; }
.dt .eyebrow { color: var(--accent); }
.dt h2 { margin: 26px 0 12px; font-size: 24px; font-weight: 400; letter-spacing: -.03em; }
.dt .eyebrow + h2 { margin-top: 8px; }
.tbl { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.tbl > * { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr .7fr; width: 100%; padding: 12px 16px; font-size: 13.5px; border-top: 1px solid var(--line); align-items: center; }
.tbl > *:first-child { border-top: 0; }
.tbl .th { font-size: 11px; color: var(--muted); background: var(--soft); }
.tbl button:hover { background: var(--soft); }
.tbl i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.facts { margin: 0; border: 1px solid var(--line); border-radius: 18px; }
.facts > div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13.5px; }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; text-align: right; }
.notes { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; color: var(--body); }
.notes li { margin-bottom: 7px; }

/* loan calculator */
.ln { max-width: 1040px; margin: 0 auto; padding: 30px 28px 34px; }
.ln > .eyebrow { color: var(--accent); }
.ln > h2 { margin: 8px 0 20px; font-size: clamp(26px, 3vw, 36px); line-height: 1.08; font-weight: 300; letter-spacing: -.03em; }
.ln-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ln-in { grid-row: span 2; border: 1px solid var(--line); border-radius: 24px; padding: 6px 22px; }
.fld { padding: 18px 0; border-top: 1px solid var(--line); }
.fld:first-child { border-top: 0; }
.fld label, .fld .lab { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.fld label b { font-weight: 600; color: var(--accent); }
.fld small { display: block; margin-top: 9px; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.fld input[type="range"] { display: block; width: 100%; height: 26px; margin: 8px 0 2px; accent-color: var(--accent); }
.fld .seg button { flex: 1; text-align: center; }
.num { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 16px; border: 1px solid var(--seg-line); border-radius: 15px; background: var(--seg); transition: border-color .15s, box-shadow .15s, background .15s; }
.num:focus-within { background: var(--card); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232, 88, 63, .14); }
.num span { font-size: 14px; font-weight: 600; color: var(--muted); }
.num input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chips button { min-height: 32px; padding: 0 11px; border: 1px solid var(--seg-line); border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.chips button:hover { background: var(--soft); }
.chips button[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: #fff; }
.ln-out { background: var(--dark); color: #f7faf5; border-radius: 24px; padding: 22px 24px; }
.ln-out > small { font-size: 12px; color: #c2cec3; }
.ln-out .big { margin-top: 3px; font-size: clamp(38px, 4.6vw, 54px); line-height: 1.02; font-weight: 300; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ln-out p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: #d3dcd4; }
.stack { display: flex; height: 8px; margin: 16px 0 6px; border-radius: 999px; overflow: hidden; gap: 2px; }
.stack i { display: block; height: 100%; }
#lnBarP { background: #f7faf5; }
#lnBarI { background: #f0846d; }
.ln-out dl, .ln-up dl { margin: 0; }
.ln-out dl > div, .ln-up dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; font-size: 13px; }
.ln-out dl > div { border-top: 1px solid rgba(255, 255, 255, .11); }
.ln-out dl > div:first-child { border-top: 0; }
.ln-out dt { display: flex; align-items: center; gap: 7px; color: #d3dcd4; }
.ln-out dt i { width: 8px; height: 8px; border-radius: 50%; }
.ln-out dt i.p { background: #f7faf5; }
.ln-out dt i.r { background: #f0846d; }
dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ln-out h5 { margin: 14px 0 2px; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #f4a08e; }
.ln-up { border: 1px solid var(--line); border-radius: 24px; padding: 18px 22px 14px; }
.ln-up h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.ln-up dl > div { border-top: 1px solid var(--line); }
.ln-up dl > div:first-child { border-top: 0; }
.ln-up dt { color: var(--body); }
.ln-up .tot { font-size: 15px; }
.ln-up .tot dt { color: var(--ink); font-weight: 600; }
.ln-up .fine { margin: 6px 0 0; }
.ln-note { margin: 14px 2px 0; }

.loading { position: absolute; inset: 0; display: grid; place-items: center; z-index: 8; background: #eaf2f2; color: #233f47; font-size: 12.5px; }
.frame:not([data-view="location"]):not([data-view="facilities"]) > .loading { display: none; }
.loading.err span { display: grid; gap: 8px; justify-items: center; max-width: 280px; text-align: center; line-height: 1.45; }
.loading.err b { font-size: 14px; }
.loading.err button { margin-top: 4px; padding: 8px 16px; border: 0; border-radius: 99px; background: #233f47; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.loading.err small { color: #6b8086; font-size: 10.5px; }

/* tablet + phone */
@media (max-width: 1100px) {
  .levelcard { width: 250px; }
  .unitbar, .tip { transform: translateX(-50%); }
  .unitbar { left: 50%; bottom: 10px; }
  .side { width: 250px; }
}
@media (max-width: 1040px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats > div:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .stats > div:first-child b { margin: 0; font-size: 19px; }
}
@media (max-width: 760px) {
  .top { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 10px 8px; }
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tabs button { flex: 1 0 auto; padding: 8px 10px; text-align: center; }
  .ln { padding: 22px 14px 26px; }
  .ln-grid { grid-template-columns: minmax(0, 1fr); }
  .ln-in { grid-row: auto; padding: 2px 16px; }
  .ln-out { order: -1; }
  .ln-up { padding: 16px; }
  .frame { margin: 0 6px 5px; border-radius: 20px; }
  .foot { padding-bottom: 6px; }
  .side { left: 8px; right: 8px; top: auto; bottom: 60px; width: auto; max-height: 40%; gap: 6px; }
  .frame[data-view="location"] .dark-card, .frame[data-view="facilities"] .dark-card p, .frame[data-view="facilities"] .dark-card h2 { display: none; }
  .frame[data-view="facilities"] .dark-card { padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; }
  .frame[data-view="facilities"] .dark-card .dpill { margin: 0; }
  .list-card { flex: 1; }
  .q { margin-bottom: 6px; }
  .types { flex: none; }
  .types small { display: none; }
  .typeD { display: none; }
  .frame[data-view="homes"] .side { max-height: 42%; bottom: 56px; }
  .frame[data-view="homes"] .side.min { bottom: 56px; }
  .side.min .lh-btn svg { transform: rotate(180deg); }
  .sunbar { right: 8px; top: 8px; padding-left: 7px; }
  .sunbar .lbl, .dseg em, .sunmarks em { display: none; }
  .sunbar { padding-right: 12px; }
  .sunslide { width: min(200px, calc(100vw - 110px)); }
  .toolbar { right: 8px; bottom: 8px; left: 8px; justify-content: center; }
  .wx { left: 8px; right: 8px; top: 74px; bottom: auto; width: auto; padding: 10px 14px; border-radius: 20px; }
  .lchips { display: flex; overflow-x: auto; scrollbar-width: none; margin: -2px -14px 8px; padding: 0 14px; }
  .lchips button { flex: none; padding: 0 10px; }
  .wrows.list { max-height: 112px; } .wnote { display: none; }
  .wx .wline, .wx .wh small { display: none; }
  .wnow { margin-top: 6px; } .wnow strong { font-size: 20px; }
  .wbars { height: 30px; margin-top: 8px; } .wleg { margin-top: 6px; }
  .levelcard { right: 8px; top: 74px; width: min(280px, calc(100% - 16px)); z-index: 7; }
  .unitbar { left: 8px; right: 8px; bottom: 6px; transform: none; justify-content: space-between; gap: 6px; }
  .unitbar .rng span { display: none; }
  #planBtn { padding: 0 9px; font-size: 10.5px; }
  .tip, .frame[data-view="homes"] #walkTip { display: none !important; }
  .pin.facn { width: 20px; height: 20px; font-size: 9.5px; }
  .pin.label { height: 26px; padding: 0 9px; font-size: 10.5px; }
  .pin.site { height: 30px; font-size: 11.5px; }
  .card { left: 8px; right: 8px; width: auto; top: 74px; }
  .balcony { left: 8px; right: 8px; transform: none; border-radius: 20px; flex-wrap: wrap; gap: 6px; padding: 8px 10px; justify-content: space-between; }
  .balcony label { order: 3; flex: 1 1 100%; }
  .hero { height: 62vh; min-height: 320px; }
  .hero-text { left: 20px; right: 20px; bottom: 22px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div { padding: 13px 16px; border-bottom: 1px solid var(--line); }
  .stats > div:first-child { flex-direction: column; gap: 4px; }
  .stats > div:nth-child(3), .stats > div:nth-child(5) { border-right: 0; }
  .stats b { white-space: normal; }
  .top-r { display: contents; }
  .brand { padding-right: 46px; }
  .snd { position: absolute; top: 10px; right: 10px; }
  .split { grid-template-columns: 1fr; padding: 18px; }
  .gallery { grid-template-columns: 1fr; padding: 0 18px; }
  .life-head { padding: 18px 18px 12px; }
  .life { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; padding: 0 18px; }
  .life button:nth-child(4) { grid-column: span 2; grid-row: span 1; }
  .life button:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gal-h, #overview .fine { padding-left: 18px; padding-right: 18px; }
  .dt { padding: 22px 16px 30px; }
  .tbl > * { grid-template-columns: 1.4fr 1fr .9fr .9fr .6fr; padding: 11px 10px; font-size: 12px; }
  .facts > div { flex-direction: column; gap: 2px; }
  .facts dd { text-align: left; }
}
