/* Liquid-glass presentation: real backdrop blur with layered optical highlights.
   No scene/rendering dependencies; opaque fallback and reduced-transparency support. */
:root {
  --glass-fill: rgba(250,252,249,.57);
  --glass-blur: blur(22px) saturate(155%);
  --glass-edge: rgba(255,255,255,.78);
  --glass-shadow: 0 14px 38px rgba(28,40,34,.13),0 2px 7px rgba(25,35,30,.06),inset 0 1px 1px rgba(255,255,255,.95),inset 0 -1px 1px rgba(255,255,255,.44);
  --glass-sheen: linear-gradient(135deg,rgba(255,255,255,.55),rgba(255,255,255,.06) 32%,rgba(255,255,255,0) 61%,rgba(255,255,255,.27));
}
/* Only these UI surfaces sample the scene. Nested controls do not blur again. */
.app-header,.controls,#floor-dock,.navigation,#floor-style,#map-scene-bar,#nearby-tray,.ui-mobile-controls,
#unit-detail,#project-info,#sources {
  background-color:var(--glass-fill);
  background-image:var(--glass-sheen);
  border:1px solid var(--glass-edge);
  border-bottom-color:rgba(255,255,255,.36);
  border-right-color:rgba(255,255,255,.48);
  box-shadow:var(--glass-shadow);
  -webkit-backdrop-filter:var(--glass-blur);
  backdrop-filter:var(--glass-blur);
  color:#27342e;
}
.app-header {top:12px;left:16px;width:calc(100% - 32px);height:70px;padding:10px 20px;border-radius:24px;--glass-fill:rgba(249,251,248,.44)}
.controls,#floor-dock {border-radius:25px;--glass-fill:rgba(248,251,247,.64);scrollbar-color:#6d7c6566 transparent}
.controls {padding:20px}
.navigation,#floor-style,#map-scene-bar {border-radius:24px;--glass-fill:rgba(248,252,248,.42)}
#nearby-tray {border-radius:25px;--glass-fill:rgba(248,252,247,.7)}
#floor-style button,#map-scene-bar button,.navigation button {border-radius:18px}
/* Interior highlights give controls depth without bright, opaque white blocks. */
.mode-switch,.lang-switch,.segments {background:rgba(59,78,65,.075);border:1px solid rgba(71,89,75,.06);box-shadow:inset 0 1px 3px rgba(38,51,42,.055);border-radius:18px}
.mode-switch button,.lang-switch button,.segments button {border-radius:14px;color:#48564e}
.mode-switch button.active,.lang-switch button.active,.segments button.active,#floor-style button.active,.navigation button.active {
  background:linear-gradient(155deg,rgba(255,255,255,.92),rgba(255,255,255,.33));
  color:#24362b;border-radius:14px;
  box-shadow:0 3px 9px rgba(32,48,36,.11),inset 0 1px 1px #fff,inset 0 -1px 1px rgba(255,255,255,.65),0 0 0 1px rgba(255,255,255,.44);
}
.mode-switch button:hover:not(.active),.segments button:hover:not(.active),#floor-style button:hover:not(.active),.navigation button:hover:not(.active),#map-scene-bar button:hover {background:rgba(255,255,255,.37);color:#25382c}
.pill,.ui-focus,.hint button,.panel-title #collapse,.close,.ui-mobile-controls {
  background:linear-gradient(145deg,rgba(255,255,255,.67),rgba(255,255,255,.18));
  border:1px solid rgba(255,255,255,.7);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.9),0 3px 9px rgba(31,47,35,.07);
  color:#394d3f;
}
.pill:hover,.ui-focus:hover,.hint button:hover,.panel-title #collapse:hover,.close:hover {background:rgba(255,255,255,.72);box-shadow:inset 0 1px 1px #fff,0 5px 14px rgba(31,47,35,.12)}
.ui-focus[aria-pressed=true],.ui-mobile-controls[aria-expanded=true] {background:linear-gradient(155deg,#607664e8,#344c3bde);color:#fff;border-color:#ffffff70}
.logo {background:linear-gradient(145deg,#ffffff80,#f0f1e530);border-color:#7f886e70;border-radius:12px;box-shadow:inset 0 1px 1px #ffffffc0;color:#515e45}
.brand,.brand small {color:#354337}.brand small {opacity:.75}
.controls select {background:linear-gradient(140deg,#ffffff86,#ffffff36);border:1px solid #ffffffb3;box-shadow:inset 0 1px 1px #ffffffa0,0 2px 4px #203a2410;border-radius:12px;color:#2e4233}
.controls select option {background:#f6f9f3;color:#273d2e}
.toggle-row {border-color:#34452f0c}.toggle-row input[type=checkbox] {background:#65746135;box-shadow:inset 0 1px 3px #1a2a1d20,0 1px 0 #ffffff80}
.toggle-row input:checked {background:linear-gradient(135deg,#82947a,#526d4f)}
.toggle-row input[type=checkbox]:before {background:linear-gradient(145deg,#fff,#edf2e9);box-shadow:0 1px 3px #18351a40,inset 0 1px 1px #fff}
.controls .secondary {background:linear-gradient(145deg,#536c52f0,#2f4939ed);border:1px solid #ffffff75;box-shadow:inset 0 1px 1px #ffffff55,0 4px 12px #294b2e24;border-radius:14px}
.controls .secondary:hover {background:linear-gradient(145deg,#627b60f0,#3c5845ed)}
.controls .export,.interior-controls>button {background:linear-gradient(145deg,#ffffff70,#ffffff25);color:#344d3b;border:1px solid #ffffff90;border-radius:12px}
.bed-chips button {background:#ffffff28;border-color:#ffffffa0;border-radius:12px;color:#43513f;box-shadow:inset 0 1px 0 #ffffff70}
.bed-chips button[aria-pressed=true] {background:linear-gradient(145deg,#65795cf0,#3b543aed);border-color:#ffffff85;box-shadow:inset 0 1px 0 #ffffff50,0 3px 8px #1c351b1c;color:#fff}
#floor-choices .floor-section>button {background:rgba(255,255,255,.24);border:1px solid #ffffff60;border-radius:13px;color:#334b37}
body:not(.native-floor) #floor-choices .floor-section>button.active,#floor-choices .floor-section>button.active {background:linear-gradient(145deg,#ffffff9c,#dce8d55e);border-color:#ffffffb3;box-shadow:inset 0 1px 0 #ffffffd0,0 2px 6px #29472a0b}
#floor-choices .unit-list button {border-bottom-color:#43533b15;color:#304330}
#floor-choices .unit-list button span {color:#52614b}#floor-choices .unit-list button small {color:#64705b}
#floor-choices .unit-list button:hover,#floor-choices .unit-list button.highlight,body:not(.native-floor) #floor-choices .unit-list button.highlight {background:#ffffff6b;box-shadow:inset 2px 0 #83966b}
#floor-choices .unit-list button.unit-located {background:#cedec28f;box-shadow:inset 2px 0 #6a8558}
/* Legibility stays independent of whether the scene behind is daylight or dusk. */
.controls label,.filter-title,.ui-disclosure summary {color:#43513f}
#dock-hint,#pick-hint,.level-note,.ticks,.disclaimer,.motion-settings small,.interior-controls small,#unit-filter p,.filter-title span,.dock-heading span:last-child {color:#606d57}
#unit-filter,.ui-disclosure {border-color:#3f553d1c}
#map-scene-bar button {color:#344c3b}#map-scene-bar button[aria-pressed=true] {background:linear-gradient(145deg,#ffffff9e,#dce8d55e);box-shadow:inset 0 1px 0 #ffffffd0;color:#314d37}
.orbit-lock {color:#52644d}
#map-scene-status {background:#f0f5e9d9;border:1px solid #ffffff80;color:#4b6043;border-radius:12px}
/* Dark glass hover card; its pale text is already supplied by the scene UI. */
#exterior-unit-card {background:linear-gradient(140deg,#4e6259dc,#213d30d9);border:1px solid #ffffff66;border-radius:22px;backdrop-filter:blur(16px) saturate(140%);-webkit-backdrop-filter:blur(16px) saturate(140%);box-shadow:0 14px 36px #142e3033,inset 0 1px 1px #ffffff60}
#unit-detail,#project-info,#sources {--glass-fill:rgba(249,252,247,.84);--glass-blur:blur(24px) saturate(135%);border-radius:28px}
dialog::backdrop,#project-info::backdrop {background:rgba(24,37,31,.24);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.project-info-head {background:#f7fbf0de;backdrop-filter:none}.project-info-tabs {background:#edf4e6c4}.project-info-tabs button {color:#51614a}.project-info-tabs button[aria-pressed=true] {background:#ffffff9c;box-shadow:inset 0 1px 1px #fff,0 2px 5px #283d2510}
.detail-plan {background:#fff} /* Drawings must remain opaque, sharp and unaltered. */
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  .pill:hover,.ui-focus:hover,.ui-mobile-controls:hover {transform:translateY(-1px)}
  .pill:active,.ui-focus:active,.ui-mobile-controls:active {transform:scale(.97)}
}
@media(max-width:1100px) and (min-width:701px) {.app-header {left:12px;width:calc(100% - 24px);padding:10px 14px}.header-actions {gap:6px}.mode-switch button{padding:11px 10px}}
@media(max-width:700px) {
  :root {--glass-blur:blur(14px) saturate(140%)}
  .app-header {top:6px;left:6px;width:calc(100% - 12px);height:112px;padding:10px;border-radius:22px;--glass-fill:rgba(249,251,248,.7)}
  .mode-switch {top:60px;left:10px;right:10px;border-radius:16px}
  .mode-switch button {border-radius:12px}.logo {border-radius:9px}
  #floor-dock,.native-floor #floor-dock {border-radius:23px;--glass-fill:rgba(248,251,247,.76)}
  .controls,.native-floor .controls {border-radius:25px;--glass-fill:rgba(248,251,247,.8)}
  .ui-mobile-controls {border-radius:22px;background-color:#f6fbef85}
  .ui-controls-open .intro {visibility:hidden}
  #map-scene-bar {border-radius:22px}.navigation {border-radius:19px}
  #unit-detail,#project-info {border-radius:23px;--glass-blur:blur(14px) saturate(130%)}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
 .app-header,.controls,#floor-dock,.navigation,#floor-style,#map-scene-bar,#nearby-tray,.ui-mobile-controls,#unit-detail,#project-info,#sources {background:#f4f7ef}
 #exterior-unit-card {background:#2b4437}
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more) {
 .app-header,.controls,#floor-dock,.navigation,#floor-style,#map-scene-bar,#nearby-tray,.ui-mobile-controls,#unit-detail,#project-info,#sources {background:#f5f8f0;backdrop-filter:none;-webkit-backdrop-filter:none;border-color:#a3ae9b}
 #exterior-unit-card {background:#2b4437;backdrop-filter:none;-webkit-backdrop-filter:none}
 dialog::backdrop,#project-info::backdrop {backdrop-filter:none;-webkit-backdrop-filter:none}
}
.navigation button,#floor-style button {color:#344c3b}
#floor-choices .unit-list button span {font-size:11px}
#floor-choices .unit-list button small {font-size:10px}


/* Satellite toggle shares the floating toolbar without overflowing phones. */
[data-basemap-toggle] {white-space:nowrap}
[data-basemap-toggle][aria-busy=true] {opacity:.65}
#map-sources a {display:block;margin-top:12px}
@media(max-width:700px){
 #map-scene-bar {flex-wrap:wrap;width:max-content;justify-content:center;max-width:calc(100vw - 24px)}
 #map-scene-bar button {font-size:10px;padding:8px 9px;min-height:34px}
 #location-tools {flex-wrap:wrap;gap:5px}
 #location-tools button {font-size:10px;padding:8px 10px}
}

/* Current model floor is independent of the list accordion state. */
body.native-floor #floor-choices .floor-section>button.current-floor {width:100%;background:#344f3e;background-clip:border-box;border-color:#344f3e;color:#fff;box-shadow:none}
body.native-floor #floor-choices .floor-section>button.current-floor b,body.native-floor #floor-choices .floor-section>button.current-floor span {color:#fff}
