:root {
  color-scheme: light;
  --ink: #18202a;
  --muted: #617083;
  --line: #d9e0e7;
  --paper: #f7f4ee;
  --panel: #ffffff;
  --accent: #1f7a6b;
  --accent-2: #b94731;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: var(--accent); text-decoration: none; font-weight: 700; }
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { color: var(--ink); font-size: 22px; }
nav { display: flex; gap: 18px; }
.hero {
  min-height: 56vh;
  display: flex;
  align-items: end;
  padding: 56px 28px;
  color: #fff;
  background:
    linear-gradient(0deg, rgba(15,29,40,.72), rgba(15,29,40,.22)),
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.hero h1 { font-size: 58px; line-height: 1; margin: 6px 0 10px; letter-spacing: 0; }
.hero p { max-width: 560px; font-size: 18px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; color: var(--accent-2); }
.section, .trip-layout, .recap { max-width: 1180px; margin: 0 auto; padding: 34px 24px; }
.section-head, .trip-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
h1, h2 { margin: 0; letter-spacing: 0; }
.trip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.trip-card, article, .auth-panel, .admin-band {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.trip-card { display: grid; gap: 8px; }
.actions, .inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.button, button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}
.button.subtle, .secondary { background: #2d4052; color: #fff; }
.auth-panel { max-width: 420px; margin: 70px auto; }
form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 700; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 90px; }
.error { color: #a12626; font-weight: 800; }
.notice { background: #e8f3ee; border: 1px solid #bddbcd; padding: 10px 12px; border-radius: 6px; }
.map-shell { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
#map { height: 470px; width: 100%; }
.recap-map { height: 520px; border-radius: 8px; border: 1px solid var(--line); margin: 20px 0; }
.layer-controls { position: absolute; top: 12px; right: 12px; display: grid; gap: 8px; background: #fff; padding: 10px; border-radius: 8px; border: 1px solid var(--line); z-index: 500; }
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.row { border-top: 1px solid var(--line); padding: 12px 0; }
.row:first-child { border-top: 0; }
.row span { color: var(--muted); display: block; margin-top: 4px; }
.stack-form { margin-top: 12px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.admin-band { margin-top: 18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.stats strong { display: block; font-size: 22px; }
.stats span { color: var(--muted); }
.timeline { display: grid; gap: 14px; }
@media (max-width: 840px) {
  .hero h1 { font-size: 42px; }
  .section-head, .trip-header, .columns { display: grid; grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding: 0 16px; }
}
