/* Location map - dark theme overrides for Leaflet */

#location-map {
    height: 300px;
    border-radius: 0.5rem;
    border: 1px solid #374151;
    z-index: 0;
}

/* Zoom controls */
.leaflet-bar {
    border: 1px solid #4b5563 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5) !important;
}

.leaflet-bar a {
    background-color: #1f2937 !important;
    color: #d1d5db !important;
    border-bottom-color: #374151 !important;
}

.leaflet-bar a:hover {
    background-color: #374151 !important;
    color: #fff !important;
}

/* Attribution */
.leaflet-control-attribution {
    background-color: rgba(17, 24, 39, 0.8) !important;
    color: #6b7280 !important;
    font-size: 10px !important;
}

.leaflet-control-attribution a {
    color: #9ca3af !important;
}

/* Popup */
.leaflet-popup-content-wrapper {
    background-color: #1f2937 !important;
    color: #d1d5db !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
}

.leaflet-popup-tip {
    background-color: #1f2937 !important;
}

.leaflet-popup-close-button {
    color: #9ca3af !important;
}

.leaflet-popup-close-button:hover {
    color: #fff !important;
}

/* Night mode (red theme) overrides */
body[data-theme="night"] #location-map {
    border-color: #7f1d1d;
}

body[data-theme="night"] .leaflet-bar a {
    background-color: #450a0a !important;
    color: #fca5a5 !important;
    border-bottom-color: #7f1d1d !important;
}

body[data-theme="night"] .leaflet-bar a:hover {
    background-color: #7f1d1d !important;
    color: #fecaca !important;
}

body[data-theme="night"] .leaflet-bar {
    border-color: #991b1b !important;
}

body[data-theme="night"] .leaflet-control-attribution {
    background-color: rgba(69, 10, 10, 0.8) !important;
    color: #b91c1c !important;
}

body[data-theme="night"] .leaflet-control-attribution a {
    color: #dc2626 !important;
}

body[data-theme="night"] .leaflet-popup-content-wrapper {
    background-color: #450a0a !important;
    color: #fca5a5 !important;
}

body[data-theme="night"] .leaflet-popup-tip {
    background-color: #450a0a !important;
}

body[data-theme="night"] .leaflet-popup-close-button {
    color: #f87171 !important;
}

/* Night mode tile filter - darken and red-shift the map tiles */
body[data-theme="night"] .leaflet-tile-pane {
    filter: sepia(0.3) hue-rotate(-30deg) brightness(0.6) saturate(1.5);
}
