/* ================================================
   Public page sizing — container, rhythm, grid density
   ================================================

   GENERATED FILE. Do not hand-edit: run
       python3 tools/build_public_typography.py

   The frame the type scale sits in, taken from mrrholidays.my:
       container 1120px (was 1280px)
       section padding 72px desktop / 48px tablet / 32px phone
       card grid gap 16px
       header block under a section heading 32px

   Only geometry lives here. Colour, radius, borders and shadows stay in the
   theme stylesheets so a site keeps its own identity.
   ================================================ */

/* Container: the themes read var(--container-max), so one override moves
   every .container in every theme. Source order beats the earlier :root. */
:root {
    --container-max: 1120px;
}

/* Section rhythm. 72px is a hair wider than the old 64px because the type
   scale below it is smaller; the block needs the extra air to breathe. */
.section {
    padding: 72px 0;
}

.section-header {
    margin-bottom: 32px;
}

/* Card grid density: mrr sits 4-up with a 16px gap. luxe shipped 32px and the
   rest 24px; all tighten to the same rhythm here. */
.card-grid {
    gap: 16px;
}

/* Narrow-card guard. The tightened container squeezes the /cars listing, which
   sits beside a 280px filter column: a 243px card leaves ~193px of content for
   a price plus a "Book Now" button that needed 241px, so the button hung 39px
   outside the card. The activity cards hit the same wall. Wrap the pair instead
   of clipping it; a wide card still renders them on one line because nothing
   wraps when it fits. */
.car-card-footer,
.activity-card-footer {
    flex-wrap: wrap;
    row-gap: 8px;
}

/* "/day" must never break onto its own line mid-label. */
.price-period {
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .section {
        padding: 48px 0 !important;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 32px 0 !important;
    }

    .section-header {
        margin-bottom: 24px;
    }
}
