:root {
  --night: #0b0f17;
  --ink-2: #1a2232;
  --line: rgba(243, 238, 230, .12);
  --ivory: #f3eee6;
  --muted: #a3abb9;
  --gold: #d9c29a;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --bar-h: 68px;
  --glass: rgba(11, 15, 23, .66);
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body { background: var(--night); color: var(--ivory); font: 400 15px/1.55 var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { display: block; }
em { font-style: italic; color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.eyebrow { font: 600 11px/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.glass { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* ---------- top bar ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar-h); display: flex; align-items: center; gap: 24px; padding: 0 clamp(14px, 3vw, 36px); background: linear-gradient(to bottom, rgba(8, 11, 18, .62), rgba(8, 11, 18, 0)); pointer-events: none; transition: opacity .4s; }
.bar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ivory); text-decoration: none; margin-right: auto; }
.brand-mark { width: 36px; height: 36px; border: 1px solid rgba(217, 194, 154, .5); border-radius: 50%; display: grid; place-items: center; background: rgba(11, 15, 23, .3); }
.brand-mark svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 2; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font: 600 19px/1.1 var(--serif); }
.brand-text small { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #c9ced8; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(11, 15, 23, .5); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tab { padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #c3c9d4; transition: color .3s, background .3s; }
.tab:hover { color: var(--ivory); }
.tab.is-on { background: var(--ivory); color: var(--night); }
.cta { padding: 11px 20px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--gold); color: #1b1408; transition: transform .3s var(--ease), background .3s; }
.cta:hover { background: #e6d2ad; transform: translateY(-1px); }

/* ---------- scenes ---------- */
#stage { position: fixed; inset: 0; }
.scene { position: absolute; inset: 0; overflow: hidden; isolation: isolate; opacity: 0; visibility: hidden; transition: opacity .55s var(--ease), visibility 0s linear .55s; }
.scene.is-active { opacity: 1; visibility: visible; transition: opacity .55s var(--ease), visibility 0s; }
.scene.no-fade { transition: none !important; }

/* zoomable viewport: .content is laid out by JS (left/top/width/height) and transformed (translate + scale) */
.viewport { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.viewport.is-dragging { cursor: grabbing; }
.content { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; -webkit-user-drag: none; }
.overlay { position: absolute; inset: 0; pointer-events: none; }
.overlay > * { pointer-events: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: transform .35s var(--ease), background .3s, border-color .3s; }
.btn-gold { background: var(--gold); color: #1b1408; }
.btn-gold:hover { background: #e8d5b0; transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(243, 238, 230, .35); color: var(--ivory); background: rgba(11, 15, 23, .25); }
.btn-ghost:hover { border-color: var(--ivory); }
.btn.wide { width: 100%; }
.ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; line-height: 1; transition: background .25s, color .25s; }
.ico:hover { background: rgba(243, 238, 230, .14); }
.ico.big { width: 50px; height: 50px; border: 1px solid rgba(243, 238, 230, .35); background: rgba(11, 15, 23, .4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ico.big:hover { background: var(--ivory); color: var(--night); }
.zoom-ctl { position: absolute; right: clamp(14px, 2.5vw, 32px); bottom: 96px; display: flex; flex-direction: column; gap: 2px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 6; }
.zoom-ctl.inline { position: static; flex-direction: row; }

/* ---------- 1 building ---------- */
.scene-building { background: linear-gradient(180deg, var(--sky, #1d3c8f) 0%, var(--sky, #1d3c8f) 50%, var(--grass, #2c4a1c) 50%, var(--grass, #2c4a1c) 100%); }
.scene-building .hi { opacity: 0; transition: opacity .6s; }
.scene-building .hi.is-on { opacity: 1; }
.tile { position: absolute; opacity: 0; transition: opacity .5s; pointer-events: none; }
.tile.is-on { opacity: 1; }
.floors { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.floors .dim-mask { fill: rgba(6, 10, 18, 0); pointer-events: none; transition: fill .35s var(--ease); }
.floors.has-hover .dim-mask { fill: rgba(6, 10, 18, .34); }
.floors rect.band { fill: rgba(243, 238, 230, 0); stroke: rgba(243, 238, 230, 0); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: fill .28s var(--ease), stroke .28s var(--ease), filter .28s var(--ease); cursor: pointer; }
.floors rect.band.is-hover { fill: url(#floorSheen); stroke: rgba(255, 252, 245, .92); stroke-width: 2; filter: drop-shadow(0 0 12px rgba(255, 250, 240, .42)); }
.floors rect.band.is-listing { fill: rgba(217, 194, 154, .08); stroke: rgba(217, 194, 154, .48); stroke-width: 1.5; }
.floors rect.band.is-listing.is-hover { fill: url(#goldSheen); stroke: #f2dcb2; stroke-width: 2.5; filter: drop-shadow(0 0 18px rgba(235, 198, 128, .75)); }
.floors line.rail { stroke: transparent; stroke-width: 2.2; vector-effect: non-scaling-stroke; pointer-events: none; transition: stroke .28s var(--ease); }
.floors line.rail.is-hover { stroke: rgba(255, 250, 240, .95); }
.floors line.rail.is-listing.is-hover { stroke: #f6e3be; }
.floors rect.unit { fill: rgba(255, 214, 150, .06); stroke: var(--gold); stroke-width: 2.2; vector-effect: non-scaling-stroke; pointer-events: none; animation: unitGlow 2.8s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(235, 198, 128, .6)); }
@keyframes unitGlow { 50% { fill: rgba(255, 218, 154, .26); filter: drop-shadow(0 0 16px rgba(245, 208, 138, .85)); } }

.unit-pin { position: absolute; transform: translate(-50%, calc(-100% - 14px)); display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(11, 15, 23, .8); border: 1px solid rgba(217, 194, 154, .75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font: 600 12px/1 var(--sans); letter-spacing: .06em; color: var(--gold); white-space: nowrap; transition: opacity .3s, background .3s; }
.unit-pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 14px; background: var(--gold); }
.unit-pin i { width: 16px; height: 16px; border-radius: 50%; background: var(--gold); position: relative; }
.unit-pin i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--gold); animation: ping 2.2s var(--ease) infinite; }
.unit-pin:hover { background: rgba(11, 15, 23, .95); }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }

.floor-ladder { position: absolute; right: clamp(14px, 2.5vw, 32px); top: 50%; transform: translateY(-50%); list-style: none; padding: 8px 5px; display: flex; flex-direction: column; gap: 2px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 5; }
.floor-ladder button { width: 42px; height: 32px; border-radius: 10px; font: 600 12px/1 var(--sans); color: #c3c9d4; letter-spacing: .06em; transition: background .25s, color .25s; }
.floor-ladder button:hover, .floor-ladder button.is-hover { background: rgba(243, 238, 230, .14); color: var(--ivory); }
.floor-ladder button.is-listing { color: var(--gold); box-shadow: inset 0 0 0 1px rgba(217, 194, 154, .6); }
.floor-ladder button.is-listing.is-hover { background: var(--gold); color: #1b1408; }

.floor-tip { position: absolute; z-index: 8; pointer-events: none; width: 250px; padding: 13px 15px; border-radius: 14px; background: rgba(11, 15, 23, .9); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease); }
.floor-tip.is-on { opacity: 1; transform: none; }
.floor-tip.tappable { pointer-events: auto; }
body.has-tip .unit-pin { opacity: 0; pointer-events: none; }
.ft-row { display: flex; align-items: center; gap: 14px; }
.ft-num { font: 500 40px/1 var(--serif); color: var(--gold); min-width: 46px; }
.ft-label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ft-title { font: 600 20px/1.15 var(--serif); }
.ft-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ft-badge { display: inline-block; margin-top: 10px; padding: 5px 9px; border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--gold); color: #1b1408; }
.ft-badge.dim { background: rgba(243, 238, 230, .1); color: var(--muted); }

.hero-bar { position: absolute; left: clamp(14px, 2.5vw, 32px); right: clamp(14px, 2.5vw, 32px); bottom: 16px; z-index: 6; display: flex; align-items: center; gap: 24px; padding: 12px 12px 12px 22px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .5s var(--ease), opacity .4s; }
.hb-title { min-width: 0; }
.hb-title h1 { font: 500 26px/1.1 var(--serif); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-stats { list-style: none; padding: 0; display: flex; gap: 18px; margin-left: auto; color: #c9ced8; font-size: 13px; white-space: nowrap; }
.hb-stats b { font: 600 22px var(--serif); color: var(--ivory); margin-right: 2px; }
.hint { position: absolute; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 5; padding: 8px 14px; border-radius: 999px; background: rgba(11, 15, 23, .55); font-size: 12px; color: #d6d9df; white-space: nowrap; transition: opacity .5s; pointer-events: none; }
.hint .k { color: var(--gold); font-weight: 600; }
.hint.is-gone { opacity: 0; }
body.is-zoomed .hero-bar { transform: translateY(calc(100% + 24px)); opacity: 0; }
body.is-diving .hero-bar, body.is-diving .floor-ladder, body.is-diving .hint, body.is-diving .zoom-ctl, body.is-diving .unit-pin, body.is-diving .floor-tip { opacity: 0 !important; pointer-events: none; }
body.is-diving .floors rect { stroke: transparent !important; fill: transparent !important; }

/* ---------- 2 model ---------- */
.scene-model { background: radial-gradient(ellipse 68% 68% at 44% 52%, #1f2c45 0%, #0b0f18 100%); }
.stage { background: url("../img/stage-bg.webp") center / 100% 100% no-repeat; }
.gl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; cursor: grab; touch-action: none; transition: opacity .45s var(--ease); }
.gl-canvas:active { cursor: grabbing; }
.scene-model .plan { opacity: 0; transition: opacity .5s var(--ease); }
.scene-model:not(.view-plan) #modelContent { pointer-events: none; opacity: 0; transition: opacity .45s var(--ease); }
.scene-model.view-plan .plan { opacity: 1; }
.scene-model.view-plan #modelContent { opacity: 1; pointer-events: auto; }
.scene-model.view-plan .gl-canvas { opacity: 0; pointer-events: none; }
.scene-model.view-plan .walls-ctl { opacity: .35; pointer-events: none; }
.fly { opacity: 0; object-fit: cover; pointer-events: none; }
.fly.is-on { opacity: 1; }

.hotspots { z-index: 4; transition: opacity .3s; }
.hotspots.is-hidden { opacity: 0; pointer-events: none; }
.hotspots.is-hidden > * { pointer-events: none; }
.hs { position: absolute; left: 0; top: 0; display: flex; align-items: center; transition: opacity .35s; will-change: transform; }
.hs.is-off { opacity: 0; pointer-events: none; }
.hs .dot { position: relative; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgba(11, 15, 23, .6); border: 1.5px solid var(--ivory); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); transition: transform .3s var(--ease), background .3s, border-color .3s; flex: none; }
.hs .dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ivory); }
.hs .lbl { position: absolute; top: -11px; left: 18px; white-space: nowrap; padding: 4px 9px; border-radius: 8px; background: rgba(11, 15, 23, .82); border: 1px solid var(--line); font-size: 12px; font-weight: 600; line-height: 1.25; transition: opacity .25s; }
.hs .lbl small { display: none; font-weight: 500; color: var(--muted); font-size: 11px; }
.hs.flip .lbl { left: auto; right: 18px; }
.hs.lbl-off .lbl { opacity: 0; }
.hs:hover, .hs.is-hover { z-index: 3; }
.hs:hover .dot, .hs.is-hover .dot { transform: scale(1.2); background: var(--gold); border-color: var(--gold); }
.hs:hover .lbl, .hs.is-hover .lbl { opacity: 1; border-color: rgba(217, 194, 154, .6); }
.hs:hover .lbl small, .hs.is-hover .lbl small { display: block; }
.hs.info .dot { border-style: dashed; width: 16px; height: 16px; margin: -8px 0 0 -8px; cursor: default; }
.hs.info .dot::after { width: 5px; height: 5px; }
.hs.info .lbl { font-weight: 500; color: #c9ced8; top: -10px; left: 14px; }

.model-hud { position: absolute; left: 0; right: var(--panel-w, 0px); bottom: 18px; display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; z-index: 5; transition: right .5s var(--ease), opacity .3s; padding: 0 12px; }
.seg, .rotate { display: flex; align-items: center; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.seg button { padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #c3c9d4; }
.seg button[aria-selected="true"] { background: var(--ivory); color: var(--night); }
.rot-label { font-size: 12px; color: var(--muted); padding: 0 6px; }
.scene-model.view-plan .rotate { opacity: .35; pointer-events: none; }
body.is-flying .model-hud, body.is-flying .unit-panel, body.is-flying .panel-toggle, body.is-flying .bar { opacity: 0; pointer-events: none; }

.unit-panel { position: absolute; right: clamp(12px, 2vw, 28px); top: calc(var(--bar-h) + 6px); bottom: 20px; width: 360px; z-index: 6; padding: 24px 22px 20px; border-radius: 22px; background: rgba(14, 19, 29, .78); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); display: flex; flex-direction: column; overflow: hidden; transform: translateX(calc(100% + 40px)); transition: transform .5s var(--ease), opacity .3s; }
.unit-panel.is-open { transform: none; }
.panel-x { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 50%; font-size: 22px; color: var(--muted); }
.panel-x:hover { background: rgba(243, 238, 230, .08); color: var(--ivory); }
.unit-panel h2 { font: 500 42px/1 var(--serif); margin: 10px 0 4px; }
.panel-sub { color: var(--muted); font-size: 13.5px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 11px 0; border-right: 1px solid var(--line); text-align: center; }
.stats div:last-child { border-right: 0; }
.stats dt { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stats dd { font: 500 27px/1.1 var(--serif); margin-top: 2px; }
.stats small { font: 500 12px var(--sans); color: var(--muted); }
.price { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 2px; }
.price span { font-size: 12px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.price b { font: 600 22px var(--serif); color: var(--gold); }
.list-title { margin: 12px 0 6px; font: 600 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.list-title small { letter-spacing: 0; text-transform: none; font-weight: 500; opacity: .7; }
.room-list { list-style: none; padding: 0; overflow-y: auto; flex: 1; margin: 0 -8px 12px; scrollbar-width: thin; }
.room-list button { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 7px 8px; border-radius: 12px; transition: background .25s; }
.room-list button:hover, .room-list button.is-hover { background: rgba(243, 238, 230, .07); }
.room-list img { width: 64px; height: 36px; border-radius: 7px; object-fit: cover; flex: none; background: var(--ink-2); }
.rl-t { font-weight: 600; font-size: 14px; display: block; }
.rl-d { font-size: 12px; color: var(--muted); }
.rl-go { margin-left: auto; color: var(--gold); opacity: 0; transition: opacity .25s, transform .3s var(--ease); }
.room-list button:hover .rl-go { opacity: 1; transform: translateX(3px); }
.panel-toggle { position: absolute; right: clamp(12px, 2vw, 28px); top: calc(var(--bar-h) + 6px); z-index: 5; padding: 10px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 13px; font-weight: 600; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: opacity .3s; }
.panel-toggle[aria-expanded="true"] { opacity: 0; pointer-events: none; }

/* ---------- 3 room ---------- */
.scene-room { background: #000; }
.scene-room .layer { opacity: 0; }
.scene-room .layer.soft { opacity: 1; }
.scene-room.is-entering, .scene-room.is-leaving { will-change: transform, opacity, filter; }
.scene-room.is-entering .room-ui, .scene-room.is-leaving .room-ui { opacity: 0; visibility: hidden; transition: none; }
.scene-room .layer.is-on { opacity: 1; transition: opacity .7s var(--ease); }
.room-ui { transition: opacity .5s; }
.room-ui.is-idle { opacity: 0; }
.room-ui.is-idle * { pointer-events: none; }
.room-ui::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 240px; background: linear-gradient(0deg, rgba(5, 7, 12, .72), rgba(5, 7, 12, 0)); pointer-events: none; }
.back { position: absolute; left: clamp(14px, 2.5vw, 32px); top: calc(var(--bar-h) + 4px); display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 3; }
.room-caption { position: absolute; left: clamp(14px, 4vw, 64px); bottom: 118px; z-index: 3; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.room-caption h2 { font: 500 clamp(34px, 4.2vw, 58px)/1 var(--serif); margin: 6px 0 4px; }
.room-caption p:last-child { color: #e3e5ea; font-size: 14.5px; }
.room-caption.swap { animation: capIn .7s var(--ease) both; }
@keyframes capIn { from { opacity: 0; transform: translateY(12px); } }
.room-nav { position: absolute; right: clamp(14px, 4vw, 64px); bottom: 118px; display: flex; flex-direction: row; gap: 10px; z-index: 3; }
.minimap { position: absolute; right: clamp(14px, 2.5vw, 32px); top: calc(var(--bar-h) + 12px); width: 176px; aspect-ratio: 1; padding: 10px; border-radius: 18px; background: rgba(11, 15, 23, .76); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 14px 36px rgba(0, 0, 0, .35); z-index: 3; overflow: hidden; }
.minimap img, .minimap svg { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.minimap .cone { fill: rgba(217, 194, 154, .38); }
.minimap .me { fill: var(--gold); stroke: #1b1408; stroke-width: .8; }
.filmstrip { position: absolute; left: 0; right: 0; bottom: 22px; padding: 0 clamp(14px, 4vw, 64px); display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; z-index: 3; }
.filmstrip::-webkit-scrollbar { display: none; }
.filmstrip button { flex: none; width: 116px; text-align: left; opacity: .65; transition: opacity .3s; }
.filmstrip button:hover, .filmstrip button.is-on { opacity: 1; }
.filmstrip img { width: 116px; height: 65px; object-fit: cover; border-radius: 8px; border: 1.5px solid transparent; }
.filmstrip button.is-on img { border-color: var(--gold); }
.filmstrip span { display: block; font-size: 11.5px; font-weight: 600; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-room .zoom-ctl { top: 50%; bottom: auto; transform: translateY(-50%); }

/* ---------- 4 details ---------- */
.scene-details { background: radial-gradient(900px 600px at 80% 0%, #1b2538, rgba(0, 0, 0, 0)), var(--night); overflow-y: auto; }
.details-inner { max-width: 1180px; margin: 0 auto; padding: calc(var(--bar-h) + 40px) clamp(16px, 4vw, 40px) 60px; }
.details-head h2 { font: 500 clamp(40px, 5vw, 64px)/1 var(--serif); margin-top: 12px; }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.card { padding: 24px; border-radius: 20px; background: rgba(243, 238, 230, .04); border: 1px solid var(--line); }
.card h3 { font: 600 24px var(--serif); margin-bottom: 12px; color: var(--gold); }
.facts { list-style: none; padding: 0; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts li:last-child { border-bottom: 0; }
.facts span { color: var(--muted); }
.facts b { font-weight: 600; text-align: right; }
.loc { color: #d6d9df; margin-bottom: 6px; }
.details-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.fineprint { margin-top: 24px; font-size: 12px; color: var(--muted); max-width: 760px; }

/* ---------- loader + contact ---------- */
.loader { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60; pointer-events: none; }
.loader i { display: block; height: 2px; width: 0; background: var(--gold); transition: width .3s, opacity .6s; }
.contact { margin: auto; width: min(440px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: #121826; color: var(--ivory); }
.contact::backdrop { background: rgba(5, 7, 12, .65); }
.contact form { padding: 30px 26px 26px; position: relative; }
.contact h2 { font: 500 38px/1.05 var(--serif); margin: 8px 0 10px; }
.contact-text { color: var(--muted); }
.contact-actions { display: grid; gap: 10px; margin-top: 20px; }
.contact .close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%; font-size: 24px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .tabs { display: none; } .hb-stats { display: none; } }
@media (max-width: 860px) {
  :root { --bar-h: 60px; }
  .brand-text small { display: none; }
  .cta { padding: 10px 14px; font-size: 12px; }
  .hero-bar { flex-wrap: wrap; gap: 10px; padding: 14px; bottom: 10px; left: 10px; right: 10px; }
  .hb-title h1 { font-size: 22px; white-space: normal; }
  .hb-actions, .hb-actions .btn { width: 100%; }
  .hint { bottom: auto; top: calc(var(--bar-h) + 6px); font-size: 11px; }
  .floor-ladder { display: none; }
  .zoom-ctl { display: none; }
  .zoom-ctl.inline { display: none; }
  .unit-panel { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; height: min(72vh, 620px); transform: translateY(calc(100% + 20px)); padding: 18px 16px 14px; }
  .unit-panel h2 { font-size: 34px; }
  .panel-toggle { top: auto; bottom: 74px; left: 50%; right: auto; transform: translateX(-50%); background: var(--gold); color: #1b1408; border: 0; }
  .model-hud { right: 0; bottom: 14px; }
  .rot-label { display: none; }
  .room-caption { bottom: 108px; }
  .room-nav { top: auto; bottom: 190px; flex-direction: row; }
  .minimap { width: 112px; }
  .filmstrip button, .filmstrip img { width: 96px; }
  .filmstrip img { height: 54px; }
  .details-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
