/* Map page styles — extracted from map.html inline <style> block
 * to eliminate CSP unsafe-inline requirement.
 */

#map {
    height: calc(100vh - 200px);
    min-height: 500px;
    width: 100%;
    max-width: 1800px; /* prevent excessive width on ultra-wide displays */
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.map-legend {
    background: white;
    padding: 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.legend-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.map-controls {
    background: white;
    padding: 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
}

/* Custom marker styles */
.severity-marker {
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 3px 6px rgba(0,0,0,0.4);
    font-weight: bold;
    text-align: center;
    line-height: 30px;
    color: white;
    cursor: pointer;
    transition: transform var(--transition-base);
}

.severity-marker:hover {
    transform: scale(1.2);
    z-index: var(--z-sticky);
}

.marker-extreme {
    background-color: #dc3545;
    /* Animation disabled for accessibility */
    box-shadow: 0 3px 6px rgba(0,0,0,0.4), 0 0 0 3px rgba(220, 53, 69, 0.4);
}

.marker-severe {
    background-color: #fd7e14;
}

.marker-moderate {
    background-color: #ffc107;
    color: #000;
}

.marker-minor {
    background-color: #6c757d;
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    border-radius: 0.375rem;
}

.office-popup {
    min-width: 250px;
}

.office-popup h6 {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.office-popup .badge {
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

.office-popup .btn {
    color: #fff !important;
}
