/* ===========================================================================
   PAGES — TRIP EXPERIENCES (Whale & Dolphin, Adventure / Bay Cruise)
   Loaded alongside about.css, which supplies the shared story / figure /
   quote / final-CTA layout. This file adds the trip-specific pieces.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   Trips index — the two big selection cards
   --------------------------------------------------------------------------- */
.trip-select { padding-block: clamp(3rem, 6vw, 5rem); }

.trip-select__grid { display: grid; gap: clamp(1.5rem, 3vw, 2rem); }

.trip-choice {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--white);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.trip-choice:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.trip-choice__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--pale-2); }

.trip-choice__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.trip-choice:hover .trip-choice__media img { transform: scale(1.05); }

.trip-choice__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.trip-choice__eyebrow {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--turq-d);
}

.trip-choice__title { color: var(--navy); }

.trip-choice__text { color: var(--grey-d); }

.trip-choice__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-ui);
    font-weight: 700;
    color: var(--blue-d);
}

.trip-choice:hover .trip-choice__cta { color: var(--turq-d); }

.trip-choice__cta .btn__arrow { transition: transform 0.3s var(--ease); }

.trip-choice:hover .trip-choice__cta .btn__arrow { transform: translateX(4px); }

@media (min-width: 800px) {
    .trip-select__grid { grid-template-columns: 1fr 1fr; }
}

/* Highlight chips — what you'll see out there */
.xp-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.xp-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
    padding: 0.5rem 0.95rem;
    background: var(--pale);
    border: 1px solid var(--pale-2);
    border-radius: 999px;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
}

.xp-highlight svg { width: 16px; height: 16px; color: var(--turq-d); flex-shrink: 0; }

/* On the navy band, lighten the chips */
.section--navy .xp-highlight,
.section--deep .xp-highlight {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

/* Bookable trip cards — photo-topped, adult + child end price side by side.
   They sit beside the passenger panel (booking.css .xp-book), so the grid
   takes its column count from however many trips the page offers. */
.xp-trips {
    display: grid;
    gap: 1.25rem;
}

.xp-trip {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--pale-2);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.xp-trip:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.xp-trip__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--pale-2);
}

.xp-trip__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
}

.xp-trip:hover .xp-trip__media img { transform: scale(1.05); }

.xp-trip__meta {
    position: absolute;
    left: 0.875rem;
    bottom: 0.875rem;
    padding: 0.375rem 0.75rem;
    background: rgba(9, 62, 98, 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
}

.xp-trip__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: clamp(1.25rem, 2.5vw, 1.625rem);
}

.xp-trip__name { color: var(--navy); margin-bottom: 0.625rem; }

.xp-trip__blurb {
    color: var(--grey-d);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.xp-trip__depart {
    margin: 0 0 1.25rem;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--navy);
}

.xp-trip__depart-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--turq-d);
}

.xp-trip__foot {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.125rem;
    border-top: 2px solid var(--pale-2);
}

.xp-trip__prices { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

.xp-trip__price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

.xp-trip__price--child { color: var(--blue-d); }

.xp-trip__price small {
    display: block;
    margin-top: 0.3rem;
    font-family: var(--font-ui);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--grey);
}

@media (min-width: 640px) {
    .xp-trips--2 { grid-template-columns: 1fr 1fr; }
}

/* Beside the panel the pair needs room; stack them in the mid range */
@media (min-width: 900px) and (max-width: 1179px) {
    .xp-book .xp-trips--2 { grid-template-columns: 1fr; }
    .xp-book .xp-trips--2 .xp-trip { flex-direction: row; }
    .xp-book .xp-trips--2 .xp-trip__media { flex: 0 0 38%; aspect-ratio: auto; }
}

/* A single trip lies on its side so it fills the row next to the panel */
@media (min-width: 640px) {
    .xp-trips--1 .xp-trip { flex-direction: row; }
    .xp-trips--1 .xp-trip__media { flex: 0 0 44%; aspect-ratio: auto; min-height: 300px; }
}
