.leaflet-map-panel {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.leaflet-map-head {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid var(--border);
}

.leaflet-map-head h2 {
    margin: 4px 0 8px;
    color: var(--ink);
    font-size: 26px;
    line-height: 1.05;
}

.leaflet-map-head p {
    margin: 0;
}

.leaflet-map-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.leaflet-map-summary span {
    display: grid;
    gap: 2px;
    min-height: 70px;
    align-content: center;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.leaflet-map-summary strong {
    color: var(--ink);
    font-size: 24px;
    line-height: 1;
}

#venezuelaLeafletMap {
    width: 100%;
    min-height: 430px;
    height: 62vh;
    max-height: 720px;
    background: #dbeafe;
}

.leaflet-map-note {
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.leaflet-popup-content-wrapper {
    border-radius: 16px;
}

.leaflet-popup-content {
    min-width: 220px;
    margin: 14px;
}

.map-popup {
    display: grid;
    gap: 8px;
}

.map-popup strong {
    color: var(--ink);
    font-size: 17px;
    line-height: 1.2;
}

.map-popup small {
    color: var(--muted);
    font-weight: 850;
}

.map-popup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.map-popup-grid span {
    display: grid;
    gap: 2px;
    padding: 8px 6px;
    border-radius: 12px;
    background: #f1f5f9;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-align: center;
}

.map-popup-grid b {
    color: var(--ink);
    font-size: 18px;
}

.map-popup-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 12px;
    background: var(--ve-blue);
    color: #fff;
    font-weight: 900;
}

.map-popup-link:hover {
    background: #174b98;
    color: #fff;
}

.map-marker-dot {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 999px;
    background: var(--ve-red);
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .28);
}

.map-marker-dot.is-medium { background: var(--ve-yellow); color: #17120a; }
.map-marker-dot.is-high { background: #fb923c; }
.map-marker-dot.is-critical { background: var(--ve-red); }

@media (min-width: 760px) {
    .leaflet-map-head {
        grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
        align-items: end;
        padding: 22px;
    }

    #venezuelaLeafletMap {
        min-height: 560px;
    }
}
