

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

/* ========================================================
   RESET & BASE STYLING
======================================================== */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    height: 100% !important;
    width: 100% !important;
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    background: #F8FAFC;
}

#map {
    width: 100%;
    height: 100vh;
    z-index: 1;
}

/* ========================================================
   JUDUL PETA MODERN (MATCHING HOME GRADIENT)
======================================================== */
#judul-peta {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 54px; /* Disesuaikan agar lebih ringkas & pas */
    
    background: linear-gradient(135deg, #2563EB, #1D4ED8) !important;
    color: #FFFFFF;

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;

    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;

    z-index: 10000;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}



/* ========================================================
   POSISI KONTROL LEAFLET (DI BAWAH JUDUL HEADER)
======================================================== */
/* Geser Zoom & Search ke bawah Judul Header */
.leaflet-top.leaflet-left {
    top: 66px !important;
}

/* Geser Layer Switcher ke bawah Judul Header */
.leaflet-top.leaflet-right {
    top: 66px !important;
}

.leaflet-top,
.leaflet-right {
    z-index: 9999 !important;
}

/* ========================================================
   LABEL DESA & LEGENDA MODERN
======================================================== */
.label-desa {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #0F172A !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-shadow: 0 0 4px #FFFFFF, 0 0 4px #FFFFFF; /* Halo putih */
}

.label-desa::before {
    display: none !important; /* Hilangkan panah bawaan tooltip */
}

.info.legend {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    border: 1px solid #E2E8F0;
    line-height: 22px;
    font-size: 13px;
    color: #334155;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.info.legend h4 {
    margin: 0 0 8px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    border-bottom: 2px solid #3B82F6;
    padding-bottom: 4px;
}

.info.legend i {
    width: 15px;
    height: 15px;
    float: left;
    margin-right: 8px;
    border-radius: 4px;
    opacity: 0.95;
}

/* ========================================================
   STYLING POPUP CARD MODERN
======================================================== */
.leaflet-popup-content-wrapper {
    background: #FFFFFF !important;
    border-radius: 16px !important;
    padding: 12px 16px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15) !important;
    border: 1px solid #E2E8F0 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.leaflet-popup-tip {
    background: #FFFFFF !important;
}

.leaflet-popup-content h4 {
    color: #0F172A !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #3B82F6 !important;
    padding-bottom: 6px !important;
    margin-bottom: 8px !important;
}

.leaflet-popup-content table td {
    padding: 3px 0 !important;
    font-size: 12px !important;
    color: #475569 !important;
}

/* ========================================================
   RESPONSIVE UNTUK HP / TABLET
======================================================== */
@media (max-width: 576px) {
    #judul-peta {
        font-size: 13px;
        padding: 0 14px;
    }

    /* Sembunyikan badge Live Map di layar kecil agar judul muat */
    #judul-peta::after {
        display: none;
    }

    .info.legend {
        max-width: 240px;
        font-size: 11px;
        padding: 10px;
    }
}

