:root {
  /* 888bellevue.com's palette and type: gold #AB8422, near-black #202020 / black, white, Open Sans body,
     Roboto Slab headings. ("--rose" is the accent slot, now their gold.) */
  --dusk: #1a1a1a;
  --dusk-glass: rgba(24, 24, 24, 0.9);
  --slate: #343a40;
  --rose: #ab8422;
  --gold: #ab8422;
  --bronze: #ab8422;
  --sand: #ffffff;
  --mist: #bdb9b1;
  --line: rgba(255, 255, 255, 0.13);
  --serif: "Roboto Slab", Georgia, serif;
  --sans: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --head: 0px;   /* no site header bar */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 2.4vw, 32px);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--dusk);
  color: var(--sand);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:focus-visible, label:focus-within .switch__track { outline: 2px solid var(--rose); outline-offset: 3px; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#scene.is-pointer { cursor: pointer; }
#labels { position: fixed; inset: 0; pointer-events: none; }

/* glass surfaces */
.panel, .tip, .dock .seg, .switch, .rail {
  background: var(--dusk-glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--line);
}

/* ---------------------------------------------------------------- brand */
.brand {
  position: fixed; top: var(--gutter); left: var(--gutter);
  display: flex; align-items: baseline; gap: 14px;
  pointer-events: none; z-index: 5;
  text-shadow: 0 1px 18px rgba(10, 14, 26, 0.55);
}
.brand__mark { font-family: var(--serif); font-size: 40px; line-height: 1; letter-spacing: -0.01em; }
.brand__place { color: var(--mist); font-size: 13px; }

/* ---------------------------------------------------------------- switch */
.switch {
  position: fixed; top: var(--gutter); right: var(--gutter); z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px; border-radius: 999px; cursor: pointer;
  font-size: 13px; user-select: none;
  transition: opacity 0.4s var(--ease);
}
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track { width: 30px; height: 18px; border-radius: 999px; background: rgba(242,238,233,0.18); position: relative; transition: background 0.3s var(--ease); }
.switch__dot { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--sand); transition: transform 0.35s var(--ease); }
.switch input:checked + .switch__track { background: var(--rose); }
.switch input:checked + .switch__track .switch__dot { transform: translateX(12px); background: var(--dusk); }

/* ---------------------------------------------------------------- rail */
.rail {
  position: fixed; left: var(--gutter); top: 50%; transform: translateY(-50%);
  z-index: 5; border-radius: 14px; padding: 8px 6px;
  display: flex; flex-direction: column; gap: 1px;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.rail__row {
  display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 8px;
  padding: 2px 10px 2px 8px; border-radius: 7px;
  font-size: 12px; font-variant-numeric: tabular-nums; color: var(--mist);
  text-align: left; min-width: 72px;
  transition: background 0.2s, color 0.2s;
}
.rail__row .bar { height: 2px; border-radius: 2px; background: rgba(242,238,233,0.14); width: 18px; transition: width 0.35s var(--ease), background 0.2s; }
.rail__row.is-open { color: var(--sand); }
.rail__row.is-open .bar { background: var(--rose); width: calc(10px + var(--n) * 10px); }
.rail__row:hover, .rail__row.is-hover { background: rgba(242,238,233,0.08); color: var(--sand); }
.rail__row.is-active { background: rgba(171,132,34,0.18); color: var(--sand); }

/* ---------------------------------------------------------------- tooltip */
.tip {
  position: fixed; left: 0; top: 0; z-index: 6; pointer-events: none;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 18px 10px 14px; border-radius: 14px;
  opacity: 0; transform: translate3d(0,0,0) scale(0.96);
  transition: opacity 0.18s ease, scale 0.25s var(--ease);
  white-space: nowrap;
}
.tip.is-on { opacity: 1; scale: 1; }
.tip__num { font-family: var(--serif); font-size: 52px; line-height: 0.9; min-width: 1.1ch; }
.tip__body { display: flex; flex-direction: column; }
.tip__title { font-weight: 500; }
.tip__line { color: var(--mist); font-size: 13px; }
.tip.is-open .tip__line { color: var(--rose); }

/* ---------------------------------------------------------------- hint */
.hint {
  position: fixed; left: 50%; bottom: calc(var(--gutter) + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 4; color: var(--sand); opacity: 0.8; font-size: 13px; text-align: center;
  padding: 0 16px; max-width: 46ch; text-shadow: 0 1px 12px rgba(0,0,0,0.5);
  transition: opacity 0.8s var(--ease);
}
.hint.is-off { opacity: 0; }

/* ---------------------------------------------------------------- panels */
.panel {
  position: fixed; z-index: 7; top: var(--gutter); bottom: var(--gutter);
  width: min(400px, calc(100vw - 2 * var(--gutter)));
  border-radius: 22px; padding: 28px;
  overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden; opacity: 0;
}
.panel--floor { right: var(--gutter); }
.panel--unit { left: var(--gutter); }
.panel::-webkit-scrollbar { width: 0; }

.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(242,238,233,0.08); transition: background 0.2s;
}
.icon-btn:hover { background: rgba(242,238,233,0.16); }
.panel__close { position: absolute; top: 18px; right: 18px; z-index: 3; }

.floorhead { display: flex; align-items: flex-end; gap: 16px; margin: 4px 0 26px; }
.floorhead__num { font-family: var(--serif); font-size: 112px; line-height: 0.78; letter-spacing: -0.03em; }
.floorhead__meta { display: flex; flex-direction: column; padding-bottom: 4px; }
.floorhead__label { color: var(--mist); font-size: 13px; }
.floorhead__count { font-size: 17px; font-weight: 500; }

.homes { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.home {
  width: 100%; display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center;
  text-align: left; padding: 10px; border-radius: 16px;
  background: rgba(242,238,233,0.05); border: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, transform 0.4s var(--ease);
}
.home:hover { background: rgba(242,238,233,0.09); border-color: rgba(171,132,34,0.35); }
.home:active { transform: scale(0.985); }
.home__img { width: 76px; height: 92px; border-radius: 10px; background: #f4f3f0; overflow: hidden; }
.home__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 4px; }
.home__name { font-weight: 500; font-size: 15px; display: block; }
.home__spec { color: var(--mist); font-size: 13px; display: block; margin: 2px 0 8px; }
.home__price { font-family: var(--serif); font-size: 26px; line-height: 1; }
.home__price small { font-family: var(--sans); font-size: 12px; color: var(--mist); margin-left: 4px; }

.empty { color: var(--mist); }
.empty p + p { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  padding: 7px 13px; border-radius: 999px; font-size: 13px;
  background: rgba(171,132,34,0.14); color: var(--sand); transition: background 0.2s;
}
.chip:hover { background: rgba(171,132,34,0.28); }

/* unit panel */
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--mist); font-size: 13px; padding: 6px 10px 6px 6px; margin: -6px 0 22px -6px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.back:hover { color: var(--sand); background: rgba(242,238,233,0.07); }
.unit__where { color: var(--mist); font-size: 13px; }
.unit__name { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.02; letter-spacing: -0.01em; margin: 4px 0 18px; }
.unit__price { display: flex; flex-direction: column; margin-bottom: 22px; }
.unit__price span { font-family: var(--serif); font-size: 58px; line-height: 0.95; color: var(--rose); }
.unit__price small { color: var(--mist); font-size: 13px; margin-top: 6px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 14px 0; }
.facts div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.facts dt { color: var(--mist); font-size: 12px; }
.facts dd { font-size: 18px; font-weight: 500; }
.unit__status { display: flex; align-items: center; gap: 8px; margin: 16px 0 6px; font-size: 13px; }
.unit__status i { width: 7px; height: 7px; border-radius: 50%; background: #8fd3a8; box-shadow: 0 0 0 4px rgba(143,211,168,0.15); }
.unit__sec { margin-top: 22px; }
.unit__sec h2 { font-size: 13px; font-weight: 500; color: var(--mist); margin-bottom: 8px; }
.unit__sec ul { list-style: none; }
.unit__sec li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.unit__sec li:last-child { border-bottom: 0; }
.ghost-btn {
  margin-top: 22px; width: 100%; padding: 13px 16px; border-radius: 12px;
  border: 1px solid rgba(242,238,233,0.22); font-weight: 500; font-size: 14px;
  transition: background 0.2s, border-color 0.2s;
}
.ghost-btn:hover { background: rgba(242,238,233,0.07); border-color: rgba(242,238,233,0.4); }

/* room labels in the 3D home */
.room-label {
  font-size: 11px; color: #3b3a38; background: rgba(255,255,255,0.78);
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  transition: opacity 0.4s var(--ease);
}
.labels-off .room-label { opacity: 0; }

/* ---------------------------------------------------------------- dock */
.dock {
  position: fixed; z-index: 7; left: 50%; bottom: calc(var(--gutter) + env(safe-area-inset-bottom));
  transform: translateX(-50%); display: flex; gap: 10px;
  visibility: hidden; opacity: 0;
}
body.has-unit .dock { left: calc(50% + min(200px, 20vw) + 16px); }
.seg { position: relative; display: flex; padding: 4px; border-radius: 999px; }
.seg__btn { position: relative; z-index: 1; padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--mist); transition: color 0.3s; }
.seg__btn.is-on { color: var(--dusk); }
.seg__pill { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--sand); transition: transform 0.45s var(--ease), width 0.45s var(--ease); }

/* ---------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center;
  background: rgba(12,16,26,0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  visibility: hidden; opacity: 0; transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.lightbox.is-on { visibility: visible; opacity: 1; transition: opacity 0.35s var(--ease); }
.lightbox figure { background: #fff; border-radius: 18px; padding: 24px; max-width: min(92vw, 520px); transform: scale(0.96); transition: transform 0.45s var(--ease); }
.lightbox.is-on figure { transform: scale(1); }
.lightbox img { display: block; width: 100%; max-height: 72vh; max-height: 72svh; object-fit: contain; }
.lightbox figcaption { color: #4a4a4a; font-size: 13px; margin-top: 10px; text-align: center; }
.lightbox__close { position: absolute; top: 20px; right: 20px; z-index: 3; }

/* ---------------------------------------------------------------- veil + loader */
.veil {
  position: fixed; inset: 0; z-index: 15; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, #2a3350 0%, #121826 70%);
  opacity: 0; display: grid; place-items: center;
}
.veil span { font-family: var(--serif); font-size: clamp(36px, 5vw, 64px); opacity: 0; }

.loader {
  position: fixed; inset: 0; z-index: 30; display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--dusk);
}
.loader__mark { font-family: var(--serif); font-size: 84px; line-height: 1; }
.loader__bar { width: 140px; height: 1px; background: rgba(242,238,233,0.15); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--rose); transition: width 0.3s var(--ease); }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 760px) {
  .rail { display: none; }
  .brand__mark { font-size: 32px; }
  .brand__place { display: none; }
  .switch__text { font-size: 12px; }
  .panel {
    top: auto; left: 0; right: 0; bottom: 0; width: 100%;
    max-height: 62vh; max-height: 62svh; border-radius: 22px 22px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  }
  .panel--unit { max-height: 48vh; }
  .floorhead__num { font-size: 80px; }
  .unit__name { font-size: 32px; }
  .unit__price span { font-size: 44px; }
  .dock, body.has-unit .dock { left: 50%; bottom: calc(48vh + 12px); }
  .seg__btn { padding: 8px 14px; }
  .tip__num { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------------- phones
   (after the type block so the smaller sizes win) The home details become a bottom sheet that
   rests low (name and price showing) and drags or taps open; the switches sit just above it. */
.sheet-handle { display: none; }
@media (max-width: 760px) {
  .floorhead__num { font-size: 76px; }
  .unit__name { font-size: 28px; margin-bottom: 10px; }
  .unit__price span { font-size: 40px; }
  .panel--unit {
    max-height: none; height: 86vh; overflow: hidden; padding-top: 30px;
    /* never taller than the visible area minus the notch, so the handle can't slide under a top address bar */
    height: min(86svh, calc(100svh - var(--head) - 12px));   /* stops below the site header */
    bottom: calc(0px - var(--sheet-y, 0px)); touch-action: none;   /* slid by its bottom edge: the animation library owns transforms */
  }
  .panel--unit.is-open { touch-action: pan-y; }
  /* the details scroll inside their own area; the handle strip above them never scrolls away */
  .panel--unit .sheet-body { height: 100%; overflow: hidden; }
  .panel--unit.is-open .sheet-body { overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain; }
  .sheet-handle {
    display: block; position: absolute; top: 0; left: 0; right: 0; height: 34px; z-index: 2;
    touch-action: none; cursor: grab;
  }
  .sheet-handle::before {
    content: ""; position: absolute; top: 11px; left: 50%; width: 40px; height: 5px; margin-left: -20px;
    border-radius: 3px; background: rgba(242, 238, 233, 0.4);
  }
  .dock, body.has-unit .dock { bottom: calc(var(--peek, 200px) + 14px); transition: opacity 0.25s; }
  body.sheet-open .dock { opacity: 0 !important; visibility: hidden !important; pointer-events: none; }   /* beats the inline values the animation sets */
}

/* ================================================================ 888bellevue.com look
   Square corners, gold accents, uppercase letter-spaced buttons, Roboto Slab headings. */
body { letter-spacing: normal; }
.panel, .tip, .rail, .switch, .seg, .seg__pill, .seg__btn, .rail__row, .home, .home__img, .chip, .back,
.icon-btn, .ghost-btn, .lightbox figure, .rail__row .bar { border-radius: 0; }
.tip__num, .floorhead__num, .home__price, .unit__price span { font-family: var(--serif); font-weight: 300; letter-spacing: normal; }
.unit__name { font-family: var(--serif); font-weight: 400; letter-spacing: normal; }
.floorhead__count, .home__name, .facts dd, .tip__title { font-weight: 600; }
.unit__sec h2, .facts dt, .floorhead__label { text-transform: uppercase; letter-spacing: 1.2px; font-size: 11.5px; font-weight: 600; }
.unit__price span { color: var(--gold); }
.ghost-btn {
  background: var(--gold); border: 1px solid var(--gold); color: #fff;
  text-transform: uppercase; letter-spacing: 1.6px; font-weight: 500; font-size: 13px;
}
.ghost-btn:hover { background: #95731d; border-color: #95731d; }
.seg__pill { background: var(--gold); }
.seg__btn.is-on { color: #fff; }
.switch input:checked + .switch__track .switch__dot { background: #fff; }
.home:hover { border-color: var(--gold); }
.veil { background: radial-gradient(120% 90% at 50% 40%, #2c2c2c 0%, #121212 70%); }
.veil span { font-weight: 300; }
.loader__mark { font-family: "Bodoni Moda", Didot, serif; color: var(--gold); font-weight: 500; }

/* panels and toggle sit below the site header */
.panel { top: calc(var(--head) + 16px); }
.switch { top: calc(var(--head) + 14px); }

/* ---------------------------------------------------------------- 888 mark (same gold type treatment as 888bellevue.com) */
.brand__mark.logo {
  display: inline-flex; align-items: baseline;
  font-family: "Bodoni Moda", Didot, serif; font-weight: 500; font-size: 46px; line-height: 1;
  color: var(--gold); letter-spacing: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 2px 14px rgba(20, 14, 10, 0.5);
}
.logo i { font-style: normal; display: inline-block; }
.logo i:nth-child(2) { font-size: 1.24em; transform: translateY(-0.14em); margin: 0 -0.07em; }
.brand__place { font-family: var(--sans); text-transform: uppercase; letter-spacing: 1.6px; font-size: 12px; color: #fff; }

@media (max-width: 760px) {
  .brand__mark.logo { font-size: 34px; }
  .panel--floor, .panel--unit { top: auto; }
  .panel--unit, .panel--floor { border-radius: 0; }
}
