/* =========================================================
   PETA BESAR / INDEX — FULL CSS
   Marker: bentuk pin teardrop
   Tanpa potensi
   ========================================================= */

:root {
    --navy: #0F2A43;
    --muted: #667085;
    --stroke: rgba(2, 6, 23, .10);
    --bg: #F6F8FC;
    --card: rgba(255, 255, 255, .92);
    --border: rgba(2, 6, 23, .10);
    --footerH: 56px;
}

body {
    background: var(--bg);
    padding-bottom: calc(var(--footerH) + 10px);
}

/* =========================
   ✅ TOPBAR (COMPACT)
========================= */
.topbar-v3 {
    position: sticky;
    top: 0;
    z-index: 3000;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(2, 6, 23, .08);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tb-left,
.tb-right {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.tb-right {
    justify-content: flex-end;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand .brand-text {
    min-width: 0;
}

.brand .brand-title {
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 520px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(2, 6, 23, .10);
    background: #fff;
    font-weight: 950;
    font-size: 12px;
    color: #475467;
}

/* =========================
   ✅ CONTROL BAR
========================= */
.controlbar {
    position: sticky;
    top: 64px;
    z-index: 2900;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(2, 6, 23, .08);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-toggle {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    height: 38px;
}

.btn-toggle:hover {
    filter: brightness(.98);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    font-weight: 950;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    height: 38px;
}

.chip input {
    width: 16px;
    height: 16px;
}

.tb-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 14px;
    padding: 6px;
    width: min(720px, 100%);
    min-width: 240px;
}

.tb-search input {
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    padding: 8px 10px !important;
    width: 100%;
    min-width: 140px;
    font-weight: 850;
}

.controlbar .cb-search {
    flex: 1 1 320px;
    min-width: 220px;
}

@media (max-width: 520px) {
    .controlbar {
        top: 58px;
        gap: 8px;
    }

    .controlbar .cb-search {
        flex: 1 1 100%;
        width: 100%;
    }

    .brand .brand-title {
        max-width: 100%;
    }
}

/* =========================
   ✅ MENU
========================= */
.dd {
    position: relative;
}

.dd-btn {
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(2, 6, 23, .12);
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 10px 22px rgba(2, 6, 23, .08);
    cursor: pointer;
    font-weight: 950;
    transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease;
}

.dd-btn:hover {
    box-shadow: 0 16px 30px rgba(2, 6, 23, .12);
    border-color: rgba(2, 6, 23, .18);
    transform: translateY(-1px);
}

.dd.open .dd-btn {
    border-color: rgba(15, 42, 67, .35);
    box-shadow: 0 18px 40px rgba(2, 6, 23, .14);
}

.dd-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 42, 67, .06);
    border: 1px solid rgba(2, 6, 23, .08);
    color: #0F2A43;
    font-size: 16px;
}

.dd-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #0F2A43;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    font-size: 13px;
}

.dd-caret {
    font-size: 12px;
    opacity: .7;
    transition: transform .18s ease;
}

.dd.open .dd-caret {
    transform: rotate(180deg);
}

.dd-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .55);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    z-index: 4998;
}

body.menu-open .dd-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.dd-panel {
    position: fixed !important;
    right: 12px !important;
    top: 72px !important;
    width: min(520px, calc(100vw - 24px)) !important;
    max-height: calc(100vh - 90px) !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
    background: rgba(255, 255, 255, .94) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(2, 6, 23, .14) !important;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(2, 6, 23, .18) !important;
    padding: 10px;
    display: none;
    z-index: 4999 !important;
}

.dd.open .dd-panel {
    display: block;
}

@media (max-width: 700px) {
    .dd-panel {
        left: 12px !important;
        right: 12px !important;
        top: 72px !important;
        width: auto !important;
    }
}

.dd-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 8px 10px;
}

.dd-user {
    font-weight: 950;
    color: #0B1220;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
    font-size: 14px;
    letter-spacing: -.15px;
}

.dd-role {
    font-size: 12px;
    font-weight: 800;
    color: #667085;
    margin-top: 2px;
}

.btn-mini {
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(2, 6, 23, .12);
    background: #fff;
    font-weight: 950;
    cursor: pointer;
    height: 36px;
    display: inline-flex;
    align-items: center;
}

.dd-sep {
    height: 1px;
    background: rgba(2, 6, 23, .08);
    margin: 8px 0;
}

.dd-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 14px;
    text-decoration: none;
    color: #0B1220;
    font-weight: 900;
    transition: background .15s ease, transform .08s ease;
}

.dd-item:hover {
    background: #F6F8FC;
    transform: translateY(-1px);
}

.dd-item .hint {
    font-weight: 800;
    font-size: 12px;
    color: #667085;
    white-space: nowrap;
}

.dd-danger {
    color: #B42318;
}

.dd-item.dd-danger:hover {
    background: #FFF5F5;
}

/* =========================
   ✅ SIDEBAR SLIDE
========================= */
.shell.shell-slide {
    grid-template-columns: 380px 1fr !important;
    transition: grid-template-columns .22s ease;
}

.sidebar-slide {
    position: relative;
    transition: transform .22s ease, opacity .22s ease;
    will-change: transform;
    z-index: 20;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 4200;
}

body.sidebar-collapsed .shell.shell-slide {
    grid-template-columns: 0px 1fr !important;
}

body.sidebar-collapsed .sidebar-slide {
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 980px) {
    .shell.shell-slide {
        grid-template-columns: 1fr !important;
    }

    .sidebar-slide {
        position: fixed;
        top: 124px;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 4300;
        max-width: 520px;
        transform: translateY(110%);
        opacity: 0;
        pointer-events: none;
        border-radius: 18px;
    }

    body.sidebar-open-mobile .sidebar-slide {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    body.sidebar-open-mobile .overlay {
        opacity: 1;
        pointer-events: auto;
    }
}

/* =========================
   ✅ LAYOUT
========================= */
.shell {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 12px;
    padding: 12px;
    max-width: 1600px;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .shell {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card);
    border: 1px solid rgba(2, 6, 23, .10);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(2, 6, 23, .08);
}

.sidebar {
    padding: 12px;
}

.map-wrap {
    position: relative;
    z-index: 1;
    padding: 0;
    overflow: hidden;
}

/* =========================
   ✅ MAP
========================= */
#map {
    width: 100%;
    height: 100%;
    min-height: 520px;
    background: #f5f7fb;
}

@media (max-width: 1100px) {
    #map {
        height: 520px;
        min-height: 520px;
    }
}

.leaflet-top,
.leaflet-bottom {
    z-index: 800 !important;
}

/* =========================
   ✅ FIELD / FORM
========================= */
.section-title {
    font-size: 11px;
    letter-spacing: .14em;
    font-weight: 950;
    text-transform: uppercase;
    color: #475467;
    margin-bottom: 10px;
}

.field {
    margin-bottom: 10px;
}

label {
    font-size: 12px;
    font-weight: 900;
    color: #0B1220;
    display: block;
    margin-bottom: 6px;
}

input,
select {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(2, 6, 23, .12);
    font-weight: 850;
    background: #fff;
    box-sizing: border-box;
}

.inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 520px) {
    .inline {
        grid-template-columns: 1fr;
    }
}

.hint {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    line-height: 1.35;
}

.btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.btn2 {
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(2, 6, 23, .12);
    background: #fff;
    font-weight: 950;
    cursor: pointer;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn2.primary {
    background: var(--navy);
    color: #fff;
    border-color: rgba(15, 42, 67, .10);
}

.btn2.ghost {
    background: #fff;
    color: var(--navy);
}

/* =========================
   ✅ KPI
========================= */
.kpi {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.kbox {
    border: 1px solid rgba(2, 6, 23, .10);
    background: #fff;
    border-radius: 14px;
    padding: 10px;
}

.kbox .v {
    font-weight: 950;
    font-size: 18px;
    color: #0B1220;
}

.kbox .l {
    font-weight: 800;
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
}

/* =========================
   ✅ MAP TOOLS
========================= */
.map-tools {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 1200;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: calc(100% - 24px);
}

.map-tools .btn2 {
    height: 40px;
}

/* =========================
   ✅ LEGEND PANEL LAMA
========================= */
.legend {
    position: absolute;
    left: 12px;
    bottom: 100px;
    z-index: 1200;
    width: 260px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(2, 6, 23, .12);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 18px 50px rgba(2, 6, 23, .10);
}

.legend h4 {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 950;
    color: #0B1220;
}

.leg-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
    font-size: 12px;
    font-weight: 900;
    color: #0B1220;
}

.swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid rgba(2, 6, 23, .15);
}

.sw-high { background: rgba(239, 68, 68, .90); }
.sw-med  { background: rgba(245, 158, 11, .92); }
.sw-low  { background: rgba(16, 185, 129, .92); }
.sw-unk  { background: rgba(100, 116, 139, .75); }

.heatbar {
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(2, 6, 23, .12);
    background: #fff;
}

.heatbar .grad {
    height: 10px;
    background: linear-gradient(90deg,
            rgba(16, 185, 129, .20) 0%,
            rgba(245, 158, 11, .55) 55%,
            rgba(239, 68, 68, .95) 100%);
}

.heatbar .lbl {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 900;
    color: #0B1220;
}

/* =========================
   ✅ SLIDER
========================= */
.slider-wrap {
    margin-top: 10px;
    border: 1px solid rgba(2, 6, 23, .10);
    background: #fff;
    border-radius: 14px;
    padding: 10px;
}

.slider-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.slider-top .t {
    font-weight: 950;
    font-size: 12px;
    color: #0B1220;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.slider-top .v {
    font-weight: 950;
    font-size: 12px;
    color: #475467;
}

input[type="range"] {
    width: 100%;
    height: 36px;
}

/* =========================
   ✅ THUMB / MODAL
========================= */
.thumb {
    width: 100%;
    height: 130px;
    border-radius: 12px;
    background: #f2f4f7;
    border: 1px solid #E6EAF0;
    overflow: hidden;
    margin-bottom: 8px;
    cursor: pointer;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9000;
}

.modal.show {
    display: flex;
}

.modal .backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .55);
}

.modal .panel {
    position: relative;
    width: min(980px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow: auto;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 18px 48px rgba(2, 6, 23, .28);
    padding: 14px;
}

.modal .head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.modal .title {
    font-weight: 950;
    color: #0B1220;
    line-height: 1.2;
}

.modal .sub {
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    margin-top: 3px;
}

.modal .close {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    font-weight: 950;
    cursor: pointer;
    white-space: nowrap;
    height: 38px;
    display: inline-flex;
    align-items: center;
}

.modal .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 980px) {
    .modal .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gitem {
    border: 1px solid #E6EAF0;
    border-radius: 14px;
    overflow: hidden;
    background: #f8fafc;
}

.gitem img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.gcap {
    padding: 8px 10px;
    font-size: 12px;
    color: #0B1220;
    font-weight: 800;
}

.viewer {
    display: none;
    margin-top: 12px;
    border: 1px solid #E6EAF0;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}

.viewer.show {
    display: block;
}

.viewer img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 65vh;
    object-fit: contain;
    background: #000;
}

.viewer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid #E6EAF0;
}

.viewer-bar .meta {
    font-size: 12px;
    font-weight: 900;
    color: #0B1220;
}

.viewer-bar .btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-mini-2 {
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    font-weight: 950;
    cursor: pointer;
    font-size: 12px;
    height: 34px;
    display: inline-flex;
    align-items: center;
}

/* =========================
   ✅ SAFE AREA
========================= */
@supports (padding: max(0px)) {
    .topbar-v3,
    .controlbar {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }

    .footerbar {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        height: calc(var(--footerH) + env(safe-area-inset-bottom));
    }

    body {
        padding-bottom: calc(var(--footerH) + env(safe-area-inset-bottom) + 10px);
    }
}

/* =========================
   ✅ FOOTER
========================= */
.footerbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2500;
    height: var(--footerH);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(2, 6, 23, .10);
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.footer-brand {
    font-weight: 950;
    font-size: 10px;
    color: #0B1220;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 58vw;
}

.footer-meta {
    font-weight: 850;
    font-size: 10px;
    color: #667085;
    white-space: nowrap;
}

.footer-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(2, 6, 23, .10);
    background: #fff;
    font-weight: 950;
    font-size: 12px;
    color: #475467;
}

/* =========================
   ✅ PENAPIS PINTAR
========================= */
.sidebar .field {
    margin-bottom: 12px;
    position: relative;
}

.sidebar .inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 520px) {
    .sidebar .inline {
        grid-template-columns: 1fr;
    }
}

.section-sub {
    margin: 10px 0 6px;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #475467;
}

.filter-sep {
    border: 0;
    height: 1px;
    background: rgba(2, 6, 23, .08);
    margin: 10px 0;
}

.sidebar input,
.sidebar select {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(2, 6, 23, .12);
    font-weight: 900;
    box-sizing: border-box;
}

.sidebar .hint {
    font-size: 11px;
    font-weight: 800;
    color: #667085;
    margin-top: 4px;
    line-height: 1.35;
}

.sidebar select {
    height: 44px;
    padding: 0 44px 0 12px !important;
    line-height: 44px !important;
    font-size: 16px;
    font-weight: 900;
    color: #0B1220;
    background-color: #fff;
    -webkit-appearance: none;
    appearance: none;
}

.sidebar .field select {
    background-image:
        linear-gradient(45deg, transparent 50%, #667085 50%),
        linear-gradient(135deg, #667085 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.sidebar select option {
    color: #0B1220;
}

#sidebar .section-title {
    font-size: 11px !important;
    letter-spacing: .14em !important;
    font-weight: 950 !important;
    margin-bottom: 10px !important;
    color: #475467 !important;
}

#sidebar label {
    font-size: 12px !important;
    font-weight: 900 !important;
    color: #0B1220 !important;
    margin-bottom: 6px !important;
}

#sidebar input,
#sidebar select {
    height: 40px !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    border-radius: 12px !important;
}

#sidebar select {
    padding: 0 40px 0 12px !important;
    line-height: 40px !important;
    -webkit-appearance: none;
    appearance: none;
}

#sidebar .field select {
    background-image:
        linear-gradient(45deg, transparent 50%, #667085 50%),
        linear-gradient(135deg, #667085 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

#sidebar .hint {
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}

#sidebar .field {
    margin-bottom: 10px !important;
}

#sidebar .inline {
    gap: 10px !important;
}

#sidebar .btns .btn {
    height: 38px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    border-radius: 12px !important;
}

#sidebar .kpi .v {
    font-size: 18px !important;
}

#sidebar .kpi .l {
    font-size: 11px !important;
    font-weight: 800 !important;
}

/* =========================
   ✅ POPUP ACTIONS
========================= */
.muip-actions {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    margin-top: 10px;
}

.muip-actions .btn-act {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px;
    border-radius: 14px;
    font-weight: 950;
    font-size: 13px;
    white-space: nowrap;
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
}

.muip-actions .btn-primary {
    background: #0F2A43;
    color: #fff;
    border: 1px solid rgba(15, 42, 67, .10);
    text-decoration: none;
}

.muip-actions .btn-ghost {
    background: #fff;
    color: #0F2A43;
    border: 1px solid #E6EAF0;
    cursor: pointer;
}

.muip-actions .ico {
    width: 16px;
    height: 16px;
    display: inline-block;
    flex: 0 0 auto;
}

.muip-actions .ico svg {
    width: 16px;
    height: 16px;
    display: block;
}

@media (max-width: 420px) {
    .muip-actions .btn-act {
        font-size: 12px;
        padding: 0 10px;
    }
}

/* =========================
   ✅ TILE FIX
========================= */
.leaflet-container .no-seams {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.leaflet-tile {
    outline: 1px solid transparent !important;
    will-change: transform;
    transform: translateZ(0);
}

/* =========================
   ✅ LAYERS CONTROL
========================= */
.leaflet-top.leaflet-right {
    margin-top: 8px;
    margin-right: 8px;
}

.leaflet-control-layers {
    background: #fff !important;
    border: 1px solid rgba(2, 6, 23, .25) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    padding: 6px 8px !important;
}

.leaflet-control-layers.leaflet-control-layers-expanded {
    padding: 6px 8px !important;
}

.leaflet-control-layers-base,
.leaflet-control-layers-overlays {
    padding: 0 !important;
    margin: 0 !important;
}

.leaflet-control-layers label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 2px 0 !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    line-height: 1.2 !important;
}

.leaflet-control-layers input {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.leaflet-control-layers-separator {
    border-top: 1px solid rgba(2, 6, 23, .18) !important;
    margin: 6px 0 !important;
}

.leaflet-control-layers-toggle {
    border-radius: 10px !important;
    border: 1px solid rgba(2, 6, 23, .25) !important;
    box-shadow: none !important;
}

@media (max-width: 520px) {
    .leaflet-control-layers label {
        font-size: 13px !important;
        font-weight: 700 !important;
    }
}

/* =========================
   ✅ ZOOM INDICATOR
========================= */
.zoom-indicator {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(2, 6, 23, .12);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 950;
    color: #0B1220;
    box-shadow: 0 10px 22px rgba(2, 6, 23, .08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* =========================
   ✅ LEAFLET CONTROL GENERAL
========================= */
.leaflet-control-container .leaflet-control {
    box-shadow: 0 10px 24px rgba(2, 6, 23, .12);
    border-radius: 14px;
    border: 1px solid rgba(2, 6, 23, .08);
    overflow: hidden;
}

.leaflet-control-layers {
    background: rgba(255, 255, 255, .72) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.leaflet-control-zoom a {
    background: rgba(255, 255, 255, .75) !important;
    border: 0 !important;
    color: #0B1220 !important;
    font-weight: 950;
}

.leaflet-control-zoom a:hover {
    background: rgba(255, 255, 255, .92) !important;
}

/* =========================
   ✅ POPUP
========================= */
.leaflet-popup-content-wrapper {
    border-radius: 16px !important;
    border: 1px solid rgba(2, 6, 23, .08);
    box-shadow: 0 18px 40px rgba(2, 6, 23, .16);
}

.leaflet-popup-content {
    margin: 12px 14px !important;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.leaflet-popup-tip {
    box-shadow: 0 10px 18px rgba(2, 6, 23, .14);
}

.leaflet-container a {
    color: #0F2A43;
}

/* =========================
   ✅ TOAST
========================= */
#toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 10px 14px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .2px;
    color: #0B1220;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(2, 6, 23, .10);
    box-shadow: 0 12px 30px rgba(2, 6, 23, .14);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

#toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* =========================
   ✅ LEGEND
========================= */
.map-legend {
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(2, 6, 23, .12);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 14px 30px rgba(2, 6, 23, .18);
    min-width: 220px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #0B1220;
}

.map-legend .ttl {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-weight: 900;
    color: #0B1220;
    margin-bottom: 6px;
}

.map-legend .muted {
    color: #667085;
    font-weight: 800;
    font-size: 12px;
}

.map-legend .row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    font-weight: 850;
    color: #0B1220;
    line-height: 1.2;
}

.map-legend .dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 12px;
    background: #999;
    border: 2px solid rgba(255, 255, 255, .95);
    box-shadow: 0 0 0 1px rgba(2, 6, 23, .20), 0 8px 14px rgba(2, 6, 23, .14);
}

.leaflet-bottom.leaflet-right .map-legend {
    margin-bottom: 90px;
    margin-right: 12px;
}

.map-legend .count {
    margin-left: auto;
    color: #667085;
    font-weight: 900;
    font-size: 11px;
}

/* =========================
   ✅ MARKER — PETA BESAR / INDEX
   bentuk teardrop sama macam modul potensi
   TANPA potensi
========================= */
.muip-pin {
    background: transparent !important;
    border: none !important;
}

.muip-pin-wrap {
    width: 30px;
    height: 40px;
    display: block;
    position: relative;
}

.muip-pin-svg {
    width: 30px;
    height: 40px;
    display: block;
    filter: drop-shadow(0 10px 12px rgba(2, 6, 23, .20));
}



/* =========================
   ✅ MOBILE
========================= */
@media (max-width: 680px) {
    #map {
        min-height: 460px;
    }

    .map-legend {
        min-width: 180px;
        margin-bottom: 64px;
    }

    .leaflet-popup-content {
        margin: 10px 12px !important;
    }
}

@media (max-width: 520px) {
    .footer-meta {
        display: none;
    }

    .footer-brand {
        max-width: 72vw;
    }

    .legend {
        width: 220px;
    }
}


/* buang limit container */
.shell {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* bagi map betul-betul full */
.map-wrap {
    margin: 0 !important;
    border-radius: 0 !important;
}

/* kalau ada card effect, buang untuk map */
.map-wrap.card {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
}

/* pastikan map penuh */
#map {
    width: 100% !important;
}

body {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.shell {
    gap: 0 !important;
}

/* sidebar je ada padding */
.sidebar {
    padding: 12px;
}

/* map tanpa ruang langsung */
.map-wrap {
    padding: 0 !important;
}