/* Leaflet route map in explain results */

/* OpenStreetMap tiles are colourful; the route, highlighted segments, labels and ADEP/ADES
   markers were designed for a muted basemap. Filter the tile pane only, never the overlays. */
.leaflet-container .leaflet-tile-pane {
    filter: grayscale(70%) contrast(90%) brightness(105%);
}

/* Dark theme (MainLayout sets theme-dark on the layout): invert the tiles and rotate the hues back. */
.theme-dark .leaflet-container {
    background: #1e293b;
}

.theme-dark .leaflet-container .leaflet-tile-pane {
    filter: invert(100%) hue-rotate(180deg) grayscale(60%) brightness(90%) contrast(90%);
}

/* Leaflet control customization for aviation theme */
.leaflet-control-zoom a {
    background-color: #1976d2 !important;
    color: white !important;
}

.leaflet-control-zoom a:hover {
    background-color: #1565c0 !important;
}

/* Route marker styling for subtle appearance */
.route-airport-marker,
.route-waypoint-marker {
    transition: all 0.2s ease;
    cursor: pointer;
}

.route-airport-marker:hover,
.route-waypoint-marker:hover {
    transform: scale(1.15);
    z-index: 1000 !important;
}

.route-airport-marker div,
.route-waypoint-marker div {
    transition: all 0.2s ease;
}

.route-airport-marker:hover div,
.route-waypoint-marker:hover div {
    filter: brightness(1.1);
}
