/* ═══════════════════════════════════════════════════════════════
   TRIP DETAIL PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */

/* Trip hero */
.trip-hero {
  padding: 8rem 2.5rem 5rem;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 75vh;
}

.trip-hero-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: slideUp 0.8s 0.2s forwards;
}
.trip-hero-meta::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--rust), transparent);
}
.trip-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: slideUp 1s 0.4s forwards;
}
.trip-hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--rust);
}
.trip-hero-sub {
  font-size: 1.1rem;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 540px;
  opacity: 0;
  animation: slideUp 1s 0.6s forwards;
}
.trip-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  opacity: 0;
  animation: slideUp 1s 0.8s forwards;
}
.trip-stat {
  padding: 1.25rem 1rem;
  border-top: 2px solid var(--rust);
  background: var(--paper);
}
.trip-stat .num {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.trip-stat .lbl {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.5rem;
}

.trip-hero-visual {
  position: relative;
  height: 65vh;
  min-height: 480px;
  opacity: 0;
  animation: fadeIn 1.4s 0.6s forwards;
}
.trip-hero-visual svg { width: 100%; height: 100%; }

.trip-stamp {
  position: absolute;
  top: 6%; right: 0;
  width: 130px; height: 130px;
  border: 2px solid var(--ochre);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ochre);
  background: rgba(245, 240, 230, 0.6);
  backdrop-filter: blur(4px);
  transform: rotate(8deg);
  animation: spin-slow 30s linear infinite;
  z-index: 5;
}
.trip-stamp::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--ochre);
  border-radius: 50%;
  opacity: 0.5;
}
.trip-stamp-text {
  font-family: var(--sans);
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  animation: spin-slow 30s linear infinite reverse;
}
.trip-stamp-text strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 700;
}

/* ── BREADCRUMB ────────────────────────────────────────────────── */
.breadcrumb {
  padding: 6rem 2.5rem 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.breadcrumb a { color: var(--ink-muted); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--rust); }
.breadcrumb span { margin: 0 0.75rem; opacity: 0.5; }

/* ── DOWNLOADS BAR ────────────────────────────────────────────── */
.downloads {
  background: var(--ink);
  color: var(--bg-cream);
  padding: 2.5rem 2.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--rust);
  border-bottom: 1px solid var(--rust);
}
.downloads-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ochre);
}
.download-btn {
  background: transparent;
  color: var(--bg-cream);
  border: 1px solid rgba(255, 253, 247, 0.3);
  padding: 0.85rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.download-btn:hover {
  background: var(--ochre);
  color: var(--ink);
  border-color: var(--ochre);
}
.download-btn::before { content: '↓'; font-size: 1.1rem; line-height: 0; }

/* ── TIMELINE ─────────────────────────────────────────────────── */
.timeline-section {
  background: var(--bg-cream);
  padding: 8rem 2.5rem;
}
.timeline {
  max-width: 980px;
  margin: 4rem auto 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.tl-day {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}
.tl-day-num {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-style: italic;
  font-weight: 500;
  color: var(--rust);
  line-height: 1;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 2;
  background: var(--bg-cream);
  padding-right: 1rem;
}
.tl-day-num small {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.4rem;
}
.tl-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.75rem 2rem;
  position: relative;
  transition: all 0.3s;
}
.tl-card:hover {
  border-color: var(--rust);
  transform: translateX(4px);
  box-shadow: 0 12px 30px rgba(26, 26, 26, 0.06);
}
.tl-card::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 2rem;
  width: 12px; height: 12px;
  background: var(--rust);
  border: 2px solid var(--bg-cream);
  border-radius: 50%;
}
.tl-route {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.tl-route em { font-style: italic; color: var(--rust); }
.tl-meta {
  display: flex;
  gap: 1.25rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.tl-meta strong { color: var(--rust); font-weight: 600; }
.tl-note { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.65; }

/* ── FUEL MAP ─────────────────────────────────────────────────── */
.fuel-section {
  background: var(--bg-warm);
  padding: 8rem 2.5rem;
}
.fuel-table {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}
.fuel-row {
  display: grid;
  grid-template-columns: 60px 1.5fr 1fr 0.8fr 0.8fr 0.8fr;
  gap: 1.5rem;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.fuel-row:hover { background: var(--bg-cream); }
.fuel-row:last-child { border-bottom: none; }
.fuel-row.header {
  background: var(--ink);
  color: var(--bg-cream);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.fuel-row.header:hover { background: var(--ink); }
.fuel-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--rust);
  font-weight: 600;
}
.fuel-loc { font-family: var(--serif); font-size: 1rem; font-weight: 500; }
.fuel-state { font-size: 0.85rem; color: var(--ink-muted); font-family: var(--mono); }
.fuel-value { font-family: var(--mono); font-size: 0.85rem; }
.fuel-cost { font-weight: 600; color: var(--rust); font-family: var(--mono); }
.fuel-row.total {
  background: var(--ink);
  color: var(--bg-cream);
  font-weight: 700;
  font-family: var(--serif);
  font-size: 1.05rem;
}
.fuel-row.total .fuel-cost { color: var(--ochre); }

/* ── VIDEO GALLERY ────────────────────────────────────────────── */
.videos-section {
  background: var(--ink);
  color: var(--bg-cream);
  padding: 8rem 2.5rem;
}
.videos-section .section-title { color: var(--bg-cream); }
.videos-section .section-title em { color: var(--ochre); }
.videos-section .eyebrow { color: var(--ochre); }
.videos-section .eyebrow::before { background: var(--ochre); }

.playlist-cta {
  max-width: 1400px;
  margin: 0 auto 3rem;
  background: rgba(198, 139, 31, 0.08);
  border: 1px solid rgba(198, 139, 31, 0.25);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.playlist-cta-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
}
.playlist-cta a {
  background: var(--ochre);
  color: var(--ink);
  padding: 0.85rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s;
}
.playlist-cta a:hover { background: var(--rust); color: var(--bg-cream); }

.video-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.video-card {
  background: rgba(255, 253, 247, 0.04);
  border: 1px solid rgba(255, 253, 247, 0.1);
  overflow: hidden;
  transition: all 0.5s;
  cursor: pointer;
}
.video-card:hover {
  border-color: var(--ochre);
  transform: translateY(-4px);
}
.video-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #2a2520, #1a1a1a);
  position: relative;
  overflow: hidden;
}
.video-thumb iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.video-info { padding: 1.25rem 1.4rem 1.4rem; }
.video-eps {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 0.5rem;
}
.video-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

/* ── PHOTO GALLERY ───────────────────────────────────────────── */
.gallery-section {
  background: var(--bg-cream);
  padding: 8rem 2.5rem;
}
.gallery-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 150px;
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.5s;
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(26, 26, 26, 0.15);
}
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item svg { width: 100%; height: 100%; display: block; }
.gallery-placeholder {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg-cream);
}

.gallery-notice {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
  background: var(--paper);
  border: 1px dashed var(--rust);
  padding: 1.5rem 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-muted);
}
.gallery-notice strong {
  color: var(--rust);
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

/* ── RELATED TRIPS ───────────────────────────────────────────── */
.related-section {
  background: var(--bg-warm);
  padding: 6rem 2.5rem;
}
.related-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.related-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2rem 1.75rem;
  cursor: pointer;
  transition: all 0.4s;
  position: relative;
}
.related-card:hover {
  border-color: var(--rust);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(26, 26, 26, 0.08);
}
.related-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.related-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}
.related-title em { font-style: italic; color: var(--rust); }
.related-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .trip-hero { grid-template-columns: 1fr; padding: 7rem 1.5rem 3rem; gap: 2rem; }
  .trip-hero-visual { height: 50vh; min-height: 350px; }
  .trip-stats { grid-template-columns: repeat(3, 1fr); }
  .trip-stat { padding: 1rem 0.75rem; }
  .trip-stat .num { font-size: 1.5rem; }
  .timeline { margin-top: 2rem; }
  .timeline::before { left: 60px; }
  .tl-day { grid-template-columns: 60px 1fr; gap: 1rem; }
  .tl-day-num { font-size: 1.8rem; }
  .fuel-row { grid-template-columns: 40px 1.5fr 1fr; gap: 0.75rem; padding: 1rem; font-size: 0.85rem; }
  .fuel-row > :nth-child(4),
  .fuel-row > :nth-child(5),
  .fuel-row > :nth-child(6) { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide, .gallery-item.large { grid-column: span 2; }
  .gallery-item.tall, .gallery-item.large { grid-row: span 1; }
  .related-grid { grid-template-columns: 1fr; }
  .downloads { padding: 2rem 1.5rem; gap: 1rem; }
  .trip-stamp { width: 90px; height: 90px; }
  .trip-stamp-text strong { font-size: 1rem; }
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY IMAGES + LIGHTBOX
   ═══════════════════════════════════════════════════════════════ */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.3s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* ─── Lightbox ───────────────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 8, 0.96);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
#lightbox.open {
  display: flex;
  animation: lbFadeIn 0.25s ease;
}
@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lb-stage {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid rgba(255, 253, 247, 0.15);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: rgba(245, 240, 230, 0.1);
  border: 1px solid rgba(245, 240, 230, 0.25);
  color: var(--bg-cream);
  width: 48px;
  height: 48px;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  background: var(--ochre);
  color: var(--ink);
  border-color: var(--ochre);
}
.lb-close { top: 1.5rem; right: 1.5rem; font-size: 1.2rem; }
.lb-prev  { left:  1.5rem; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ochre);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(15, 12, 8, 0.6);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(245, 240, 230, 0.15);
}

@media (max-width: 700px) {
  .lb-close, .lb-prev, .lb-next { width: 40px; height: 40px; }
  .lb-close { top: 1rem; right: 1rem; }
  .lb-prev  { left: 0.5rem; }
  .lb-next  { right: 0.5rem; }
}
