/* Silos Garden Route: Stock Plan (/stock-plan).
   Base rules are the template's <helmet> styles. Values the logic class computed from
   window.innerWidth are media queries at the SAME breakpoints: the plan/list grid stacks below
   980 px. Below 900 px the drawer is full width (README), an intentional change from 92vw.
   Narrow-width nav rules (below 420 px) are an intentional fix (browsers-09, a11y-19). */

*{box-sizing:border-box}
@media (prefers-reduced-motion: no-preference){html{scroll-behavior:smooth}}
body{margin:0;background:#0F1C2E;color:#F5F1EC;font-family:'Inter',system-ui,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:#C48A6A;text-decoration:none}
a:hover{color:#E6B7A3}
img{display:block;max-width:100%}
button,input{font-family:inherit}
::selection{background:#C48A6A;color:#0F1C2E}
@keyframes fIn{0%{opacity:0;transform:translateY(16px)}100%{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
[hidden]{display:none!important}

/* Accessibility helpers (spec 5.6) */
:focus-visible{outline:2px solid #C48A6A;outline-offset:2px}
.vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip{position:absolute;left:12px;top:-60px;z-index:200;background:#C48A6A;color:#0F1C2E;padding:12px 18px;border-radius:2px;font-size:12px;letter-spacing:.18em;text-transform:uppercase;font-weight:600}
.skip:focus{top:12px;color:#0F1C2E}
html.is-locked,html.is-locked body{overflow:hidden}
/* Invisible 44 px touch target around small controls (no visual change). */
.hit44{position:relative}
.hit44::before{content:"";position:absolute;left:50%;top:50%;width:max(100%,44px);height:max(100%,44px);transform:translate(-50%,-50%)}
#dPrev.hit44,#dNext.hit44{position:absolute}

/* Hover states from the template's style-hover attributes */
.hv-enq:hover{background:#C48A6A!important;color:#0F1C2E!important}
.hv-play:hover{background:rgba(196,138,106,.14)!important}
.hv-cta:hover{background:#E6B7A3!important;color:#0F1C2E}

/* View toggle, type filters and level tabs: state in aria-pressed (was inline bg/fg/border) */
.seg{background:transparent;color:rgba(245,241,236,.85)}
.seg[aria-pressed="true"]{background:#C48A6A;color:#0F1C2E}
.pill{background:transparent;color:rgba(245,241,236,.85);border:1px solid rgba(196,138,106,.4)}
.pill[aria-pressed="true"]{background:#C48A6A;color:#0F1C2E;border-color:#C48A6A}
.lvl{background:transparent;color:rgba(245,241,236,.85);border:1px solid rgba(196,138,106,.3)}
.lvl[aria-pressed="true"]{background:#C48A6A;color:#0F1C2E;border-color:#C48A6A}

/* Floor plans: plan beside the list from 980 px (logic class: vw < 980 is "mobile") */
.g-plan{grid-template-columns:1fr}
@media (min-width:980px){.g-plan{grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr)}}
.spot{position:absolute;border-radius:3px;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;transition:background .2s ease,box-shadow .2s ease}
.spot:hover{box-shadow:0 0 0 2px rgba(15,28,46,.55) inset}
.spot::before{content:"";position:absolute;left:50%;top:50%;width:max(100%,44px);height:max(100%,44px);transform:translate(-50%,-50%)}
.spot.is-off,.row.is-off,.pin.is-off{pointer-events:none}
.row{display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:center;text-align:left;border:none;padding:13px 16px;cursor:pointer;transition:background .2s ease;flex:none}
.row:hover{background:rgba(196,138,106,.12)!important}

/* Sold units and the availability fallback (2026-10-09; stock-plan.js). A sold row shows "Sold" in the
   sold colour where the price was. In the fallback (live data unavailable) the rows, outlines and the
   drawer show no prices or statuses: "Call for availability", in a neutral copper, with the notice. */
.row.is-call .row-price{white-space:normal!important;text-align:right;max-width:7.5em;line-height:1.35}
.sp-notice{margin:0 0 18px;padding:12px 16px;border:1px solid rgba(196,138,106,.38);border-radius:4px;background:rgba(196,138,106,.08);font-size:14px;line-height:1.6;color:rgba(245,241,236,.88)}
/* links inside a sentence are underlined, not told apart by colour alone (axe link-in-text-block) */
.sp-notice a,#dataError a{text-decoration:underline;text-decoration-color:rgba(196,138,106,.6);text-underline-offset:3px}
#dPrice .d-call{display:inline-block;padding:4px 0;color:inherit;text-decoration:underline;text-decoration-color:rgba(196,138,106,.55);text-decoration-thickness:1px;text-underline-offset:5px}
#dPrice .d-call:hover{color:#F5F1EC}
/* Schedule box (owner, 2026-10-09): the list scrolls inside a box so the plan stays in view.
   .sched-wrap is the most room the box may take: beside the plan (>= 980 px) the plan card's height
   (height:0 keeps it out of the row's sizing, min-height:100% then fills the row), at least 360 px;
   stacked under the plan, about half the screen, so plan and list fit on screen together.
   .sched, the visible box, is only as tall as its rows up to that (it shrinks, never grows), so a
   short floor shows no empty band below its last row. A fade marks more rows below. */
.sched-wrap{display:flex;flex-direction:column;min-height:0}
.sched{position:relative;flex:0 1 auto;min-height:0}
#rows{position:relative;display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(196,138,106,.5) transparent}
#rows:focus-visible{outline:2px solid #C48A6A;outline-offset:-2px}
.sched::after{content:"";position:absolute;left:0;right:0;bottom:0;height:40px;border-radius:0 0 6px 6px;pointer-events:none;background:linear-gradient(rgba(11,21,34,0),#0B1522 90%);opacity:0;transition:opacity .2s ease}
.sched.more-below::after{opacity:1}
@media (min-width:980px){.sched-wrap{align-self:stretch;height:0;min-height:max(100%,360px)}}
@media (max-width:979.98px){.sched-wrap{max-height:clamp(300px,52vh,560px);max-height:clamp(300px,52dvh,560px)}}

/* 360 controls (owner-approved redesign, 2026-10-08; view marks removed 2026-10-09). Auto-rotate
   and the slider share one row, as in the template (display:flex, align-items:center, 16 px gap):
   the row is the button's height (~36 px) at every width down to 320 px. Below that the slider,
   kept at least 120 px wide, wraps onto its own row. #orbitPlay keeps the template's inline look,
   moved here. The slider is the native range input restyled (keyboard and screen readers work as
   before): a 44 px tall hit area that overhangs the row by 5 px above and below (into the margins
   around it, so the row stays the button's height), with a 44 px thumb box and a 24 px disc drawn
   in it, so the thumb centre runs from 22 px to (width - 22 px). The track and the progress fill
   (--sp-f, 0..1, set by stock-plan.js) sit behind the input on the same line. */
.orbit-ctl{display:flex;flex-wrap:wrap;align-items:center;column-gap:16px;row-gap:10px;margin-bottom:14px}
#orbitPlay{flex:none;background:transparent;border:1px solid rgba(196,138,106,.45);color:#E6B7A3;font-size:11px;letter-spacing:.16em;text-transform:uppercase;padding:10px 20px;border-radius:20px;cursor:pointer;transition:all .25s ease;text-shadow:0 1px 2px rgba(15,28,46,.28)}
.orbit-slider{position:relative;flex:1 1 120px;min-width:120px;height:44px;margin:-5px 0;--sp-f:0}
.orbit-track{position:absolute;left:0;right:0;top:0;height:44px;pointer-events:none}
.orbit-track::before{content:"";position:absolute;left:10px;right:10px;top:20px;height:4px;border-radius:2px;background:rgba(245,241,236,.2)}
.orbit-fill{position:absolute;left:10px;top:20px;height:4px;border-radius:2px;background:#C48A6A;width:calc(12px + (100% - 44px) * var(--sp-f))}
#orbitRange{--sp-thumb:radial-gradient(circle,#F5F1EC 0 9.5px,#C48A6A 10px 11.5px,rgba(196,138,106,0) 12px),radial-gradient(circle,rgba(6,12,20,.45) 0 11px,rgba(6,12,20,0) 15px);
  position:relative;z-index:1;display:block;width:100%;height:44px;margin:0;padding:0;border:none;background:transparent;-webkit-appearance:none;appearance:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
#orbitRange:hover,#orbitRange:active{--sp-thumb:radial-gradient(circle,#F5F1EC 0 9.5px,#C48A6A 10px 11.5px,rgba(196,138,106,0) 12px),radial-gradient(circle,rgba(196,138,106,.22) 0 18px,rgba(196,138,106,0) 18.5px)}
#orbitRange:focus{outline:none}
#orbitRange:focus-visible{outline:none;--sp-thumb:radial-gradient(circle,#F5F1EC 0 9.5px,#C48A6A 10px 11.5px,#0F1C2E 12px 13.5px,#C48A6A 14px 15.5px,rgba(196,138,106,0) 16px)}
#orbitRange::-webkit-slider-runnable-track{height:44px;background:transparent;border:none}
#orbitRange::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:44px;height:44px;border:none;border-radius:50%;background:var(--sp-thumb)}
#orbitRange::-moz-range-track{height:44px;background:transparent;border:none}
#orbitRange::-moz-range-progress{background:transparent}
#orbitRange::-moz-range-thumb{width:44px;height:44px;border:none;border-radius:50%;background:var(--sp-thumb)}
/* Windows high-contrast (forced colours) drops painted backgrounds: show the system slider there. */
@media (forced-colors:active){#orbitRange{-webkit-appearance:auto;appearance:auto}.orbit-track{display:none}}

/* 360 stage. */
#orbitHint{white-space:nowrap}
@media (max-width:599px){#orbitHint{bottom:8px!important;padding:7px 14px!important;font-size:10px!important;gap:8px!important}}
/* Unit outlines (owner-approved, 2026-10-09). Each .pin is a real button that stock-plan.js sizes to
   its outline's bounding box, with the outline drawn by the SVG polygon inside it (status fill --box,
   --boxsel on hover or when selected, status line --line) and the number badge near its top-left
   corner. The button takes no pointer input; only the polygon does, so a tap lands on the outline
   under the finger and never on a neighbour's box (the click still bubbles through the button).
   .orbit-hits, under every outline, holds a 44 x 44 target around each unit's centre for outlines
   smaller than that. Keyboard focus shows the usual ring around the button. */
#orbitPins{-webkit-tap-highlight-color:transparent}
.orbit-hits{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.orbit-hits rect{fill:transparent;pointer-events:visibleFill;cursor:pointer}
.orbit-hits rect.is-off{pointer-events:none}
.pin{position:absolute;left:0;top:0;margin:0;padding:0;border:0;border-radius:0;background:none;pointer-events:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.pin>svg{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;display:block}
.pin-shape{fill:var(--box);stroke:var(--line);stroke-width:1.5px;stroke-linejoin:round;pointer-events:visibleFill;transition:fill .18s ease}
.pin:hover .pin-shape,.pin.is-hover .pin-shape,.pin.is-sel .pin-shape{fill:var(--boxsel)}
.pin.is-sel .pin-shape{stroke:#F5F1EC;stroke-width:2px}
.pin.is-off .pin-shape{pointer-events:none}
.pin>span{position:absolute;left:0;top:0;display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:22px;padding:0 6px;border-radius:3px;font-family:Playfair Display,serif;font-size:15px;font-weight:600;line-height:1;white-space:nowrap;box-shadow:0 1px 4px rgba(6,12,20,.45)}
#orbitStage.is-dragging,#orbitStage.is-dragging *{cursor:grabbing!important}

/* Drawer: slides in from the right; hidden content is truly hidden (visibility + inert) */
.drawer{width:min(420px,92vw);transform:translateX(100%);visibility:hidden;transition:transform .42s cubic-bezier(.22,1,.36,1),visibility 0s linear .42s}
.drawer.is-open{transform:translateX(0%);visibility:visible;transition:transform .42s cubic-bezier(.22,1,.36,1),visibility 0s}
@media (max-width:899.98px){.drawer{width:100%}}
.dot{background:rgba(245,241,236,.3);position:relative}
.dot[aria-pressed="true"]{background:#C48A6A}
/* Two dots 8 px apart: split the space between them so each gets a 44 px tall, non-overlapping target */
.dot::before{content:"";position:absolute;top:-18px;bottom:-18px;left:-18px;right:-18px}
.dot:first-child::before{right:-4px}
.dot:last-child::before{left:-4px}
.is-mirror{transform:scaleX(-1)}

/* Plan viewer */
#planViewport.is-dragging{cursor:grabbing}
#planViewport:focus-visible{outline-offset:-4px}

/* Header at narrow widths (intentional fix, browsers-09 / a11y-19). The original wraps "Back"
   below 403 px and overprints the wordmark at 320 px. */
.sp-back{white-space:nowrap}
@media (max-width:419.98px){
  .sp-enq{padding:11px 14px!important}
  .sp-back{padding:12px 0!important}
}
@media (max-width:359.98px){
  .sp-nav{gap:10px!important}
  .sp-navr{gap:8px!important}
  .sp-logo{gap:8px!important}
  .sp-word{letter-spacing:.22em!important;padding-left:.22em!important}
  .sp-enq{padding:11px 12px!important;letter-spacing:.14em!important}
  .sp-back{position:relative;padding:12px 6px!important}
  .sp-back::before{content:"";position:absolute;left:50%;top:50%;width:44px;height:44px;transform:translate(-50%,-50%)}
  .sp-back-t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
}
@media (max-width:319.98px){
  .sp-back{display:none}
  .sp-nav{padding-left:16px!important;padding-right:16px!important}
}


/* Contrast (a11y-10): the smallest change that reaches WCAG AA 4.5:1 on four muted labels
   (tools/stock/contrast.py). Designer values were .45/.35/.4 cream and .7 opacity. Delete this
   block to restore them exactly. */
#rows .meta,.tap-hint,.d-note{color:rgba(245,241,236,.48)!important}
.lvl[aria-pressed="true"] .lvl-sub{opacity:.83!important}
