/* Willow Estate — interactive model.
   Chrome is dark green glass so the white houses stay the brightest thing on
   screen. The brochure's estate green #1d4634 and gold #c7a35a are the only
   accents; nothing else is coloured. */

:root{
  --navy:#1d4634;
  --sage:#c7a35a;
  --ink:#e9ecea;
  --ink-2:#a7aeb1;
  --ink-3:#767d81;
  --glass:rgba(14,22,17,.80);
  --glass-2:rgba(20,31,24,.80);
  --line:rgba(233,236,234,.14);
  --line-2:rgba(233,236,234,.09);
  /* Status is the ONE exception to "green and gold are the only accents": stock
     has to read as stock, and red/green is the convention every buyer already
     knows. Both are muted toward the estate palette so they sit in it. */
  --taken:#ce5444;
  --free:#7ac48e;
  --r:14px;
  --pad:16px;
  --shadow:0 18px 48px -18px rgba(0,0,0,.72), 0 2px 10px -4px rgba(0,0,0,.5);
  --ease:cubic-bezier(.22,.61,.36,1);
  --sans:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Inter,Roboto,Helvetica,Arial,sans-serif;
  --safe-b:env(safe-area-inset-bottom,0px);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; overflow:hidden; background:#0d1410; color:var(--ink);
  font-family:var(--sans); font-size:16px; line-height:1.45;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overscroll-behavior:none;
}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}
canvas#view{position:fixed;inset:0;width:100vw;height:100vh;display:block;touch-action:none;cursor:grab}
canvas#view:active{cursor:grabbing}

/* ---------------------------------------------------------------- wordmark */
/* The willow mark. Carried as an alpha mask rather than a coloured image so it
   takes --sage from the stylesheet and stays on-brand if the palette moves —
   and so it never arrives as a dark-green logo on a dark-green background. */
.mark{
  flex:none;width:26px;height:26px;
  background-color:var(--sage);
  -webkit-mask:url(../assets/willow-mark.png) center/contain no-repeat;
  mask:url(../assets/willow-mark.png) center/contain no-repeat;
}
.mark-lg{width:112px;height:112px;animation:markIn .9s var(--ease) both}
@keyframes markIn{from{opacity:0;transform:translateY(6px) scale(.97)}to{opacity:1;transform:none}}
.brand{display:flex;align-items:center;gap:11px}

.wordmark{display:flex;align-items:baseline;gap:.42em;letter-spacing:.16em;line-height:1}
.wordmark span{font-weight:700;font-size:15px;color:var(--ink)}
.wordmark em{
  font-style:normal;font-weight:600;font-size:13px;letter-spacing:.06em;color:var(--sage);
  padding:.2em .42em;border:1px solid rgba(199,163,90,.45);border-radius:5px;
}
.wordmark-lg span{font-size:27px;letter-spacing:.2em}
.wordmark-lg em{font-size:18px}

/* -------------------------------------------------------------------- boot */
#boot{
  position:fixed;inset:0;z-index:60;display:grid;place-items:center;
  background:radial-gradient(120% 90% at 50% 30%,#1e3327 0%,#0f1a13 62%,#080d0a 100%);
  transition:opacity .7s var(--ease),visibility .7s;
}
body.ready #boot{opacity:0;visibility:hidden;pointer-events:none}
.boot-inner{text-align:center;display:grid;gap:20px;justify-items:center;padding:24px}
.boot-inner p{margin:0;color:var(--ink-2);font-size:13.5px;letter-spacing:.03em}
.boot-bar{width:190px;height:2px;background:rgba(233,236,234,.14);border-radius:2px;overflow:hidden}
.boot-bar i{display:block;height:100%;width:40%;background:var(--sage);animation:slide 1.25s var(--ease) infinite}
/* The bar is 40 % of its track, so a full sweep is -100% to 150% of its OWN
   width. The old 320% carried its box 243 px past the start — clipped by the
   track's overflow, so invisible, but still a element hanging off the right of
   the viewport, which is exactly what the phone gate measures. */
@keyframes slide{0%{transform:translateX(-100%)}100%{transform:translateX(150%)}}

/* --------------------------------------------------------------------- hud */
#hud{position:fixed;inset:0;pointer-events:none;z-index:10}
#hud > *{pointer-events:auto}

#topbar{
  position:absolute;top:0;left:0;right:0;display:flex;align-items:center;gap:18px;
  padding:13px 18px 30px;pointer-events:none;
  background:linear-gradient(180deg,rgba(8,14,10,.90) 0%,rgba(8,14,10,.62) 46%,rgba(8,14,10,0) 100%);
}
#topbar > *{pointer-events:auto}
#topbar .place{
  font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:#b9bfc2;
  padding-left:18px;border-left:1px solid var(--line);
}
#crumb{
  margin-left:auto;font-size:12.5px;letter-spacing:.05em;color:var(--ink-2);
  background:var(--glass);border:1px solid var(--line);border-radius:999px;padding:7px 15px;
  backdrop-filter:blur(14px);
}
#panel-toggle{
  display:flex;width:44px;height:44px;border-radius:11px;align-items:center;justify-content:center;
  background:var(--glass);border:1px solid var(--line);backdrop-filter:blur(14px);color:var(--ink-2);
  transition:color .18s var(--ease),background .18s var(--ease);
}
#panel-toggle:hover{color:var(--ink);background:rgba(233,236,234,.14)}
#panel-toggle:focus-visible{outline:2px solid var(--sage);outline-offset:2px}
/* desktop: hide the whole rail */
@media (min-width:761px){
  body.panel-hidden #panel{opacity:0;transform:translateX(-16px);pointer-events:none}
}
#panel{transition:opacity .3s var(--ease),transform .3s var(--ease)}

/* ----------------------------------------------------------------- compass */
#compass{
  position:absolute;left:18px;top:58px;width:56px;height:56px;
  display:flex;align-items:center;justify-content:center;
  background:var(--glass);border:1px solid var(--line);border-radius:50%;
  backdrop-filter:blur(14px);box-shadow:var(--shadow);
  transition:background .18s var(--ease),border-color .18s var(--ease);
}
#compass:hover{background:var(--glass-2);border-color:rgba(233,236,234,.24)}
#compass:focus-visible{outline:2px solid var(--sage);outline-offset:3px}
#compass svg{display:block;width:56px;height:56px}
/* The rose is what turns, not the glass disc — so the bezel and its shadow stay
   put while the card spins inside it. */
#compass-rose{transform-box:fill-box;transform-origin:center;will-change:transform}
#compass .c-ring{fill:none;stroke:var(--line);stroke-width:1}
#compass .c-n{fill:var(--sage)}
#compass .c-s{fill:rgba(233,236,234,.26)}
#compass .c-lab{
  font-family:var(--sans);font-size:8.5px;font-weight:600;letter-spacing:.03em;
  fill:var(--ink-3);text-anchor:middle;dominant-baseline:central;
}
#compass .c-lab-n{fill:var(--sage)}

/* ------------------------------------------------------------------- panel */
#panel{
  /* Starts below the compass, which sits under the logo at top-left. On a phone
     the rail is a bottom sheet (top:auto), so this only applies to desktop. */
  position:absolute;left:16px;top:126px;bottom:84px;width:302px;
  display:flex;flex-direction:column;gap:11px;overflow-y:auto;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:rgba(233,236,234,.34) transparent;
  padding-right:4px;scroll-behavior:smooth;
  /* mask instead of a gradient overlay: the rail's own children scroll under
     it, so an absolutely-positioned fade would have to sit outside the
     scroller and would then cover the mode bar */
  -webkit-mask-image:linear-gradient(180deg,#000 0,#000 calc(100% - 26px),transparent 100%);
  mask-image:linear-gradient(180deg,#000 0,#000 calc(100% - 26px),transparent 100%);
}
body.panel-at-end #panel{-webkit-mask-image:none;mask-image:none}
#panel::-webkit-scrollbar{width:6px}
#panel::-webkit-scrollbar-track{background:transparent}
#panel::-webkit-scrollbar-thumb{background:rgba(233,236,234,.30);border-radius:3px}
#panel::-webkit-scrollbar-thumb:hover{background:rgba(233,236,234,.48)}
/* a scroll cue that only exists while there is more to see */
#panel-more{
  position:absolute;left:16px;width:302px;bottom:88px;height:0;pointer-events:none;
  display:flex;justify-content:center;opacity:0;transition:opacity .25s var(--ease);z-index:2;
}
body.panel-scrollable:not(.panel-at-end) #panel-more{opacity:1}
#panel-more i{
  transform:translateY(-16px);font-style:normal;font-size:10px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--ink-3);background:var(--glass);
  border:1px solid var(--line);border-radius:999px;padding:4px 10px;backdrop-filter:blur(14px);
}
.pnl{
  background:var(--glass);border:1px solid var(--line);border-radius:var(--r);
  backdrop-filter:blur(18px) saturate(1.1);box-shadow:var(--shadow);overflow:hidden;
  /* The rail is a column flex container. Without this the sections shrink to
     fit its height instead of overflowing it, so it never scrolls and the last
     house types are simply clipped away with no way to reach them. */
  flex:0 0 auto;
}
/* Accordion: collapsed by default so the model has the whole screen. */
.pnl-head{
  width:100%;min-height:46px;padding:0 14px;display:flex;align-items:center;gap:10px;
  justify-content:space-between;font-size:11px;letter-spacing:.17em;text-transform:uppercase;
  color:var(--ink-3);font-weight:600;text-align:left;
  transition:color .18s var(--ease),background .18s var(--ease);
}
.pnl-head:hover{color:var(--ink);background:rgba(233,236,234,.05)}
.pnl-head:focus-visible{outline:2px solid var(--sage);outline-offset:-2px;border-radius:var(--r)}
.pnl-head span{display:flex;gap:.6em;align-items:baseline;flex:1;min-width:0}
.pnl-head em{font-style:normal;letter-spacing:.06em;text-transform:none;font-size:11.5px;color:var(--ink-3)}
.pnl-head svg{width:15px;height:15px;flex:none;transition:transform .3s var(--ease);opacity:.75}
.pnl.is-open .pnl-head{color:var(--ink)}
.pnl.is-open .pnl-head svg{transform:rotate(180deg)}
/* 0fr -> 1fr animates an unknown content height without measuring it */
.pnl-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows .34s var(--ease)}
.pnl.is-open .pnl-body{grid-template-rows:1fr}
.pnl-body > div{overflow:hidden;min-height:0}
/* Clipped is not hidden. A collapsed section is a 0fr grid row with overflow
   hidden, so its buttons keep full-size layout boxes stacked on the headings
   below — invisible, but still focusable, still tabbable, and still colliding.
   With every section now closed by default that was 24 overlapping controls.
   visibility flips only after the 0.34 s slide, so the animation survives. */
.pnl-body > div{visibility:hidden;transition:visibility 0s linear .34s}
.pnl.is-open .pnl-body > div{visibility:visible;transition:visibility 0s}
.pnl-body > div > :first-child{margin-top:0}
.pnl-body > div{padding:0 14px}
.pnl.is-open .pnl-body > div{padding-bottom:14px}
.src{margin:12px 0 0;font-size:11px;line-height:1.55;color:var(--ink-3)}
.src b.dot-show{display:inline-block;width:7px;height:7px;border-radius:2px;background:var(--sage);margin-right:5px;vertical-align:1px}

#facts{display:grid;gap:1px;background:var(--line-2);border-radius:9px;overflow:hidden}
.fact{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:9px 11px;background:rgba(13,21,16,.74)}
.fact span{font-size:12px;color:var(--ink-2)}
.fact strong{font-size:13.5px;font-weight:650;letter-spacing:.01em;font-variant-numeric:tabular-nums}

.mini-wrap{position:relative;aspect-ratio:16/11;border-radius:9px;overflow:hidden;background:rgba(8,14,10,.6);border:1px solid var(--line-2)}
#mini{position:absolute;inset:0;width:100%;height:100%;cursor:crosshair}

.reg-group{margin-bottom:13px}
.reg-group:last-child{margin-bottom:0}
.reg-group h4{margin:0 0 7px;font-size:10.5px;letter-spacing:.11em;text-transform:uppercase;color:var(--ink-3);font-weight:600}
.reg-row{display:flex;flex-wrap:wrap;gap:5px}
.reg-chip{
  min-width:34px;height:32px;padding:0 7px;border-radius:8px;
  background:rgba(233,236,234,.06);border:1px solid var(--line-2);
  color:var(--ink-2);font-size:12.5px;font-weight:600;font-variant-numeric:tabular-nums;
  transition:background .16s var(--ease),color .16s var(--ease),border-color .16s var(--ease),transform .16s var(--ease);
}
.reg-chip:hover{background:rgba(233,236,234,.14);color:var(--ink);transform:translateY(-1px)}
.reg-chip:focus-visible{outline:2px solid var(--sage);outline-offset:2px}
.reg-chip.is-show{border-color:rgba(199,163,90,.5);color:#e5cf9f}
.reg-chip.is-on{background:var(--sage);border-color:var(--sage);color:#20190a}

/* --------------------------------------------------------------- unit card */
#unit-card{
  position:absolute;right:16px;bottom:96px;width:328px;max-width:calc(100vw - 32px);
  background:var(--glass-2);border:1px solid var(--line);border-radius:var(--r);
  padding:var(--pad);backdrop-filter:blur(18px) saturate(1.1);box-shadow:var(--shadow);
  animation:cardIn .42s var(--ease) both;
  /* The card grows upward from its bottom edge. Unbounded, a long one — a
     six-room type, or a stand carrying the block-L disclosure — pushes its own
     header up behind #sunbar (right:16px, top:62px, 44px tall). Cap it, and
     scroll only the middle: capping the card alone would carry the two actions
     off the bottom instead, which is worse than the problem. */
  max-height:calc(100vh - 220px);
  display:flex;flex-direction:column;
}
.uc-scroll{overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1 1 auto}
#unit-card .uc-acts{flex:none}
@keyframes cardIn{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
/* The way out of a selection. Sits over the card's own padding rather than in
   the header row, so a long price never squeezes it, and it clears the 34px
   price block on the right by living above it. */
.uc-close,#panel-close{
  width:34px;height:34px;flex:none;
  display:grid;place-items:center;border-radius:9px;
  color:var(--ink-2);background:transparent;border:0;cursor:pointer;
  transition:color .18s var(--ease),background .18s var(--ease);
}
.uc-close svg,#panel-close svg{width:16px;height:16px}
.uc-close:hover,#panel-close:hover{color:var(--ink);background:rgba(233,236,234,.14)}
.uc-close:focus-visible,#panel-close:focus-visible{outline:2px solid var(--sage);outline-offset:2px}

/* In the header ROW, not floating over it. Overlaying the corner pushed the
   selling price off the card's right edge and left the header looking
   squeezed; as a flex child the price keeps its alignment and the close still
   reads as the top-right corner because it hangs into the card's padding. */
.uc-close{align-self:flex-start;margin:-6px -6px 0 2px}

/* The panel DOES scroll, so its close is sticky, not absolute: absolute inside
   a scroller rides the content out of view and then sits under it, which is
   how the QA harness first caught this. Sticky keeps it against the panel's
   own top edge at every breakpoint, without hard-coding the rail's width. */
#panel-close{
  position:sticky;top:0;align-self:flex-end;z-index:3;
  background:var(--glass);border:1px solid var(--line);backdrop-filter:blur(14px);
  margin-bottom:-6px;
}

.uc-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;padding-bottom:13px;border-bottom:1px solid var(--line-2)}
.uc-no{display:flex;align-items:baseline;gap:8px}
.uc-no-label{font-size:11px;letter-spacing:.17em;text-transform:uppercase;color:var(--ink-3)}
.uc-no strong{font-size:34px;font-weight:680;line-height:.9;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.uc-price{text-align:right;display:grid;gap:1px}
.uc-price span{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3)}
.uc-price strong{font-size:16px;font-weight:650;color:var(--sage);font-variant-numeric:tabular-nums;white-space:nowrap}
.uc-facts{display:grid;grid-template-columns:auto 1fr;gap:0;margin:12px 0 0;font-size:12.5px}
.uc-facts dt{color:var(--ink-3);padding:5px 14px 5px 0;white-space:nowrap}
.uc-facts dd{margin:0;padding:5px 0;text-align:right;color:var(--ink)}
.uc-acts{display:flex;gap:8px;margin-top:14px}
.btn{
  flex:1;height:44px;border-radius:10px;font-size:13px;font-weight:600;letter-spacing:.01em;
  background:rgba(233,236,234,.08);border:1px solid var(--line);color:var(--ink);
  transition:background .18s var(--ease),transform .18s var(--ease),box-shadow .18s var(--ease);
}
.btn:hover{background:rgba(233,236,234,.16);transform:translateY(-1px)}
.btn:focus-visible{outline:2px solid var(--sage);outline-offset:2px}
.btn-primary{background:var(--sage);border-color:var(--sage);color:#20190a;box-shadow:0 0 0 0 rgba(199,163,90,.5)}
.btn-primary:hover{background:#d8b671;box-shadow:0 0 22px -4px rgba(199,163,90,.55)}
/* The show-house action is an <a>, not a <button> — it opens a different site,
   so middle-click and "open in new tab" have to work. Anchors do not centre
   their own content or drop their underline the way the button did. */
a.btn{display:flex;align-items:center;justify-content:center;text-align:center;
  text-decoration:none;padding:0 12px;line-height:1.25}
.btn-quiet{display:flex;align-items:center;justify-content:center;text-align:center;
  color:var(--ink-3);background:transparent;border-style:dashed;cursor:default;padding:0 12px;
  line-height:1.25;font-size:12px}
.btn-quiet:hover{background:transparent;transform:none}
.uc-note{margin:11px 0 0;font-size:11px;line-height:1.5;color:var(--ink-3)}

/* ------------------------------------------------------------------ notes */
/* Admin notes on a house. Reads are gated as well as writes — this site is
   public and a note names a buyer — so the default state is a lock, not a list. */
.uc-notes{margin:14px 0 0;padding:12px 0 0;border-top:1px solid var(--line-2)}
.notes-unlock{
  width:100%;min-height:44px;border-radius:10px;
  border:1px dashed var(--line);background:transparent;color:var(--ink-2);
  font-size:12px;font-weight:600;letter-spacing:.02em;
  transition:background .18s var(--ease),color .18s var(--ease);
}
.notes-unlock:hover{background:rgba(233,236,234,.08);color:var(--ink)}
.notes-unlock:focus-visible{outline:2px solid var(--sage);outline-offset:2px}

.notes-head{display:flex;align-items:baseline;justify-content:space-between;margin:0 0 9px}
.notes-head h4{margin:0;font-size:12px;font-weight:680;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-2)}
.notes-n,.notes-load{font-size:11px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.notes-empty{margin:0 0 10px;font-size:11.5px;color:var(--ink-3)}
/* The locked state must not look like an empty one — see renderNotes(). */
.notes-lock{
  font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--ink-3);border:1px solid var(--line);border-radius:999px;padding:2px 7px;
}
.notes-locked{margin:0 0 9px;font-size:11.5px;line-height:1.5;color:var(--ink-2)}
.notes-err{margin:8px 0 0;font-size:11.5px;color:#e8a0a0}
.notes-why{margin:9px 0 0;font-size:10.5px;line-height:1.5;color:var(--ink-3)}

.note-list{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:7px}
.note{padding:9px 10px;border-radius:9px;background:rgba(233,236,234,.06);border:1px solid var(--line-2)}
/* A note is free text someone typed. Long unbroken strings (a URL, a reference
   number) must wrap rather than push the card into horizontal scroll. */
.note-body{margin:0;font-size:12.5px;line-height:1.5;color:var(--ink);
  white-space:pre-wrap;overflow-wrap:anywhere}
.note-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:7px 0 0}
.note-foot span{font-size:10.5px;color:var(--ink-3)}
.note-del{
  min-height:32px;padding:0 9px;border-radius:7px;flex:0 0 auto;
  border:1px solid var(--line-2);background:transparent;color:var(--ink-3);
  font-size:11px;font-weight:600;
}
.note-del:hover{color:#e8a0a0;border-color:rgba(232,160,160,.45)}
.note-del:focus-visible{outline:2px solid var(--sage);outline-offset:2px}
.note-del[disabled]{opacity:.5}

.note-new,.notes-gate{display:grid;gap:8px}
.note-who,.note-text,.notes-gate input{
  width:100%;padding:9px 10px;border-radius:9px;
  background:rgba(0,0,0,.30);border:1px solid var(--line-2);color:var(--ink);
  font:inherit;font-size:12.5px;
}
/* Sunk, not raised — every other rail surface is lifted, so an inset well is
   what marks a thing as somewhere you type. Same call as the go-to-a-home field. */
.note-text{resize:vertical;min-height:56px;line-height:1.45}
.note-who::placeholder,.note-text::placeholder{color:var(--ink-3)}
.note-who:focus,.note-text:focus,.notes-gate input:focus{
  outline:none;border-color:rgba(199,163,90,.55);background:rgba(0,0,0,.38)}
.note-acts{display:flex}
.note-save{flex:1}
.notes-gate label{font-size:11px;font-weight:600;letter-spacing:.03em;color:var(--ink-2)}
.notes-gate input{min-height:44px}

/* ----------------------------------------------------------- go to a home */
.vh{
  position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;
}
#find-wrap{display:flex;flex-direction:column;gap:6px;flex:none}
/* Same micro-label register as the scroll cue, so it belongs to the rail. */
.find-label{
  font-size:10px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink-2);padding-left:2px;
}
#find{display:flex;gap:6px;flex:none}
.find-field{position:relative;flex:1;min-width:0;display:flex}
.find-icon{
  position:absolute;left:12px;top:50%;transform:translateY(-50%);
  width:15px;height:15px;color:var(--ink-3);pointer-events:none;
  transition:color .18s var(--ease);
}
.find-field:focus-within .find-icon{color:var(--sage)}
#find-no{
  flex:1;min-width:0;height:44px;padding:0 13px 0 35px;border-radius:11px;
  /* Sunk, not raised: every other glass surface in the rail is lifted off the
     model, so an inset well is what marks this one as somewhere you type. */
  background:rgba(0,0,0,.30);border:1px solid rgba(233,236,234,.22);color:var(--ink);
  font:inherit;font-size:13px;letter-spacing:.01em;font-variant-numeric:tabular-nums;
  transition:border-color .18s var(--ease),background .18s var(--ease);
}
/* ⚠️ 16px on touch, and it is not a style choice.
   Safari on iOS force-zooms the whole page whenever a focused input is under
   16px — so tapping this field at 13px threw the viewport in, pushed the Go
   button off-screen and left no visible way to submit. Luke, 2026-08-01: "it
   zooms in... I can't see where I need to go to push Enter." The page has no
   maximum-scale lock (that would block pinch-zoom on a model people need to
   zoom), so the only real fix is to meet the threshold. Desktop keeps 13px. */
@media (pointer: coarse){
  #find-no{font-size:16px}
}
#find-no::placeholder{color:var(--ink-2)}
#find-no:hover{background:rgba(0,0,0,.36);border-color:rgba(233,236,234,.30)}
#find-no:focus{outline:none;border-color:var(--sage);background:rgba(0,0,0,.36)}
#find-go{
  flex:none;height:44px;padding:0 17px;border-radius:11px;
  background:rgba(233,236,234,.08);border:1px solid var(--line);color:var(--ink-2);
  font-size:13px;font-weight:600;
  transition:background .18s var(--ease),color .18s var(--ease);
}
#find-go:hover{background:rgba(233,236,234,.16);color:var(--ink)}
#find-go:focus-visible{outline:2px solid var(--sage);outline-offset:2px}
#find-msg{
  margin:0;flex:none;min-height:0;font-size:11px;line-height:1.5;color:var(--ink-3);
}
#find-msg:not(:empty){margin:7px 0 0}
#find-msg[data-state="err"]{color:#e3a08a}
#find-msg[data-state="ok"]{color:var(--sage)}

/* ------------------------------------------------------------------ parks */
.pk-list{display:grid;gap:3px}
.pk-row{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  height:44px;padding:0 11px;border-radius:9px;text-align:left;
  background:var(--glass);border:1px solid var(--line);
  transition:background .16s var(--ease),border-color .16s var(--ease);
}
.pk-row:hover{background:rgba(233,236,234,.11);border-color:rgba(233,236,234,.24)}
.pk-row:focus-visible{outline:2px solid var(--sage);outline-offset:2px}
.pk-id{font-size:12.5px;font-weight:600;color:var(--ink)}
.pk-ha{font-size:11.5px;color:var(--sage);font-variant-numeric:tabular-nums;white-space:nowrap}
#parks .src{margin-top:10px}
.pnl-head em#parks-count{font-variant-numeric:tabular-nums}

/* -------------------------------------------------------- bond documents */
.bd-head{display:flex;align-items:center;gap:12px;justify-content:space-between}
.bd-head b{font-size:13.5px;font-weight:650;color:var(--ink);display:block}
.bd-head span{font-size:11px;color:var(--ink-3);letter-spacing:.04em}
.bd-prog{width:74px;height:4px;border-radius:999px;background:rgba(233,236,234,.14);overflow:hidden;flex:none}
/* scaleX, not width: this bar sits over a live WebGL canvas, and animating a
   layout property forces a layout pass inside the render loop */
.bd-prog i{
  display:block;height:100%;width:100%;background:var(--sage);
  transform-origin:left center;transition:transform .3s var(--ease);
}
.bd-controls{display:flex;gap:6px;margin:11px 0 0;flex-wrap:wrap}
#bd-bank{
  flex:1;min-width:130px;height:38px;padding:0 10px;border-radius:9px;font:inherit;font-size:12.5px;
  background:var(--glass);border:1px solid var(--line);color:var(--ink);
}
#bd-bank:focus{outline:none;border-color:var(--sage)}
.bd-track{display:flex;gap:3px;background:var(--glass);border:1px solid var(--line);border-radius:9px;padding:3px}
.bd-track button{
  height:32px;padding:0 11px;border-radius:6px;font-size:11.5px;font-weight:600;color:var(--ink-3);
  transition:background .18s var(--ease),color .18s var(--ease);
}
.bd-track button:hover{color:var(--ink)}
.bd-track button.is-on{background:rgba(233,236,234,.14);color:var(--ink)}
.bd-list{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:2px}
.bd-list label{
  display:flex;gap:10px;align-items:flex-start;padding:8px 9px;border-radius:8px;cursor:pointer;
  transition:background .16s var(--ease);
}
.bd-list label:hover{background:rgba(233,236,234,.05)}
.bd-list input{
  appearance:none;-webkit-appearance:none;flex:none;
  width:18px;height:18px;margin-top:1px;border-radius:5px;cursor:pointer;
  border:1px solid rgba(233,236,234,.32);background:transparent;
  transition:background .16s var(--ease),border-color .16s var(--ease);
}
.bd-list input:checked{
  background:var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4 6.4 11.2 12.5 5' fill='none' stroke='%2320190a' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
  border-color:var(--sage);
}
.bd-list input:focus-visible{outline:2px solid var(--sage);outline-offset:2px}
.bd-list b{display:block;font-size:12.5px;font-weight:550;color:var(--ink);line-height:1.35}
.bd-list i{display:block;font-style:normal;font-size:11px;color:var(--ink-3);margin-top:2px;line-height:1.45}
.bd-list input:checked ~ span b{color:var(--ink-3);text-decoration:line-through;text-decoration-color:rgba(233,236,234,.3)}
.bd-foot{margin:11px 0 0}
#bd-clear{
  height:34px;padding:0 12px;border-radius:8px;font-size:11.5px;font-weight:600;color:var(--ink-3);
  background:transparent;border:1px solid var(--line);
  transition:color .18s var(--ease),background .18s var(--ease);
}
#bd-clear:hover{color:var(--ink);background:rgba(233,236,234,.08)}
#bd-clear:focus-visible{outline:2px solid var(--sage);outline-offset:2px}
.pnl-head em#bond-count{font-variant-numeric:tabular-nums}
@media (pointer:coarse){
  .bd-list label{padding:11px 9px}      /* the LABEL is the tap target, not the box */
  .bd-list input{width:22px;height:22px}
  .bd-track button{height:44px}
  #bd-bank{height:44px}
  #bd-clear{height:44px}
}
/* Surveyor's disclosure — shown only on blocks where the general plan
   contradicts its own area schedule. Deliberately louder than .uc-note: it
   qualifies a legal figure, so it must not read as boilerplate. */
.uc-flag{
  margin:12px 0 0;padding:9px 11px;font-size:11px;line-height:1.55;color:var(--ink-2);
  background:rgba(199,163,90,.07);border:1px solid rgba(199,163,90,.28);
  border-radius:8px;
}
.uc-flag b{color:var(--sage);font-weight:620;display:block;margin-bottom:3px}

/* ------------------------------------------------------------------- modes */
#modes{
  position:absolute;left:16px;bottom:calc(20px + var(--safe-b));display:flex;gap:5px;
  background:var(--glass);border:1px solid var(--line);border-radius:13px;padding:5px;
  backdrop-filter:blur(18px);box-shadow:var(--shadow);
}
#modes button{
  display:flex;align-items:center;gap:8px;height:44px;padding:0 15px;border-radius:9px;
  font-size:12.5px;font-weight:600;color:var(--ink-2);
  transition:background .18s var(--ease),color .18s var(--ease);
}
#modes button svg{width:19px;height:19px;flex:none}
#modes button:hover{background:rgba(233,236,234,.09);color:var(--ink)}
#modes button:focus-visible{outline:2px solid var(--sage);outline-offset:-2px}
#modes button.is-on{background:rgba(233,236,234,.14);color:var(--ink)}

/* ------------------------------------------------------------------ flyby */
/* Sits centred above the mode bar so it clears #modes bottom-left and
   #footbar bottom-right at every width. Only visible during the shot. */
#flybar{
  position:absolute;left:50%;transform:translateX(-50%);
  bottom:calc(20px + var(--safe-b));z-index:6;
  display:flex;align-items:center;gap:12px;padding:5px 5px 5px 15px;
  background:var(--glass);border:1px solid var(--line);border-radius:13px;
  backdrop-filter:blur(18px);box-shadow:var(--shadow);
}
#flybar[hidden]{display:none}
#fly-label{font-size:12.5px;font-weight:600;color:var(--ink-2);white-space:nowrap}
#fly-prog{
  width:74px;height:3px;border-radius:999px;flex:none;
  background:rgba(233,236,234,.16);overflow:hidden;
}
/* Driven every frame for 38 s while the scene renders behind it, so it must be
   a compositor-only property. Writing style.width here put a layout pass inside
   the render loop on every single frame of the hero shot. */
#fly-prog i{
  display:block;height:100%;width:100%;border-radius:999px;background:var(--sage);
  transform-origin:left center;transform:scaleX(0);will-change:transform;
}
#fly-stop{
  height:44px;padding:0 16px;border-radius:9px;font-size:12.5px;font-weight:600;
  color:var(--ink-2);background:rgba(233,236,234,.08);border:1px solid var(--line);
  transition:background .18s var(--ease),color .18s var(--ease);
}
#fly-stop:hover{background:rgba(233,236,234,.16);color:var(--ink)}
#fly-stop:focus-visible{outline:2px solid var(--sage);outline-offset:-2px}
/* The hero shot is the point of the mode — clear the reading chrome out of it,
   but never the mode bar, or there is no way back out. */
body[data-mode="flyby"] #panel,
body[data-mode="flyby"] #unit-card,
body[data-mode="flyby"] #compass,
body[data-mode="flyby"] #hover-chip{display:none}

#sunbar{
  position:absolute;right:16px;top:62px;display:flex;gap:3px;
  background:var(--glass);border:1px solid var(--line);border-radius:11px;padding:4px;
  backdrop-filter:blur(18px);box-shadow:var(--shadow);
}
#sunbar button{
  height:34px;padding:0 13px;border-radius:8px;font-size:11.5px;font-weight:600;letter-spacing:.03em;color:var(--ink-3);
  transition:background .18s var(--ease),color .18s var(--ease);
}
#sunbar button:hover{color:var(--ink)}
#sunbar button.is-on{background:rgba(233,236,234,.13);color:var(--ink)}
.sb-sep{width:1px;align-self:stretch;margin:5px 3px;background:var(--line)}
#ctx-toggle.is-on{background:rgba(199,163,90,.22);color:#e5cf9f}

#hover-chip{
  position:absolute;left:50%;top:66px;transform:translateX(-50%);
  background:var(--glass);border:1px solid var(--line);border-radius:999px;padding:6px 14px;
  font-size:12px;font-weight:600;letter-spacing:.05em;backdrop-filter:blur(14px);
}

/* -------------------------------------------------------------- walk chrome */
#walkbar,#reticle{display:none}
body[data-mode="walk"] #walkbar,body[data-mode="interior"] #walkbar{
  display:flex;position:absolute;left:50%;bottom:calc(20px + var(--safe-b));transform:translateX(-50%);
  align-items:center;gap:14px;max-width:calc(100vw - 24px);
  background:var(--glass);border:1px solid var(--line);border-radius:13px;padding:9px 9px 9px 16px;
  backdrop-filter:blur(18px);box-shadow:var(--shadow);
}
body.is-locked #reticle{
  display:block;position:absolute;left:50%;top:50%;width:5px;height:5px;margin:-2.5px 0 0 -2.5px;
  border-radius:50%;background:rgba(255,255,255,.62);box-shadow:0 0 0 1.5px rgba(0,0,0,.35);
}
body.needs-lock::after{
  content:"Click to look around";
  position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:12;
  padding:11px 20px;border-radius:999px;font-size:13px;font-weight:600;letter-spacing:.02em;
  background:var(--glass);border:1px solid var(--line);backdrop-filter:blur(14px);
  color:var(--ink);pointer-events:none;
}
#floor-pill{font-size:12.5px;font-weight:600;white-space:nowrap}
.wk-keys{font-size:11px;color:var(--ink-3);white-space:nowrap}
.wk-keys b{color:var(--ink-2);font-weight:650}
#exit-walk{
  height:36px;padding:0 15px;border-radius:9px;font-size:12.5px;font-weight:600;
  background:rgba(233,236,234,.1);border:1px solid var(--line);white-space:nowrap;
}
#exit-walk:hover{background:rgba(233,236,234,.18)}
body[data-mode="walk"] #panel,body[data-mode="interior"] #panel,
body[data-mode="walk"] #unit-card,body[data-mode="interior"] #unit-card,
body[data-mode="walk"] #modes,body[data-mode="interior"] #modes,
body[data-mode="walk"] #hover-chip,body[data-mode="interior"] #hover-chip{display:none}

/* ------------------------------------------------------------------ footer */
#footbar{
  position:absolute;right:16px;bottom:calc(20px + var(--safe-b));display:flex;align-items:center;gap:12px;
}
#footbar button{
  height:34px;padding:0 14px;border-radius:9px;font-size:11.5px;font-weight:600;color:var(--ink-2);
  background:var(--glass);border:1px solid var(--line);backdrop-filter:blur(14px);
}
#footbar button:hover{color:var(--ink)}
#stats{
  font-size:10.5px;letter-spacing:.04em;color:var(--ink-2);font-variant-numeric:tabular-nums;white-space:nowrap;
  background:var(--glass);border:1px solid var(--line);border-radius:8px;padding:7px 11px;backdrop-filter:blur(14px);
}
body.has-card #footbar{bottom:calc(20px + var(--safe-b))}
body[data-mode="walk"] #footbar,body[data-mode="interior"] #footbar,
body[data-mode="walk"] #compass,body[data-mode="interior"] #compass,
body[data-mode="walk"] #sunbar,body[data-mode="interior"] #sunbar{display:none}

/* -------------------------------------------------------------------- help */
#help{position:absolute;inset:0;display:grid;place-items:center;background:rgba(6,11,8,.66);backdrop-filter:blur(4px);padding:20px}
#help[hidden]{display:none}
#unit-card[hidden]{display:none}
#hover-chip[hidden]{display:none}
.help-box{
  position:relative;max-width:470px;width:100%;background:var(--glass-2);border:1px solid var(--line);
  border-radius:16px;padding:26px;backdrop-filter:blur(20px);box-shadow:var(--shadow);
  animation:cardIn .35s var(--ease) both;max-height:86vh;overflow:auto;
}
.help-box h2{margin:0 0 16px;font-size:17px;font-weight:650;letter-spacing:-.01em}
.help-box dl{display:grid;grid-template-columns:auto 1fr;gap:0;margin:0;font-size:13px}
.help-box dt{color:var(--sage);font-weight:600;padding:7px 16px 7px 0;white-space:nowrap}
.help-box dd{margin:0;padding:7px 0;color:var(--ink-2)}
.help-box dd b{color:var(--ink)}
.help-note{margin:18px 0 0;padding-top:15px;border-top:1px solid var(--line-2);font-size:11.5px;line-height:1.6;color:var(--ink-3)}
#help-close{position:absolute;top:10px;right:10px;width:34px;height:34px;border-radius:8px;font-size:20px;line-height:1;color:var(--ink-3)}
#help-close:hover{background:rgba(233,236,234,.1);color:var(--ink)}

/* ------------------------------------------------------------------ mobile */
@media (max-width:900px){
  #panel{width:270px}
  #unit-card{width:300px}
  .wk-keys{display:none}
}
@media (max-width:760px){
  #panel-toggle{display:flex}
  #topbar .place{display:none}
  #panel{
    left:0;right:0;top:auto;bottom:0;width:100%;max-height:64vh;
    padding:14px 14px calc(16px + var(--safe-b));gap:10px;
    background:linear-gradient(180deg,rgba(14,16,18,0),rgba(14,16,18,.9) 12%);
    transform:none;transition:transform .42s var(--ease);
    -webkit-mask-image:none;mask-image:none;
  }
  /* The button toggles `panel-hidden`; the sheet used to key off `panel-open`,
     which nothing ever set, so on a phone the rail sat permanently off-screen
     and none of the house types could be reached at all. */
  /* Off-screen is not the same as gone: the sheet slid down but its close button
     stayed interactive and focusable, so it still collided with the mode bar.
     visibility flips only once the slide has finished, so the animation survives. */
  body.panel-hidden #panel{transform:translateY(102%);pointer-events:none;visibility:hidden;
    transition:transform .42s var(--ease),visibility 0s linear .42s}
  body:not(.panel-hidden) #modes,
  body:not(.panel-hidden) #footbar,
  body:not(.panel-hidden) #unit-card{opacity:0;pointer-events:none}
  #panel-more{display:none}
  #unit-card{
    left:12px;right:12px;bottom:calc(84px + var(--safe-b));width:auto;max-width:none;
    /* The card grows upward from the bottom. Unbounded, a long card slides its
       own header — the selling price — up behind #sunbar (right:12px, top:68px,
       44px tall). Cap it so the top edge always clears the sunbar.
       The cap alone is not enough: capping the CARD scrolled its two actions
       out of reach at the bottom. Only the middle scrolls; the price header and
       the actions are pinned — see the base rule. */
    max-height:calc(100vh - 212px - var(--safe-b));
  }
  /* the logo takes width the topbar did not have to give: without this the
     hamburger is squeezed to 34px at 360, under the 44px minimum */
  #topbar{gap:10px}
  .brand{gap:7px}
  #topbar .mark{width:22px;height:22px}
  #modes{left:12px;right:12px;bottom:calc(14px + var(--safe-b));justify-content:space-between}
  #modes button{flex:1;justify-content:center;padding:0 8px}
  #modes button span{font-size:11.5px}
  /* clear the full-width mode bar (44px + 5px padding + border, at bottom 14px) */
  #flybar{
    left:12px;right:12px;transform:none;justify-content:space-between;
    bottom:calc(80px + var(--safe-b));
  }
  #fly-prog{flex:1;width:auto;margin-right:2px}
  /* The panel sheet dims #modes when it is up. During the flyby the sheet is
     display:none but the body class is unchanged, so without this the only
     way out of a 38 s shot would be invisible on a phone. */
  body[data-mode="flyby"] #modes{opacity:1;pointer-events:auto}
  #footbar{display:none}
  #sunbar{right:12px;top:68px}
  #sunbar button{padding:0 10px;font-size:11px}
  #crumb{font-size:11.5px;padding:6px 12px}
  .uc-no strong{font-size:30px}
}
/* Touch: every chip has to clear 44px, so the register goes to a fixed grid. */
@media (pointer:coarse){
  .reg-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:6px}
  .reg-chip{min-width:44px;width:100%;height:44px;font-size:13.5px}
  #sunbar button{height:44px}
  #footbar button{height:44px}
  #help-close{width:44px;height:44px}
  /* Luke's hard minimum, and tools/phone_qa.py fails the build below it. */
  .uc-close,#panel-close{width:44px;height:44px}
  .uc-close{margin:-10px -10px 0 2px}
  #exit-walk{height:44px}
}
@media (max-width:400px){
  #modes button svg{display:none}
  .wordmark span{font-size:13.5px}
  /* Luke asked for the mark back in the phone corner (2026-07-30). It was
     dropped because at 360 there was no room for both it and a 44px hamburger.
     The width comes from #crumb instead — the breadcrumb duplicates what the
     mode bar at the foot already shows, so it is the cheaper thing to lose. */
  #topbar .mark{display:block;width:20px;height:20px}
  #crumb{display:none}
}

/* ------------------------------------------------------------------- film */
body.film-mode #hud,body.film-mode #boot{display:none!important}
body.film-mode canvas#view{cursor:default}
#film-titles{position:fixed;inset:0;pointer-events:none;z-index:20}
/* Scrim: the model is bright and the type sits low, so legibility can't be left
   to the frame behind it. */
#film-titles::before{
  content:"";position:absolute;left:0;right:0;bottom:0;height:42%;
  background:linear-gradient(0deg,rgba(8,10,12,.66) 0%,rgba(8,10,12,.34) 42%,rgba(8,10,12,0) 100%);
}
.ft{position:absolute;left:6.2%;color:#fff;text-shadow:0 2px 22px rgba(0,0,0,.7),0 1px 3px rgba(0,0,0,.55)}
.ft-brand{
  bottom:12.5%;display:flex;align-items:baseline;gap:.5em;
  font-weight:700;font-size:clamp(34px,4.6vw,76px);letter-spacing:.2em;line-height:1;
}
.ft-brand em{
  font-style:normal;font-weight:600;font-size:.44em;letter-spacing:.08em;color:#cfe0c2;
  border:2px solid rgba(207,224,194,.6);border-radius:.28em;padding:.16em .34em;
}
.ft-place{
  bottom:9%;font-size:clamp(12px,1.25vw,20px);letter-spacing:.34em;text-transform:uppercase;
  color:rgba(255,255,255,.9);
}
/* Three type levels on every card: rule, line, facts. */
.ft-hero,.ft-stat,.ft-end{display:grid;gap:.36em;max-width:min(58ch,74vw)}
.ft-hero u,.ft-stat u,.ft-end u{
  display:block;width:clamp(34px,3.4vw,64px);height:2px;background:#cfe0c2;
  margin-bottom:.34em;border-radius:2px;
}
.ft-hero{bottom:10.5%}
.ft-hero b{font-weight:680;font-size:clamp(28px,3.55vw,62px);letter-spacing:-.018em;line-height:1.04}
.ft-hero i{
  font-style:normal;font-size:clamp(12px,1.32vw,22px);letter-spacing:.2em;text-transform:uppercase;
  color:rgba(255,255,255,.94);
}
.ft-stat{bottom:9%}
.ft-stat b{font-weight:650;font-size:clamp(20px,2.3vw,40px);letter-spacing:-.008em;line-height:1.1}
.ft-stat i{
  font-style:normal;font-size:clamp(11px,1.08vw,18px);letter-spacing:.15em;text-transform:uppercase;
  color:rgba(255,255,255,.92);line-height:1.55;
}
.ft-end{bottom:11.5%}
.ft-end b{font-weight:700;font-size:clamp(30px,3.7vw,64px);letter-spacing:-.02em;line-height:1}
.ft-end i{
  font-style:normal;font-size:clamp(13px,1.42vw,24px);letter-spacing:.1em;
  color:rgba(255,255,255,.88);
}
.ft-end s{
  text-decoration:none;font-size:clamp(11px,1.12vw,18px);letter-spacing:.24em;text-transform:uppercase;
  color:#cfe0c2;
}

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


/* --------------------------------------------------------------- type cards */
/* One card per house type. Area and price are the two things a buyer scans
   for, so they get the size; everything else is supporting. */
#types{display:grid;gap:7px}
.type-card{
  width:100%;text-align:left;display:grid;gap:8px;padding:11px 12px;border-radius:11px;
  background:rgba(233,236,234,.05);border:1px solid var(--line-2);
  transition:background .18s var(--ease),border-color .18s var(--ease),transform .18s var(--ease);
}
.type-card:hover{background:rgba(233,236,234,.11);transform:translateY(-1px)}
.type-card:focus-visible{outline:2px solid var(--sage);outline-offset:2px}
.type-card.is-on{background:rgba(199,163,90,.14);border-color:rgba(199,163,90,.48)}
.tc-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.tc-area{font-size:17px;font-weight:680;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.tc-area sup{font-size:10px;font-weight:600;vertical-align:super;margin-left:1px}
.tc-price{font-size:13px;font-weight:650;color:var(--sage);font-variant-numeric:tabular-nums;white-space:nowrap}
.tc-meta{display:flex;flex-wrap:wrap;gap:5px}
.tc-tag{
  font-size:10.5px;letter-spacing:.04em;color:var(--ink-2);
  background:rgba(233,236,234,.07);border:1px solid var(--line-2);
  border-radius:5px;padding:2.5px 6px;white-space:nowrap;
}
.tc-count{font-size:10.5px;color:var(--ink-3);letter-spacing:.03em}

/* Show-house link — a footer strip fused to the bottom of its type card, so the
   two read as one object rather than a card with a stray link under it. The
   card keeps its own hover lift; the strip does not move independently of it. */
.tc-shell{display:grid}
.type-card.has-show{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-color:transparent}
.tc-show{
  display:flex;align-items:center;gap:7px;
  padding:9px 12px;min-height:44px;      /* 44 px: it is a tap target on a phone */
  border:1px solid var(--line-2);border-top:0;
  border-radius:0 0 11px 11px;
  background:rgba(233,236,234,.05);
  font-size:11.5px;font-weight:600;letter-spacing:.02em;
  color:var(--sage);text-decoration:none;
  transition:background .18s var(--ease),color .18s var(--ease);
}
.tc-show:hover{background:rgba(199,163,90,.13)}
.tc-show:focus-visible{outline:2px solid var(--sage);outline-offset:2px}
.tc-show-i{width:14px;height:14px;flex:0 0 auto}
/* The 77 has no Kiron drawing, so it has no show house. Say so plainly rather
   than link it somewhere that is not its house. */
.tc-show.is-none{color:var(--ink-3);cursor:default;font-weight:500}
.tc-show.is-none:hover{background:rgba(233,236,234,.05)}

/* room list on the unit card */
.uc-rooms{display:grid;gap:1px;margin:12px 0 0;background:var(--line-2);border-radius:8px;overflow:hidden}
.uc-room{display:flex;justify-content:space-between;gap:10px;padding:6px 10px;background:rgba(13,21,16,.72);font-size:11.5px}
.uc-room span{color:var(--ink-2)}
.uc-room b{font-weight:600;font-variant-numeric:tabular-nums}
.uc-spec{margin:12px 0 0;display:flex;flex-wrap:wrap;gap:5px}
.uc-spec i{
  font-style:normal;font-size:10.5px;color:var(--ink-2);
  background:rgba(233,236,234,.07);border:1px solid var(--line-2);border-radius:5px;padding:2.5px 6px;
}
.uc-spec i.opt{color:var(--ink-3);border-style:dashed}

/* an honesty strip, so nothing on screen overstates what is known */
.flag{
  margin:12px 0 0;padding:9px 11px;border-radius:9px;font-size:11px;line-height:1.55;
  color:#e5cf9f;background:rgba(199,163,90,.10);border:1px solid rgba(199,163,90,.28);
}
.flag b{color:#f0e0bb}

/* ================================================================ availability
   Stock marking: the status band on the home card, the Availability panel
   section, the erf register, and the code gate. */

/* ------------------------------------------- status band on the home card */
.uc-status{
  display:flex;align-items:center;gap:9px;flex-wrap:wrap;
  padding:10px 16px;border-top:1px solid var(--line-2);border-bottom:1px solid var(--line-2);
  background:rgba(0,0,0,.16);
}
.uc-status b{font-size:12.5px;letter-spacing:.06em;text-transform:uppercase}
.uc-status.is-free b{color:var(--free)}
.uc-status.is-taken b{color:var(--taken)}
.uc-dot{width:9px;height:9px;border-radius:50%;flex:none}
.uc-status.is-free .uc-dot{background:var(--free);box-shadow:0 0 0 3px rgba(122,196,142,.18)}
.uc-status.is-taken .uc-dot{background:var(--taken);box-shadow:0 0 0 3px rgba(206,84,68,.20)}
.uc-erf{font-size:11.5px;letter-spacing:.10em;text-transform:uppercase;color:var(--ink-3)}
.uc-mark{
  /* 44px, not 36: it is a primary action on a phone and Luke's tap-target floor
     is a hard 44. phone_qa.py fails the build below it. */
  margin-left:auto;min-height:44px;padding:8px 14px;border-radius:9px;
  font-size:12.5px;letter-spacing:.03em;color:var(--ink);
  background:rgba(233,236,234,.10);border:1px solid var(--line);
  transition:background .18s var(--ease),border-color .18s var(--ease);
}
.uc-mark:hover{background:rgba(233,236,234,.18);border-color:rgba(233,236,234,.26)}
.uc-mark:focus-visible{outline:2px solid var(--sage);outline-offset:2px}
.uc-status.is-taken .uc-mark{color:var(--ink-2)}

/* -------------------------------------------------- Availability panel bits */
#avail-filter,#around-filter{display:flex;gap:6px;margin-bottom:9px}
#avail-filter button,#around-filter button{
  flex:1;min-height:44px;padding:8px 6px;border-radius:10px;
  font-size:12.5px;letter-spacing:.03em;color:var(--ink-2);
  background:rgba(0,0,0,.22);border:1px solid var(--line-2);
  transition:color .18s var(--ease),background .18s var(--ease),border-color .18s var(--ease);
}
#avail-filter button:hover,#around-filter button:hover{color:var(--ink);background:rgba(233,236,234,.10)}
#avail-filter button.is-on,#around-filter button.is-on{
  color:var(--ink);background:rgba(199,163,90,.16);border-color:rgba(199,163,90,.45);
}
#avail-filter button:focus-visible,#around-filter button:focus-visible{outline:2px solid var(--sage);outline-offset:2px}
#avail-register{
  display:block;width:100%;min-height:44px;padding:11px 14px;border-radius:10px;
  font-size:13px;letter-spacing:.03em;color:var(--ink);text-align:left;
  background:rgba(233,236,234,.09);border:1px solid var(--line);
  transition:background .18s var(--ease);
}
#avail-register:hover{background:rgba(233,236,234,.16)}
#avail-register:focus-visible{outline:2px solid var(--sage);outline-offset:2px}
.av-adm{
  display:flex;align-items:center;gap:8px;margin-top:9px;
  font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);
}
.av-adm.is-on{color:var(--sage)}
.av-adm button{
  margin-left:auto;min-height:32px;padding:6px 12px;border-radius:8px;
  font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2);
  background:rgba(233,236,234,.10);border:1px solid var(--line);
}
.av-adm button:hover{color:var(--ink)}
.av-adm button:focus-visible{outline:2px solid var(--sage);outline-offset:2px}

/* ------------------------------------------------------------- the register */
/* `hidden` alone loses to `display:grid` in a normal rule, so both overlays sat
   invisible over the whole screen and ate every click on the model. An invisible
   full-page click-eater reads as "the app froze", which is why this is explicit. */
#register[hidden],#gate[hidden],#showhouse[hidden]{display:none}

/* ── the show house, over the estate ─────────────────────────────────────
   Sits ABOVE the register (70) because it can be opened from the type rail
   while the register is up. Almost full-bleed: this is a 3D walk-through, and
   framing it in a small dialog would waste the thing it exists to show. */
#showhouse{
  position:fixed;inset:0;z-index:80;display:grid;place-items:center;
  padding:clamp(0px,2vw,28px);
  background:rgba(6,10,8,.72);backdrop-filter:blur(6px);
}
.sh-box{
  display:flex;flex-direction:column;
  width:min(1400px,100%);height:min(94vh,100%);
  background:var(--glass-2);border:1px solid var(--line);
  border-radius:var(--r);box-shadow:var(--shadow);overflow:hidden;
}
.sh-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 12px 10px 16px;border-bottom:1px solid var(--line-2);flex:none;
}
.sh-head h2{margin:0;font-size:13px;font-weight:650;letter-spacing:.04em}
.sh-acts{display:flex;align-items:center;gap:8px}
#sh-tab{
  min-height:36px;display:inline-flex;align-items:center;padding:0 11px;
  border-radius:8px;border:1px solid var(--line-2);
  font-size:11.5px;font-weight:600;color:var(--ink-2);text-decoration:none;
}
#sh-tab:hover{color:var(--ink);background:rgba(233,236,234,.10)}
#sh-close{
  width:44px;height:44px;display:grid;place-items:center;border-radius:9px;
  color:var(--ink-2);background:rgba(233,236,234,.07);border:1px solid var(--line-2);
}
#sh-close:hover{color:var(--ink);background:rgba(233,236,234,.16)}
#sh-close svg{width:19px;height:19px}
#sh-tab:focus-visible,#sh-close:focus-visible{outline:2px solid var(--sage);outline-offset:2px}
.sh-frame{position:relative;flex:1 1 auto;min-height:0;background:#0c241a}
/* The viewer is ~14,5 MB and boots a WebGL scene; on a slow line the frame is
   blank for several seconds. Say something rather than show a dark hole. */
.sh-loading{
  position:absolute;inset:0;margin:0;pointer-events:none;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;
}
/* Same mask-tint treatment as the boot mark: the PNG is white-with-alpha, so a
   plain image tag would vanish on any light surface — see .mark. Masked and
   tinted, it takes the sage token instead and works on either. */
.sh-loading-mark{
  width:64px;height:64px;background-color:var(--sage);opacity:.85;
  -webkit-mask:url(../assets/willow-mark.png) center/contain no-repeat;
          mask:url(../assets/willow-mark.png) center/contain no-repeat;
  animation:shPulse 1.9s var(--ease) infinite;
}
.sh-loading-txt{font-size:12.5px;color:var(--ink-3);letter-spacing:.02em}
/* Breathing, not spinning: a spinner next to a wordmark reads as a broken
   asset. Held still for the reduced-motion setting. */
@keyframes shPulse{0%,100%{opacity:.5;transform:scale(.98)}50%{opacity:.95;transform:scale(1)}}
@media (prefers-reduced-motion:reduce){
  .sh-loading-mark{animation:none;opacity:.85}
}
.sh-box.is-ready .sh-loading{display:none}
#sh-iframe{
  position:relative;width:100%;height:100%;border:0;display:block;
  opacity:0;transition:opacity .35s var(--ease);
}
.sh-box.is-ready #sh-iframe{opacity:1}
@media (max-width:760px){
  #showhouse{padding:0}
  .sh-box{width:100%;height:100%;border-radius:0;border:0}
  /* the close control must clear the notch on a phone */
  .sh-head{padding-top:max(10px,env(safe-area-inset-top))}
}
#register{
  position:fixed;inset:0;z-index:70;display:grid;place-items:center;padding:24px;
  background:rgba(6,10,8,.62);backdrop-filter:blur(6px);
}
.reg-box{
  display:flex;flex-direction:column;width:min(980px,100%);max-height:min(86vh,900px);
  background:var(--glass-2);border:1px solid var(--line);border-radius:var(--r);
  box-shadow:var(--shadow);backdrop-filter:blur(18px);overflow:hidden;
}
.reg-head{
  display:flex;align-items:flex-start;gap:14px;padding:18px 20px 14px;
  border-bottom:1px solid var(--line-2);
}
.reg-head h2{margin:0;font-size:16px;letter-spacing:.10em;text-transform:uppercase;color:var(--ink)}
.reg-head #reg-sub{margin:5px 0 0;font-size:12px;letter-spacing:.03em;color:var(--ink-3)}
#reg-close{
  margin-left:auto;flex:none;display:flex;width:44px;height:44px;border-radius:11px;
  align-items:center;justify-content:center;color:var(--ink-2);
  background:rgba(233,236,234,.08);border:1px solid var(--line);
}
#reg-close svg{width:18px;height:18px}
#reg-close:hover{color:var(--ink);background:rgba(233,236,234,.16)}
#reg-close:focus-visible{outline:2px solid var(--sage);outline-offset:2px}
#reg-body{padding:16px 20px 20px;overflow-y:auto;overscroll-behavior:contain}
.reg-blk + .reg-blk{margin-top:18px}
.reg-blk h3{
  display:flex;align-items:baseline;gap:10px;margin:0 0 9px;
  font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--sage);
}
.reg-blk h3 em{font-style:normal;letter-spacing:.06em;color:var(--ink-3);font-size:11px}
.reg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(66px,1fr));gap:6px}
.reg-chip{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
  min-height:44px;padding:5px 4px;border-radius:8px;
  background:rgba(122,196,142,.10);border:1px solid rgba(122,196,142,.30);
  transition:background .15s var(--ease),border-color .15s var(--ease);
}
.reg-chip b{font-size:12px;font-weight:600;letter-spacing:.02em;color:var(--ink)}
.reg-chip i{font-style:normal;font-size:9.5px;letter-spacing:.06em;color:var(--ink-3)}
.reg-chip:hover{background:rgba(122,196,142,.20);border-color:rgba(122,196,142,.52)}
.reg-chip:focus-visible{outline:2px solid var(--sage);outline-offset:2px}
/* Taken: struck through as well as red, so it reads without relying on colour. */
.reg-chip.is-taken{background:rgba(206,84,68,.13);border-color:rgba(206,84,68,.34)}
.reg-chip.is-taken b{color:var(--taken);text-decoration:line-through;text-decoration-thickness:1.5px}
.reg-chip.is-taken i{color:rgba(206,84,68,.62)}
.reg-chip.is-taken:hover{background:rgba(206,84,68,.24);border-color:rgba(206,84,68,.55)}
.reg-empty{margin:0;color:var(--ink-3);font-size:13px}
.reg-foot{
  display:flex;align-items:center;gap:16px;flex-wrap:wrap;
  padding:12px 20px;border-top:1px solid var(--line-2);background:rgba(0,0,0,.20);
}
.reg-key{display:flex;align-items:center;gap:7px;font-size:11.5px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--ink-3)}
.reg-key i{width:10px;height:10px;border-radius:3px;flex:none}
.reg-key .k-free{background:rgba(122,196,142,.55);border:1px solid rgba(122,196,142,.7)}
.reg-key .k-taken{background:rgba(206,84,68,.5);border:1px solid rgba(206,84,68,.75)}
#reg-admin-note{margin-left:auto}
.reg-mode{
  min-height:36px;padding:8px 14px;border-radius:9px;
  font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2);
  background:rgba(233,236,234,.08);border:1px solid var(--line);
}
.reg-mode:hover{color:var(--ink);background:rgba(233,236,234,.16)}
.reg-mode.is-on{color:var(--sage);background:rgba(199,163,90,.16);border-color:rgba(199,163,90,.45)}
.reg-mode:focus-visible{outline:2px solid var(--sage);outline-offset:2px}
/* One-time push of this device's pre-server marks. Appears only when there are
   any, so it is not a permanent fixture of the bar — and it is quieter than
   .reg-mode because it is a migration, not a thing you do every day. */
.reg-import{
  min-height:36px;padding:8px 14px;border-radius:9px;margin-left:8px;
  font-size:11px;letter-spacing:.04em;color:var(--ink-3);
  background:transparent;border:1px dashed var(--line);
  transition:color .18s var(--ease),border-color .18s var(--ease);
}
.reg-import:hover{color:var(--sage);border-color:rgba(199,163,90,.5)}
.reg-import:focus-visible{outline:2px solid var(--sage);outline-offset:2px}
.reg-import[disabled]{opacity:.55}

/* ----------------------------------------------------------- the code gate */
/* ⚠️ 90, not 80. #showhouse is also 80, and #gate comes LATER in index.html —
   so with equal z-index the admin dialog won on DOM order and its full-screen
   backdrop sat over the show house, swallowing the close button. Luke,
   2026-08-01: "when you try to close the house, it won't allow you because you
   first need to close the other tab underneath it." A prompt belongs on top of
   what it interrupts, so give it its own layer and never let two full-screen
   overlays share one. Stack, low to high: register 70, showhouse 80, gate 90. */
#gate{
  position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:24px;
  background:rgba(6,10,8,.70);backdrop-filter:blur(8px);
}
.gate-box{
  width:min(360px,100%);padding:22px;border-radius:var(--r);
  background:var(--glass-2);border:1px solid var(--line);box-shadow:var(--shadow);
  backdrop-filter:blur(18px);
}
.gate-box h2{margin:0 0 6px;font-size:14px;letter-spacing:.12em;text-transform:uppercase;color:var(--ink)}
#gate-why{margin:0 0 14px;font-size:12.5px;color:var(--ink-2);line-height:1.5}
#gate-code{
  width:100%;min-height:48px;padding:12px 14px;border-radius:10px;
  font:inherit;font-size:19px;letter-spacing:.34em;text-align:center;color:var(--ink);
  background:rgba(0,0,0,.30);border:1px solid var(--line);
}
#gate-code:focus{outline:2px solid var(--sage);outline-offset:1px}
#gate-msg{margin:9px 0 0;min-height:1.3em;font-size:12px;color:var(--taken)}
.gate-acts{display:flex;gap:8px;margin-top:14px}
.gate-acts button{
  flex:1;min-height:44px;border-radius:10px;font-size:13px;letter-spacing:.03em;
  border:1px solid var(--line);
}
#gate-cancel{color:var(--ink-2);background:rgba(233,236,234,.07)}
#gate-cancel:hover{color:var(--ink);background:rgba(233,236,234,.14)}
#gate-ok{color:#12200f;background:var(--sage);border-color:var(--sage);font-weight:600}
#gate-ok:hover{filter:brightness(1.07)}
.gate-acts button:focus-visible{outline:2px solid var(--sage);outline-offset:2px}
.gate-note{
  margin:14px 0 0;padding-top:12px;border-top:1px solid var(--line-2);
  font-size:11px;line-height:1.5;color:var(--ink-3);
}

/* The register and the gate are the whole screen on a phone. */
@media (max-width:760px){
  #register{padding:0}
  .reg-box{width:100%;max-height:100vh;height:100%;border:0;border-radius:0}
  #reg-body{padding:14px 14px calc(18px + var(--safe-b))}
  .reg-grid{grid-template-columns:repeat(auto-fill,minmax(62px,1fr))}
  .reg-foot{padding:10px 14px calc(10px + var(--safe-b))}
  #reg-admin-note{margin-left:0;width:100%}
  .reg-mode{width:100%}
  .uc-mark{margin-left:0;width:100%}
}
