:root {
    --bg-color: #667eea;
    --text-color: white;
    --primary: #0A2472;
    --primary-glow: rgba(10, 36, 114, 0.5);
    --wall-color: #0A2472;
    --room-bg: rgba(255, 255, 255, 0.8);
    --room-hover: #667eea;
    --accent: #2E8B57;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: var(--text-color); min-height: 100vh; display: flex; flex-direction: column; }
header { text-align: center; padding: 2rem; background: #0A2472; color: white; }
header h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 0.5rem; color: white; text-transform: uppercase; letter-spacing: 2px; }
header p { color: #e0e0e0; font-size: 1.1rem; }
.container { display: flex; flex: 1; gap: 2rem; padding: 2rem; max-width: 1500px; margin: 0 auto; width: 100%; }
.plan-wrapper { flex: 2; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border-radius: 1rem; padding: 2rem; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 4px 15px rgba(0,0,0,0.1); display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; }
.plan-wrapper::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 20px 20px; z-index: 0; pointer-events: none; }
.compass { position: absolute; top: 30px; right: 30px; width: 60px; height: 60px; border: 2px solid rgba(255,255,255,0.15); border-radius: 50%; z-index: 10; backdrop-filter: blur(5px); }
.compass::after { content: ''; position: absolute; top: 50%; left: 50%; width: 2px; height: 100%; background: rgba(255,255,255,0.15); transform: translate(-50%, -50%); }
.compass::before { content: ''; position: absolute; top: 50%; left: 50%; width: 100%; height: 2px; background: rgba(255,255,255,0.15); transform: translate(-50%, -50%); }
.point { position: absolute; font-size: 11px; font-weight: 800; color: #64748b; z-index: 2; }
.point-n { top: -20px; left: 50%; transform: translateX(-50%); color: #ef4444; }
.point-s { bottom: -20px; left: 50%; transform: translateX(-50%); }
.point-e { right: -20px; top: 50%; transform: translateY(-50%); }
.point-w { left: -20px; top: 50%; transform: translateY(-50%); }
.floor-plan { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(24, minmax(25px, 1fr)); grid-template-rows: repeat(16, minmax(25px, 1fr)); gap: 4px; width: 100%; max-width: 900px; aspect-ratio: 3/2; background: rgba(255,255,255,0.9); padding: 8px; border-radius: 8px; border: 4px solid var(--wall-color); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.room { background-color: var(--room-bg); border: 2px solid var(--wall-color); border-radius: 3px; display: flex; align-items: center; justify-content: center; color: #0A2472; font-size: 1rem; font-weight: bold; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; }
.room span { z-index: 2; background: rgba(0,0,0,0.4); width: 25px; height: 25px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.85rem; }
.room:hover { background-color: var(--room-hover); color: white; transform: scale(0.96); box-shadow: 0 0 20px var(--primary-glow); z-index: 10; border-color: white; }
.room.active { background-color: var(--accent); color: white; box-shadow: 0 0 25px rgba(46, 139, 87, 0.4); border-color: white; transform: scale(0.95); }
.room.active span { background: rgba(255,255,255,0.9); }
.room.stairs::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: repeating-linear-gradient(0deg, transparent, transparent 5px, rgba(255,255,255,0.1) 5px, rgba(255,255,255,0.1) 8px); z-index: 1; }
.courtyard { background: rgba(15, 23, 42, 0.6); border: 2px dashed rgba(255, 255, 255, 0.1); border-radius: 8px; pointer-events: none; grid-area: 4 / 6 / 10 / 21; }
.info-panel { flex: 1; background: rgba(255, 255, 255, 0.1); border-radius: 1rem; padding: 2rem; border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(12px); min-width: 320px; display: flex; flex-direction: column; }
.info-panel h2 { margin-bottom: 1.5rem; font-size: 1.6rem; border-bottom: 2px solid rgba(255, 255, 255, 0.05); padding-bottom: 1rem; color: white; }
.details-card { flex: 1; display: flex; flex-direction: column; }
.placeholder { color: #64748b; text-align: center; margin: auto; font-size: 1.1rem; }
.room-detail-view h3 { color: white; font-size: 1.8rem; margin-bottom: 1.2rem; line-height: 1.2; }
.room-detail-view p { color: #f0f0f0; line-height: 1.7; margin-bottom: 1.5rem; font-size: 1.1rem; }
.room-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2rem; }
.stat-box { background: rgba(255, 255, 255, 0.2); padding: 1.2rem; border-radius: 0.8rem; border: 1px solid rgba(255, 255, 255, 0.3); text-align: center; }
.stat-box span { display: block; font-size: 0.8rem; color: #e0e0e0; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.stat-box strong { font-size: 1.4rem; color: white; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) { .container { flex-direction: column; } .plan-wrapper { min-height: 50vh; } }
