/* A single existing theme button owns all appearance choices. No catalogue panel. */
.map-night-settings { display: none !important; }

/* Classic rendering uses the historical tile transform, never marker ancestors. */
html[data-theme="dark"][data-map-style="classic"] .leaflet-container img.leaflet-tile:not(.dark-basemap) {
  filter: invert(0.96) hue-rotate(180deg) brightness(0.9) contrast(0.85) saturate(0.9);
}
html[data-theme="dark"][data-map-style="classic"] .map-area .leaflet-container {
  background-color: #0b0f14;
}

/* Native night rendering dims the composed tile plane once, preserving colours. */
html[data-theme="dark"][data-map-style="night"] .leaflet-container .leaflet-tile-pane,
html[data-theme="dark"][data-map-style="night"] .layer-catalog__preview-image {
  filter: brightness(var(--nemap-map-night-brightness, 0.55));
}
html[data-theme="dark"][data-map-style="night"] .map-area .leaflet-container {
  background-color: #182027;
}
