
* { margin: 0; padding: 0; box-sizing: border-box; }
body, html { width: 100%; height: 100%; margin: 0; overflow: hidden; background-color: #000; font-family: sans-serif; color: white; }
#viewer-container { position: relative; width: 100vw; height: 100vh; overflow: hidden; }
#viewer-canvas { position: absolute; inset: 0; z-index: 1; }
#loader { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #0a0a0a; z-index: 1000; transition: opacity 0.5s, visibility 0.5s; }
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.spinner { width: 40px; height: 40px; border: 4px solid rgba(255, 255, 255, 0.1); border-left-color: #3b82f6; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
#nav-toggle { position: absolute; top: 20px; right: 20px; padding: 10px 20px; background: #3b82f6; color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: bold; z-index: 100; pointer-events: auto; }
#nav-overlay { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 15px; z-index: 10; pointer-events: none; }
#scene-title { font-size: 24px; font-weight: bold; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
#back-button { pointer-events: auto; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.2); color: white; padding: 8px 16px; border-radius: 20px; cursor: pointer; }
#parallax-instructions { position: absolute; bottom: 20px; right: 20px; font-size: 14px; opacity: 0.6; pointer-events: none; }
#hotspots-container { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.hotspot { position: absolute; width: 40px; height: 40px; background: rgba(59, 130, 246, 0.3); border: 2px solid white; border-radius: 50%; transform: translate(-50%, -50%); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 20; animation: pulse 2s infinite; pointer-events: auto; }
.hotspot-icon { font-size: 18px; color: white; }
.hotspot-label { position: absolute; top: 120%; background: rgba(0, 0, 0, 0.7); padding: 4px 10px; border-radius: 4px; font-size: 12px; white-space: nowrap; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.hotspot:hover .hotspot-label { opacity: 1; }
@keyframes pulse { 0% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.1); } 100% { transform: translate(-50%, -50%) scale(1); } }
#controls-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.2); pointer-events: none; z-index: 5; }
.hidden { display: none !important; }

#floor-plan-btn { position: absolute; top: 100px; right: 20px; z-index: 100; padding: 10px 20px; background: rgba(17, 24, 39, 0.8); color: white; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; cursor: pointer; font-weight: 600; backdrop-filter: blur(8px); transition: all 0.3s; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2); }
#floor-plan-btn:hover { background: rgba(31, 41, 55, 0.95); transform: translateY(-2px); border-color: #3b82f6; }
#floor-plan-overlay { position: absolute; top: 160px; right: 20px; width: 320px; height: 320px; z-index: 90; overflow: hidden; background: transparent; pointer-events: none; }
#floor-plan-canvas { width: 100%; height: 100%; display: block; }
#floor-selector { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 10; pointer-events: auto; }
.floor-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(0, 0, 0, 0.6); color: white; cursor: pointer; font-weight: bold; }
.floor-btn.active { background: #10b981; border-color: #10b981; }
.room-label { position: absolute; font-size: 10px; font-weight: 500; color: rgba(255, 255, 255, 0.8); transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none; }
@media (max-width: 768px) { #floor-plan-overlay { width: 220px; height: 220px; right: 10px; top: 140px; } #floor-plan-btn { top: 80px; right: 10px; padding: 6px 12px; font-size: 13px; } }
