/*
 * base.css — global reset, typography, and the shared data-status banner.
 *
 * Layout for the #itinerary / #map split (side-by-side on desktop, a
 * toggle on mobile) is out of scope here — that's U6's responsive.css.
 * This file only makes the bare shell legible and keeps the loading/error/
 * empty states from data.js clearly visible (R28).
 */

:root {
  --color-error-text: #7a1f1f;
  --color-error-bg: #fdecec;
  --color-error-border: #f3b4b4;
  --color-warn-text: #5c4a12;
  --color-warn-bg: #fdf6e3;
  --color-warn-border: #f0dfa0;
  --color-accent: #2a6f97;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.4;
  color: #1a1a1a;
  background: #fafafa;
}

.site-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #ddd;
}

.site-header h1 {
  margin: 0;
  font-size: 1.25rem;
}

.site-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

#itinerary,
#map {
  min-height: 0;
}

.data-status {
  margin: 0.75rem 1rem 0;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.data-status p {
  margin: 0;
}

.data-status code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

.data-status--loading {
  color: #444;
  background: #f0f0f0;
  border-color: #ddd;
}

.data-status--error {
  color: var(--color-error-text);
  background: var(--color-error-bg);
  border-color: var(--color-error-border);
}

.data-status--empty {
  color: var(--color-warn-text);
  background: var(--color-warn-bg);
  border-color: var(--color-warn-border);
}
