html, body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
}

@media (prefers-color-scheme: dark) {
  body {
    background: black;
  }
}

.root {
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media print {
  * {
    height: auto !important;
    overflow: visible !important;
  }
}

/* ── Modern map control buttons ── */
.maplibregl-ctrl-group {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(8px);
  border-radius: 12px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14), 0 1px 6px rgba(0, 0, 0, 0.08) !important;
  border: none !important;
  overflow: hidden;
}

.maplibregl-ctrl-group button {
  width: 36px !important;
  height: 36px !important;
  background-color: transparent !important;
}

.maplibregl-ctrl-group button:hover {
  background-color: rgba(198, 40, 40, 0.08) !important;
}

.maplibregl-ctrl-group button + button {
  border-top: 1px solid rgba(198, 40, 40, 0.10) !important;
}

/* Tint built-in MapLibre SVG icons (zoom +/-, geolocate) to match red theme */
.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon,
.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon {
  filter: invert(17%) sepia(96%) saturate(1012%) hue-rotate(341deg) brightness(91%) contrast(93%);
}

.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon {
  filter: invert(17%) sepia(96%) saturate(1012%) hue-rotate(341deg) brightness(91%) contrast(93%);
}

.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon,
.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon {
  filter: none;
}