:root {
    --gold: #d4af37;
    --dark-bg: #0a0a0f;
    --panel-bg: rgba(15, 23, 42, 0.98);
    --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; 
}

/* Đảm bảo container chính tương thích với CMS */
#globe-interactive-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100vh;
    z-index: 99990;
    background-color: var(--dark-bg);
}

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

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

/* ĐẨY TIÊU ĐỀ XUỐNG THẤP HƠN (TỪ 20px XUỐNG 80px) TRÁNH BỊ CMS CHE KHUẤT */
#header { 
    top: 80px; 
    left: 20px; 
    pointer-events: none; 
    width: calc(100% - 40px); 
    max-width: 500px; 
}
#header h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; 
    font-size: 2rem; 
    color: var(--gold);
    text-transform: uppercase; 
    letter-spacing: 1px;
    margin-bottom: 8px; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    line-height: 1.3; 
    word-wrap: break-word; 
}
#header p { font-size: 1.1rem; color: #cbd5e1; font-weight: 300; line-height: 1.5; }

.source-attribution {
    margin-top: 10px; font-size: 0.95rem; color: #94a3b8;
    pointer-events: auto; font-family: 'Montserrat', sans-serif;
}
.source-attribution a {
    color: var(--gold); text-decoration: none; font-weight: 600;
    border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.source-attribution a:hover { border-bottom: 1px solid var(--gold); }

#sovereignty-banner {
    bottom: 20px; left: 20px;
    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; }

/* Các cấu hình Nhãn (Labels) */
.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; }

/* Panel thông tin (Không đổi) */
#info-panel {
    position: fixed; top: 0; right: -600px; 
    width: 450px; height: 100vh;
    background: var(--panel-bg); backdrop-filter: blur(15px);
    border-left: 1px solid rgba(212, 175, 55, 0.3);
    z-index: 999999; 
    transition: right 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto; box-shadow: -10px 0 30px rgba(0,0,0,0.8);
}
#info-panel.active { right: 0 !important; }

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

#info-content { padding: 60px 30px 40px 30px; position: relative; z-index: 2; }
#info-content h2 {
    font-family: 'Montserrat', sans-serif; font-size: 1.8rem;
    color: var(--gold); margin-bottom: 15px; 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; }

/* Responsive Mobile Cập nhật */
@media (max-width: 768px) {
    /* Đẩy tiêu đề xuống 70px trên mobile để tránh thanh menu của CMS/Browser */
    #header { top: 70px; left: 15px; width: calc(100% - 30px); }
    #header h1 { font-size: 1.4rem; line-height: 1.4; } 
    #header p { font-size: 0.95rem; }
    
    #info-panel { width: 100%; right: -100vw; }
    #sovereignty-banner { bottom: 20px; left: 15px; width: calc(100% - 30px); max-width: none; font-size: 0.8rem; }
}
