/* Hero — tall alive slider + search floating inside */

.hero.hero--with-search {
    position: relative !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    display: flex !important;
    align-items: stretch !important;
    overflow: visible !important; /* allow search dropdowns to escape */
    color: #fff;
}

.hero.hero--with-search .hero-slide {
    overflow: hidden; /* keep Ken Burns clipped inside slides */
}

.hero-slide {
    transition: opacity 1.1s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) !important;
    transform: scale(1.04);
}

.hero-slide.is-active {
    transform: scale(1);
}

.hero-slide .hero-bg {
    inset: -6% !important;
    width: auto !important;
    height: auto !important;
    transform: scale(1.08);
    transform-origin: center center;
    will-change: transform;
    transition: none;
}

.hero-slide.is-active .hero-bg {
    animation: heroKenBurns 16s ease-in-out infinite alternate;
}

.hero-slide:nth-child(even).is-active .hero-bg {
    animation-name: heroKenBurnsAlt;
}

.hero.hero--with-search .hero-content {
    padding: 0 !important;
    max-width: 640px;
}

.hero.hero--with-search .hero-slide {
    align-items: center !important;
    padding-top: 5.5rem;
    padding-bottom: 13rem;
    box-sizing: border-box;
}

.hero-slide.is-active .hero-content {
    animation: heroContentIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-slide.is-active .hero-content h1 {
    animation: heroTitleIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.hero-slide.is-active .hero-content p {
    animation: heroTitleIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.hero-slide.is-active .hero-content .btn {
    animation: heroTitleIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.hero-overlay {
    transition: opacity 0.8s ease;
}

/* Search nested inside hero (over the banner) */
.hero-search-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.35rem;
    z-index: 9;
    width: 100%;
    pointer-events: none;
}

.hero-search-wrap .booking-search,
.hero-search-wrap .booking-widget {
    margin-top: 0 !important;
    pointer-events: auto;
}

.hero.hero--with-search .hero-dots {
    bottom: 12.5rem !important;
    z-index: 6;
}

.hero.hero--with-search .hero-arrow {
    top: 38% !important;
    z-index: 6;
}

@keyframes heroKenBurns {
    from { transform: scale(1.08) translate(0, 0); }
    to { transform: scale(1.22) translate(-2.8%, 1.8%); }
}

@keyframes heroKenBurnsAlt {
    from { transform: scale(1.08) translate(0, 0); }
    to { transform: scale(1.2) translate(2.4%, -1.6%); }
}

@keyframes heroContentIn {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroTitleIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-dot.is-active {
    background: linear-gradient(90deg, #0059B9, #6FFFFE) !important;
    box-shadow: 0 0 0 4px rgba(111, 255, 254, 0.22);
}

.hero-arrow {
    transition: transform 0.25s ease, background 0.25s ease !important;
}

.hero-arrow:hover {
    transform: scale(1.08);
}

/* ===== Tablet / mobile: old compact banner + search ABOVE offers ===== */
@media (max-width: 992px) {
    .hero.hero--with-search {
        position: relative !important;
        z-index: 30 !important;
        isolation: isolate;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        margin-bottom: 0.35rem;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    /* Banner area keeps the old compact height */
    .hero.hero--with-search::before {
        content: '';
        display: block;
        flex: 0 0 auto;
        width: 100%;
        height: 58vh;
        min-height: 320px;
        pointer-events: none;
    }

    .hero.hero--with-search .hero-slide {
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        inset: auto 0 auto 0 !important;
        height: 58vh;
        min-height: 320px;
        max-height: 58vh;
    }

    .hero.hero--with-search .hero-slide {
        align-items: center !important;
        padding: 3.25rem 0 1.25rem;
    }

    .hero.hero--with-search .hero-content {
        padding: 0 1rem !important;
        max-width: 100%;
    }

    .hero.hero--with-search .hero-content h1 {
        font-size: clamp(1.35rem, 5.8vw, 1.85rem) !important;
        line-height: 1.35 !important;
    }

    .hero.hero--with-search .hero-content p {
        font-size: 0.9rem !important;
        line-height: 1.65 !important;
    }

    .hero.hero--with-search .hero-content .btn {
        margin-top: 0.75rem !important;
        padding: 0.65rem 1.05rem !important;
        font-size: 0.85rem !important;
    }

    .hero.hero--with-search .hero-dots {
        top: calc(58vh - 2rem) !important;
        bottom: auto !important;
    }

    .hero.hero--with-search .hero-arrow {
        width: 36px;
        height: 36px;
        top: calc(58vh * 0.48) !important;
    }

    .hero.hero--with-search .hero-prev { right: 0.55rem; }
    .hero.hero--with-search .hero-next { left: 0.55rem; }

    /* Search in normal flow under banner — always above offers */
    .hero-search-wrap {
        position: relative !important;
        left: auto;
        right: auto;
        top: auto !important;
        bottom: auto !important;
        transform: translateY(-1.75rem);
        margin-bottom: -0.85rem;
        padding: 0 0.55rem;
        z-index: 40 !important;
        width: 100%;
        pointer-events: none;
    }

    .hero-search-wrap .booking-search,
    .hero-search-wrap .booking-widget {
        pointer-events: auto;
    }

    .hero-search-wrap .widget-card.bs-card {
        border-radius: 16px !important;
    }

    .hero-search-wrap .bs-panels {
        padding: 0.85rem 0.8rem 1rem !important;
    }

    .hero-search-wrap .bs-tab {
        padding: 0.7rem 0.3rem !important;
        font-size: 0.8rem !important;
        gap: 0.28rem !important;
    }

    .hero-search-wrap .bs-search-btn {
        height: 48px !important;
    }

    .home-offers {
        position: relative;
        z-index: 1;
        padding-top: 0.35rem !important;
    }
}

@media (max-width: 640px) {
    .hero.hero--with-search::before,
    .hero.hero--with-search .hero-slide {
        height: min(58vh, 460px);
        min-height: 280px;
        max-height: min(58vh, 460px);
    }

    .hero.hero--with-search .hero-slide {
        padding: 2.75rem 0 1rem;
    }

    .hero.hero--with-search .hero-content {
        padding: 0 0.85rem !important;
    }

    .hero.hero--with-search .hero-content h1::after {
        width: 48px !important;
        margin-top: 0.55rem !important;
    }

    .hero.hero--with-search .hero-dots {
        top: calc(min(58vh, 460px) - 1.75rem) !important;
        bottom: auto !important;
    }

    .hero-search-wrap {
        transform: translateY(-1.35rem);
        margin-bottom: -0.55rem;
        padding: 0 0.45rem;
    }

    .hero.hero--with-search .hero-arrow {
        display: none !important;
    }

    .hero-slide.is-active .hero-bg {
        animation-duration: 22s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide .hero-bg,
    .hero-slide.is-active .hero-bg,
    .hero-slide.is-active .hero-content,
    .hero-slide.is-active .hero-content h1,
    .hero-slide.is-active .hero-content p,
    .hero-slide.is-active .hero-content .btn {
        animation: none !important;
        transition: opacity 0.35s ease !important;
        transform: none !important;
    }
}
