/* style.css */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #101413;
  --bg-deep: #0a0d0c;
  --panel: #18201d;
  --panel-soft: #202a26;
  --line: rgba(237, 227, 202, 0.14);
  --text: #f6f0e4;
  --muted: #afa99b;
  --faint: #777d73;
  --amber: #f1b64d;
  --coral: #ec765a;
  --mint: #9ecfbe;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
  --serif: Fraunces, Georgia, serif;
  --sans: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #eee9df;
    --bg-deep: #ded7cb;
    --panel: #faf7f0;
    --panel-soft: #f1ece1;
    --line: rgba(46, 48, 39, 0.16);
    --text: #1b211e;
    --muted: #646b61;
    --faint: #85867f;
    --shadow: 0 18px 48px rgba(61, 49, 31, 0.12);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eee9df;
  --bg-deep: #ded7cb;
  --panel: #faf7f0;
  --panel-soft: #f1ece1;
  --line: rgba(46, 48, 39, 0.16);
  --text: #1b211e;
  --muted: #646b61;
  --faint: #85867f;
  --shadow: 0 18px 48px rgba(61, 49, 31, 0.12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 8%, rgba(119, 91, 50, 0.16), transparent 30rem),
    radial-gradient(circle at 83% 28%, rgba(55, 108, 91, 0.12), transparent 28rem),
    var(--bg);
  font-family: var(--sans);
  line-height: 1.55;
}

button, a, input { font: inherit; }
button { cursor: pointer; }

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.app-shell {
  width: min(1250px, 100%);
  margin: 0 auto;
  padding: 18px 16px 44px;
}

.hero {
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: space-between;
  gap: 38px;
  overflow: hidden;
  padding: clamp(34px, 7vw, 84px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(104deg, rgba(13, 18, 16, 0.95) 10%, rgba(14, 19, 17, 0.56) 54%, rgba(20, 36, 28, 0.48)),
    url("https://images.unsplash.com/photo-1511497584788-876760111969?auto=format&fit=crop&w=1900&q=90") center / cover;
  box-shadow: var(--shadow);
}

.hero::after {
  position: absolute;
  right: -6%;
  bottom: -32%;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(241, 182, 77, 0.34);
  border-radius: 50%;
  content: "";
}

.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(rgba(255,255,255,0.8) 0.45px, transparent 0.7px);
  background-size: 5px 5px;
  mix-blend-mode: overlay;
}

.hero-copy, .hero-card { position: relative; z-index: 1; }
.hero-copy { max-width: 710px; }

.eyebrow,
.mini-label,
.stat-label,
.detail-label,
.stop-theme {
  margin: 0 0 8px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.03;
}

h1 {
  max-width: 650px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 9vw, 6.8rem);
  font-weight: 600;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.052em;
}

h3 {
  margin-bottom: 9px;
  font-size: clamp(1.55rem, 3vw, 2.22rem);
  letter-spacing: -0.045em;
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 23px;
  color: rgba(246, 240, 228, 0.86);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #faf3e8;
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.09em;
}

.hero-meta i {
  width: 18px;
  height: 1px;
  background: var(--amber);
}

.hero-card {
  width: min(100%, 310px);
  align-self: flex-start;
  overflow: hidden;
  padding: 18px 19px;
  border: 1px solid rgba(246, 240, 228, 0.2);
  border-radius: 16px;
  background: rgba(12, 18, 15, 0.74);
  backdrop-filter: blur(11px);
}

.pit-strip {
  width: 38px;
  height: 45px;
  margin: -6px 0 8px -2px;
  object-fit: contain;
  object-position: left top;
  opacity: 0.82;
}

.hero-card strong, .hero-card span { display: block; }

.hero-card strong {
  margin-bottom: 5px;
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.12;
}

.hero-card span {
  color: #c9c4b7;
  font-size: 0.83rem;
}

.text-button {
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  color: var(--amber);
  background: transparent;
  font-size: 0.79rem;
  font-weight: 800;
  text-align: left;
}

.text-button:hover { color: #ffe0a4; }

.route-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 18px 0;
}

.route-tab {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--muted);
  background: rgba(24, 32, 29, 0.52);
  text-align: left;
  transition: 180ms ease;
}

.route-tab:hover {
  border-color: rgba(241, 182, 77, 0.48);
  transform: translateY(-2px);
}

.route-tab.active {
  border-color: var(--amber);
  color: var(--text);
  background: linear-gradient(120deg, rgba(241, 182, 77, 0.14), rgba(31, 46, 39, 0.76));
}

.route-number {
  min-width: 38px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.route-tab strong, .route-tab small { display: block; }
.route-tab strong { font-size: 0.94rem; }

.route-tab small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
}

.trip-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 18px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 18px;
}

.trip-stats article {
  min-height: 128px;
  padding: 18px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(20, 28, 25, 0.42);
}

.trip-stats strong, .trip-stats small { display: block; }

.trip-stats strong {
  margin-bottom: 5px;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 2.6vw, 1.48rem);
  line-height: 1.08;
}

.trip-stats small {
  color: var(--muted);
  font-size: 0.73rem;
}

.weather-card {
  background: linear-gradient(140deg, rgba(67, 118, 108, 0.22), rgba(30, 38, 33, 0.42)) !important;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 21px;
  background: rgba(24, 32, 29, 0.72);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.08);
}

.map-section {
  overflow: hidden;
  padding: 20px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 19px;
}

.section-heading h2 { margin: 0; }

.section-sidecopy {
  max-width: 370px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.small-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.small-link:hover {
  border-color: var(--mint);
  color: var(--mint);
}

#map {
  height: clamp(320px, 52vw, 540px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #293b34;
}

.leaflet-container { font-family: var(--sans); }
.leaflet-control-attribution { font-size: 9px !important; }

.route-marker {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid #fff4d9;
  border-radius: 50%;
  color: #191a15;
  background: var(--amber);
  box-shadow: 0 3px 16px rgba(0,0,0,0.34);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 700;
}

.route-marker.saved {
  border-color: #daeee5;
  color: #11342b;
  background: var(--mint);
}

.map-caption {
  margin: 13px 1px 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.map-fallback {
  display: grid;
  height: 100%;
  place-content: center;
  gap: 7px;
  padding: 22px;
  color: var(--text);
  text-align: center;
}

.map-fallback span {
  color: var(--muted);
  font-size: 0.82rem;
}

.route-intro {
  display: grid;
  gap: 13px;
  padding: 58px 4px 22px;
}

.route-intro h2 { margin: 0; }

.route-intro > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.itinerary {
  display: grid;
  gap: 13px;
}

.stop-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(132deg, rgba(28, 38, 33, 0.9), rgba(20, 27, 24, 0.7));
  transition: border-color 180ms ease, transform 180ms ease;
}

.stop-card:hover {
  border-color: rgba(241, 182, 77, 0.43);
  transform: translateY(-2px);
}

.stop-card.is-saved {
  border-color: rgba(158, 207, 190, 0.62);
  background: linear-gradient(132deg, rgba(35, 57, 47, 0.72), rgba(20, 28, 24, 0.74));
}

.stop-number { padding-top: 4px; }
.stop-number span, .stop-number small { display: block; }

.stop-number span {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 1.12rem;
}

.stop-number small {
  margin-top: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stop-main { min-width: 0; }

.stop-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.stop-theme { margin-bottom: 7px; }

.save-stop {
  min-width: 100px;
  min-height: 35px;
  align-self: flex-start;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 0.65rem;
  font-weight: 800;
}

.save-stop:hover, .stop-card.is-saved .save-stop {
  border-color: var(--mint);
  color: var(--mint);
}

.drive-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.drive-line span {
  width: 13px;
  height: 1px;
  background: currentColor;
}

.stop-story {
  max-width: 790px;
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 0.91rem;
}

.stop-details {
  display: grid;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.stop-details > div { min-width: 0; }

.stop-details p:not(.detail-label) {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.stop-details ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stop-details li {
  position: relative;
  margin: 0 0 6px;
  padding-left: 13px;
  color: var(--text);
  font-size: 0.8rem;
}

.stop-details li::before {
  position: absolute;
  top: 0.67em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.optional-trip {
  margin-top: 15px;
  padding: 11px 12px;
  border-left: 2px solid var(--amber);
  background: rgba(241, 182, 77, 0.075);
}

.optional-trip span {
  display: block;
  margin-bottom: 3px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.optional-trip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.weather-pip {
  grid-column: 2;
  width: max-content;
  min-height: 42px;
  padding: 6px 11px;
  border: 1px solid rgba(158, 207, 190, 0.4);
  border-radius: 8px;
  color: var(--mint);
  background: transparent;
  font-family: var(--mono);
  font-size: 0.65rem;
}

.weather-pip:hover {
  border-color: var(--mint);
  background: rgba(158, 207, 190, 0.1);
}

.gallery-section { padding: 64px 2px; }

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 170px;
  gap: 10px;
}

.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--panel-soft);
}

.photo-one { grid-row: span 2; }
.photo-three { grid-column: span 2; }

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.photo:hover img { transform: scale(1.045); }

.photo figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 32px 13px 12px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  font-family: var(--serif);
  font-size: 0.88rem;
}

.planning-grid {
  display: grid;
  gap: 14px;
}

.expedition-card,
.startup-card,
.checklist-card,
.reserve-card { padding: 22px; }

.compact { margin-bottom: 12px; }

.bronco-layout {
  display: grid;
  gap: 14px;
}

.bronco-art {
  position: relative;
  display: flex;
  min-height: 112px;
  align-items: flex-end;
  gap: 17px;
  overflow: hidden;
  padding: 13px 19px;
  border-radius: 11px;
  background:
    linear-gradient(130deg, rgba(204, 82, 49, 0.34), rgba(237, 182, 74, 0.08)),
    repeating-linear-gradient(90deg, transparent 0 29px, rgba(255,255,255,0.06) 30px 31px);
}

.bronco-art::after {
  position: absolute;
  right: -10px;
  bottom: 15px;
  left: 0;
  height: 1px;
  background: rgba(255, 238, 201, 0.4);
  content: "";
}

.bronco-art img {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,0.26));
}

.bronco-art span {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  color: #fff2d6;
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.65;
}

.bronco-copy > p {
  color: var(--muted);
  font-size: 0.86rem;
}

.field-notes {
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.field-notes li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.79rem;
}

.field-notes strong { color: var(--text); }

.prompt-list {
  display: grid;
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.prompt-list li {
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 11px;
}

.prompt-list > li > span,
.reservation-list > div > span {
  color: var(--coral);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.prompt-list strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.87rem;
}

.prompt-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.lower-grid { margin-top: 14px; }

.check-progress {
  color: var(--mint);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.checklist {
  display: grid;
  gap: 4px;
}

.kit-check {
  display: grid;
  min-height: 50px;
  grid-template-columns: 23px 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 5px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.kit-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.box {
  width: 20px;
  height: 20px;
  border: 1px solid var(--faint);
  border-radius: 5px;
  background: transparent;
}

.kit-check input:checked + .box {
  border-color: var(--mint);
  background-color: var(--mint);
  background-image: url("https://assets.popchat.com/assets/kenney/game-icons/PNG/Black/1x/checkmark.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

.kit-copy {
  color: var(--muted);
  font-size: 0.78rem;
}

.kit-check.done .kit-copy {
  color: var(--text);
  text-decoration: line-through;
  text-decoration-color: rgba(158, 207, 190, 0.55);
}

.reservation-list {
  display: grid;
  gap: 15px;
  margin-top: 21px;
}

.reservation-list > div {
  display: grid;
  grid-template-columns: 29px 1fr;
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.reservation-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.79rem;
}

.reservation-list strong { color: var(--text); }

footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 33px;
  padding: 20px 4px 0;
  border-top: 1px solid var(--line);
}

footer p {
  max-width: 830px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

footer strong { color: var(--text); }

.toast {
  position: fixed;
  z-index: 3000;
  right: 16px;
  bottom: 18px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(158, 207, 190, 0.5);
  border-radius: 10px;
  color: var(--text);
  background: #1a2b25;
  box-shadow: var(--shadow);
  font-size: 0.79rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: 220ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 620px) {
  .app-shell { padding: 26px 24px 60px; }
  .hero-card { align-self: flex-end; }
  .route-tabs { grid-template-columns: 1fr 1fr; }
  .trip-stats { grid-template-columns: repeat(4, 1fr); }
  .trip-stats article { min-height: 136px; }

  .section-heading {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }

  .stop-card {
    grid-template-columns: 65px 1fr auto;
    gap: 18px;
    padding: 24px;
  }

  .weather-pip {
    grid-column: auto;
    align-self: start;
  }

  .stop-details { grid-template-columns: 1fr 1.1fr; }

  .photo-grid {
    grid-template-columns: 1.25fr 0.75fr 0.9fr;
    grid-auto-rows: 200px;
  }

  .photo-one { grid-row: span 2; }
  .photo-three { grid-column: auto; grid-row: span 2; }

  .bronco-layout {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }

  .bronco-art { min-height: 100%; }
}

@media (min-width: 920px) {
  .app-shell { padding: 34px 34px 70px; }
  .hero { min-height: 520px; }

  .route-intro {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: end;
    padding-top: 78px;
  }

  .planning-grid { grid-template-columns: 1.2fr 0.8fr; }
  .lower-grid { grid-template-columns: 1.08fr 0.92fr; }
  .map-section { padding: 25px; }
}
