/* Saakadze 6 — base layout, top/bottom bars and shared components.
   Designed at 1920x1080 CSS px; 1rem = 10 design px and scales with the viewport. */

:root {
  --navy: #1e2a55;
  --navy-2: #2b3970;
  --panel: rgba(255, 255, 255, 0.94);
  --page: #eef0f3;
  --text: #1b1f2a;
  --caption: #8a90a0;
  --line: #d5d9e1;
  --grey-btn: #a9aeb9;
  --available: #2ea8f0;
  --reserved: #f2b83a;
  --sold: #e5333f;
  --shadow: 0 0.6rem 2.4rem rgba(10, 16, 40, 0.18);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --fast: 220ms;
  --med: 340ms;
  font-size: min(0.5208vw, 0.9259vh);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #10131c; }
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 1.4rem;
  color: var(--text);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; }
img { -webkit-user-drag: none; }
[hidden] { display: none !important; }
.ico { width: 2.4rem; height: 2.4rem; display: block; flex: none; }

#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; cursor: grab; }
#stage:active { cursor: grabbing; }
#stage-layer { position: fixed; inset: 0; pointer-events: none; z-index: 2; }

/* --------------------------------------------------------------- wordmark */
.wordmark {
  position: fixed; left: 4.2rem; top: 3.4rem; z-index: 40; color: #fff; pointer-events: none;
  display: flex; flex-direction: column; gap: .3rem;
  text-shadow: 0 0.1rem 1.2rem rgba(0, 0, 0, 0.35);
  transition: opacity var(--med) var(--ease), color var(--med);
}
.wm-name { font-size: 2.2rem; font-weight: 300; letter-spacing: .42em; text-transform: uppercase; }
.wm-sub { font-size: 1.0rem; font-weight: 500; letter-spacing: .5em; text-transform: uppercase; opacity: .85; }
body.page-detail .wordmark, body.mode-gallery .wordmark { opacity: 0; }

/* --------------------------------------------------------------- top bar */
#topbar {
  position: fixed; top: 2.6rem; right: 3.2rem; z-index: 40;
  display: flex; align-items: flex-start; gap: 1.6rem;
  transition: opacity var(--med) var(--ease), transform var(--med) var(--ease);
}
body.page-detail #topbar, body.mode-gallery #topbar { opacity: 0; pointer-events: none; transform: translateY(-1rem); }
/* time of day: three buttons in one dark pill, the chosen one lit */
.timebar {
  display: flex; gap: .4rem; padding: .4rem; border-radius: 2.6rem;
  background: rgba(34, 42, 66, 0.62); backdrop-filter: blur(6px); box-shadow: 0 .1rem .6rem rgba(0, 0, 0, .2);
}
.timebar .stop {
  display: flex; align-items: center; gap: .8rem; height: 3.4rem; padding: 0 1.6rem 0 1.2rem; border-radius: 1.7rem;
  color: rgba(255, 255, 255, .78); font-size: 1.35rem; letter-spacing: .04em; white-space: nowrap;
  transition: background var(--fast), color var(--fast), transform var(--fast);
}
.timebar .stop .ico-wrap { display: grid; place-items: center; }
.timebar .stop .ico { width: 2.1rem; height: 2.1rem; stroke-width: 1.4; }
.timebar .stop:hover { color: #fff; }
.timebar .stop:active { transform: scale(.96); }
.timebar .stop.active { background: #fff; color: var(--navy); }

.round-dark {
  width: 4.2rem; height: 4.2rem; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(34, 42, 66, 0.62); backdrop-filter: blur(6px); box-shadow: 0 .1rem .6rem rgba(0, 0, 0, .2);
  transition: background var(--fast), transform var(--fast);
}
.round-dark:active { transform: scale(.94); }
.round-dark.on { background: var(--navy); }
.round-dark .ico { width: 2.3rem; height: 2.3rem; }

.pill-toggle {
  position: relative; width: 7.6rem; height: 4.2rem; border-radius: 3rem;
  background: rgba(255, 255, 255, 0.82); box-shadow: 0 .1rem .6rem rgba(0, 0, 0, .18);
  display: flex; align-items: center; justify-content: space-between; padding: 0 .9rem; color: #8a90a0;
}
.pill-toggle .pt-knob {
  position: absolute; top: .35rem; left: .35rem; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: #3a4258; transition: transform var(--med) var(--ease), background var(--med);
}
.pill-toggle[aria-checked="true"] .pt-knob { transform: translateX(3.4rem); background: var(--navy); }
.pill-toggle .pt-a, .pill-toggle .pt-b { position: relative; z-index: 1; width: 2.2rem; height: 2.2rem; transition: color var(--med); }
.pill-toggle .ico { width: 2.1rem; height: 2.1rem; }
.pill-toggle[aria-checked="false"] .pt-a { color: #fff; }
.pill-toggle[aria-checked="true"] .pt-b { color: #fff; }

/* --------------------------------------------------------------- popover (settings) */
.popover {
  position: fixed; top: 8.4rem; right: 3.2rem; z-index: 50; width: 38rem;
  background: var(--panel); border-radius: .4rem; box-shadow: var(--shadow); padding: 2.2rem 2.4rem 2.4rem;
  transform-origin: top right; animation: pop-in var(--fast) var(--ease);
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-.8rem) scale(.98); } }
.pop-title { font-size: 1.15rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--caption); margin-bottom: 1.6rem; }
.pop-row { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; margin-bottom: 1.4rem; font-size: 1.35rem; font-weight: 500; }
.seg { display: flex; border: .1rem solid var(--line); border-radius: .3rem; overflow: hidden; flex: none; }
.seg button { min-width: 6rem; height: 3.6rem; padding: 0 1.4rem; font-size: 1.15rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #5b6273; }
.seg button + button { border-left: .1rem solid var(--line); }
.seg button.on { background: var(--navy); color: #fff; }

/* --------------------------------------------------------------- buttons */
.btn-navy {
  display: flex; align-items: center; justify-content: center; gap: 1.1rem; width: 100%;
  height: 4rem; padding: 0 1.8rem; background: var(--navy); color: #fff; border-radius: .2rem;
  font-size: 1.1rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  transition: background var(--fast), transform var(--fast), opacity var(--fast);
}
.btn-navy .ico { width: 1.9rem; height: 1.9rem; }
.btn-navy:active { transform: scale(.98); background: var(--navy-2); }
.btn-navy.grey, .btn-navy.active { background: var(--grey-btn); }
.btn-navy.small { height: 3.6rem; margin-top: .6rem; }
.btn-ghost {
  display: flex; align-items: center; justify-content: center; gap: 1rem; height: 3.8rem; padding: 0 1.8rem;
  border: .1rem solid var(--line); color: var(--text); background: #fff; border-radius: .2rem;
  font-size: 1.05rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.round-navy, .round-light, .round-grey {
  width: 3.6rem; height: 3.6rem; border-radius: 50%; display: grid; place-items: center; flex: none;
  box-shadow: 0 .2rem .8rem rgba(10, 16, 40, .2); transition: transform var(--fast), background var(--fast), color var(--fast);
}
.round-navy { background: var(--navy); color: #fff; }
.round-light { background: #fff; color: #8a90a0; }
.round-grey { background: #c5c9d2; color: #fff; }
.round-navy .ico, .round-light .ico, .round-grey .ico { width: 1.8rem; height: 1.8rem; stroke-width: 2; }
.round-navy:active, .round-light:active, .round-grey:active { transform: scale(.92); }
.round-light.fav-on { color: #e5333f; }

/* --------------------------------------------------------------- bottom tabs */
#tabs {
  position: fixed; left: 2.6rem; right: 2.6rem; bottom: 1.8rem; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  transition: opacity var(--med) var(--ease), transform var(--med) var(--ease);
}
.tab-list { display: flex; align-items: center; justify-content: space-between; flex: 0 1 158rem; }
.tab {
  height: 3.6rem; padding: 0 2rem; color: #fff; font-size: 1.4rem; font-weight: 500; letter-spacing: .02em;
  text-shadow: 0 .1rem .8rem rgba(0, 0, 0, .45); border-radius: .1rem; white-space: nowrap;
  transition: background var(--fast), color var(--fast);
}
.tab.active { background: var(--navy); text-shadow: none; }
.tab:active { transform: scale(.97); }
body.page-detail .tab:not(.active) { color: #6e7486; text-shadow: none; }
/* light map (location, day): dark chrome so it stays legible */
body.mode-location:not(.map-night):not(.page-detail) .tab:not(.active) { color: var(--navy); text-shadow: 0 0 .8rem rgba(255, 255, 255, .9); }
body.mode-location:not(.map-night) .wordmark { color: var(--navy); text-shadow: 0 0 1rem rgba(255, 255, 255, .9); }
body.mode-location:not(.map-night) .timebar { background: rgba(30, 42, 85, .85); }
body.page-window #tabs { opacity: 0; pointer-events: none; transform: translateY(1rem); }

.variant-switch {
  display: flex; height: 3.8rem; border-radius: .2rem; overflow: hidden; flex: none;
  background: rgba(255, 255, 255, 0.86); box-shadow: 0 .1rem .8rem rgba(0, 0, 0, .18);
}
.variant-switch button {
  display: flex; align-items: center; gap: .6rem; padding: 0 1.3rem 0 .9rem; color: #4c5366;
  font-size: 1.2rem; font-weight: 600; letter-spacing: .06em; transition: background var(--fast), color var(--fast);
}
.variant-switch button + button { border-left: .1rem solid rgba(30, 42, 85, .12); }
.variant-switch button.on { background: var(--navy); color: #fff; }
.variant-switch .towers { width: 2.4rem; height: 2.4rem; }
.variant-switch .sep { opacity: .45; margin: 0 .15rem; }
body.page-detail .variant-switch { box-shadow: 0 0 0 .1rem var(--line); }

/* --------------------------------------------------------------- stage overlays */
.leader { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; transition: opacity var(--fast); }
.leader.on { opacity: 1; }
.leader line { stroke: #fff; stroke-width: 1.4; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .35)); }
.leader circle { fill: #fff; stroke: var(--navy); stroke-width: 1.5; }
#tags { position: absolute; inset: 0; transition: opacity var(--med); }
#tags.hide { opacity: 0; }
.utag {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, .94); color: #2a3045; border-radius: .15rem;
  font-size: .9rem; font-weight: 600; letter-spacing: .04em; padding: .15rem .45rem; line-height: 1.2;
  box-shadow: 0 .05rem .3rem rgba(0, 0, 0, .25); white-space: nowrap; will-change: transform;
}
.utag.faint { opacity: .45; }
#hotspots { position: absolute; inset: 0; }
.hotspot {
  position: absolute; left: 0; top: 0; width: 5.2rem; height: 5.2rem; margin: -2.6rem 0 0 -2.6rem; pointer-events: auto;
  display: grid; place-items: center; color: var(--navy); transition: opacity var(--med);
}
.hotspot::before {
  content: ''; position: absolute; inset: .6rem; border-radius: 50%; background: rgba(255, 255, 255, .35);
  animation: pulse 2.2s infinite var(--ease);
}
.hotspot .dot { position: relative; width: 3.8rem; height: 3.8rem; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 .2rem 1rem rgba(0, 0, 0, .3); }
.hotspot .dot .ico { width: 2rem; height: 2rem; }
.hotspot .lbl {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: .2rem; white-space: nowrap;
  color: #fff; font-size: 1.15rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  text-shadow: 0 .1rem .6rem rgba(0, 0, 0, .6);
}
.hotspot .lbl { opacity: 0; transition: opacity var(--fast); }
.hotspot.active .lbl, body.mode-home .hotspot .lbl, body.mode-apartments .hotspot .lbl { opacity: 1; }
.hotspot.active { z-index: 2; }
.hotspot.active .dot { background: var(--navy); color: #fff; }
.hotspot.active .lbl { background: var(--navy); padding: .4rem .9rem; margin-top: .6rem; text-shadow: none; border-radius: .2rem; }
.hotspot.hide { opacity: 0; pointer-events: none; }
@keyframes pulse { 0% { transform: scale(.75); opacity: .9; } 70% { transform: scale(1.35); opacity: 0; } 100% { opacity: 0; } }

/* the towers' name tags, above each crown on a short stem */
#towers { position: absolute; inset: 0; }
.ttag {
  position: absolute; left: 0; top: 0; translate: -50% calc(-100% - 2.4rem); pointer-events: auto; will-change: transform;
  display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .8rem 1.6rem .85rem;
  background: rgba(18, 26, 56, .62); color: #fff; border-radius: 2rem; white-space: nowrap;
  -webkit-backdrop-filter: blur(.8rem); backdrop-filter: blur(.8rem); box-shadow: 0 .3rem 1.4rem rgba(0, 0, 0, .28);
  transition: opacity var(--med) var(--ease), background var(--fast);
}
.ttag::after {
  content: ''; position: absolute; left: 50%; top: 100%; width: .12rem; height: 2.4rem; margin-left: -.06rem;
  background: linear-gradient(rgba(255, 255, 255, .8), rgba(255, 255, 255, 0));
}
.ttag b { font-size: 1.3rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; margin-right: -.26em; }
.ttag span { font-size: .95rem; font-weight: 500; letter-spacing: .06em; opacity: .82; }
.ttag:active { background: rgba(30, 42, 85, .9); }
.ttag.on { background: var(--navy); }
.ttag.hide { opacity: 0; pointer-events: none; }
/* the parking cut open (stage3d.js _cutaway): only its own pin */
body.cutaway .hotspot:not(.parking), body.cutaway .ttag { opacity: 0; pointer-events: none; }

/* the project's figures under the wordmark (home view), counting up as they appear */
.facts {
  position: fixed; left: 4.2rem; top: 10.6rem; z-index: 39; display: flex; flex-wrap: wrap; max-width: calc(100vw - 8.4rem);
  padding: 1.1rem .6rem; border-radius: .8rem; color: #fff; pointer-events: none;
  background: rgba(14, 20, 44, .34); -webkit-backdrop-filter: blur(1rem); backdrop-filter: blur(1rem);
  opacity: 0; transform: translateY(-.6rem); transition: opacity var(--med) var(--ease), transform var(--med) var(--ease);
}
.facts.on { opacity: 1; transform: none; }
/* only over the home view: a screen opened from it hides them at once (overlays.js turns them off on the next frame) */
body:not(.mode-home) .facts, body[class*="page-"] .facts { opacity: 0; }
.fact { display: flex; flex-direction: column; gap: .2rem; padding: 0 1.6rem; }
.fact + .fact { border-left: .1rem solid rgba(255, 255, 255, .22); }
.fact b { font-size: 2.1rem; font-weight: 300; letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fact span { font-size: .85rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .72; white-space: nowrap; }

/* --------------------------------------------------------------- unit card */
.unit-card {
  position: fixed; left: 0; top: 0; z-index: 12; width: 25.6rem; background: var(--panel);
  box-shadow: var(--shadow); border-radius: .2rem; padding: 1.4rem 1.4rem 1.6rem;
  animation: card-in var(--med) var(--ease);
}
@keyframes card-in { from { opacity: 0; transform: translateY(.8rem) scale(.97); } }
.unit-card .plan { height: 17rem; background: #fff; overflow: hidden; }
.unit-card .plan img { width: 100%; height: 100%; object-fit: contain; display: block; }
.unit-card .uid { font-size: 1.05rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--caption); margin: 1.2rem 0 .2rem; text-align: center; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin: 1rem 0 1.4rem; }
.stats3 b { display: block; font-size: 1.7rem; font-weight: 400; color: var(--text); }
.stats3 span { display: block; font-size: .85rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--caption); margin-top: .3rem; }
.unit-card .btn-navy { width: 72%; margin: 0 auto; height: 3.6rem; }
.unit-card .side { position: absolute; top: -1rem; right: -4.6rem; display: flex; flex-direction: column; gap: .9rem; }
.unit-card .status { display: flex; align-items: center; justify-content: center; gap: .6rem; font-size: 1rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #5b6273; margin-bottom: 1rem; }
.sdot { width: .9rem; height: .9rem; border-radius: 50%; display: inline-block; background: var(--available); flex: none; }
.sdot.reserved { background: var(--reserved); }
.sdot.sold { background: var(--sold); }

/* --------------------------------------------------------------- side panel (filter) */
.side-panel {
  position: fixed; right: 0; top: 13rem; bottom: 8.4rem; z-index: 12; width: 31rem;
  background: var(--panel); box-shadow: var(--shadow);
  transform: translateX(105%); transition: transform 380ms var(--ease);
}
.side-panel.open { transform: none; }
.side-panel.collapsed { transform: translateX(calc(100% - 0rem)); }
.panel-btns { position: absolute; left: -2rem; top: 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.side-panel.collapsed .panel-btns { left: -5.2rem; }
.side-panel:not(.open) .panel-btns { opacity: 0; pointer-events: none; }
.panel-body { height: 100%; overflow-y: auto; padding: 2.4rem 2.6rem 2rem 3.4rem; touch-action: pan-y; scrollbar-width: none; }
.panel-body::-webkit-scrollbar { display: none; }
.f-title { font-size: 1.2rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--text); margin-bottom: .4rem; }
.f-count { font-size: 1.2rem; color: var(--caption); margin-bottom: 2rem; }
.f-group { margin-bottom: 2.2rem; }
.f-label { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--caption); margin-bottom: 1rem; }
.f-label b { font-weight: 500; color: var(--text); letter-spacing: .04em; text-transform: none; font-size: 1.15rem; }
.chips-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  min-width: 3.8rem; height: 3.4rem; padding: 0 1.2rem; border: .1rem solid var(--line); border-radius: .2rem;
  font-size: 1.2rem; font-weight: 500; color: #4c5366; background: #fff; transition: background var(--fast), color var(--fast), border-color var(--fast);
}
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.range { position: relative; height: 3.2rem; margin: 0 1.1rem; touch-action: none; }
.range .rail { position: absolute; left: 0; right: 0; top: 50%; height: .3rem; margin-top: -.15rem; background: #d7dbe3; border-radius: .3rem; }
.range .fill { position: absolute; top: 50%; height: .3rem; margin-top: -.15rem; background: var(--navy); border-radius: .3rem; }
.range .h {
  position: absolute; top: 50%; width: 2.2rem; height: 2.2rem; margin: -1.1rem 0 0 -1.1rem; border-radius: 50%;
  background: #1f2433; box-shadow: 0 .1rem .4rem rgba(0, 0, 0, .3); touch-action: none;
}
.range .h::after { content: ''; position: absolute; inset: -1.2rem; }
.checks { display: flex; flex-direction: column; gap: 1rem; }
.check { display: flex; align-items: center; gap: 1.2rem; font-size: 1.3rem; font-weight: 500; text-align: left; }
.check .box { width: 2.2rem; height: 2.2rem; border: .15rem solid #9aa0ae; border-radius: .2rem; display: grid; place-items: center; color: #fff; flex: none; }
.check.on .box { background: var(--navy); border-color: var(--navy); }
.check .box .ico { width: 1.6rem; height: 1.6rem; stroke-width: 2.4; opacity: 0; }
.check.on .box .ico { opacity: 1; }
.legend { display: flex; gap: 1.6rem; flex-wrap: wrap; font-size: 1.1rem; color: #4c5366; margin-top: 1rem; }
.legend span { display: flex; align-items: center; gap: .6rem; }
.f-reset { margin-top: 1rem; }

/* --------------------------------------------------------------- highlights */
.hl-list {
  position: fixed; left: 4.2rem; top: 14rem; z-index: 12; width: 30rem; display: flex; flex-direction: column; gap: .6rem;
  transform: translateX(-120%); opacity: 0; transition: transform 380ms var(--ease), opacity 380ms;
}
body.mode-highlights .hl-list { transform: none; opacity: 1; }
.hl-item {
  display: flex; align-items: center; gap: 1.4rem; height: 5.4rem; padding: 0 1.6rem; text-align: left;
  background: rgba(255, 255, 255, .88); box-shadow: 0 .2rem 1rem rgba(10, 16, 40, .12); border-radius: .2rem;
  font-size: 1.3rem; font-weight: 500; transition: background var(--fast), color var(--fast);
}
.hl-item .ico { width: 2.4rem; height: 2.4rem; color: var(--navy); }
.hl-item.on { background: var(--navy); color: #fff; }
.hl-item.on .ico { color: #fff; }
.hl-card {
  position: fixed; right: 4.2rem; top: 14rem; z-index: 12; width: 44rem; background: var(--panel); box-shadow: var(--shadow);
  border-radius: .2rem; overflow: hidden; animation: card-in var(--med) var(--ease);
}
.hl-card .car { position: relative; height: 24.8rem; background: #dfe3ea; overflow: hidden; touch-action: pan-y; }
.hl-card .car .strip { display: flex; height: 100%; transition: transform 420ms var(--ease); }
.hl-card .car img { width: 44rem; height: 100%; object-fit: cover; flex: none; }
.hl-card .dots { position: absolute; bottom: 1.2rem; left: 0; right: 0; display: flex; justify-content: center; gap: .7rem; }
.hl-card .dots i { width: .8rem; height: .8rem; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.hl-card .dots i.on { background: #fff; }
.hl-card .car .nav { position: absolute; top: 50%; margin-top: -1.8rem; }
.hl-card .car .nav.prev { left: 1.2rem; } .hl-card .car .nav.next { right: 1.2rem; }
.hl-card .body { padding: 2.2rem 2.6rem 2.6rem; }
.hl-card h3 { margin: 0 0 1.2rem; font-size: 1.9rem; font-weight: 300; letter-spacing: .12em; text-transform: uppercase; }
.hl-card p { margin: 0; font-size: 1.35rem; line-height: 1.65; color: #4c5366; }
.hl-card .x { position: absolute; top: 1.2rem; right: 1.2rem; }
/* the parking card: the spaces, each tower's share, the two levels in section */
.park { margin-top: 2rem; }
.pk-total { display: flex; align-items: baseline; gap: 1rem; color: var(--navy); }
.pk-total b { font-size: 4.4rem; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.pk-total span { font-size: 1.05rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--caption); }
.pk-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin: 1.6rem 0 1.8rem; }
.pk-split div { display: grid; grid-template-columns: 1fr auto; row-gap: .5rem; font-size: 1.15rem; color: #4c5366; }
.pk-split b { font-weight: 600; color: var(--text); }
.pk-split i { grid-column: 1 / -1; height: .5rem; border-radius: .5rem; background: var(--navy); min-width: 1rem; }
.pk-section { position: relative; display: flex; flex-direction: column; gap: .5rem; }
.pk-ground {
  font-size: .95rem; font-weight: 600; letter-spacing: .08em; color: var(--caption); padding-bottom: .4rem;
  border-bottom: .2rem solid #9aa3b5; border-radius: 0 0 .2rem .2rem;
}
.pk-level {
  display: flex; align-items: center; gap: 1.2rem; height: 4.4rem; padding: 0 1.4rem; border-radius: .5rem;
  background: linear-gradient(90deg, #e6e9f0, #f3f4f8); font-size: 1.2rem; color: #4c5366;
}
.pk-level em { font-style: normal; font-weight: 700; letter-spacing: .1em; color: #fff; background: var(--navy); border-radius: .4rem; padding: .35rem .7rem; }
.pk-level small { margin-left: auto; display: flex; align-items: center; gap: .4rem; font-size: 1.05rem; font-weight: 600; color: #1f8a5a; }
.pk-level small .ico { width: 1.5rem; height: 1.5rem; }

/* --------------------------------------------------------------- loading / toast */
#loading {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(120rem 80rem at 50% 40%, #26325f 0%, #141a30 70%); color: #fff;
  transition: opacity 600ms var(--ease), visibility 600ms;
}
#loading.done { opacity: 0; visibility: hidden; }
.ld-name { font-size: 4.6rem; font-weight: 200; letter-spacing: .5em; text-transform: uppercase; margin-left: .5em; }
.ld-sub { margin-top: 1.4rem; font-size: 1.2rem; font-weight: 500; letter-spacing: .6em; text-transform: uppercase; opacity: .7; margin-left: .6em; }
.ld-bar { margin-top: 4.4rem; width: 32rem; height: .2rem; background: rgba(255, 255, 255, .18); overflow: hidden; border-radius: .2rem; }
.ld-bar i { display: block; height: 100%; width: 0; background: #fff; transition: width 200ms linear; }
.toast {
  position: fixed; left: 50%; bottom: 9rem; transform: translateX(-50%); z-index: 90; padding: 1.2rem 2.2rem;
  background: rgba(20, 26, 48, .88); color: #fff; font-size: 1.25rem; border-radius: .3rem; animation: card-in var(--med) var(--ease);
}

/* --------------------------------------------------------------- view stepper (fixed views) */
#view-nav { display: none; }
body.stepped #view-nav { display: block; }
.view-btn {
  position: fixed; top: 50%; z-index: 6; width: 5.6rem; height: 5.6rem; margin-top: -2.8rem; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(24, 30, 50, 0.38); backdrop-filter: blur(8px);
  box-shadow: 0 .2rem 1.2rem rgba(0, 0, 0, .22); transition: opacity 300ms var(--ease), transform var(--fast), background var(--fast), right 380ms var(--ease);
}
.view-btn .ico { width: 2.6rem; height: 2.6rem; stroke-width: 1.6; }
.view-btn:hover { background: rgba(30, 42, 85, 0.72); }
.view-btn:active { transform: scale(.92); }
.view-btn.prev { left: 3.2rem; }
.view-btn.next { right: 3.2rem; }
.view-dots { position: fixed; left: 50%; bottom: 8.6rem; transform: translateX(-50%); z-index: 6; display: flex; gap: 1rem; transition: opacity 300ms var(--ease); }
.view-dots i { width: .8rem; height: .8rem; border-radius: 50%; background: rgba(255, 255, 255, .5); box-shadow: 0 0 .4rem rgba(0, 0, 0, .35); transition: background var(--fast), transform var(--fast); }
.view-dots i.on { background: #fff; transform: scale(1.35); }
/* only over the orbit itself: hidden on pages, the map and the gallery, and while a card or list sits in the way */
body[class*="page-"] #view-nav, body.mode-location #view-nav, body.mode-gallery #view-nav { opacity: 0; pointer-events: none; }
body[class*="page-"] #view-nav *, body.mode-location #view-nav *, body.mode-gallery #view-nav * { opacity: 0; pointer-events: none; }
body.mode-highlights .view-btn.prev { left: 37rem; }
body.mode-highlights .view-btn.next { right: 50rem; }
body.mode-apartments.filter-open:not(.filter-collapsed) .view-btn.next { right: 36rem; }
#hotspots, #tags, #leader, #towers { transition: opacity 220ms var(--ease); }
body.stepping #hotspots, body.stepping #tags, body.stepping #leader, body.stepping #towers { opacity: 0; pointer-events: none; }

/* --------------------------------------------------------------- phone
   The design shrunk to a phone's width is unreadable (1rem under 2 px upright), so a phone draws it at its own
   scale, 1rem = 2vw upright (7.5 px on a 375 px phone) or 1.6vh on its side, and the stage's chrome is rearranged
   to fit: the times move down beside the tower switch, over a tab row that scrolls. The detail page keeps the
   design's own layout, zoomed back to the design's scale (--sz, main.js). */
@media (max-width: 600px) and (orientation: portrait) {
  :root { font-size: min(2vw, 1vh); }
  .wordmark { left: 2.4rem; top: 2.6rem; }
  .wm-name { font-size: 2rem; letter-spacing: .36em; }
  #topbar { top: 1.8rem; right: 2rem; gap: 1.2rem; }
  .facts { left: 2.4rem; top: 8.6rem; max-width: calc(100vw - 4.8rem); padding: .9rem .2rem; row-gap: 1rem; }
  .fact { padding: 0 1.2rem; }
  .fact b { font-size: 1.8rem; }
  .fact span { font-size: .95rem; letter-spacing: .14em; }
  /* the times, bottom left above the tabs: only the chosen one keeps its name */
  .timebar { position: fixed; left: 1.6rem; bottom: calc(7.2rem + env(safe-area-inset-bottom)); }
  .timebar .stop { height: 4.2rem; padding: 0 1.1rem; gap: .6rem; font-size: 1.4rem; }
  .timebar .stop.active { padding: 0 1.5rem 0 1.1rem; }
  .timebar .stop:not(.active) .lbl { display: none; }
  #tabs { left: 1.6rem; right: 1.6rem; bottom: calc(1.6rem + env(safe-area-inset-bottom)); gap: 1rem; }
  .tab-list {
    flex: 1 1 auto; min-width: 0; justify-content: flex-start; overflow-x: auto; touch-action: pan-x;
    scrollbar-width: none; border-radius: .2rem;
  }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab { height: 4.4rem; padding: 0 1.5rem; font-size: 1.5rem; flex: none; }
  .variant-switch { position: fixed; right: 1.6rem; bottom: calc(7.2rem + env(safe-area-inset-bottom)); height: 4.2rem; }
  .popover { top: 8.2rem; right: 2rem; width: calc(100vw - 4rem); }
  /* (screens.css comes after this file: these need the extra weight) */
  section#compare { padding: 9rem 1.6rem 13rem; }
  #compare .cmp-panel { padding: 2rem; }
  section#gallery { padding: 9rem 1.6rem 13rem; gap: 1.6rem; }
  #gallery .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  #location .map-cats { left: 2.4rem; top: 9rem; width: 22rem; }
  #location .map-tools { bottom: 14rem; right: 1.6rem; }
  .side-panel { top: 12rem; bottom: 14rem; }
  #compare .cmp-empty { width: auto; padding: 2rem 0 1rem; }
  #detail { zoom: var(--sz, 1); }
  .ld-name { font-size: 3rem; letter-spacing: .42em; white-space: nowrap; }
  .ld-bar { width: 24rem; }
  /* the amenity names would cross each other this close: a pin shows its name when chosen */
  body.mode-home .hotspot:not(.active) .lbl, body.mode-apartments .hotspot:not(.active) .lbl { opacity: 0; }
}
@media (max-height: 500px) and (orientation: landscape) {
  :root { font-size: min(.9vw, 1.6vh); }
  #detail { zoom: var(--sz, 1); }
}
