/* Tour page — Ilocano Fiestas block (vibrant summer, scoped to .tour-fiesta-section) */

.tour-fiesta-section {
    position: relative;
    isolation: isolate;
    padding-top: 2.25rem;
    padding-bottom: 3rem;
    overflow: hidden;
    /* Base fallback before JS sets the center-slide image on .tour-fiesta-section__bg */
    background: linear-gradient(185deg, #fff9f2 0%, #f0fafc 48%, #fff5eb 100%);
}

/* Crossfading full-bleed photos (center slide) — two layers, opacity transition */
.tour-fiesta-section__bg-stack {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.tour-fiesta-section__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.08);
    opacity: 0;
    /* Slightly longer + standard deceleration curve for a softer crossfade */
    transition: opacity 1.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.tour-fiesta-section__bg.is-visible {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .tour-fiesta-section__bg {
        transition-duration: 0.28s;
        transition-timing-function: ease;
    }
}

.tour-fiesta-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 58% 42% at 10% 12%, rgba(255, 193, 7, 0.2), transparent 58%),
        radial-gradient(ellipse 52% 48% at 92% 78%, rgba(13, 202, 240, 0.16), transparent 52%),
        radial-gradient(circle at 48% 0%, rgba(255, 107, 107, 0.1), transparent 40%),
        linear-gradient(
            185deg,
            rgba(255, 249, 242, 0.88) 0%,
            rgba(240, 250, 252, 0.82) 48%,
            rgba(255, 242, 230, 0.9) 100%
        );
}

.tour-fiesta-section > .row {
    position: relative;
    z-index: 2;
}

.tour-fiesta-title {
    color: #ff6b6b !important;
    text-shadow: 0 2px 20px rgba(255, 107, 107, 0.3);
    letter-spacing: 0.04em;
}

.tour-fiesta-lead {
    color: #1f4d5a !important;
    font-weight: 500;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.tour-fiesta-pills {
    gap: 0.45rem;
}

.tour-fiesta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #0a5f71;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 107, 107, 0.38);
    border-radius: 999px;
    box-shadow: 0 2px 12px rgba(10, 95, 113, 0.08);
}

.tour-fiesta-pill i {
    color: #ff6b6b;
    font-size: 0.95em;
}

.tour-fiesta-card {
    border-radius: 18px !important;
    overflow: hidden;
    box-shadow:
        0 14px 38px rgba(10, 95, 113, 0.12),
        0 6px 18px rgba(255, 107, 107, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tour-fiesta-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 20px 48px rgba(10, 95, 113, 0.16),
        0 10px 26px rgba(255, 107, 107, 0.14);
}

.tour-fiesta-section .card-body-overlay {
    background: linear-gradient(
        180deg,
        rgba(10, 95, 113, 0.78) 0%,
        rgba(8, 70, 90, 0.88) 100%
    ) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.tour-fiesta-section .card-body-overlay p {
    color: #fff !important;
    font-weight: 500;
    line-height: 1.45;
}

.tour-fiesta-section .middle-text-left {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    -webkit-text-stroke-width: 0.45px;
    -webkit-text-stroke-color: rgba(255, 107, 107, 0.9);
    text-shadow:
        0 2px 14px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 193, 7, 0.25);
}

.tour-fiesta-section .dot {
    color: #ffe066 !important;
    font-size: 0.55rem;
    vertical-align: middle;
    margin: 0 0.15rem;
}

/* Splide chrome */
.tour-fiesta-section .splide__arrow {
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.2);
    opacity: 1;
}

.tour-fiesta-section .splide__arrow svg {
    fill: #ff6b6b !important;
}

.tour-fiesta-section .splide__pagination__page {
    background: rgba(10, 95, 113, 0.25);
    opacity: 1;
}

.tour-fiesta-section .splide__pagination__page.is-active {
    background: #ff6b6b !important;
}

@media (max-width: 767.98px) {
    .tour-fiesta-section {
        padding-top: 1.75rem;
        padding-bottom: 2.25rem;
    }

    .tour-fiesta-title {
        font-size: clamp(1.65rem, 6vw + 0.5rem, 2.25rem);
    }
}
