:root {
    --bg-paper: #f4f0e6;  
    --text-ink: #313131;  
    --accent-red: #ea3939; 
    --text-nav: #1a1a1a; 
}

body { 
    background-color: var(--bg-paper);
    color: var(--text-ink);
    overflow-x: hidden;
}

.font-phudu { font-family: 'Phudu', cursive; }
.font-bevietnam { font-family: 'Be Vietnam Pro', sans-serif; }

.main-headline {
    font-family: 'Phudu', cursive; font-weight: 700; font-size: 60pt;
    color: #ea3939; line-height: 1.1; max-width: 980px;
    margin: 0 auto 60px auto; text-align: center; letter-spacing: -2px;
}

.map-headline {
    font-family: 'Phudu', cursive; font-weight: 500; font-size: 40pt;
    color: #f4f0e6; text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    text-align: center; text-transform: uppercase;
}

.detail-headline {
    font-family: 'Phudu', cursive; font-weight: 600; font-size: 40pt;
    color: #ea3939; line-height: 0.9; margin-bottom: 30px; letter-spacing: -4px;
}

.body-text {
    font-family: 'Be Vietnam Pro', sans-serif; font-weight: 400; font-size: 15pt;
    line-height: 30pt; color: #313131; text-align: justify; margin-bottom: 40px;
}

@media (max-width: 768px) {
    .main-headline { font-size: 30pt; max-width: 100%; padding: 0 20px; }
    .map-headline { font-size: 20pt; }
    .detail-headline { font-size: 24pt; }
    .body-text { font-size: 14pt; line-height: 24pt; }
}

.article-body-container { max-width: 660px; margin: 0 auto; padding: 0 20px; }

.leaflet-container { background: #0c1220; font-family: 'Be Vietnam Pro', sans-serif; }

.nav-strip {
    width: 60px; background: var(--text-nav); color: var(--bg-paper);
    border-right: none; display: flex; flex-direction: column; align-items: center;
    padding-top: 20px; z-index: 1000; overflow-y: auto;
    position: absolute; top: 0; bottom: 0; left: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 10px rgba(0,0,0,0.2);
}
@media (max-width: 768px) {
    .nav-strip { transform: translateX(-100%); }
    .nav-strip.active { transform: translateX(0); }
}

.nav-home-btn {
    cursor: pointer; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid var(--bg-paper);
    background: transparent; color: var(--bg-paper);
    margin-bottom: 20px; transition: all 0.2s;
}
.nav-home-btn:hover { background: var(--bg-paper); color: var(--text-nav); }

.nav-dot {
    width: 32px; height: 32px; border-radius: 50%; background: transparent; 
    color: var(--bg-paper); border: 1px solid rgba(244, 240, 230, 0.5);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; margin-bottom: 12px; cursor: pointer; transition: all 0.2s;
    font-family: 'Be Vietnam Pro', sans-serif;
}
.nav-dot:hover { background: var(--bg-paper); color: var(--text-nav); transform: scale(1.1); }
.nav-dot.active { background: var(--accent-red); color: white; border-color: var(--accent-red); transform: scale(1.15); box-shadow: none; }
.nav-dot.special-10 { border-color: #ef4444; color: #ef4444; animation: pulse-border 2s infinite; }
.nav-dot.special-10.active { background: #ef4444; color: white; border-color: #ef4444; animation: none; }
@keyframes pulse-border { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); } 70% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

.location-label-card {
    position: absolute; bottom: 40px; left: 80px;
    background: var(--text-nav); color: var(--bg-paper);
    padding: 24px; border-radius: 0; border: 1px solid rgba(255,255,255,0.1);
    z-index: 900; transform: translateY(20px); opacity: 0;
    transition: all 0.4s; pointer-events: none; width: 340px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
@media (max-width: 768px) { .location-label-card { left: 20px; right: 20px; bottom: 80px; width: auto; } }
.location-label-card.show { transform: translateY(0); opacity: 1; pointer-events: auto; }

.btn-detail {
    background: var(--bg-paper); color: var(--text-nav);
    border: 1px solid var(--accent-red); font-size: 13px; font-weight: 700; text-transform: uppercase;
    padding: 10px 16px; width: 100%; text-align: center; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px; letter-spacing: 1px;
    margin-top: 15px; font-family: 'Be Vietnam Pro', sans-serif;
}
.btn-detail:hover { background: #fff; border-color: #ef4444; }

.split-modal {
    position: absolute; inset: 0; z-index: 2000; 
    background: var(--bg-paper);
    display: flex; flex-direction: column; transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 768px) { 
    .split-modal { flex-direction: row; } 
}
.split-modal.active { transform: translateX(0); }

.split-left { 
    position: relative; 
    background: #000;
    width: 100%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

@media (min-width: 768px) { 
    .split-left { 
        height: 100%; 
        width: auto;
    } 
}

.split-left img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.split-right { 
    background: var(--bg-paper); 
    color: var(--text-ink);
    flex-grow: 1;
    overflow-y: auto;
    height: 100%;
    padding: 20px; 
    display: flex; flex-direction: column;
}

@media (min-width: 768px) { 
    .split-right { 
        padding: 40px;
        justify-content: flex-start;
    } 
    .detail-content-wrapper {
        max-width: none; width: 100%; margin: 0;
        padding-right: 10px;
    }
    .detail-content-wrapper::-webkit-scrollbar { width: 4px; }
    .detail-content-wrapper::-webkit-scrollbar-track { background: transparent; }
    .detail-content-wrapper::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }
}

#map-wrapper {
    position: relative; width: 100%; height: 750px; margin: 60px 0;
    transition: all 0.5s ease;
    border-top: 1px solid rgba(0,0,0,0.1); border-bottom: 1px solid rgba(0,0,0,0.1);
    overflow: hidden; 
}
#map-wrapper.fullscreen { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100vw; height: 100vh; z-index: 9999; margin: 0; border: none; }

.fullscreen-btn {
    position: absolute; bottom: 20px; right: 20px; z-index: 1001;
    background: var(--bg-paper); color: var(--text-nav); font-weight: 700; font-size: 12px;
    padding: 10px 20px; text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.3); border: 1px solid var(--text-nav);
    display: flex; align-items: center; gap: 8px; font-family: 'Be Vietnam Pro', sans-serif;
}
.fullscreen-btn:hover { background: var(--text-nav); color: var(--bg-paper); }

.marker-pulse { background: rgba(234, 57, 57, 0.6); border-radius: 50%; height: 24px; width: 24px; position: absolute; left: 50%; top: 50%; margin: -12px 0 0 -12px; animation: pulse-me 2s infinite; }
.marker-dot { background-color: #ea3939; width: 100%; height: 100%; border-radius: 50%; border: 2px solid white; }
@keyframes pulse-me { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(3); opacity: 0; } }

.custom-label-icon { background: transparent; border: none; }
.sovereignty-text { color: rgba(255, 255, 255, 0.95); font-size: 11px; font-weight: 700; text-transform: uppercase; text-align: center; text-shadow: 0 1px 4px black; letter-spacing: 1px; font-family: 'Be Vietnam Pro', sans-serif; }
.city-label { color: rgba(255, 255, 255, 0.8); font-size: 10px; text-align: center; text-shadow: 0 1px 3px black; font-family: 'Be Vietnam Pro', sans-serif; }
.city-dot { width: 4px; height: 4px; background: white; margin: 0 auto 3px; border-radius: 50%; box-shadow: 0 0 4px black; }

.map-title-overlay { background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent); pointer-events: none; padding-top: 30px; }