:root {
  --bg: #eff4f1;
  --panel: rgba(255, 255, 255, 0.95);
  --text: #1f2a30;
  --accent: #005f73;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.leaflet-tile-pane {
  filter: opacity(60%) grayscale(100%);
}

html,
body,
#map {
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #f6fff7, var(--bg));
}

.panel {
  position: absolute;
  z-index: 1000;
  background: var(--panel);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}

.controls {
  top: 14px;
  left: 14px;
  width: min(300px, calc(100vw - 28px));
}

.controls h1 {
  margin: 0 0 8px;
  font-size: 18px;
}

.controls p {
  margin: 6px 0;
  font-size: 12px;
}

.controls #poiLabel {
  font-weight: 700;
}

.controls #status {
  margin: 8px 0 0;
  font-size: 12px;
}

.controls #warningBox {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #f1c27d;
  background: #fff4e5;
  color: #7a3e00;
  font-size: 12px;
  line-height: 1.35;
}

.controls #warningBox a {
  color: #7a3e00;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legend {
  right: 14px;
  bottom: 14px;
  min-width: 150px;
  font-size: 12px;
}

.legend h2 {
  margin: 0 0 8px;
  font-size: 13px;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 3px 0;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

@media (max-width: 720px) {
  .controls {
    width: min(260px, calc(100vw - 16px));
    top: 8px;
    left: 8px;
  }

  .legend {
    right: 8px;
    bottom: 8px;
  }
}
