/* ==========================================================================
   Sunday Trips - Sri Yoga Ashram
   Replaces the old numbered tab strip. Every destination is now a card with
   its name visible, so visitors (and search engines) can see all four at a
   glance instead of opening "Sunday Trip 1".
   Shares the --course-* tokens with the rest of the site.
   ========================================================================== */

.sya-trips {
    --tp-earth: var(--course-earth, #7b6d61);
    --tp-earth-dark: var(--course-earth-dark, #62564d);
    --tp-gold: var(--course-gold, #c79c66);
    --tp-cream: var(--course-cream, #fbf7f1);
    --tp-ink: var(--course-ink, #3f3832);
    --tp-card: var(--course-card, #ffffff);
    --tp-line: var(--course-line, rgba(123, 109, 97, 0.22));
    --tp-shadow: var(--course-shadow, 0 10px 24px rgba(63, 56, 50, 0.06));

    /* Flat cream, not a gradient. The surrounding page alternates white and
       cream bands; a gradient starting in white merged into the white section
       above it and the two read as one long block. */
    background: var(--tp-cream);
    padding: 72px 0 80px;
}

/* Band overrides, matching the sya-band-* vocabulary used elsewhere on the site.
   Defined here rather than in site-ui.css because that file gets replaced by an
   external sync. A page adds one of these when its own section order would put
   two identical bands next to each other. */
.sya-trips.sya-band-white {
    background: var(--course-card, #fff);
}

.sya-trips.sya-band-cream {
    background: var(--tp-cream);
}

.sya-trips * {
    box-sizing: border-box;
}

.sya-trips-inner {
    margin: 0 auto;
    max-width: 1180px;
    padding: 0 16px;
}

/* ---------- Heading ---------- */
.sya-trips-head {
    margin-bottom: 40px;
    text-align: center;
}

.sya-trips-eyebrow {
    color: var(--tp-gold);
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.sya-trips-head h2 {
    color: var(--tp-ink);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.2;
    margin: 0 0 12px;
}

.sya-trips-head h2 span {
    color: var(--tp-gold);
}

.sya-trips-sub {
    color: var(--tp-earth);
    font-size: 16px;
    margin: 0 auto;
    max-width: 660px;
}

/* ---------- Grid ---------- */
/* Two columns, so four trips form a balanced 2x2 block. auto-fit would give
   three across at desktop widths and leave the fourth card stranded. */
.sya-trips-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .sya-trips-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Card ---------- */
.sya-trip {
    background: var(--tp-card);
    border: 1px solid var(--tp-line);
    border-radius: 18px;
    box-shadow: var(--tp-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.sya-trip:hover {
    box-shadow: 0 18px 38px rgba(63, 56, 50, 0.13);
    transform: translateY(-3px);
}

/* ---------- Media ---------- */
.sya-trip-media {
    aspect-ratio: 16 / 10;
    background: var(--tp-cream);
    overflow: hidden;
    position: relative;
}

.sya-trip-media img,
.sya-trip-media video {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.sya-trip:hover .sya-trip-media img {
    transform: scale(1.04);
}

.sya-trip-media img {
    transition: transform 0.45s ease;
}

.sya-trip-num {
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    color: var(--tp-earth-dark);
    font-size: 12px;
    font-weight: 700;
    left: 14px;
    letter-spacing: 0.08em;
    padding: 6px 13px;
    position: absolute;
    text-transform: uppercase;
    top: 14px;
}

/* Play affordance for the video card */
.sya-trip-play {
    align-items: center;
    background: none;
    border: 0;
    cursor: pointer;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 0;
    position: absolute;
    width: 100%;
}

.sya-trip-play span {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    display: flex;
    height: 62px;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    width: 62px;
}

.sya-trip-play:hover span,
.sya-trip-play:focus-visible span {
    background: #fff;
    transform: scale(1.08);
}

.sya-trip-play svg {
    fill: var(--tp-earth-dark);
    height: 24px;
    margin-left: 4px;
    width: 24px;
}

.sya-trip-media.is-playing .sya-trip-play,
.sya-trip-media.is-playing img {
    display: none;
}

/* ---------- Body ---------- */
.sya-trip-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 24px 24px 20px;
}

.sya-trip-body h3 {
    color: var(--tp-ink);
    font-size: 21px;
    line-height: 1.25;
    margin: 0 0 12px;
}

.sya-trip-lead {
    color: var(--tp-ink);
    font-size: 15px;
    line-height: 1.68;
    margin: 0 0 12px;
}

.sya-trip-rest {
    color: var(--tp-earth);
    font-size: 14.5px;
    line-height: 1.7;
    margin: 0;
}

.sya-trip-rest[hidden] {
    display: none;
}

.sya-trip-toggle {
    align-self: flex-start;
    background: none;
    border: 0;
    color: var(--tp-gold);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    margin-top: 12px;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sya-trip-toggle:hover,
.sya-trip-toggle:focus-visible {
    color: var(--tp-earth-dark);
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .sya-trips {
        padding: 52px 0 58px;
    }

    .sya-trips-grid {
        gap: 20px;
        grid-template-columns: 1fr;
    }

    .sya-trip-body {
        padding: 20px 18px 16px;
    }

    .sya-trip-play span {
        height: 54px;
        width: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sya-trip,
    .sya-trip-media img {
        transition: none;
    }

    .sya-trip:hover {
        transform: none;
    }

    .sya-trip:hover .sya-trip-media img {
        transform: none;
    }
}
