:root {
  --adventure-ink: #101820;
  --adventure-muted: #667078;
  --adventure-paper: #f4f3ee;
  --adventure-line: #d9d8d2;
  --adventure-route: #e33b2f;
}

body.adventure-page {
  background: #fff;
  color: var(--adventure-ink);
}

.adventure-main {
  overflow: hidden;
}

.adventure-hero {
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
}

.adventure-kicker,
.gallery-kicker,
.map-kicker {
  margin: 0 0 1rem;
  color: var(--adventure-route);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.adventure-title {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3.1rem, 9vw, 7.5rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.adventure-intro {
  max-width: 56rem;
  margin: clamp(1.7rem, 4vw, 3rem) 0 0;
  color: #39434a;
  font-family: "Raleway", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.adventure-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.4rem, 5vw, 4.5rem);
  overflow: hidden;
  border: 1px solid var(--adventure-line);
  border-radius: 2px;
  background: var(--adventure-line);
}

.adventure-stat {
  min-height: 8rem;
  padding: 1.25rem;
  background: #fff;
}

.adventure-stat strong {
  display: block;
  font-family: "Raleway", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.adventure-stat span {
  display: block;
  margin-top: 0.75rem;
  color: var(--adventure-muted);
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.adventure-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.adventure-button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--adventure-ink);
  color: var(--adventure-ink);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.adventure-button:hover,
.adventure-button:focus-visible {
  background: var(--adventure-ink);
  color: #fff;
}

.adventure-button--primary {
  background: var(--adventure-ink);
  color: #fff;
}

.adventure-button--primary:hover,
.adventure-button--primary:focus-visible {
  background: var(--adventure-route);
  border-color: var(--adventure-route);
}

.route-section {
  width: min(1500px, calc(100% - 2rem));
  margin: 0 auto;
}

.route-heading,
.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.25rem;
}

.route-heading h2,
.gallery-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.route-instructions {
  margin: 0 0 0.35rem;
  color: var(--adventure-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-map-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid #d0cfc9;
  border-radius: 3px;
  background: var(--adventure-paper);
  box-shadow: 0 30px 80px rgba(21, 29, 33, 0.1);
}

.route-map {
  width: 100%;
  height: clamp(31rem, 72vh, 49rem);
  background:
    radial-gradient(circle at 55% 40%, rgba(255,255,255,0.7), transparent 35%),
    #e6e5df;
}

.map-status {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  max-width: calc(100% - 2rem);
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(16, 24, 32, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: #30383e;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transition: opacity 180ms ease;
}

.map-status.is-hidden {
  pointer-events: none;
  opacity: 0;
}

.maplibregl-ctrl-group,
.maplibregl-ctrl-attrib {
  border-radius: 2px !important;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.14) !important;
}

.map-source-note {
  margin: 0.75rem 0 0;
  color: #7c8286;
  font-size: 0.72rem;
  text-align: right;
}

.adventure-gallery {
  padding: clamp(6rem, 12vw, 11rem) 0 7rem;
}

.gallery-intro {
  max-width: 34rem;
  margin: 0;
  color: var(--adventure-muted);
  line-height: 1.6;
}

.adventure-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.6rem);
}

.adventure-photo {
  margin: 0;
}

.adventure-photo--wide {
  grid-column: 1 / -1;
}

.adventure-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 72rem;
  object-fit: cover;
  background: #ecece8;
}

.adventure-photo:not(.adventure-photo--wide) img {
  aspect-ratio: 4 / 3;
}

.adventure-photo--portrait img {
  aspect-ratio: 3 / 4 !important;
  object-position: center;
}

.adventure-photo figcaption {
  padding-top: 0.55rem;
  color: var(--adventure-muted);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}

@media (max-width: 767px) {
  .adventure-hero {
    padding-top: 3.25rem;
  }

  .adventure-title {
    font-size: clamp(3rem, 17vw, 5.4rem);
  }

  .adventure-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .adventure-stat {
    min-height: 6.8rem;
  }

  .route-heading,
  .gallery-heading {
    display: block;
  }

  .route-instructions,
  .gallery-intro {
    margin-top: 0.85rem;
  }

  .route-map {
    height: 34rem;
  }

  .adventure-gallery-grid {
    grid-template-columns: 1fr;
  }

  .adventure-photo--wide {
    grid-column: auto;
  }

  .adventure-photo img,
  .adventure-photo:not(.adventure-photo--wide) img {
    aspect-ratio: auto;
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-status,
  .adventure-button {
    transition: none;
  }
}
