:root {
  --bg: #101215;
  --ink: #f1efe9;
  --sub: rgba(241, 239, 233, 0.7);
  --faint: rgba(241, 239, 233, 0.48);
  --line: rgba(241, 239, 233, 0.13);
  --glass: rgba(21, 23, 28, 0.74);
  --glass-strong: rgba(21, 23, 28, 0.86);
  --panel: #17191e;
  --accent: #d2161f;
  --gold: #ffcf5a;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --r: 14px;
  --pad: 22px;
  --side: 318px;
  --top: 84px;
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  --sl: env(safe-area-inset-left, 0px);
  --sr: env(safe-area-inset-right, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
.sr { 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; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body { position: fixed; inset: 0; overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px; text-align: center; }

.stage { position: fixed; inset: 0; visibility: hidden; }
.stage canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; -webkit-user-select: none; user-select: none; }
html[data-view="3d"] .stage { visibility: visible; }
.plan-view { position: fixed; top: calc(var(--top) + var(--st)); bottom: calc(92px + var(--sb)); left: calc(var(--side) + var(--pad) * 2 + var(--sl)); right: calc(var(--pad) + var(--sr)); display: flex; -webkit-user-select: none; user-select: none; }
.plan-view svg { display: block; width: 100%; height: 100%; }
html[data-view="3d"] .plan-view { visibility: hidden; }
.plan-hl { fill: rgba(210, 22, 31, 0.1); stroke: rgba(210, 22, 31, 0.55); stroke-width: 3; pointer-events: none; }
.plan-svg text, .plan-svg .furniture, .plan-svg .walls { pointer-events: none; }
.fade { position: fixed; inset: 0; z-index: 8; background: #0b0c0e; opacity: 0; pointer-events: none; }

.top { position: fixed; z-index: 6; top: 0; left: 0; right: 0; display: flex; align-items: flex-start; gap: 14px; padding: calc(18px + var(--st)) calc(var(--pad) + var(--sr)) 0 calc(var(--pad) + var(--sl)); pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { margin-right: auto; min-width: 0; }
.kicker { display: inline-block; font: 500 11px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sub); text-decoration: none; }
.kicker:hover { color: var(--ink); }
h1 { margin: 5px 0 0; font: 650 22px/1.15 var(--sans); letter-spacing: -0.01em; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
html[data-mode="visit"] .top::before { content: ''; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: calc(120px + var(--st)); background: linear-gradient(rgba(11, 12, 14, 0.5), rgba(11, 12, 14, 0.22) 55%, rgba(11, 12, 14, 0)); pointer-events: none; }
html[data-mode="visit"] h1, html[data-mode="visit"] .kicker { text-shadow: 0 0 2px rgba(0, 0, 0, 0.3), 0 1px 14px rgba(0, 0, 0, 0.55); }
.modes { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.modes button { display: flex; align-items: center; gap: 7px; padding: 8px 15px 8px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--sub); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s; white-space: nowrap; }
.modes button svg { width: 17px; height: 17px; flex: none; }
.modes button:hover { color: var(--ink); }
.modes button[aria-pressed="true"] { background: var(--ink); color: #15171b; }
.modes button:disabled { cursor: progress; }
.lang { flex: none; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font: 600 12.5px/1 var(--mono); letter-spacing: 0.04em; cursor: pointer; }
.lang:hover { background: rgba(241, 239, 233, 0.12); }

.side { position: fixed; z-index: 4; top: calc(var(--top) + var(--st)); left: calc(var(--pad) + var(--sl)); width: var(--side); max-height: calc(100% - var(--top) - var(--st) - 86px - var(--sb)); overflow: auto; padding: 18px 18px 14px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); scrollbar-width: thin; }
.intro { margin: 0 0 18px; font-size: 14.5px; line-height: 1.45; color: var(--sub); }
.side h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 500 11px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.side h2 .tag { padding: 3px 7px; border-radius: 999px; border: 1px solid rgba(255, 207, 90, 0.42); color: var(--gold); font: 600 10px/1 var(--sans); letter-spacing: 0.02em; text-transform: none; }
#facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin: 0 0 20px; }
.fact dt { font-size: 11.5px; color: var(--faint); }
.fact dd { margin: 3px 0 0; font: 620 16.5px/1.2 var(--sans); }
.rooms ul { list-style: none; margin: 0; padding: 0; }
.room-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: calc(100% + 20px); margin: 0 -10px; padding: 8px 10px; border: 0; border-radius: 9px; background: none; text-align: left; font-size: 14.5px; line-height: 1.25; cursor: pointer; transition: background 0.15s; }
.room-row:hover { background: rgba(241, 239, 233, 0.08); }
.room-row .ra { flex: none; font: 12.5px/1 var(--mono); color: var(--sub); }
.room-row.is-static { cursor: default; color: var(--sub); }
.room-row.is-static:hover { background: none; }
.room-row.is-here { background: rgba(255, 207, 90, 0.14); box-shadow: inset 3px 0 0 var(--gold); }
.calc { margin: 10px 0 0; font-size: 11.5px; color: var(--faint); }
html[data-mode="visit"] .intro, html[data-mode="visit"] .facts { display: none; }

.cta { position: fixed; z-index: 5; bottom: calc(26px + var(--sb)); left: calc(var(--side) + var(--pad) * 2 + var(--sl)); right: calc(var(--pad) + var(--sr)); display: flex; justify-content: center; pointer-events: none; }
.primary { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-size: 15.5px; font-weight: 650; letter-spacing: 0.005em; cursor: pointer; pointer-events: auto; box-shadow: 0 10px 30px rgba(210, 22, 31, 0.32); transition: background 0.2s, box-shadow 0.2s, transform 0.2s; }
.primary:hover { background: #e01d27; transform: translateY(-1px); }
.primary:disabled { background: #353840; box-shadow: none; cursor: progress; transform: none; }
.primary { position: relative; overflow: hidden; }
.primary .progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left center; transition: transform 0.25s ease; pointer-events: none; }
html[data-mode="visit"] .cta, html.busy .cta { opacity: 0; visibility: hidden; pointer-events: none; }
.cta { transition: opacity 0.3s, visibility 0.3s; }
html.busy .cta .primary { pointer-events: none; }
.hint { position: fixed; z-index: 5; left: calc((100% + var(--side) + var(--pad)) / 2); bottom: calc(92px + var(--sb)); transform: translateX(-50%); max-width: calc(100% - var(--side) - var(--pad) * 4); margin: 0; padding: 8px 15px; border-radius: 16px; background: rgba(12, 13, 16, 0.66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13px; line-height: 1.3; color: var(--ink); width: max-content; text-align: center; opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.hint.is-on { opacity: 1; }
html[data-mode="visit"] .hint { bottom: calc(26px + var(--sb)); }

.tags { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
html:not([data-mode="model"]) .tags, html.busy .tags { visibility: hidden; }
.tags { animation: none; }
html[data-mode="model"]:not(.busy) .tag3d { animation: tagIn 0.45s ease both; }
@keyframes tagIn { from { opacity: 0; } to { opacity: 1; } }
.tag3d { position: absolute; left: 0; top: 0; display: flex; align-items: baseline; gap: 7px; padding: 6px 11px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; background: rgba(14, 15, 18, 0.74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink); font-size: 12.5px; font-weight: 620; white-space: nowrap; cursor: pointer; pointer-events: auto; will-change: transform; transition: background 0.15s, color 0.15s; }
.tag3d .ta { font: 11px/1 var(--mono); color: var(--sub); }
.tag3d:hover, .tag3d.is-hover { background: var(--ink); color: #15171b; }
.tag3d:hover .ta, .tag3d.is-hover .ta { color: #4a4d55; }

.mini { position: fixed; z-index: 5; right: calc(var(--pad) + var(--sr)); bottom: calc(var(--pad) + var(--sb)); width: 280px; padding: 10px 10px 8px; border-radius: var(--r); background: var(--glass-strong); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.mini[hidden] { display: none; }
.mini-map svg { display: block; width: 100%; height: auto; cursor: pointer; }
.mini-cap { display: flex; justify-content: space-between; gap: 10px; margin: 7px 3px 0; font-size: 13.5px; font-weight: 600; min-height: 1.3em; }
.mini-cap .mono { font: 12px var(--mono); color: var(--sub); font-weight: 400; }
.me-cone { fill: rgba(255, 207, 90, 0.3); }
.me-dot { fill: var(--gold); stroke: #15171b; stroke-width: 7; }

.foot { position: fixed; z-index: 4; left: calc(var(--pad) + var(--sl)); bottom: calc(14px + var(--sb)); width: var(--side); pointer-events: none; }
html.legal-open .foot { z-index: 9; }
.legal { margin: 0; font-size: 10.5px; line-height: 1.45; color: var(--faint); pointer-events: auto; }
.legal-short { display: none; }
.pano-tag { position: fixed; z-index: 5; left: 50%; top: calc(var(--top) + var(--st)); transform: translateX(-50%); padding: 7px 13px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font: 600 12px/1 var(--sans); letter-spacing: 0.02em; color: var(--ink); pointer-events: none; opacity: 0; }
html:not([data-mode="visit"]) .pano-tag { display: none; }
.loader { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: var(--bg); transition: opacity 0.5s, visibility 0.5s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-in { display: grid; justify-items: center; gap: 14px; font-size: 13px; color: var(--sub); text-align: center; padding: 24px; }
.loader-mark { font: 800 15px/1 var(--sans); letter-spacing: 0.32em; color: var(--ink); }
.loader-bar { width: 160px; height: 2px; overflow: hidden; border-radius: 2px; background: var(--line); }
.loader-bar i { display: block; width: 0; height: 100%; background: var(--ink); transition: width 0.3s; }

@media (max-width: 760px) and (min-height: 501px), (max-width: 560px) {
  :root { --pad: 14px; --top: 112px; }
  .top { flex-wrap: wrap; gap: 10px; padding-top: calc(12px + var(--st)); }
  .kicker { font-size: 10px; }
  h1 { margin-top: 3px; font-size: 17.5px; }
  .lang { width: 38px; height: 38px; }
  .modes { order: 3; flex: 1 1 100%; }
  .modes button { flex: 1; justify-content: center; gap: 6px; padding: 8px 6px; font-size: 13px; }
  .modes button svg { width: 16px; height: 16px; }
  .side { top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: none; overflow: visible; padding: 12px var(--pad) calc(30px + var(--sb)); border-radius: 18px 18px 0 0; border-width: 1px 0 0; }
  .intro, .side h2, .calc { display: none; }
  #facts { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 2px 12px; margin: 0 0 10px; }
  .fact-x { display: none; }
  .fact-r { display: block; }
  .fact dt { font-size: 11px; }
  .fact dd { font-size: 15px; }
  .rooms ul { display: flex; gap: 7px; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rooms ul::-webkit-scrollbar { display: none; }
  .rooms li { flex: none; }
  .room-row { width: auto; margin: 0; padding: 8px 12px; gap: 7px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; white-space: nowrap; }
  .room-row .ra { font-size: 11px; }
  .room-row.is-static { display: none; }
  .room-row.is-here { box-shadow: none; border-color: rgba(255, 207, 90, 0.6); }
  .plan-view { top: calc(var(--top) + var(--st)); left: 6px; right: 6px; bottom: calc(176px + var(--sb)); }
  .cta { left: 0; right: 0; bottom: calc(126px + var(--sb)); }
  .primary { padding: 13px 22px; font-size: 15px; }
  .hint { left: 50%; max-width: calc(100% - 28px); bottom: calc(184px + var(--sb)); }
  html[data-mode="visit"] .hint { bottom: calc(80px + var(--sb)); }
  html[data-mode="plan"] .hint { top: calc(var(--top) + var(--st) + 6px); bottom: auto; }
  .foot { left: 0; right: 0; width: auto; bottom: calc(8px + var(--sb)); text-align: center; }
  .legal { display: none; }
  .legal-short { display: inline; padding: 2px 8px; border: 0; background: none; font-size: 10.5px; color: var(--faint); text-decoration: underline; text-underline-offset: 2px; pointer-events: auto; cursor: pointer; }
  html.legal-open .legal { display: block; position: fixed; left: var(--pad); right: var(--pad); bottom: calc(30px + var(--sb)); padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; text-align: left; color: var(--sub); z-index: 9; }
  html[data-mode="visit"] .side { padding-top: 10px; }
  .mini { top: calc(var(--top) + var(--st)); bottom: auto; right: 10px; width: 148px; padding: 6px 6px 5px; border-radius: 12px; }
  .mini-cap { margin: 4px 2px 0; font-size: 11.5px; }
  .pano-tag { left: calc(var(--pad) + var(--sl)); transform: none; }
  .mini-cap .mono { display: none; }
  .mini-map text { display: none; }
  .tag3d { padding: 5px 9px; font-size: 11.5px; }
  .tag3d .ta { display: none; }
}
@media (max-height: 500px) and (min-width: 561px) {
  :root { --top: 64px; --side: 250px; }
  .top { padding-top: calc(10px + var(--st)); }
  h1 { font-size: 16px; }
  .intro, .calc, .fact-x { display: none; }
  .side { padding: 12px; max-height: calc(100% - var(--top) - 40px); }
  #facts { margin-bottom: 10px; }
  .room-row { padding: 5px 10px; font-size: 13px; }
  .cta { bottom: calc(14px + var(--sb)); }
  .primary { padding: 10px 18px; font-size: 14px; }
  .plan-view { bottom: calc(64px + var(--sb)); }
  .hint { bottom: calc(66px + var(--sb)); }
  .mini { width: 190px; }
  .mini-map text { display: none; }
  html[data-mode="plan"] .hint { top: calc(var(--top) + var(--st) + 6px); bottom: auto; }
  html[data-mode="visit"] .hint { top: calc(var(--top) + var(--st) + 36px); bottom: auto; }
  .foot { bottom: calc(8px + var(--sb)); width: auto; }
  .legal { display: none; }
  .legal-short { display: inline; padding: 3px 9px; border: 0; background: none; font-size: 10.5px; color: var(--faint); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; pointer-events: auto; cursor: pointer; }
  html.legal-open .legal { display: block; position: fixed; left: calc(var(--pad) + var(--sl)); right: auto; bottom: calc(32px + var(--sb)); width: min(440px, calc(100% - var(--pad) * 2)); padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 11.5px; text-align: left; color: var(--sub); z-index: 9; }
}
@media (max-height: 500px) and (min-width: 561px) and (max-width: 760px) {
  :root { --pad: 14px; --side: 220px; }
  .top { gap: 10px; }
  .kicker { font-size: 9.5px; }
  h1 { font-size: 14.5px; }
  .modes button { gap: 5px; padding: 6px 10px 6px 8px; font-size: 12.5px; }
  .modes button svg { width: 15px; height: 15px; }
  .lang { width: 36px; height: 36px; }
  .mini { width: 160px; }
  .tag3d { padding: 5px 9px; font-size: 11.5px; }
  .tag3d .ta { display: none; }
  .mini-cap .mono { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0.01s !important; animation-duration: 0.01s !important; } }
@media (min-width: 761px), (max-height: 500px) and (min-width: 561px) {
  html[data-mode="visit"] .side { width: min(248px, var(--side)); padding: 10px 10px 8px; }
  html[data-mode="visit"] .rooms h2, html[data-mode="visit"] .calc { display: none; }
  html[data-mode="visit"] .room-row { padding: 6px 10px; font-size: 13.5px; }
  html[data-mode="visit"] .room-row .ra { font-size: 11.5px; }
  html[data-mode="visit"] .room-row.is-static { display: none; }
  html[data-mode="visit"] .foot { width: auto; }
  html[data-mode="visit"] .legal { display: none; }
  html[data-mode="visit"] .legal-short { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(12, 13, 16, 0.66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 11.5px; color: var(--sub); text-decoration: none; pointer-events: auto; cursor: pointer; }
  html[data-mode="visit"] .legal-short:hover { color: var(--ink); }
  html[data-mode="visit"].legal-open .legal { display: block; position: fixed; left: calc(var(--pad) + var(--sl)); bottom: calc(54px + var(--sb)); width: var(--side); padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; color: var(--sub); z-index: 9; }
}
@media (min-width: 761px) and (min-height: 501px) {
  html[data-mode="visit"] .hint { left: calc((100% + var(--sl) - var(--sr) - 44px) / 2); max-width: calc(100% - var(--pad) * 2 - var(--sl) - var(--sr) - 540px); }
  html[data-mode="visit"].legal-open .hint { opacity: 0; }
}
@media (min-width: 761px) and (max-width: 899px) and (min-height: 501px) {
  html[data-mode="visit"] .hint { left: calc((100% + var(--sl) - var(--sr) - 292px) / 2); max-width: calc(100% - var(--pad) * 2 - var(--sl) - var(--sr) - 292px); bottom: calc(66px + var(--sb)); }
}
