:root {
  --bg: #2d4f3e;
  --bg-deep: #243f32;
  --bg-panel: rgba(28, 48, 38, 0.72);
  --land: #3a6550;
  --land-mid: #4f7d64;
  --land-light: #a8c48a;
  --accent: #e4f0c4;
  --grid: rgba(228, 240, 196, 0.08);
  --text: #f4f7f2;
  --text-muted: #b4c4b8;
  --line: rgba(244, 247, 242, 0.16);
  --danger-soft: rgba(228, 240, 196, 0.12);
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sidebar-w: min(48vw, 620px);
  --sidebar-right: min(22vw, 280px);
}

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

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(168, 196, 138, 0.07), transparent 55%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 45%, #355844 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(12.5% - 1px),
    var(--grid) calc(12.5% - 1px),
    var(--grid) 12.5%
  );
  opacity: 0.9;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* —— Nav —— */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1.25rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  background: rgba(36, 63, 50, 0.45);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-external {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.9;
  transition: opacity 0.2s;
}

.nav-external:hover {
  opacity: 1;
}

.view-toggle {
  display: none;
}

/* —— Map home layout —— */
.map-layout {
  flex: 1;
  position: relative;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--sidebar-right);
  min-height: 0;
  height: calc(100vh - 57px);
}

.panel {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: transparent;
  border: 0;
  overflow: visible;
  z-index: 2;
  pointer-events: none;
}

.panel a,
.panel button {
  pointer-events: auto;
}

.panel-left,
.panel-right {
  background: transparent;
}

.panel-left {
  grid-column: 1;
  padding: 1.25rem clamp(1rem, 2vw, 1.5rem) 1rem;
  gap: 0.65rem;
  overflow: auto;
  pointer-events: auto;
  justify-content: flex-start;
  align-self: stretch;
}

.panel-right {
  grid-column: 3;
  justify-content: flex-start;
}

.trip-photo-stage {
  position: relative;
  flex: 0 0 auto;
  width: min(100%, 540px);
  aspect-ratio: 210 / 297;
  height: auto;
  max-height: min(82vh, 900px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #1a2e24;
}

.trip-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.05);
  transform: scale(1.02);
  transition: opacity 0.45s var(--ease);
}

.trip-photo-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 32, 26, 0.45) 0%, rgba(20, 32, 26, 0.08) 42%, rgba(20, 32, 26, 0.2) 100%);
  pointer-events: none;
  z-index: 1;
}

.trip-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.trip-route-line {
  fill: none;
  stroke: rgba(244, 241, 234, 0.92);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.trip-photo-stage.has-route .trip-route,
.trip-photo-stage.has-route .trip-route-pin {
  opacity: 0.28;
  transition: opacity 0.25s var(--ease);
}

.trip-photo-stage.has-route:hover .trip-route,
.trip-photo-stage.has-route:hover .trip-route-pin,
.trip-photo-stage.has-route:focus-within .trip-route,
.trip-photo-stage.has-route:focus-within .trip-route-pin {
  opacity: 1;
}

.route-badge {
  display: none;
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 4;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f4f1ea;
  border: 1px solid rgba(244, 241, 234, 0.35);
  padding: 0.2rem 0.45rem;
  background: rgba(20, 32, 26, 0.45);
  pointer-events: none;
}

.trip-photo-stage.has-route .route-badge {
  display: inline-block;
}

.trip-route-pin {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  pointer-events: none;
}

.trip-route-pin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(36, 63, 50, 0.45);
  background: #f4f1ea;
  box-shadow: 0 0 0 1px rgba(244, 241, 234, 0.25);
}

.trip-route-pin-label {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f4f1ea;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.trip-story-top {
  position: relative;
  z-index: 3;
}

.trip-story-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  padding: 1rem 1.1rem 0;
}

.trip-overlay-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.trip-overlay-stat strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f4f1ea;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.trip-overlay-stat span {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.72);
}

.trip-photo-label {
  display: none;
}

.trip-story-copy {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.15rem 0.15rem 0.5rem;
}

body[data-mood="winter"] .trip-photo-scrim {
  background:
    linear-gradient(180deg, rgba(18, 32, 42, 0.5) 0%, rgba(20, 32, 38, 0.1) 42%, rgba(18, 32, 42, 0.28) 100%);
}

body[data-mood="winter"] .trip-story .panel-kicker {
  color: #c5d6e2;
}

body[data-mood="summer"] .trip-story .panel-kicker {
  color: #c9d9b4;
}

.trip-story .panel-title {
  color: var(--text);
  white-space: normal;
  text-shadow: none;
  font-size: clamp(1.6rem, 2.4vw, 2.5rem);
}

.trip-story .panel-body {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: none;
  text-shadow: none;
}

.trip-writeup.is-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trip-writeup.is-expanded {
  display: block;
}

.trip-writeup p + p {
  margin-top: 0.75rem;
  display: block;
}

.trip-expand {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}

.trip-expand:hover {
  text-decoration: underline;
}

.trip-story .videolink {
  margin-top: 0.5rem;
}

.videolink {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.15rem 0.85rem 0.15rem 0.15rem;
  border: 0;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  transition: gap 0.3s var(--ease), transform 0.2s var(--ease);
  pointer-events: auto;
  max-width: 100%;
}

.videolink:hover {
  gap: 1.05rem;
}

.videolink-thumb-wrap {
  position: relative;
  width: 5.1rem;
  height: 5.1rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #1a2e24;
  border: 2px solid var(--accent);
}

.videolink-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.videolink-thumb[hidden] {
  display: none;
}

.videolink-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(20, 32, 26, 0.28);
}

.videolink-play::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.45rem 0 0.45rem 0.75rem;
  border-color: transparent transparent transparent var(--accent);
  margin-left: 0.12rem;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
}

.videolink-text {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.videolink-label {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.videolink-arrow {
  color: var(--accent);
  font-size: 1.2rem;
}

.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  pointer-events: auto;
}

.maps-link:hover {
  color: var(--accent);
}

.maps-link[hidden] {
  display: none;
}

.trip-thumbs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.trip-thumbs:empty {
  display: none;
}

.trip-thumbs button {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid transparent;
  background: #1a2e24;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), opacity 0.2s;
}

.trip-thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: transform 0.35s var(--ease);
}

.trip-thumbs button:hover img,
.trip-thumbs button[aria-pressed="true"] img {
  transform: scale(1.06);
}

.trip-thumbs button[aria-pressed="true"] {
  border-color: var(--accent);
}

.trip-thumbs button:hover {
  border-color: rgba(228, 240, 196, 0.45);
}

.panel-title,
.stat-item strong {
  text-shadow: 0 1px 18px rgba(36, 63, 50, 0.55);
}

.panel-body,
.panel-kicker,
.stat-item span {
  text-shadow: 0 1px 12px rgba(36, 63, 50, 0.45);
}

.panel-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.2vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 100%;
}

.panel-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 32ch;
}

.panel-body p + p {
  margin-top: 0.85rem;
}

.panel-fade {
  animation: panelIn 0.45s var(--ease);
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Globe stage —— */
.map-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  z-index: 0;
}

.globe-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(115vmin, 1040px);
  height: min(115vmin, 1040px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.globe-aura-core {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 50% 48%,
      rgba(160, 210, 140, 0.7) 0%,
      rgba(110, 170, 120, 0.45) 20%,
      rgba(70, 130, 90, 0.28) 38%,
      rgba(45, 100, 70, 0.14) 54%,
      transparent 70%
    );
  filter: blur(6px);
  animation: auraBreath 7s ease-in-out infinite;
}

.globe-aura-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 1;
  mix-blend-mode: normal;
}

.globe-aura-orb-a {
  width: 54%;
  height: 54%;
  top: 0%;
  left: 4%;
  background: radial-gradient(circle, rgba(150, 210, 140, 0.85), rgba(150, 210, 140, 0) 65%);
  animation: auraDriftA 11s ease-in-out infinite;
}

.globe-aura-orb-b {
  width: 50%;
  height: 50%;
  right: 0%;
  bottom: 6%;
  background: radial-gradient(circle, rgba(90, 160, 110, 0.8), rgba(90, 160, 110, 0) 65%);
  animation: auraDriftB 14s ease-in-out infinite;
}

.globe-aura-orb-c {
  width: 40%;
  height: 40%;
  left: 32%;
  bottom: -2%;
  background: radial-gradient(circle, rgba(180, 220, 160, 0.75), rgba(180, 220, 160, 0) 65%);
  animation: auraDriftC 9s ease-in-out infinite;
}

@keyframes auraBreath {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.14);
    opacity: 1;
  }
}

@keyframes auraDriftA {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(16%, 12%) scale(1.25);
  }
}

@keyframes auraDriftB {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-14%, -16%) scale(1.3);
  }
}

@keyframes auraDriftC {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(12%, -14%);
  }
  66% {
    transform: translate(-10%, 10%);
  }
}

#globe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  filter:
    drop-shadow(0 0 22px rgba(120, 180, 130, 0.55))
    drop-shadow(0 0 55px rgba(90, 160, 110, 0.4))
    drop-shadow(0 0 100px rgba(60, 130, 90, 0.32));
}

#globe:active {
  cursor: grabbing;
}

@media (prefers-reduced-motion: reduce) {
  .globe-aura-core,
  .globe-aura-orb,
  .marker-pulse,
  .pick-prompt,
  .panel-fade {
    animation: none;
  }

  .trip-hero,
  .globe-hint,
  .pick-prompt {
    transition: none;
  }
}

@keyframes pickPulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.globe-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
  text-align: center;
  max-width: 90%;
}

.globe-hint.is-hidden,
.pick-prompt.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.pick-prompt {
  position: absolute;
  top: 3.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  pointer-events: none;
  animation: pickPulse 1.6s ease-in-out infinite;
}

.marker-tooltip {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, calc(-100% - 14px));
  padding: 0.4rem 0.65rem;
  background: rgba(20, 32, 26, 0.92);
  border: 1px solid var(--line);
  pointer-events: none;
  white-space: nowrap;
}

.marker-tooltip[hidden] {
  display: none;
}

.marker-tooltip strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marker-tooltip span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.zoom-controls {
  position: absolute;
  right: 1rem;
  bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(36, 63, 50, 0.75);
}

.zoom-controls button {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s;
}

.zoom-controls button:hover {
  background: var(--danger-soft);
}

.zoom-controls button + button {
  border-top: 1px solid var(--line);
}

.trip-list {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.25rem;
  max-width: 90%;
  list-style: none;
  z-index: 2;
}

.trip-list button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.35rem 0.1rem 0.25rem;
  min-height: 2.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.trip-list button:hover,
.trip-list button[aria-pressed="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* —— Right meta / video —— */
.stat-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-item span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.trip-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
  pointer-events: auto;
}

.trip-chips button {
  border: 1px solid var(--line);
  background: rgba(36, 63, 50, 0.45);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.6rem;
  min-height: 2.1rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.trip-chips button:hover,
.trip-chips button[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
}

.marker.marker-intro .marker-pulse {
  opacity: 1 !important;
}

.marker:focus {
  outline: none;
}

.marker:focus-visible .marker-dot {
  stroke: var(--accent);
  stroke-width: 2;
}

.marker-pulse {
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* —— Inner pages —— */
.page-main {
  flex: 1;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem) 4rem;
}

.page-main h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 0.75rem;
}

.page-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 42ch;
  margin-bottom: 2.5rem;
}

.prose {
  color: var(--text-muted);
  max-width: 58ch;
}

.prose p + p {
  margin-top: 1rem;
}

.contact-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
}

.contact-row a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.about-photo {
  margin: 0 0 2rem;
  max-width: 36rem;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.about-photo figcaption {
  margin-top: 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.gear-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.gear-list li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.gear-cat {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.35rem;
}

.gear-list h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.gear-list p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 48ch;
}

.site-footer {
  padding: 1rem clamp(1.25rem, 3vw, 2.5rem) 1.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .view-toggle {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 6;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(36, 63, 50, 0.88);
    backdrop-filter: blur(8px);
  }

  .view-toggle button {
    flex: 1;
    min-height: 2.75rem;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .view-toggle button[aria-pressed="true"] {
    color: var(--accent);
    box-shadow: inset 0 -2px 0 var(--accent);
  }

  body[data-mobile-view="story"] .map-stage,
  body[data-mobile-view="story"] .panel-right {
    display: none;
  }

  body[data-mobile-view="map"] .panel-left {
    display: none;
  }

  .map-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(52vh, 1fr) auto;
    height: auto;
  }

  .panel-left,
  .panel-right {
    max-height: none;
    position: relative;
    z-index: 2;
  }

  .map-stage {
    position: relative;
    inset: auto;
    grid-row: 2;
    min-height: 70vh;
  }

  .panel-left {
    grid-row: 1;
    min-height: 0;
  }

  .trip-photo-stage {
    max-height: none;
    aspect-ratio: 210 / 297;
    width: min(100%, 540px);
    margin-inline: auto;
  }

  .trip-thumbs {
    grid-template-columns: repeat(4, 1fr);
    width: min(100%, 540px);
    margin-inline: auto;
  }

  .panel-right {
    grid-row: 3;
  }

  .panel-body {
    max-width: none;
  }

  .gear-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (max-width: 560px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .trip-list {
    position: static;
    transform: none;
    padding: 0.75rem 1rem 0;
    justify-content: flex-start;
  }

  .map-stage {
    flex-direction: column;
  }
}

/* —— Lightbox —— */
body.lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 22, 18, 0.88);
  backdrop-filter: blur(6px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.lightbox-image {
  max-width: 100%;
  max-height: min(72vh, 720px);
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-caption {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  background: rgba(36, 63, 50, 0.75);
  color: var(--text);
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.lightbox-prev {
  left: 0;
}

.lightbox-next {
  right: 0;
}

.lightbox-thumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.lightbox-thumbs button {
  width: 64px;
  height: 48px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.lightbox-thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-thumbs button[aria-pressed="true"] {
  border-color: var(--accent);
}

@media (max-width: 700px) {
  .lightbox-nav {
    top: auto;
    bottom: 4.5rem;
    transform: none;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }
}
