#outside[hidden],#floor-info[hidden],#chosen-unit[hidden],#floor-tip[hidden] {display:none}
.exterior-view .panel,.exterior-view #map {display:none}
#back-building {grid-column:1/-1;justify-self:start;color:var(--accent);font-size:.86rem;text-underline-offset:.2em}
#outside {position:absolute;inset:0;pointer-events:none}
.ex-brand,.ex-actions,#ex-stations {position:absolute;z-index:2}
.ex-brand {left:max(1.1rem,env(safe-area-inset-left));top:max(1.1rem,env(safe-area-inset-top));display:grid;gap:.22rem;color:white;text-shadow:0 1px 7px #1a1e23e6;text-align:left;background:#242722c9;padding:.65rem .9rem;border-radius:.65rem;border:1px solid #ffffff38}
.ex-brand span:first-child,.wordmark {font-family:Georgia,serif;letter-spacing:.16em}
.ex-brand span:first-child {font-size:.98rem}
.ex-brand span:last-child {font-size:.85rem}
.ex-actions {top:max(1.1rem,env(safe-area-inset-top));right:max(1.1rem,env(safe-area-inset-right));display:flex;gap:.45rem}
.ex-actions button,#ex-stations button {pointer-events:auto;padding:.65rem .95rem;min-height:44px;color:#fff;background:#292c28e8;border-radius:2rem;font-weight:550}
.ex-actions #pick-floor,.enter-unit {background:#eed6a7;color:#241e16;border:1px solid #eed6a7}
#ex-stations {bottom:max(1.1rem,env(safe-area-inset-bottom));right:1.1rem;display:flex;flex-wrap:wrap;gap:.32rem}
#ex-stations button[aria-current="true"],#photo-choices button[aria-current="true"] {background:#eee3d1;color:#27261f}
#floor-trace {position:absolute;inset:0;width:100%;height:100%;pointer-events:none;display:none;overflow:hidden}
.exterior-view #floor-trace {display:block}
#floor-trace path {fill:#a7edcc70;stroke:#fffde3;stroke-width:1.4px;stroke-linejoin:round}
#floor-trace.sold path {fill:#cb655a80}
#floor-tip {position:absolute;pointer-events:none;z-index:2;background:#242823ed;color:white;padding:.4rem .7rem;border-radius:.55rem;font-size:.9rem;white-space:nowrap}
dialog {color:#292820;background:#f7f4ed;border:1px solid #dbd5c9;border-radius:1.15rem;width:min(38rem,calc(100% - 1.25rem));max-height:88dvh;overflow-y:auto;padding:clamp(1rem,3vw,1.65rem);box-shadow:0 1.5rem 5rem #0005;color-scheme:light}
dialog::backdrop {background:#151b19a8}
dialog button {color:#25251f;border:1px solid #c7c3b8;background:#fffdf8}
dialog button:hover,dialog a:hover {border-color:#867456}
dialog button:focus-visible,dialog a:focus-visible {outline:3px solid #536f61;outline-offset:2px}
.sheet-head {display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.sheet-head h2 {margin:.2rem 0 0;font-size:1.65rem;line-height:1.3}
.wordmark {direction:ltr;text-align:right;color:#735c35;font-size:.72rem;margin:0}
.dismiss {width:2.65rem;height:2.65rem;border-radius:50%;font-size:1.45rem;line-height:1}
#floor-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.45rem}
#floor-grid[hidden]{display:none}
#floor-grid button {min-height:3.25rem;display:grid;align-content:center;gap:.15rem;font-weight:650;font-variant-numeric:tabular-nums}
.sold-label {color:#94372c;font-size:.68rem;letter-spacing:.055em;font-weight:750;direction:ltr;display:inline-block}
#floor-grid .sold-floor {background:#f4eae4;border-color:#dac9bd}
#all-floors {padding:.4rem .7rem}
#floor-status {color:#55554c;margin:.65rem 0}
#floor-status .sold-label {font-size:.83rem}
#unit-plan {position:relative;direction:ltr;background:#faf9f6;border:1px solid #dad5ca;border-radius:.55rem;overflow:hidden}
#unit-plan img {width:100%;display:block;aspect-ratio:1592/792}
#unit-plan svg {position:absolute;inset:0;width:100%;height:100%}
#unit-plan polygon {fill:#655d5019;stroke:#6c685d5c;stroke-width:2}
#unit-plan polygon.pick {cursor:pointer;fill:#31916760;stroke:#246a4f;stroke-width:3}
#unit-plan polygon.pick:hover,#unit-plan polygon.selected {fill:#227a59a1;stroke:#123e30;stroke-width:5}
#unit-list,#photo-choices {display:flex;gap:.4rem;flex-wrap:wrap;margin:.65rem 0}
#unit-list button,#photo-choices button {padding:.48rem .75rem;min-height:42px}
#unit-list button[aria-pressed="true"] {color:white;background:#365d4c}
#chosen-unit {border-top:1px solid #d4cec1;margin-top:.8rem;padding-top:.8rem}
#chosen-unit h3 {font-size:1rem;margin:0 0 .55rem}
.enter-unit {display:inline-block;text-decoration:none;padding:.65rem .95rem;border-radius:.65rem;font-weight:650}
.sheet-footer {display:grid;gap:.55rem;border-top:1px solid #d4cec1;margin-top:1rem;padding-top:.8rem;color:#56554b;font-size:.85rem}
.sheet-footer a {color:#4b513c;text-underline-offset:.18em}
.sheet-footer div a {display:inline-block;margin-inline-start:.65rem;font-weight:650}
#photo-browser {width:min(62rem,calc(100% - 1.25rem))}
[data-language] {width:auto;min-height:44px;white-space:nowrap;padding:.4rem .72rem;font-weight:600;font-size:.93rem}
.controls [data-language] {width:auto;font-size:.93rem}
.sheet-head [data-language] {margin-inline-start:auto}
:lang(en) .wordmark {text-align:start}
#photo-browser figure {padding:0;margin:0}
#ex-photo {display:block;width:100%;max-height:60dvh;object-fit:contain;border-radius:.55rem;background:#292b26}
#ex-photo-label {margin-top:.5rem;font-weight:650}
@media(max-width:55rem){#ex-stations {bottom:4.75rem;right:.75rem}}
@media(max-width:36rem){
  .ex-brand {left:.5rem;top:max(.5rem,env(safe-area-inset-top));padding:.5rem .6rem}
  .ex-brand span:first-child {font-size:.79rem}
  .ex-actions {right:.5rem;top:max(.5rem,env(safe-area-inset-top));gap:.22rem}
  .ex-actions button,#ex-stations button {font-size:.82rem;padding:.5rem .65rem}
  #ex-stations {left:.5rem;right:.5rem;justify-content:center}
  #floor-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:70rem){
  #tour-switch {top:max(.5rem,env(safe-area-inset-top))}
  .panel,#map,.ex-brand,.ex-actions {top:calc(max(.5rem,env(safe-area-inset-top)) + 3.65rem)}
}
@media(max-width:23rem){
  .ex-brand span:last-child {display:none}
  .ex-actions button {padding:.45rem}
  .controls {left:.4rem;gap:.2rem}
  .controls button {width:2.45rem}
  .controls [data-language] {width:auto}
}
