/* Varial — Leaflet overrides */

/* Interconnectors map — region label (DivIcon) */
.intx-map-region-label {
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  background: none;
  border: none;
  box-shadow: none;
  color: var(--varial-gray-700, #38352F);
}

/* Styleguide demo — fullscreen-button override (Leaflet injects inline styles
   on .leaflet-control a, so !important is permitted here per CLAUDE.md). */
.sg-leaflet-fullscreen-btn {
  font-size: 1rem;
  line-height: 26px;
  text-align: center;
  text-decoration: none;
  color: var(--varial-gray-600, #4D4A46) !important;
  display: block;
  width: 26px;
  height: 26px;
}

/* Dark mode — the dark_all basemap pairs with a dark container bg + readable
   zoom/layer controls (JS swaps the tile URL on theme toggle). */
[data-bs-theme="dark"] .leaflet-container {
  background: #0F172A;
}

[data-bs-theme="dark"] .leaflet-bar a,
[data-bs-theme="dark"] .leaflet-control-zoom a {
  background: var(--varial-bg-subtle, #1E293B);
  color: var(--varial-gray-500, #CBD5E1);
  border-color: var(--varial-border, #334155);
}

[data-bs-theme="dark"] .leaflet-bar a:hover,
[data-bs-theme="dark"] .leaflet-control-zoom a:hover {
  background: var(--varial-gray-100, #334155);
}

/* Varial X dark maps (Desk gas and weather): the light basemap turned dark, so land is a dark
   grey and the sea a dark blue, with zoom buttons and the source line to match. Leaflet writes
   inline colours on its controls, so !important is permitted here per static/CLAUDE.md. */
.vx-dark-map.leaflet-container { background: var(--vx-page, #12171c); }
.vx-dark-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.88) saturate(0.7); }
.vx-dark-map .leaflet-bar { border: 1px solid var(--vx-raised, #2e353c); box-shadow: none; }
.vx-dark-map .leaflet-bar a,
.vx-dark-map .leaflet-bar a.leaflet-disabled {
  background: var(--vx-surface, #1b2127) !important;
  color: var(--vx-text, #e6ebef) !important;
  border-bottom-color: var(--vx-raised, #2e353c) !important;
}
.vx-dark-map .leaflet-bar a:hover { background: var(--vx-raised, #2e353c) !important; }
.vx-dark-map .leaflet-bar a.leaflet-disabled { color: var(--vx-muted, #8a949c) !important; }
.vx-dark-map .leaflet-control-attribution {
  background: rgba(18, 23, 28, 0.78) !important;
  color: var(--vx-muted, #8a949c);
}
.vx-dark-map .leaflet-control-attribution a { color: var(--vx-text, #e6ebef); }
.vx-dark-map .leaflet-attribution-flag { display: none !important; }
