/* Shuttle Search section (Shared Shuttle, UX rebuild 18 Aug 2026).
   The funnel's first surface: a booking-hero-shaped search that GETs to
   /booking-shuttle. Its own `shs-` namespace on purpose - it must never
   collide with the booking hero, whose ids and classes are load-bearing.

   Mobile-first. The grid is one column on a phone, and the CTA is full width
   there because a search button the thumb can miss is a search that does not
   happen. */

.shs {
    position: relative;
    /* Above the sections that follow: with many origins the open dropdown
       spills below the card into the next section and must paint over it. */
    z-index: 5;
    padding: 56px 0;
    background: var(--section-bg, #f6f7f9);
    background-size: cover;
    background-position: center;
}
.shs--overlay { color: #fff; }
.shs-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(12, 15, 20, .62) 0%, rgba(12, 15, 20, .74) 100%);
}
.shs-inner { position: relative; z-index: 1; }

.shs-copy { max-width: 1000px; margin-bottom: 26px; }
/* The one-night event's date and hub, stated once above the title. */
.shs-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 0 0 14px; padding: 7px 12px;
    border-radius: 999px; background: rgba(255, 255, 255, .92); color: #16181d;
    font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.shs:not(.shs--overlay) .shs-kicker { background: #fff; border: 1px solid #e6e8ec; }
.shs-title {
    margin: 0 0 10px;
    font-size: clamp(1.75rem, 4.2vw, 2.7rem);
    text-wrap: balance;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.02em;
}
/* The site's own h1/h2 rules carry a dark colour that beats an inherited one,
   so the overlay title has to state its own. Without this the non-accent half
   of the heading rendered near-black on a night photograph and was invisible;
   only the accent span, which sets a colour explicitly, could be read. */
.shs--overlay .shs-title,
.shs--overlay .shs-title * { color: #fff; }
.shs--overlay .shs-title { text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.shs-accent { color: var(--primary-color, #0a7d4b); }
.shs--overlay .shs-accent {
    color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
    text-decoration-color: var(--primary-color, #0a7d4b);
}
.shs--overlay .shs-sub { color: rgba(255, 255, 255, .93); }
.shs-sub {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.55;
    opacity: .92;
    max-width: 90ch;
}

/* ── The card ───────────────────────────────────────────────────────────── */
.shs-card {
    background: #fff;
    color: #16181d;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 38px rgba(10, 14, 22, .14);
}
.shs-card--empty { padding: 26px 18px; text-align: center; }
.shs-empty { margin: 0; color: #6b7280; font-size: .97rem; }

.shs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

/* The controls are the hero's (shuttle_form.css). What stays here is the
   card's layout only. */
.shs-seg { margin-bottom: 14px; }
.shs-cta { width: 100%; }
.shs-note { margin: 12px 0 0; font-size: .87rem; color: #6b7280; line-height: 1.45; }
.shs-card .shf-label { height: 16px; line-height: 16px; }

/* ── Tablet ─────────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
    .shs { padding: 72px 0; }
    .shs-card { padding: 22px; }
    .shs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
    .shs-f-cta { grid-column: 1 / -1; }
}
/* Tablet ONLY: the one-night card's origin takes the full row above the party
   + search pair. Left unscoped this overrode the desktop one-row grid and laid
   the origin field UNDER the passengers field and the button (23 Aug 2026). */
@media (min-width: 768px) and (max-width: 1099px) {
    .shs-card--nodates .shs-f-origin { grid-column: 1 / -1; }
}

/* ── Desktop. The static "To" field is gone (23 Aug 2026): with date
   controls the card is two rows (origin | departure | return, then party +
   search); a one-night event (`.shs-card--nodates`) is ONE row:
   origin | passengers | search. */
@media (min-width: 1100px) {
    .shs { padding: 88px 0; }
    .shs-grid {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "origin date retdate"
            "pax    cta  cta";
        gap: 14px 12px;
        align-items: end;
    }
    .shs-grid:not(:has(.shs-f-retdate:not([hidden]))) {
        grid-template-areas:
            "origin date date"
            "pax    cta  cta";
    }
    .shs-card--nodates .shs-grid,
    .shs-card--nodates .shs-grid:not(:has(.shs-f-retdate:not([hidden]))) {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
        grid-template-areas: "origin pax cta";
        gap: 16px 24px;
    }
    .shs-f-origin  { grid-area: origin; }
    .shs-f-date    { grid-area: date; }
    .shs-f-retdate { grid-area: retdate; }
    .shs-f-pax     { grid-area: pax; }
    .shs-f-cta     { grid-area: cta; align-items: flex-start; }
    /* The CTA is its own thing, not a third field: a hairline and air before it. */
    .shs-card--nodates .shs-f-cta { justify-self: end; padding-left: 24px; border-left: 1px solid #e6e8ec; align-self: end; }
    .shs-cta { width: auto; min-width: 260px; padding: 0 28px; }
    .shs-f-pax .shf-pax-pop { right: auto; left: 0; }
    /* The fare hint has no room beside a long origin name; the card's note
       already says the prices are per person. */
    .shs-f-origin .shf-sub { display: none; }
}

/* A hidden return-date cell must not leave a gap in the row. */
.shs-f-retdate[hidden] { display: none; }
