:root {
  color-scheme: light;
  --panel-bg: rgba(255, 255, 255, 0.94);
  --panel-border: rgba(15, 23, 42, 0.12);
  --text: #172033;
  --muted: #64748b;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #e8edf3;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.map-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 360px;
}

.map-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #dce4ec;
}

.map-panel {
  position: absolute;
  z-index: 500;
  top: 16px;
  right: 16px;
  width: min(340px, calc(100vw - 32px));
  padding: 14px 15px 13px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--panel-bg);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(10px);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #94a3b8;
}

.status-ready {
  background: #22c55e;
}

.status-error {
  background: #ef4444;
}

.panel-message {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.error-message {
  color: #b91c1c;
}

.zone-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.zone-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #334155;
  font-size: 13px;
  line-height: 1.2;
}

.zone-swatch {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border: 1px solid rgba(15, 23, 42, 0.22);
  border-radius: 3px;
}

.zone-tooltip {
  border: 0;
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
  font-size: 12px;
  font-weight: 700;
}

.zone-tooltip::before {
  border-top-color: rgba(15, 23, 42, 0.9) !important;
}

.leaflet-control-zoom a {
  color: #172033;
}

noscript {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 1000;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  color: #b91c1c;
}

@media (max-width: 600px) {
  .map-panel {
    top: 10px;
    right: 10px;
    width: min(300px, calc(100vw - 20px));
    padding: 12px 13px;
  }

  .zone-list {
    gap: 6px;
    margin-top: 10px;
  }
}
