:root {
    --gold: #d4af37;
    --dark-bg: #0a0a0f;
    --panel-bg: rgba(15, 23, 42, 0.95);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Merriweather', serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    overflow: hidden; 
}

#globeViz {
    position: absolute;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 1;
}

#header, #sovereignty-banner, #legend {
    position: absolute; z-index: 10;
}

#header { top: 30px; left: 40px; pointer-events: none; max-width: 500px; }
#header h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; font-size: 2.2rem; color: var(--gold);
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
#header p { font-size: 1.1rem; color: #cbd5e1; font-weight: 300; }

#sovereignty-banner {
    bottom: 30px; left: 40px;
    background: rgba(220, 38, 38, 0.15);
    border-left: 4px solid #ef4444;
    padding: 12px 20px; border-radius: 4px;
    font-family: 'Montserrat', sans-serif; font-size: 0.9rem;
    max-width: 450px; line-height: 1.5;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
#sovereignty-banner strong { color: #fca5a5; }

#legend {
    bottom: 30px; right: 40px;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px; border-radius: 8px;
    font-family: 'Montserrat', sans-serif; font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.1);
}
.legend-item { display: flex; align-items: center; margin-bottom: 8px; }
.legend-item:last-child { margin-bottom: 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 10px; }
.dot.gold { background-color: var(--gold); box-shadow: 0 0 8px var(--gold); }
.dot.red { background-color: #ef4444; box-shadow: 0 0 8px #ef4444; }

.marker-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9), -1px -1px 4px rgba(0,0,0,0.9), 1px -1px 4px rgba(0,0,0,0.9), -1px 1px 4px rgba(0,0,0,0.9);
    transition: color 0.3s;
}

.label-gold { color: #f8fafc; }
.label-gold:hover { color: var(--gold); }
.label-red { color: #fca5a5; }

#info-panel {
    position: absolute; top: 0; right: -500px; 
    width: 450px; height: 100vh;
    background: var(--panel-bg); backdrop-filter: blur(10px);
    border-left: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 20; transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto; box-shadow: -5px 0 25px rgba(0,0,0,0.5);
}
#info-panel.active { right: 0; }

#close-btn {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none;
    color: var(--text-muted); font-size: 2rem;
    cursor: pointer; transition: color 0.2s; z-index: 21;
}
#close-btn:hover { color: var(--gold); }

#info-content { padding: 60px 30px 40px 30px; }
#info-content h2 {
    font-family: 'Montserrat', sans-serif; font-size: 1.8rem;
    color: var(--gold); margin-bottom: 20px; line-height: 1.3;
}
.meta-data { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.tag {
    font-family: 'Montserrat', sans-serif; font-size: 0.8rem;
    font-weight: 600; padding: 5px 12px; border-radius: 20px;
    background: rgba(255,255,255,0.1); text-transform: uppercase;
}
.tag.highlight {
    background: rgba(212, 175, 55, 0.2); color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.5);
}
#vault-location {
    font-family: 'Montserrat', sans-serif; font-size: 0.95rem;
    color: #e2e8f0; margin-bottom: 20px; line-height: 1.5;
}
.image-wrapper {
    width: 100%; border-radius: 8px; overflow: hidden;
    margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.1);
}
.image-wrapper img { width: 100%; height: auto; display: block; }
.desc-text { font-size: 1.05rem; line-height: 1.8; color: #cbd5e1; text-align: justify; }

@media (max-width: 768px) {
    #header { top: 20px; left: 20px; right: 20px; }
    #header h1 { font-size: 1.5rem; }
    #info-panel { width: 100%; right: -100%; }
    #sovereignty-banner { bottom: 20px; left: 20px; right: 20px; max-width: none; font-size: 0.8rem; }
    #legend { display: none; }
}
