
[data-bs-theme=dark] {
    --bs-map-tiles-filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg) saturate(0.3) brightness(0.7);
    --bs-minimap-border: rgba(40,40,40,1) solid;
    --bs-minimap-color: rgb(110, 110, 110);
    --bs-minimap-background: rgb(53, 53, 53);
    --bs-map-background: rgb(75, 75, 75);
}
[data-bs-theme=light] {
    --bs-map-tiles-filter: none;
    --bs-minimap-border: rgba(255,255,255,1) solid;
    --bs-minimap-color: rgb(0, 0, 0);
    --bs-minimap-background: rgb(255, 255, 255);
    --bs-map-background: #eee;
}
.leaflet-pane .leaflet-popup-pane, .leaflet-layer, .leaflet-control, #map-position {
    filter: var(--bs-map-tiles-filter);
}
.leaflet-control-minimap {
    filter: inherit;
    border: var(--bs-minimap-border);
    background: var(--bs-map-background);
}
.leaflet-control-minimap-toggle-display {
    background: none;
}
.leaflet-control-minimap-toggle-display::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bs-minimap-background);
}
.leaflet-control-minimap-toggle-display::after {
    content: '';
    position: absolute;
    inset: 0;
    mask: url('/build/images/toggle.svg') center/contain no-repeat;
    background-color: var(--bs-minimap-color);
}
#map {
    background: var(--bs-map-background) !important;
}
