/* =========================================
   HOME / GLOBAL RESPONSIVE HARDENING
========================================= */

html {
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

img,
video,
iframe {
    max-width: 100%;
}

.emh-wrap,
.promo-banner-shell,
.destination-highlights-wrap,
.home-gallery-wrap {
    max-width: 100%;
    box-sizing: border-box;
}

/* Video stacked carousel */
.emh-video-card:not(.is-active):not(.is-prev):not(.is-next) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) scale(0.8);
}

.emh-video-card.is-prev,
.emh-video-card.is-next {
    cursor: pointer;
    pointer-events: auto;
}

.emh-videos-stage {
    min-height: clamp(220px, 56vw, 360px);
}

/* Hide native scrollbars on rails (keep swipe/auto) */
.emh-rail,
.emh-trust-rail,
.destination-highlights-track,
.emh-chips {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.emh-rail::-webkit-scrollbar,
.emh-trust-rail::-webkit-scrollbar,
.destination-highlights-track::-webkit-scrollbar,
.emh-chips::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.emh-rail {
    padding-bottom: 4px !important;
}

@media (max-width: 980px) {
    .emh-section {
        padding: 40px 0;
    }

    .emh-wrap {
        padding: 0 14px;
    }

    .emh-section-head {
        align-items: flex-start;
    }

    .emh-section-head h2 {
        font-size: clamp(22px, 6vw, 30px);
    }

    .emh-chips {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }

    .emh-chip {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .emh-pkg-card {
        flex: 0 0 min(280px, 82vw);
    }

    .emh-why {
        padding: 48px 0;
    }

    .emh-why-grid {
        gap: 14px;
    }

    .emh-why-center {
        min-height: 240px;
        border-radius: 18px;
    }

    .emh-why-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        text-align: left;
    }

    .emh-blogs {
        padding: 40px 0 36px;
    }

    .emh-videos {
        padding: 36px 0 28px;
    }

    /* Mobile video: relative active card = no empty stage gap */
    .emh-videos-stage {
        min-height: 0 !important;
        height: auto !important;
        max-width: 100%;
        margin-top: 14px;
    }

    .emh-video-card {
        position: absolute;
        width: 100%;
        left: 0;
        transform: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 1;
    }

    .emh-video-card.is-active {
        position: relative;
        left: auto;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        z-index: 2;
    }

    .emh-video-card.is-prev,
    .emh-video-card.is-next {
        display: none !important;
    }

    /* Hide video arrow buttons on mobile (auto + swipe) */
    .emh-video-nav {
        display: none !important;
    }

    .emh-videos .emh-yt-wrap {
        margin-top: 14px !important;
    }

    .emh-rail-btn {
        display: none !important;
    }

    .emh-trust {
        padding: 48px 0;
    }

    .emh-trust-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .destination-highlights {
        padding: 36px 12px 8px;
    }

    .destination-highlights-wrap {
        border-radius: 28px;
        padding: 16px 12px 12px;
    }

    .destination-highlights-track {
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .promo-banner-section {
        padding: 16px 12px 6px;
    }
}

@media (max-width: 700px) {
    .promo-slides {
        min-height: 340px !important;
        border-radius: 14px !important;
    }

    .promo-badge {
        width: 84px !important;
        left: 12px !important;
        top: 14px !important;
    }

    .promo-copy {
        left: 12px !important;
        right: 12px !important;
        bottom: 16px !important;
    }

    .promo-copy .promo-title,
    .promo-copy h1 {
        font-size: clamp(40px, 12vw, 56px) !important;
    }

    .promo-deal {
        font-size: 12px !important;
        padding: 8px 10px !important;
    }

    .promo-cta {
        min-height: 40px;
        font-size: 12px;
    }

    .emh-lead-strip {
        padding-left: 12px;
        padding-right: 12px;
    }

    .emh-rail > .emh-pkg-card {
        flex: 0 0 min(260px, 86vw);
    }

    .emh-rail-section {
        padding: 36px 0 !important;
    }

    .emh-blog-row {
        grid-template-columns: 88px 1fr !important;
        gap: 10px;
    }

    .emh-blog-feature {
        min-height: 320px;
    }

    .emh-trust-card {
        flex: 0 0 min(280px, 88vw);
    }

    .emh-trust-stat strong {
        font-size: 22px;
    }

    .home-enquiry-dialog,
    .home-enquiry-modal .home-enquiry-dialog {
        width: calc(100% - 20px) !important;
        max-height: 92vh;
        overflow-y: auto;
        margin: 10px auto;
    }

    body.has-sticky-lead {
        padding-bottom: 4.75rem;
    }

    .emh-sticky-lead {
        left: max(0.5rem, env(safe-area-inset-left)) !important;
        right: max(0.5rem, env(safe-area-inset-right)) !important;
        bottom: max(0.5rem, env(safe-area-inset-bottom)) !important;
        width: auto !important;
        transform: none !important;
        max-width: none !important;
    }

    .emh-sticky-lead .emh-sticky-label-full {
        display: none !important;
    }

    .emh-sticky-lead .emh-sticky-label-short {
        display: inline !important;
    }
}

@media (max-width: 480px) {
    .emh-section-head .emh-view-all {
        width: 100%;
        justify-content: center;
    }

    .emh-trust-stats {
        grid-template-columns: 1fr 1fr;
    }

    .emh-why-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .destination-highlight-item {
        width: 74px;
    }
}

.emh-videos,
.promo-banner-section,
.emh-rail-section,
.emh-trust {
    overflow-x: hidden;
}

.emh-rail,
.emh-trust-rail,
.destination-highlights-track,
.emh-chips {
    -webkit-overflow-scrolling: touch;
}

/* Home FAQ CTA buttons */
.faq-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.faq-cta .faq-contact-btn,
.faq-cta .faq-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    color: #fff;
}

.faq-cta .faq-contact-btn {
    background: #d4a017;
    color: #14213d;
}

.faq-cta .faq-whatsapp-btn {
    background: #1fad66;
}

@media (max-width: 700px) {
    .faq-section {
        padding: 48px 14px !important;
    }

    .faq-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .faq-cta-buttons {
        width: 100%;
    }

    .faq-cta .faq-contact-btn,
    .faq-cta .faq-whatsapp-btn {
        flex: 1 1 auto;
        width: 100%;
    }
}

