/*
 * Responsive fixes for small phones and tablets, shared by every page.
 * Loaded from the Footer (after each page's own stylesheet), so these rules
 * win over the per-page CSS at equal specificity.
 */

/* "Visit us" contact rows (Location / Email / Call): on phones the text was
   squeezed beside the icon and the "Directions →" link into a thin column.
   Give the text the full row next to the icon; the link wraps below it. */
@media (max-width: 520px) {
  .visit-row .vr-body { flex: 1 1 calc(100% - 72px); }
}

/* Kitchen menu: a price range ("9.99 – 14.99") took so much room that the
   dish name and description were squeezed into a thin column. On phones the
   text gets the full width and every price sits underneath it. */
@media (max-width: 480px) {
  .kt-item { flex-wrap: wrap; row-gap: 10px; }
  .kt-item__main { flex: 1 1 100%; }
}

/* Activity hero headings (SPOOKY HOUSE, LASER TAG, ROPE COURSE…) are one
   non-wrapping row of animated letters, so two-word titles ran off the screen
   on phones. Let them wrap at the space between the words. */
@media (max-width: 600px) {
  .act-hero h1,
  .offers-hero h1,
  .pr-hero h1 {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
  }
}
/* Each word's letters are grouped (lib/heroWords.ts) so wrapping happens only
   between words. The group is just a container: none of the per-letter
   gradient, glow or animation should apply to it. */
h1 .h1-word {
  display: inline-flex !important;
  white-space: nowrap;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: inherit;
  filter: none !important;
  animation: none !important;
  transform: none !important;
}

/* Homepage activity grid (3 columns from 1000px): with 9 activities the
   closing "See everything" card sat alone on the last row. When it would be
   alone, it spans the whole row instead. Adapts if activities are added. */
@media (min-width: 1000px) {
  .acts > .card:last-child:nth-child(3n + 1) {
    grid-column: 1 / -1;
    min-height: 0;
    padding-top: 28px;
    padding-bottom: 28px;
  }
}

/* Pricing cards: "See <activity> →" and "Book" don't fit side by side on
   small phones and wrapped into uneven rows. Stack them, full width. */
@media (max-width: 420px) {
  .pcard__actions { flex-direction: column; align-items: stretch; }
  .pcard__actions .pcard__btn { width: 100%; }
}
