#mapa-container {
    width: 100%;
    margin: 0 auto 30px;
}

#mapa-leaflet {
    width: 100%;
    height: 70vh;
    min-height: 450px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
    z-index: 1;
}

.mapa-subtitle {
    font-size: 16px;
    color: #666;
    margin-top: 5px;
}

/* ── Filters ── */
#mapa-filters {
    margin-bottom: 15px;
}

.mapa-filters-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.filter-group select,
.filter-group input[type="text"] {
    padding: 7px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    min-width: 160px;
    background: #fff;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    border-color: #e74c3c;
    outline: none;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, .15);
}

.btn-mapa-reset {
    padding: 7px 18px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s;
}

.btn-mapa-reset:hover {
    background: #c0392b;
}

/* ── Legend ── */
#mapa-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    padding: 10px 0 25px;
    font-size: 14px;
    color: #555;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* ── Marker dots ── */
.mapa-marker span {
    display: block;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    transition: transform .15s;
}

.mapa-marker:hover span {
    transform: scale(1.3);
}

/* ── Popup ── */
.mapa-popup {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.mapa-popup strong {
    font-size: 15px;
}

.mapa-popup-type {
    font-size: 12px;
    color: #888;
    text-transform: capitalize;
}

.mapa-popup-link {
    display: inline-block;
    margin-top: 5px;
    color: #e74c3c;
    font-weight: 600;
    text-decoration: none;
}

.mapa-popup-link:hover {
    text-decoration: underline;
}

.leaflet-attribution-flag {
    display: none !important;
    height: 0;
    width: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    #mapa-container {
        padding: 0 12px;
        overflow: hidden;
    }

    #mapa-leaflet {
        height: 50vh;
        min-height: 300px;
        border-radius: 6px;
    }

    .mapa-subtitle {
        font-size: 14px;
    }

    #mapa-filters {
        padding: 0;
    }

    .mapa-filters-inner {
        flex-direction: column;
        gap: 8px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select,
    .filter-group input[type="text"] {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .btn-mapa-reset {
        width: 100%;
    }

    #mapa-legend {
        gap: 10px;
        font-size: 12px;
        padding: 8px 0 20px;
    }
}
