/* Deliberately small. A starting point that reads as designed rather than as
   unstyled, without becoming a design system nobody asked for. */
:root {
  color-scheme: light dark;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --bg: #ffffff;
  --accent: #2f6f4f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ededed;
    --muted: #9a9a9a;
    --line: #333333;
    --bg: #161616;
    --accent: #6cc39a;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.5 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}

main {
  max-width: 34rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.progress progress {
  width: 100%;
  height: 0.6rem;
  accent-color: var(--accent);
}

.next {
  margin: 0.75rem 0 2rem;
  color: var(--muted);
}

.items {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.items li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.items li.done {
  color: var(--muted);
  text-decoration: line-through;
}

.items li.cancelled {
  color: var(--muted);
  font-style: italic;
}

.empty {
  color: var(--muted);
}

/* Map container and the rendered SVG it holds. */
#map {
  min-height: 6rem;
  margin-bottom: 1.25rem;
}

#map svg {
  display: block;
  width: 100%;
  height: auto;
}

.map-status {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.map-status--error {
  color: var(--accent);
}

/* Price-range legend. The swatch colours mirror the fill bands used by the
   rendered map so a reader can map a colour back to a price level. */
.legend {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.legend li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend .swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 0.2rem;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.swatch--cheap {
  background: #2e7d32;
}

.swatch--mid {
  background: #f9a825;
}

.swatch--high {
  background: #c62828;
}

.swatch--none {
  background: #cccccc;
}
