html, body {
    height: 100%;
    margin: 0;
}

#map {
    height: 100%;
    width: 100%;
}

.leaflet-tile-pane {
    filter: saturate(0.5);
}

.map-locate-btn {
    display: block;
    width: 30px;
    height: 30px;
    padding: 0;
    background: #fff;
    border: 0;
    color: #333;
    cursor: pointer;
    border-radius: 2px;
}

.map-locate-btn:hover {
    background: #f4f4f4;
}

.map-locate-btn svg {
    display: block;
    margin: auto;
}

.map-locate-btn.is-loading {
    color: #1e88e5;
}

.map-locate-btn.is-loading svg {
    animation: map-locate-pulse 1s ease-in-out infinite;
}

@keyframes map-locate-pulse {
    50% { opacity: 0.3; }
}

.map-legend {
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 10px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    font: 12px/1.5 system-ui, -apple-system, sans-serif;
    color: #222;
    max-width: 220px;
}

.map-legend-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    background: none;
    border: 0;
    padding: 0;
    margin: 0 0 6px 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}

.map-legend-chevron {
    transition: transform 0.15s ease;
}

.map-legend.is-collapsed .map-legend-toggle {
    margin-bottom: 0;
}

.map-legend.is-collapsed .map-legend-chevron {
    transform: rotate(-90deg);
}

.map-legend.is-collapsed .map-legend-body {
    display: none;
}

.map-legend-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-legend-swatch {
    flex: 0 0 16px;
    height: 4px;
    border-radius: 1px;
}
