:root { --ink: #f4f1ea; --glass: rgba(20, 22, 26, 0.62); --accent: #e9c46a; --free: #7bd389; --sold: #9aa0a6; color-scheme: dark; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #0d0f12; color: var(--ink); font: 15px/1.35 system-ui, sans-serif; overflow: hidden; }
.view { position: fixed; inset: 0; touch-action: none; user-select: none; }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.6s ease; }
.hidden { opacity: 0; pointer-events: none; }
#pano.hidden, #floor-card.hidden { display: none; }
#floors { position: absolute; inset: 0; width: 100%; height: 100%; }
#floors polygon { fill: var(--accent); fill-opacity: 0; stroke: none; transition: fill-opacity 0.15s; }
#floors polygon.hover { fill-opacity: 0.28; }
#floors polygon.on { fill-opacity: 0.42; }
.pill { position: fixed; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 999px; padding: 8px 14px; color: var(--ink); border: 0; font: inherit; }
#loading { top: max(16px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); }
#time { bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; }
#time button { background: none; border: 0; color: var(--ink); font: inherit; padding: 8px 16px; border-radius: 999px; min-height: 44px; }
#time button.on { background: rgba(255, 255, 255, 0.18); }
#note { top: calc(max(16px, env(safe-area-inset-top)) + 52px); left: 16px; right: 16px; background: rgba(120, 20, 20, 0.85); font-size: 13px; z-index: 5; }
#back { top: max(16px, env(safe-area-inset-top)); left: 16px; min-height: 44px; }
.card { position: fixed; right: 16px; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 64px); width: min(340px, calc(100vw - 32px)); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 16px; padding: 14px; }
.card h2 { margin: 0 0 8px; font-size: 17px; }
.card .flat { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.card .free { color: var(--free); } .card .sold { color: var(--sold); }
.card button { background: var(--accent); color: #111; border: 0; border-radius: 999px; padding: 8px 12px; font: inherit; min-height: 40px; }
#scene { position: absolute; inset: 0; overflow: hidden; }
#links { position: absolute; inset: 0; pointer-events: none; }
#links .link { position: absolute; left: 0; top: 0; pointer-events: auto; width: 120px; height: 44px; border-radius: 999px; background: var(--glass); color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.4); font: inherit; }
@media (prefers-reduced-motion: reduce) { .layer { transition: none; } }
