/* Arrow glyphs (← ↑ → ↓ ↗ ↙ ▶) from a 5 KB subset of Inter (SIL Open Font License, fonts/OFL-Inter.txt), same file as
   418 East Grand. Without it iPhones draw ↗ and ▶ as emoji. */
@font-face{font-family:'Rowat Arrows';src:url('../fonts/arrows-inter-v1.woff2') format('woff2');font-weight:100 900;font-display:block;unicode-range:U+2190-2193,U+2197,U+2199,U+25B6}
/* Rowat Lofts 3D explorer. Uses the site's tokens (gold #d8ab26, charcoal #373a36,
   paper #f4f3ef, Helvetica/Arial with Georgia italics, square corners). */
:root {
  --gold: #d8ab26; --gold-deep: #b98f14; --ink: #373a36; --dark: #242523; --paper: #f4f3ef; --white: #fff;
  --line: #d6d7d0; --muted: #61655e; --shade: rgba(36, 37, 35, .82);
  --sans: 'Rowat Arrows', 'Helvetica Neue', Arial, Helvetica, sans-serif; --serif: 'Rowat Arrows', Georgia, 'Times New Roman', serif;
  --bar: 64px; --panel: min(420px, 36vw); --touch: 44px; --ease: cubic-bezier(.2, .7, .2, 1); --fast: 180ms;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --sheet-peek: 46dvh;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--paper); color: var(--ink); font-family: var(--sans); overflow: hidden; overscroll-behavior: none; }
body { -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
button, a { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { text-decoration: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; z-index: 100; left: 12px; top: 12px; padding: 12px 16px; background: var(--gold); color: var(--dark); transform: translateY(-200%); }
.skip:focus { transform: none; }
.eyebrow { margin: 0; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: var(--touch); padding: 0 1.1rem; background: var(--gold); color: var(--dark); font-weight: 700; font-size: .85rem; letter-spacing: .04em; transition: background var(--fast); }
.button:hover { background: #e4bb3c; }
.text-button { min-height: var(--touch); display: inline-flex; align-items: center; font-size: .85rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }
.close { min-height: var(--touch); padding: 0 .75rem; font-size: .85rem; font-weight: 700; letter-spacing: .03em; }

/* ---------- layout */
.app { position: fixed; inset: 0; display: grid; grid-template-rows: calc(var(--bar) + var(--safe-t)) minmax(0, 1fr); }
.bar { position: relative; z-index: 20; display: flex; align-items: center; gap: 1.25rem; padding: var(--safe-t) 1.25rem 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.brand img { display: block; width: auto; height: 38px; }
.bar-title p { margin: 0; line-height: 1.35; }
.bar-title .eyebrow { color: var(--ink); font-weight: 700; }
.bar-sub { font-size: .78rem; color: var(--muted); }
.views { display: flex; gap: 2px; margin-left: auto; margin-right: auto; background: var(--line); padding: 2px; }
.views button { min-height: 40px; padding: 0 .9rem; font-size: .82rem; background: var(--paper); white-space: nowrap; transition: background var(--fast), color var(--fast); }
.views button:hover { background: #fff; }
.views button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.bar-actions { display: flex; align-items: center; gap: 1rem; }
.bar-menu { display: none; min-height: var(--touch); padding: 0 .9rem; border: 1px solid var(--ink); font-weight: 700; font-size: .85rem; }

.stage { position: relative; overflow: hidden; background: #e9e6de; isolation: isolate; }
.canvas-host, .canvas-host canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.canvas-host canvas { touch-action: none; cursor: grab; outline: none; }
.canvas-host canvas:active { cursor: grabbing; }

/* ---------- loading & fallback */
.loading { position: absolute; inset: 0; z-index: 12; display: grid; place-content: center; justify-items: center; gap: 1rem; background: var(--paper); transition: opacity .5s var(--ease); font-size: .9rem; color: var(--muted); }
.loading.done { opacity: 0; pointer-events: none; }
.loading-mark { font: 700 3rem/1 var(--sans); color: var(--gold); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.fallback { position: absolute; left: 1.5rem; top: 1.5rem; z-index: 11; max-width: 26rem; padding: 1.5rem; background: #fff; border: 1px solid var(--line); }
.fallback h2 { margin: .4rem 0; font-size: 1.6rem; }

/* ---------- hotspots and labels */
.hotspots, .labels { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.hotspot { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: .45rem; pointer-events: auto; transform: translate(-50%, -50%); transition: opacity .25s; will-change: transform; }
.hotspot .pin { width: 34px; height: 34px; flex: none; display: grid; place-items: center; background: var(--ink); color: #fff; border: 2px solid #fff; border-radius: 50%; font-size: .78rem; font-weight: 700; box-shadow: 0 2px 10px rgba(0, 0, 0, .28); transition: background var(--fast), transform var(--fast); }
.hotspot .tag { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); padding: .35rem .6rem; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: .78rem; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, .14); }
.hotspot:hover .pin, .hotspot:focus-visible .pin { background: var(--gold); color: var(--dark); transform: scale(1.08); }
.hotspot[aria-current="true"] .pin { background: var(--gold); color: var(--dark); border-color: var(--dark); }
.hotspot.no-label .tag { display: none; }
.hotspot:hover .tag, .hotspot:focus-visible .tag { display: block; z-index: 2; }
.hotspot.behind { opacity: .5; }
.hotspot.hidden { opacity: 0; pointer-events: none; }
.hotspot.room .pin { width: 32px; height: 32px; background: #fff; color: var(--ink); border-color: var(--ink); font-size: .7rem; }
.hotspot::before { content: ''; position: absolute; inset: -6px; }
.label { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #5b5d58; white-space: nowrap; text-shadow: 0 0 4px rgba(244, 243, 239, .9), 0 0 2px rgba(244, 243, 239, .9); transition: opacity .3s; }
.label.landmark { color: var(--ink); font-weight: 700; }
.label.landmark::before { content: '◆ '; color: var(--gold); }
.app[data-light="evening"] .label, .app[data-layer="satellite"] .label { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }

/* ---------- tools, dock */
.stage-hint { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 6; padding: .45rem .8rem; background: rgba(255, 255, 255, .86); font-size: .75rem; color: var(--muted); pointer-events: none; transition: opacity .6s; }
.stage-hint.gone { opacity: 0; }
.hint-touch { display: none; }
/* Neighborhood sits apart from the camera views; on phones it comes second in the row */
.views button[data-view="neighborhood"] { margin-left: 6px; }
.views.in-dock button[data-view="overview"] { order: -2; }
.views.in-dock button[data-view="neighborhood"] { order: -1; margin-left: 0; }
@media (max-width: 1180px) { .app[data-panel="open"][data-floor="stack"] .legend { display: none; } }

/* ---------- neighborhood map */
.map-host, .map-host.maplibregl-map { position: absolute; inset: 0; z-index: 4; background: #ebe8e1; }
.map-host .maplibregl-canvas { outline: none; }
.app[data-mode="neighborhood"] .canvas-host,
.app[data-mode="neighborhood"] .hotspots,
.app[data-mode="neighborhood"] .labels,
.app[data-mode="neighborhood"] .legend,
.app[data-mode="neighborhood"] .tip,
.app[data-mode="neighborhood"] .stage-hint,
.app[data-mode="neighborhood"] .attribution,
.app[data-mode="neighborhood"] .floor-control,
.app[data-mode="neighborhood"] .layers-toggle,
.app[data-mode="neighborhood"] .layer-pop { display: none !important; }
.map-back { position: absolute; z-index: 8; left: 1rem; bottom: calc(1rem + var(--safe-b)); min-height: 52px; padding: 0 1.1rem; background: var(--dark); color: #fff; font-weight: 700; font-size: .85rem; box-shadow: 0 2px 12px rgba(0, 0, 0, .18); }
.map-back:hover { background: var(--ink); }
.app[data-mode="neighborhood"] .dock { left: auto; right: 1rem; }
.app[data-mode="neighborhood"][data-panel="open"] .dock { right: calc(var(--panel) + 1rem); }
.app[data-panel="open"] .map-host .maplibregl-ctrl-bottom-right { right: var(--panel); }
.map-host .maplibregl-ctrl-attrib { font-size: .66rem; }
.spot-pin { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; border: 2px solid #fff; font: 700 .7rem/1 var(--sans); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); transition: background var(--fast), transform var(--fast); }
.spot-pin::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; }
.spot-pin em { display: none; position: absolute; left: 32px; top: 50%; transform: translateY(-50%); padding: .28rem .5rem; background: rgba(255, 255, 255, .96); color: var(--ink); font: 700 .74rem/1.2 var(--sans); white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); pointer-events: none; }
.spot-pin:hover, .spot-pin:focus-visible { background: var(--dark); transform: scale(1.1); z-index: 3; }
.spot-pin:hover em, .spot-pin:focus-visible em, .spot-pin.is-active em { display: block; }
.spot-pin.is-active { background: var(--gold); color: var(--dark); border-color: var(--dark); transform: scale(1.18); z-index: 4; }
.spot-pin.is-hidden { display: none; }
.home-marker { position: relative; display: flex; align-items: center; gap: .45rem; padding: .3rem .65rem .3rem .3rem; background: var(--dark); color: #fff; box-shadow: 0 3px 12px rgba(0, 0, 0, .3); pointer-events: none; }
.home-marker::after { content: ''; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); border: 7px solid transparent; border-top-color: var(--dark); border-bottom: 0; }
.home-mark { display: grid; place-items: center; width: 26px; height: 26px; background: var(--gold); color: var(--dark); font-weight: 700; font-size: .9rem; }
.home-marker b { display: block; font-size: .78rem; letter-spacing: .02em; }
.home-marker small { display: block; font-size: .66rem; color: #d9dad4; }
.spots-intro { font-size: .92rem; }
.spot-cats button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.spots-count { margin: .2rem 0 .5rem; }
.spot-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.spot-row { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 58px; padding: .45rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.spot-row:hover strong { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.spot-n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .68rem; }
.spot-row img { flex: none; width: 58px; height: 42px; object-fit: cover; background: var(--paper); }
.spot-row span { display: grid; gap: 2px; min-width: 0; }
.spot-row strong { font-size: .9rem; }
.spot-row small { font-size: .76rem; color: var(--muted); }
.spot-photo { margin: 0 0 1rem; }
.spot-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper); }
.spot-walk { font-size: .9rem; }
.spot-walk b { color: var(--gold-deep); }

@media (pointer: coarse) { .hint-desktop { display: none; } .hint-touch { display: inline; } }
.tools { position: absolute; z-index: 8; left: 1rem; top: 1rem; display: grid; gap: 2px; background: var(--line); padding: 2px; }
.tools button { width: var(--touch); height: var(--touch); background: rgba(255, 255, 255, .95); font-size: 1.15rem; transition: background var(--fast); }
.tools button:hover { background: #fff; color: var(--gold-deep); }
.compass { position: relative; }
.compass .needle { position: absolute; inset: 7px; display: grid; place-items: center; transition: transform .1s linear; }
.compass .needle i { width: 3px; height: 26px; background: linear-gradient(var(--gold) 50%, var(--ink) 50%); }
.compass .n { position: absolute; top: 1px; left: 0; right: 0; font-size: .55rem; font-weight: 700; pointer-events: none; }
.dock { position: absolute; z-index: 8; left: 1rem; bottom: calc(1rem + var(--safe-b)); display: flex; align-items: flex-end; gap: .75rem; flex-wrap: wrap; max-width: calc(100% - 2rem); }
.dock-places, .floor-control, .layer-control, .light-control, .views.in-dock { background: rgba(255, 255, 255, .95); box-shadow: 0 2px 12px rgba(0, 0, 0, .1); }
.floor-control, .layer-control, .light-control { padding: .45rem .5rem .5rem; }
.layer-pop { display: contents; }
.layers-toggle { display: none; }
.dock-places { min-height: 52px; padding: 0 1rem; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.control-caption { display: block; margin: 0 0 .3rem .15rem; font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.seg { display: flex; gap: 2px; background: var(--line); padding: 2px; }
.seg button { min-width: 38px; min-height: 38px; padding: 0 .6rem; background: #fff; font-size: .8rem; transition: background var(--fast), color var(--fast); }
.seg button:hover { background: var(--paper); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg button:disabled { opacity: .4; cursor: not-allowed; }
.legend { position: absolute; z-index: 7; right: 1rem; top: 1rem; transition: right .3s var(--ease); display: grid; gap: .3rem; padding: .7rem .8rem; background: rgba(255, 255, 255, .95); font-size: .75rem; box-shadow: 0 2px 12px rgba(0, 0, 0, .1); }
.legend span { display: flex; align-items: center; gap: .5rem; }
.legend i { width: 14px; height: 14px; border: 1px solid rgba(0, 0, 0, .15); }
.legend p { margin: .25rem 0 0; color: var(--muted); max-width: 13rem; }
.app[data-panel="open"] .legend { right: calc(var(--panel) + 1rem); }
.legend-plan { display: grid; gap: .3rem; padding: .35rem 0 .45rem; border-bottom: 1px solid var(--line); margin-bottom: .2rem; }
.legend-plan button { justify-self: start; min-height: 32px; padding: 0 .6rem; border: 1px solid var(--ink); font-size: .72rem; background: #fff; }
.legend-types { display: grid; gap: 2px; }
.legend-type { display: flex; align-items: center; gap: .5rem; min-height: 30px; padding: 0 .45rem; margin: 0 -.45rem; font-size: .75rem; text-align: left; transition: background var(--fast); }
.legend-type:hover { background: var(--paper); }
.legend-type small { margin-left: auto; padding-left: .8rem; color: var(--muted); font-size: .72rem; }
.legend-type[aria-pressed="true"] { background: var(--ink); color: #fff; }
.legend-type[aria-pressed="true"] small { color: #d9dad4; }
.legend-rooms { font-size: .72rem; color: var(--muted); }
i.pin, .legend i.pin { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, #fff 0 26%, var(--gold) 27% 74%, var(--dark) 75%); border: 0; flex: none; }
/* hover card that follows the pointer over homes and resident spaces */
.tip { position: absolute; left: 0; top: 0; z-index: 9; display: grid; gap: 2px; max-width: 16rem; padding: .5rem .65rem; background: rgba(36, 37, 35, .94); color: #fff; font-size: .76rem; line-height: 1.35; pointer-events: none; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.tip b { font-size: .8rem; }
.tip span { color: #d9dad4; }
.tip .tip-avail { color: var(--gold); font-weight: 700; }
/* level tags in the exploded view */
.stack-label { position: absolute; left: 0; top: 0; display: grid; justify-items: end; gap: 1px; padding: .35rem .6rem; background: rgba(255, 255, 255, .95); box-shadow: 0 2px 10px rgba(0, 0, 0, .14); font-size: .74rem; text-align: right; pointer-events: auto; border-right: 3px solid var(--gold); transition: background var(--fast), opacity .2s; }
.stack-label b { font-size: .8rem; }
.stack-label span { color: var(--muted); }
.stack-label:hover { background: #fff; }
.stack-label.hidden { opacity: 0; pointer-events: none; }
/* availability in the Apartments panel and home cards */
.avail { margin: 0 0 1.1rem; padding: .8rem .9rem; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold); }
.avail p { margin: 0 0 .6rem; font-size: .88rem; }
.avail-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.avail-levels button { display: grid; gap: 2px; min-height: 52px; padding: .4rem; border: 1px solid var(--line); background: var(--paper); font-size: .74rem; text-align: left; }
.avail-levels button b { font-size: .72rem; color: var(--gold-deep); }
.avail-levels button:hover { border-color: var(--ink); }
.avail-note { font-size: .85rem; color: var(--muted); }
.type-chips button { display: inline-flex; align-items: center; gap: .45rem; }
.type-chips i { width: 12px; height: 12px; border: 1px solid rgba(0, 0, 0, .15); flex: none; }
.type-chips small { color: var(--muted); }
.type-chips button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.type-chips button[aria-pressed="true"] small { color: #d9dad4; }
.unit-status { margin: 0 0 1rem; padding: .6rem .8rem; background: var(--paper); font-size: .88rem; }
.unit-status.is-listed { background: #fbf3dc; border-left: 3px solid var(--gold); }
.notice { position: absolute; z-index: 9; left: 50%; top: 14px; transform: translateX(-50%); margin: 0; padding: .55rem .8rem; background: var(--dark); color: #fff; font-size: .8rem; max-width: min(90%, 30rem); }
.notice button { margin-left: .6rem; color: var(--gold); text-decoration: underline; }
.attribution { position: absolute; z-index: 7; right: .5rem; bottom: calc(.35rem + var(--safe-b)); margin: 0; max-width: 60%; font-size: .62rem; line-height: 1.3; color: #55574f; text-align: right; background: rgba(255, 255, 255, .7); padding: .15rem .35rem; }
.attribution:empty { display: none; }

/* ---------- detail panel (desktop: right column overlay) */
.panel { position: absolute; z-index: 15; top: calc(var(--bar) + var(--safe-t)); right: 0; bottom: 0; width: var(--panel); display: flex; flex-direction: column; background: #fff; border-left: 1px solid var(--line); box-shadow: -8px 0 30px rgba(0, 0, 0, .08); animation: slide-in .35s var(--ease); }
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } }
.panel-handle { display: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem .6rem .4rem 1.4rem; border-bottom: 1px solid var(--line); }
.panel-nav { display: flex; align-items: center; }
.panel-nav button { min-width: var(--touch); min-height: var(--touch); font-size: .95rem; }
.panel-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 1.1rem 1.4rem calc(2rem + var(--safe-b)); flex: 1; }
.panel h2 { margin: 0 0 .9rem; font-size: clamp(1.7rem, 2.2vw, 2.2rem); line-height: 1.05; letter-spacing: -.02em; }
.panel h2 em, .about h2 em { font-family: var(--serif); font-weight: 400; }
.gallery { margin: 0 -1.4rem 1rem; }
.gallery-main { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; background: var(--paper); overflow: hidden; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.gallery-main.drawing img { object-fit: contain; background: #fff; }
.gallery-main:hover img { transform: scale(1.02); }
.gallery-main .enlarge { position: absolute; right: .6rem; bottom: .6rem; padding: .3rem .55rem; background: rgba(36, 37, 35, .8); color: #fff; font-size: .72rem; }
.gallery-caption { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 1.4rem 0; font-size: .75rem; color: var(--muted); }
.thumbs { display: flex; gap: 6px; padding: .6rem 1.4rem 0; overflow-x: auto; }
.thumbs button { flex: none; width: 72px; height: 48px; padding: 0; border: 2px solid transparent; }
.thumbs button[aria-current="true"] { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.panel-body p { margin: 0 0 1rem; line-height: 1.6; }
.facts { margin: 0 0 1.2rem; padding: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .86rem; line-height: 1.45; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts sup { font-size: .6rem; color: var(--gold-deep); margin-left: .25rem; letter-spacing: .05em; }
.note { font-size: .8rem; color: var(--muted); border-left: 3px solid var(--gold); padding-left: .7rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.2rem; }
.chips button { min-height: 40px; padding: 0 .8rem; border: 1px solid var(--line); font-size: .82rem; background: var(--paper); }
.chips button:hover { border-color: var(--ink); }
.panel-actions { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; margin-top: .4rem; }
.sources { margin-top: 1.4rem; font-size: .7rem; color: var(--muted); line-height: 1.5; }
.unit-plan { width: 100%; background: #fff; border: 1px solid var(--line); margin-bottom: 1rem; }

/* ---------- sheets & dialogs */
.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(36, 37, 35, .35); display: flex; justify-content: flex-start; }
.sheet-card { width: min(380px, 92vw); height: 100%; overflow-y: auto; background: #fff; padding: calc(.5rem + var(--safe-t)) 1.2rem calc(1.5rem + var(--safe-b)); animation: sheet-in .3s var(--ease); }
@keyframes sheet-in { from { transform: translateX(-20px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: .4rem 0 .6rem; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font-size: 1.3rem; }
.place-list h3 { margin: 1.1rem 0 .3rem; font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.place-list button { display: flex; width: 100%; align-items: center; gap: .75rem; min-height: 48px; padding: .3rem 0; border-bottom: 1px solid var(--line); text-align: left; font-size: .95rem; }
.place-list button:hover { color: var(--gold-deep); }
.place-list b { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: .72rem; }
.place-list small { display: block; color: var(--muted); font-size: .75rem; }
.menu-links { display: grid; gap: 0; margin-top: .5rem; }
.menu-links a, .menu-links button { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 1rem; text-align: left; }
.menu-links .button { margin-top: 1rem; border: 0; justify-content: center; }
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(24, 26, 24, .88); }
.lightbox { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; background: #151614; color: #fff; }
.lightbox-bar { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: calc(.4rem + var(--safe-t)) .6rem .4rem 1.2rem; background: linear-gradient(rgba(0, 0, 0, .6), transparent); }
.lightbox-bar .eyebrow { color: #cfd0ca; }
.lightbox figure { margin: 0; height: 100%; display: grid; grid-template-rows: 1fr auto; padding: calc(3.6rem + var(--safe-t)) 1rem calc(1rem + var(--safe-b)); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.lightbox figcaption { padding-top: .75rem; font-size: .9rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; justify-content: center; }
.lightbox figcaption small { color: #a9aaa4; }
.lb-prev, .lb-next { position: absolute; top: 50%; width: 52px; height: 64px; transform: translateY(-50%); background: rgba(0, 0, 0, .45); color: #fff; font-size: 1.3rem; }
.lb-prev { left: .5rem; } .lb-next { right: .5rem; }
.about { max-width: 34rem; max-height: min(88dvh, 44rem); overflow-y: auto; padding: 2rem 2rem 1.6rem; background: #fff; }
.about .close { position: absolute; right: .6rem; top: .5rem; }
.about h2 { margin: .5rem 0 1rem; font-size: 1.9rem; line-height: 1.05; }
.about p { line-height: 1.6; font-size: .92rem; }
.about .small { font-size: .78rem; color: var(--muted); }
.noscript { padding: 2rem; }

/* ---------- evening + satellite adjustments */
.app[data-light="evening"] .stage { background: #1d2331; }
.app[data-light="evening"] .stage-hint { background: rgba(20, 22, 30, .75); color: #d7d8e0; }

/* ---------- tablet */
@media (max-width: 1180px) {
  .bar-title .bar-sub { display: none; }
  .views button { padding: 0 .65rem; }
  .bar-actions .back-link, .bar-actions #about-open { display: none; }
  .bar-menu { display: inline-flex; align-items: center; }
}
@media (max-width: 980px) {
  :root { --panel: min(400px, 46vw); }
  .views { display: none; }
  .bar-title { margin-right: auto; }
  .dock { left: 0; right: 0; bottom: 0; max-width: none; padding: .45rem .6rem calc(.5rem + var(--safe-b)); gap: .4rem; background: rgba(244, 243, 239, .97); border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto auto; grid-template-areas: "views views views views" "places floors layers light"; align-items: stretch; }
  .dock-places, .floor-control, .layer-control, .light-control, .views.in-dock { box-shadow: none; }
  .views.in-dock { grid-area: views; display: flex; overflow-x: auto; scrollbar-width: none; margin: 0; justify-self: stretch; }
  .views.in-dock::-webkit-scrollbar { display: none; }
  .views.in-dock button { flex: 1 0 auto; min-height: 40px; }
  .dock-places { grid-area: places; min-height: 44px; padding: 0 .8rem; }
  .floor-control { grid-area: floors; display: flex; align-items: center; gap: .4rem; padding: 0 .4rem; }
  .floor-control .control-caption { display: none; }
  .floor-control .seg { flex: 1; }
  .floor-control .seg button { flex: 1; min-width: 36px; padding: 0; }
  .layer-pop { display: contents; }
  .layer-control { grid-area: layers; display: flex; align-items: center; padding: 0 .4rem; }
  .light-control { grid-area: light; display: flex; align-items: center; padding: 0 .4rem; }
  .layer-control .control-caption, .light-control .control-caption { display: none; }
  .tools { top: auto; bottom: calc(var(--dock-h, 110px) + var(--safe-b) + .6rem); left: auto; right: .6rem; }
  .attribution { right: auto; left: .4rem; bottom: calc(var(--dock-h, 110px) + .3rem); max-width: 62%; text-align: left; }
  .legend { top: .6rem; right: .6rem; }
}

/* ---------- phone: bottom sheet, compact chrome */
@media (max-width: 759px) {
  :root { --bar: 52px; }
  .bar { gap: .75rem; padding-left: .9rem; padding-right: .6rem; }
  .brand img { height: 30px; }
  .bar-title .eyebrow { font-size: .66rem; }
  .bar-actions .apply { display: none; }
  .tools { top: auto; bottom: calc(var(--dock-h, 128px) + var(--safe-b) + .5rem); left: auto; right: .6rem; }
  .tools button { width: 42px; height: 42px; }
  .layers-toggle { display: inline-flex; grid-area: layers; align-items: center; min-height: 44px; padding: 0 .8rem; background: #fff; font-weight: 700; font-size: .82rem; }
  .layers-toggle[aria-expanded="true"] { background: var(--ink); color: #fff; }
  .dock { grid-template-columns: auto 1fr auto; grid-template-areas: "views views views" "places floors layers"; }
  .layer-pop { display: none; }
  .dock.layers-open .layer-pop { display: grid; gap: .5rem; position: absolute; right: .6rem; bottom: calc(100% + .5rem); padding: .6rem; background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
  .layer-pop > div { box-shadow: none; padding: 0; }
  .legend { top: .6rem; right: .6rem; font-size: .7rem; padding: .5rem .6rem; }
  .legend p { display: none; }
  .stage-hint { top: .6rem; font-size: .7rem; }
  .attribution { right: auto; left: .4rem; bottom: calc(var(--dock-h, 110px) + .3rem); max-width: 62%; text-align: left; }
  .app[data-panel="open"] .attribution { display: none; }
  .panel { top: auto; left: 0; right: 0; width: auto; height: var(--sheet-h, var(--sheet-peek)); max-height: calc(100dvh - var(--bar) - var(--safe-t) - 24px); border-left: 0; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(0, 0, 0, .14); animation: sheet-up .35s var(--ease); transition: height .3s var(--ease); }
  .panel.dragging { transition: none; }
  @keyframes sheet-up { from { transform: translateY(30px); opacity: 0; } }
  .panel-handle { display: grid; place-items: center; height: 22px; cursor: grab; touch-action: none; }
  .panel-handle span { width: 42px; height: 5px; border-radius: 3px; background: #c9cac2; }
  .panel-head { padding: 0 .4rem .3rem 1.1rem; }
  .panel-scroll { padding: .8rem 1.1rem calc(1.5rem + var(--safe-b)); }
  .panel h2 { font-size: 1.55rem; }
  .gallery { margin: 0 -1.1rem .9rem; }
  .gallery-caption, .thumbs { padding-left: 1.1rem; padding-right: 1.1rem; }
  .facts div { grid-template-columns: 7rem 1fr; font-size: .84rem; }
  .app[data-panel="open"] .dock, .app[data-panel="open"] .tools, .app[data-panel="open"] .legend { opacity: 0; pointer-events: none; }
  .sheet { align-items: flex-end; }
  .sheet-card { width: 100%; height: auto; max-height: 82dvh; animation: sheet-up .3s var(--ease); padding-top: .5rem; }
  .hotspot .pin { width: 36px; height: 36px; }
  .hotspot .tag { font-size: .74rem; }
  .lb-prev, .lb-next { top: auto; bottom: calc(4.5rem + var(--safe-b)); transform: none; width: 48px; height: 48px; }
  .map-back { left: .6rem; top: .6rem; bottom: auto; min-height: 44px; padding: 0 .9rem; }
  .app[data-mode="neighborhood"] .dock { left: .6rem; right: .6rem; }
  .app[data-mode="neighborhood"][data-panel="open"] .dock { right: .6rem; }
  .map-host .maplibregl-ctrl-bottom-right { top: .6rem; bottom: auto; }
  .app[data-panel="open"] .map-host .maplibregl-ctrl-bottom-right { right: 0; }
  .spot-row img { width: 52px; height: 40px; }
}
@media (max-width: 759px) and (max-height: 560px) { :root { --sheet-peek: 58dvh; } }
@media (max-width: 374px) {
  .dock-places .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dock-places { padding: 0 .7rem; min-width: 44px; }
  .layers-toggle { padding: 0 .55rem; }
  .dock { padding-left: .45rem; padding-right: .45rem; gap: .3rem; }
  .bar-title .eyebrow { font-size: .6rem; letter-spacing: .1em; }
}
@media (max-width: 759px) { .brand { display: flex; align-items: center; min-height: 44px; } }
@media (min-width: 560px) and (max-height: 500px) {
  :root { --bar: 46px; --panel: min(380px, 48vw); }
  .brand img { height: 28px; }
  .bar-title .bar-sub { display: none; }
  .dock { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: .35rem .5rem calc(.35rem + var(--safe-b)); gap: .35rem; }
  .dock::-webkit-scrollbar { display: none; }
  .dock > * { flex: none; }
  .views.in-dock button, .seg button { min-height: 38px; }
  .dock-places, .layers-toggle { min-height: 38px; }
  .layers-toggle { display: none; }
  .layer-pop { display: contents; }
  .floor-control .seg button { min-width: 38px; }
  .panel { top: calc(var(--bar) + var(--safe-t)); bottom: 0; left: auto; right: 0; width: var(--panel); height: auto; max-height: none; border-top: 0; border-left: 1px solid var(--line); }
  .panel-handle { display: none; }
  .app[data-panel="open"] .dock, .app[data-panel="open"] .tools { opacity: 1; pointer-events: auto; }
  .app[data-panel="open"] .dock { right: var(--panel); }
  .tools { flex-direction: row; display: flex; }
  .tools button { width: 40px; height: 40px; }
  .legend { display: none; }
  .gallery { margin: 0 -1.1rem .8rem; }
}
@media (min-width: 760px) and (max-height: 620px) {
  .dock { gap: .4rem; }
  .dock > div { padding: .3rem .4rem .35rem; }
  .control-caption { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Homepage preview (?embed=preview): the model alone. The bar is hidden, so the stage must take the only grid row;
   left in the second row it would measure 0px tall and draw nothing (the black/empty model seen on Safari and phones). */
.preview-only .app { grid-template-rows: minmax(0, 1fr); }
.preview-only .bar, .preview-only .labels, .preview-only .hotspots, .preview-only .tools, .preview-only .dock,
.preview-only .legend, .preview-only .notice, .preview-only .panel, .preview-only .stage-hint, .preview-only .map-back,
.preview-only .map-host, .preview-only .skip, .preview-only .sheet { display: none !important; }
.preview-only .canvas-host canvas { cursor: grab; touch-action: pan-y; }
.preview-only .attribution { max-width: 70%; opacity: .85; }

/* MapLibre sets its own font; keep the arrow subset in front so map arrows are not emoji on iPhones */
.maplibregl-map { font-family: var(--sans); }
.preview-only .attribution { top: .35rem; bottom: auto; }
