/* ======================================================================
   SURF SQUAD HUB
   Loaded after snow-squad.css and snow-squad-hub.css, which supply the
   hero (the same as the Snow Squad hub), the trip card and the join
   section. This file adds only what Surf has that the other hubs do not.
   Mobile first, like them.
   ====================================================================== */

/* ── The trip card's badge ────────────────────────────────────────────
   The status badge from the Core trip cards (.trip-status-badge in
   style.css), pinned to the top left of the card photo. */

.page-trip .trip-card--badged {
  position: relative;
}

/* ── The influencer: two Instagram posts ──────────────────────────────
   Stacked on a phone, side by side from 768px. Until Instagram's script
   has loaded, and if it never does, each slot is a plain link to the
   post rather than an empty box. */

.page-trip .ig-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 1.5rem auto 0;
  justify-items: center;
}

.page-trip .ig-embed {
  width: 100%;
  max-width: 400px;
}

/* The embed before it is processed, and the fallback after a failure. */
.page-trip .ig-embed .instagram-media,
.page-trip .ig-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 8rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(212, 197, 176, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.page-trip .ig-embed .instagram-media a,
.page-trip .ig-fallback {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--teal);
  text-decoration: underline;
}

/* Instagram's own iframe sets its size inline. Centre it in the slot. */
.page-trip .ig-embed iframe.instagram-media {
  margin: 0 auto !important;
}

@media (min-width: 768px) {
  .page-trip .ig-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

/* ── Join ─────────────────────────────────────────────────────────────
   The shared Notify Me panel, which is built for a navy section, sits
   here in the sand join section. Its footnote is sand coloured, so on
   sand it needs the navy text the rest of the section uses. */

.page-trip .join-section .notify-footnote {
  color: rgba(15, 26, 36, 0.75);
}
