.leaflet-container {
    z-index: 10 !important;
}

/* Map Card styles */
.map-card {
    transition: box-shadow 0.3s ease;
}

.map-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Map container specific styles */
#mapaIncidencias {
    min-height: 420px;
    height: 100%;
    width: 100%;
    border-radius: 0.5rem;
    z-index: 1; /* Keep map below top navigation */
}

/* Leaflet Custom Popup Styling to match dashboard */
.custom-leaflet-popup .leaflet-popup-content-wrapper {
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.custom-leaflet-popup .leaflet-popup-tip-container .leaflet-popup-tip {
    background: #ffffff;
}

.custom-leaflet-popup .leaflet-popup-close-button {
    color: #64748b;
    padding: 6px 6px 0 0;
}

.custom-leaflet-popup .leaflet-popup-close-button:hover {
    color: #0f172a;
}

.map-popup-content h3 {
    color: #1e3a8a; /* Institucional azul oscuro */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    #mapaIncidencias {
        min-height: 350px;
    }
}

@media (max-width: 640px) {
    #mapaIncidencias {
        min-height: 300px;
    }
}
