/* ==================================================================
   HUB PAGE STYLES
   Loaded by both hubs, snow-squad.php and sail-squad.php. Hand-written:
   there is no build step, so edit this file directly.
===================================================================== */

.page-trip .hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,26,36,0) 55%, rgba(15,26,36,0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

.page-trip .hero-title h1 {
  font-size: clamp(2.4rem, 10vw, 4rem);
  color: var(--white);
}

.page-trip .hero-title-sub {
  margin: 1rem auto 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--sand);
  max-width: 300px;
}

/* An eyebrow sits tight above the heading it introduces, not a group away. */
.page-trip .section-eyebrow + h2 {
  margin-top: 0;
}

.page-trip .section-eyebrow {
  text-align: center;
  color: var(--sand);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.page-trip .video-portrait {
  margin-top: 1.5rem;
}

.page-trip .solo-video {
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 auto;
}

.page-trip .solo-video-caption {
  margin: 0.75rem auto 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--sand);
  text-align: center;
}

/* The photo galleries and video carousels are the shared gallery and videos
   sliders (SLIDERS in style.css). Only spacing and slide sizes live here. */
.page-trip .slider--gallery,
.page-trip .slider--videos {
  margin-top: 1.5rem;
}

.page-trip .slider--gallery .gallery-img {
  height: 220px;
  width: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.page-trip .video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 6px;
  background: var(--navy);
}

.page-trip .trip-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.page-trip .trip-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212, 197, 176, 0.15);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-trip .trip-card-img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.page-trip .trip-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.page-trip .trip-card h3 {
  font-size: 1.7rem;
  margin-top: 0.75rem;
}

.page-trip .trip-card h3 .flag {
  font-size: 0.65em;
  margin-left: 0.2em;
}

.page-trip .trip-card .subline {
  color: var(--sand);
  font-size: 0.95rem;
}

.page-trip .trip-card .trip-dates {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.page-trip .trip-card .btn {
  margin-top: 0.75rem;
  align-self: flex-start;
}

@media (min-width: 768px) {
  .page-trip .section {
    padding: 3.75rem 0;
  }
  .page-trip .section h2 {
    font-size: 2.75rem;
  }
  .page-trip .hero {
    height: 60vh;
  }
  .page-trip .hero-title {
    padding: 2.5rem 0 0;
  }
  .page-trip .hero-title-sub {
    max-width: 480px;
    font-size: 1.15rem;
  }
  .page-trip .slider--gallery .gallery-img {
    height: 300px;
  }
  .page-trip .solo-video {
    max-width: 380px;
  }
  .page-trip .trip-cards {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .page-trip .trip-card-img {
    height: 280px;
  }
  .page-trip .trip-card-body {
    padding: 2rem;
  }
  .page-trip .join-section {
    padding: 3.75rem 0 7rem;
  }
  .page-trip .join-section h2 {
    font-size: 2.75rem;
  }
  .page-trip .countdown-box {
    min-width: 88px;
    padding: 1.1rem 1rem;
  }
  .page-trip .countdown-num {
    font-size: 2.4rem;
  }
}

/* ── Join section with more than one CTA ──────────────────────────────
   The Snow Squad hub routes to two trips, so its final CTA carries two
   buttons rather than one. Wrapping them gives the gap that inline-block
   siblings do not have on their own. */

.page-trip .join-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
