:root {
  --panel-width: 320px;
  --accent: #1a73e8;
  --border: #d7dce1;
  --bg-panel: #f7f9fb;
  --text-main: #1b1f23;
  --text-muted: #667085;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  overflow: hidden;
}

#app {
  display: flex;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
}

/* ---------------- LEFT PANEL ---------------- */
#layerPanel {
  width: var(--panel-width);
  min-width: var(--panel-width);
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: margin-left 0.25s ease;
  z-index: 500;
}

#layerPanel.collapsed {
  margin-left: calc(-1 * var(--panel-width));
}

.panelHeader {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.panelHeader h1 {
  font-size: 16px;
  margin: 0;
  font-weight: 600;
}

#panelToggleBtn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}
#panelToggleBtn:hover { background: #eef1f4; }

.panelBody {
  overflow-y: auto;
  flex: 1;
  padding: 10px 14px 40px 14px;
}

.ctrlSection {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.ctrlSection:last-child { border-bottom: none; }

.ctrlSection h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin: 0 0 8px 0;
}

.hint { text-transform: none; font-weight: normal; letter-spacing: 0; }

.layerList { display: flex; flex-direction: column; gap: 4px; }

.layerRow {
  display: flex;
  align-items: center;
  padding: 4px 2px;
}

.layerRow label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
}

.layerRow input[type="checkbox"],
.layerRow input[type="radio"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.wideBtn {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
}
.wideBtn:hover { filter: brightness(1.08); }
.wideBtn.active { background: #0d47a1; }

.secondaryBtn {
  background: #fff;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.fileBtn { cursor: pointer; }

.subControl {
  margin-top: 6px;
  padding-left: 4px;
}

.smallLabel {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.subControl input[type="text"] {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 6px;
}

.smallNote {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 4px 0 0 0;
}

.smallNote a { color: var(--accent); }

.statusLine {
  font-size: 12px;
  color: var(--accent);
  min-height: 16px;
  margin-top: 4px;
}

.smallLoadBtn {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.smallLoadBtn:hover { background: #eef4ff; }

/* Opener button shown only when panel is collapsed */
#panelOpenerBtn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 900;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  display: none;
}
#layerPanel.collapsed ~ #panelOpenerBtn { display: block; }

/* ---------------- RIGHT: MAP ---------------- */
#mapPanel {
  flex: 1;
  position: relative;
}

#map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.coordReadout {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 800;
  background: rgba(255,255,255,0.9);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-family: monospace;
  pointer-events: none;
}

.mapTopRightControls {
  position: absolute;
  top: 12px;
  right: 10px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mapQuickBaseButtons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mapQuickBtn {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  white-space: nowrap;
}
.mapQuickBtn:hover { background: #eef4ff; }
.mapQuickBtn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.mapScaleBar {
  padding: 2px 2px 4px 2px;
  box-sizing: border-box;
}
.mapScaleBarLabel {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: #1b1f23;
  text-shadow: 0 0 3px rgba(255,255,255,0.65), 0 0 3px rgba(255,255,255,0.65);
  margin-bottom: 2px;
  line-height: 1;
}
.mapScaleBarLine {
  height: 6px;
  border-left: 2px solid #1b1f23;
  border-right: 2px solid #1b1f23;
  border-bottom: 2px solid #1b1f23;
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.65));
}

.mapSearchWidget {
  width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.mapSearchWidgetHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.mapSearchWidget select,
.mapSearchWidget input[type="text"] {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 8px;
}
.searchBtnRow {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.searchBtnRow .wideBtn { margin-bottom: 0; flex: 1; }

/* Small standalone "my location" button directly on the map, positioned
   so the Leaflet zoom control (also bottom-right, see below) stacks
   directly above it — both reachable with a thumb on mobile. */
.mapLocateBtn {
  position: absolute;
  bottom: 112px;
  right: 10px;
  z-index: 800;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.mapLocateBtn:hover { background: #eef4ff; }
.mapLocateBtn.active { background: var(--accent); filter: brightness(1.1); }

/* Leaflet's own zoom +/- control, moved to bottom-right, enlarged to
   match the "📍" button's 40px width (Leaflet's default 26px buttons
   were noticeably smaller/harder to tap), and pulled in tight (~6px
   gap) just above the location button so the whole cluster reads as
   one connected set of controls. */
.leaflet-bottom.leaflet-right .leaflet-control-zoom {
  margin: 0 10px 152px 0;
}
.leaflet-bottom.leaflet-right .leaflet-control-zoom a {
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 20px;
}

/* -------- User location "blue dot" (Google-Maps style) -------- */
/* Leaflet's default .leaflet-div-icon class applies its own white
   background + border box, which was silently covering our custom
   marker on some devices (this was likely the "my location not
   visible" bug) — reset it explicitly for our marker. */
.leaflet-div-icon.userLocationDot {
  background: transparent;
  border: none;
}

.userLocationDot .dotOuter {
  width: 22px; height: 22px;
  background: rgba(26,115,232,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.userLocationDot .dotInner {
  width: 12px; height: 12px;
  background: var(--accent);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 3px rgba(0,0,0,0.4);
}

/* -------- Popup table for PRIA / uploaded feature attributes -------- */
.popupTable { font-size: 12px; border-collapse: collapse; }
.popupTable td { padding: 2px 6px; border-bottom: 1px solid #eee; vertical-align: top; }
.popupTable td:first-child { font-weight: 600; color: var(--text-muted); white-space: nowrap; }

.notamSourceNote {
  font-size: 10px;
  font-style: italic;
  color: var(--text-muted);
  margin: 4px 0;
}

.notamZoneTitle {
  font-size: 13px;
  margin: 8px 0 4px 0;
}
.notamZoneTitle:first-child { margin-top: 0; }

.notamTabButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.notamTabBtn {
  background: #f2f2f2;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
}
.notamTabBtn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.notamTabPane { display: none; }
.notamTabPane.active { display: block; }

.droneTelemetryIconInner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Remote ID (other nearby drones) — deliberately different color (orange)
   from the own-aircraft marker (blue) above, so the two are never
   visually confused on the map. */
.remoteIdIconInner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.remoteIdIconDrone { border: 2px solid #ff8c00; }
.remoteIdIconPilot { border: 2px dashed #ff8c00; }

/* -------- EANS iframe overlay -------- */
.iframeOverlay {
  position: absolute;
  inset: 0;
  z-index: 950;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.iframeOverlayBar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #1b1f23;
  color: #fff;
  font-size: 13px;
}
.iframeOverlayBar span { flex: 1; font-weight: 600; }
.openNewTabLink { color: #9ecbff; text-decoration: none; font-size: 12px; }
.closeIframeBtn {
  background: none; border: none; color: #fff;
  font-size: 16px; cursor: pointer; padding: 2px 8px;
}
.iframeOverlay iframe {
  flex: 1;
  border: none;
  width: 100%;
}

.sourceToggle {
  display: flex;
  gap: 14px;
  margin-bottom: 8px;
  font-size: 13px;
}
.sourceToggle label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

/* ---------------- Collapsible sections ---------------- */
.sectionHeaderRow {
  display: flex;
  align-items: center;
  gap: 6px;
}
.collapseBtn {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 20px;
  height: 20px;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.collapseBtn:hover { background: #eef4ff; }
.sectionBody.collapsed { display: none; }
.ctrlSection.noCollapse { padding-top: 4px; }

/* ---------------- PRIA grouped lists / quick buttons ---------------- */
.presetQuickButtons {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}

/* ---------------- Minu kaardid: zoom + thematic controls ---------------- */
.myLayerZoomRow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
}
.zoomNumberInput {
  width: 46px;
  padding: 3px 5px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
}

.thematicLegend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.legendColorInput {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 3px;
  cursor: pointer;
  vertical-align: middle;
}

.legendChip {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  background: #f2f2f2;
  border-radius: 10px;
  padding: 2px 8px 2px 4px;
}

/* ---------------- Search + directions ---------------- */
.nestedDivider {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin: 14px 0 8px 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
#searchLayerSelect, #searchFieldSelect, #searchTextInput {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 8px;
}
.searchResultBox {
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafbfc;
}
.directionsLink {
  display: block;
  text-align: center;
  margin-top: 8px;
  text-decoration: none;
}

/* ---------------- Generic utility ---------------- */
.hidden { display: none !important; }

#sheetJoinControls select,
#sheetJoinControls input[type="text"] {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 8px;
}

.rowWithBtn {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.rowWithBtnField { flex: 1; min-width: 0; }
.rowWithBtnField select { margin-bottom: 0; }
.rowWithBtn .smallIconBtn { margin-bottom: 8px; }

#sheetUrlInput, #repoFileUrlInput {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 8px;
}

.confirmBtnRow {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.confirmBtnRow .wideBtn { margin-bottom: 0; }
.dangerWideBtn { background: #c0392b; }
.dangerWideBtn:hover { filter: brightness(1.1); }

/* ---------------- INFO ICON BUTTONS ---------------- */
.infoIconBtn {
  background: none;
  border: 1px solid var(--border);
  color: var(--accent);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  margin-left: auto;
}
.infoIconBtn:hover { background: #eef4ff; }
.infoIconBtn.small { width: 18px; height: 18px; font-size: 11px; }

.ctrlSection h2 {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------------- MODAL ---------------- */
.modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modalOverlay.hidden { display: none; }

.modalBox {
  background: #fff;
  border-radius: 10px;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.modalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.modalBody {
  padding: 14px 16px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.5;
}
.modalBody h3 { margin-top: 0; }
.modalBody ul { margin: 6px 0; padding-left: 20px; }

/* ---------------- PRIA layer list / color swatches / presets ---------------- */
.colorSwatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.presetBar {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
}
.presetBar input[type="text"],
.presetBar select {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  min-width: 0;
}
.smallBtn {
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.smallBtn:hover { background: #eef4ff; }
.dangerBtn { color: #c0392b; }

/* ---------------- Minu kaardid: unified layer rows ---------------- */
.myLayersList {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.myLayerRow {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.myLayerTopLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.myLayerTopLine label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  min-width: 0;
}

.myLayerName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.myLayerBtnGroup {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.smallIconBtn {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}
.smallIconBtn:hover { background: #eef4ff; }
.dangerIconBtn { color: #c0392b; }

.myLayerDetails.collapsed { display: none; }

.colorFieldLabel {
  margin-left: 6px;
}
.colorFieldLabel:first-child { margin-left: 0; }

/* Bigger, cube-like color swatches for "Värv"/"Joon" — the native
   <input type="color"> is quite small by default and its current
   color can be hard to see; this makes the selected color the clear
   focal point of the control. */
.colorSwatchInput {
  width: 34px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  vertical-align: middle;
}
.colorSwatchInput::-webkit-color-swatch-wrapper { padding: 2px; }
.colorSwatchInput::-webkit-color-swatch { border: none; border-radius: 2px; }
.colorSwatchInput::-moz-color-swatch { border: none; border-radius: 2px; }

.myLayerLabelRow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
}
.myLayerLabelRow select {
  flex: 1;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
}

.featureLabel {
  background: rgba(255,255,255,0.85);
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  font-size: 11px;
  padding: 1px 5px;
}

/* ---------------- EANS overlay sync button ---------------- */
.linkBtn {
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}
.linkBtn:hover { background: rgba(255,255,255,0.15); }

/* ---------------- Warning banner (e.g. base layer tile failures) ---------------- */
.warningBanner {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  z-index: 850;
  background: #fff3cd;
  color: #7a5b00;
  border: 1px solid #ffe08a;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  max-width: 80%;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.warningBanner.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------------- RESPONSIVE (phones / RC controller touchscreens) ---------------- */
@media (max-width: 820px) {
  :root { --panel-width: 86vw; }
  #layerPanel {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  }
  #mapPanel { width: 100%; }
}

/* Locate button: active but map not following the position */
.mapLocateBtn.notFollowing { opacity: 0.75; box-shadow: inset 0 0 0 2px #1a73e8; }

/* Tuul: läbipaistev, tekst must Põhikaardil, valge Ortofotol */
.windWidget {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 2px; box-sizing: border-box; cursor: pointer;
  background: transparent; border: 0;
  color: #1b1f23; font-size: 13px; font-weight: 700; line-height: 1.2;
  text-shadow: 0 0 3px rgba(255,255,255,0.7), 0 0 3px rgba(255,255,255,0.7);
}
.windWidget.onPhoto { color: #fff; text-shadow: 0 0 3px rgba(0,0,0,0.75), 0 0 3px rgba(0,0,0,0.75); }
.windWidget .windArrow { display: inline-block; font-size: 22px; line-height: 1; transition: transform .3s; }
.windWidget.stale .windText::after { content: " ⚠"; }

/* Täisekraani nupp: PIN-i all, sama suurus */
.mapLocateBtn.mapFullscreenBtn { bottom: 72px; }

/* Skaala: must Põhikaardil, valge Ortofotol (nagu tuul) */
.mapScaleBar.onPhoto .mapScaleBarLabel { color: #fff; text-shadow: 0 0 3px rgba(0,0,0,0.75), 0 0 3px rgba(0,0,0,0.75); }
.mapScaleBar.onPhoto .mapScaleBarLine { border-color: #fff; filter: drop-shadow(0 0 2px rgba(0,0,0,0.75)); }

/* iPhone (notš / koduriba): hoia juhtnupud turvaalas, kui rakendus käib täisekraanil */
.mapLocateBtn { right: calc(10px + env(safe-area-inset-right)); }
.mapLocateBtn { bottom: calc(112px + env(safe-area-inset-bottom)); }
.mapLocateBtn.mapFullscreenBtn { bottom: calc(72px + env(safe-area-inset-bottom)); }
.leaflet-bottom.leaflet-right .leaflet-control-zoom { margin: 0 calc(10px + env(safe-area-inset-right)) calc(152px + env(safe-area-inset-bottom)) 0; }

/* ---------- Öörežiim ----------
   Kogu leht inverteeritakse ja tumendatakse; kaardi sisu (ortofoto, kihid,
   markerid) pööratakse tagasi, et värvid jääksid õigeks, kuid ei oleks eredad. */
.mapLocateBtn.mapNightBtn { bottom: calc(32px + env(safe-area-inset-bottom)); }
html { background: #fff; }
html.night { background: #fff; filter: invert(1) hue-rotate(180deg) brightness(0.8) contrast(0.95); }
html.night .leaflet-overlay-pane,
html.night .leaflet-marker-pane,
html.night .leaflet-shadow-pane { filter: invert(1) hue-rotate(180deg) brightness(0.85); }
html.night.photo .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.65); }
html.night .windWidget.onPhoto,
html.night .mapScaleBar.onPhoto { filter: invert(1) hue-rotate(180deg); }
html.night .mapNightBtn { background: var(--accent); color: #fff; }
