/* MapLibre overrides for the Lightmanager v2 light-basemap aesthetic. */

.aza-map-shell {
    position: relative;
    width: 100%;
    height: calc(100vh - 140px);
    min-height: 480px;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 2px;
    overflow: hidden;
}

.aza-map-shell .aza-map-canvas {
    position: absolute;
    inset: 0;
}

.aza-map-legend {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1a1a1a;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.aza-map-legend .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    vertical-align: -1px;
}

.aza-map-legend .sep {
    width: 1px;
    height: 14px;
    background: rgba(0, 0, 0, 0.12);
    display: inline-block;
}

.aza-map-legend .dot.pa-on {
    background: #f0a524;
    box-shadow: 0 0 8px rgba(240, 165, 36, 0.5);
}

.aza-map-legend .dot.pa-off {
    background: #a8a59e;
    border: 1px solid rgba(0, 0, 0, 0.18);
}

.aza-map-legend .dot.pl-on {
    background: #2e9e5b;
    width: 8px;
    height: 8px;
}

.aza-map-legend .dot.pl-off {
    background: #3a7fb8;
    width: 8px;
    height: 8px;
}

/* Toggle control (top-left) — show/hide PL layer */
.aza-pl-toggle {
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
}

.aza-pl-toggle label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: 'IBM Plex Sans', 'Roboto', sans-serif;
    font-size: 12px;
    color: #1a1a1a;
    margin: 0;
    user-select: none;
}

.aza-pl-toggle input[type="checkbox"] {
    accent-color: #c97d05;
    cursor: pointer;
    margin: 0;
}

/* Popup — light card */
.maplibregl-popup.aza-popup .maplibregl-popup-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1a1a1a;
    padding: 14px 16px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.maplibregl-popup.aza-popup .maplibregl-popup-tip {
    border-top-color: #ffffff;
    border-bottom-color: #ffffff;
}

.maplibregl-popup.aza-popup .maplibregl-popup-close-button {
    color: #8a867d;
    font-size: 18px;
    right: 4px;
    top: 2px;
}

.maplibregl-popup.aza-popup .maplibregl-popup-close-button:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #1a1a1a;
}

/* Controls — keep MapLibre defaults; they work on light. */
.maplibregl-ctrl-attrib {
    background: rgba(255, 255, 255, 0.85) !important;
    color: #5a564d !important;
}

.maplibregl-ctrl-attrib a {
    color: #c97d05 !important;
}
