/**
 * CLS (Cumulative Layout Shift) Prevention Stylesheet
 * Applied globally across all landing pages.
 * Ensures stable dimensions before JS/fonts/images load.
 */

/* ===========================
   1. FONT LOADING STABILITY
   =========================== */
html {
    font-family: Roboto, Arial, Helvetica, sans-serif;
    -webkit-text-size-adjust: 100%;
}

/* ===========================
   2. HEADER & TOP BAR
   =========================== */
#top_snewheaders {
    display: flex;
    align-items: center;
    min-height: 42px;
    box-sizing: border-box;
}

.primary_sheader {
    min-height: 42px;
    box-sizing: border-box;
}

.primary_sheader .container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    gap: 10px;
}

.BookingCallBtn {
    display: inline-block;
    min-width: 180px;
    min-height: 36px;
    line-height: 36px;
    white-space: nowrap;
    box-sizing: border-box;
}

header#top_header {
    min-height: 60px;
    box-sizing: border-box;
}

/* Mobile header stable dimensions */
.wsmobileheader {
    min-height: 54px;
    box-sizing: border-box;
}

/* Desktop logo stability */
.desktoplogo a img {
    max-height: 25px;
    width: auto;
    object-fit: contain;
    display: block;
}

.mobilellogo {
    max-height: 36px;
    width: 280px;
    object-fit: contain;
}

/* ===========================
   3. HOMEPAGE HERO BANNER
   =========================== */
.homesld {
    position: relative;
    overflow: hidden;
    background: #000;
}

.homesld .topbanimg {
    aspect-ratio: 721 / 430;
    width: 100%;
    z-index: 1;
    overflow: hidden;
    contain: layout;
}

.topbanimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ban_contentsect {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 2;
    align-items: center;
}

/* ===========================
   4. BOOKING FORM (homepage)
   =========================== */
.form_tab {
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(0,0,0,0.32);
    position: relative;
    z-index: 999;
    background: rgba(0,0,0,0.7);
    min-height: 520px;
    box-sizing: border-box;
    contain: layout style;
}

#index-form {
    min-height: 480px;
    box-sizing: border-box;
}

.tab_tag {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.tab_tag span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    box-sizing: border-box;
}

/* Form visibility: prevent display:none from causing reflow */
#one-Way-Cont {
    display: block;
}

#hourly-Cont {
    display: none;
}

/* Blue search button stable */
#index-form .blue-button,
.blue-button {
    min-height: 44px;
    box-sizing: border-box;
}

/* ===========================
   5. CITY/AIRPORT DETAIL - INNER BANNER
   =========================== */
.page_banner1 {
    min-height: 500px;
    width: 100%;
    background-size: cover !important;
    position: relative;
    contain: layout;
}

.page_banner1::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
}

.page_banner1 .container {
    position: relative;
    z-index: 2;
}

.page_banner1_text {
    min-height: 420px;
    display: flex;
    align-items: center;
}

/* City detail form container */
.form_booking {
    min-height: 480px;
    box-sizing: border-box;
}

.form_tab1 {
    min-height: 480px;
    box-sizing: border-box;
    background: rgba(0,0,0,0.75);
    border-radius: 6px;
    padding: 15px;
}

/* Banner title */
.banner_title {
    min-height: 60px;
}

.banner_title h1 {
    min-height: 40px;
}

/* ===========================
   6. TABS (city detail form)
   =========================== */
.tabs {
    min-height: 460px;
    box-sizing: border-box;
}

.tabs-nav {
    min-height: 44px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tabs-nav li {
    flex: 1;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tabs-stage {
    min-height: 400px;
    box-sizing: border-box;
}

/* ===========================
   7. SLIDER / CAROUSEL CLS
   =========================== */
/* Pre-initialization: hide overflow, maintain height */
.airport_sldders:not(.slick-initialized) {
    overflow: hidden;
    max-height: 300px;
    min-height: 280px;
}

.airport_sldders.slick-initialized {
    min-height: 280px;
}

/* Owl carousel pre-init */
.owl-carousel:not(.owl-loaded) {
    display: flex;
    overflow: hidden;
    min-height: 200px;
}

.owl-carousel:not(.owl-loaded) > * {
    flex: 0 0 100%;
    min-width: 100%;
}

/* Blog slider */
.blog_sld:not(.slick-initialized) {
    overflow: hidden;
    min-height: 260px;
}

/* Review slider */
.review {
    min-height: 220px;
}

/* Slick track flex alignment */
.slick-track {
    display: flex !important;
}

.slick-slide {
    height: auto !important;
}

/* ===========================
   8. IMAGES - GLOBAL
   =========================== */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent images from causing reflow before load */
img[width][height] {
    aspect-ratio: attr(width) / attr(height);
}

/* Car fleet images */
.cars_info span#car_img img {
    width: 240px;
    height: 150px;
    object-fit: contain;
    aspect-ratio: 240 / 150;
}

/* Airport destination boxes */
.slider_box .box img {
    width: 195px;
    height: 150px;
    object-fit: cover;
    aspect-ratio: 195 / 150;
}

/* Steps icons */
.fun_inner1 span img {
    width: 63px;
    height: 63px;
    object-fit: contain;
}

/* ===========================
   9. NOBLE TRANSFER SECTION
   =========================== */
.noble_transfer {
    position: relative;
    width: 100%;
    min-height: 300px;
    background-size: cover;
    background-repeat: no-repeat;
}

.form_service {
    min-height: 280px;
}

/* ===========================
   10. FAQ SECTION
   =========================== */
.faq_section {
    min-height: 200px;
}

.faq_listing {
    min-height: 50px;
    box-sizing: border-box;
}

/* ===========================
   11. GOOGLE REVIEWS
   =========================== */
#google-reviews {
    min-height: 200px;
    contain: layout;
}

.customersaying {
    min-height: 100px;
}

/* ===========================
   12. CONTACT STICKY WIDGETS
   =========================== */
.contact-sticky {
    position: fixed;
    z-index: 9999;
    contain: layout style;
}

.contact-sticky .whatsapp-call,
.contact-sticky .Telegram-call,
.contact-sticky .contact-fix {
    min-width: 40px;
    min-height: 40px;
}

/* ===========================
   13. COOKIE BANNER (fixed, no CLS)
   =========================== */
.cookieAlertBlock {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 60000;
    contain: layout;
}

#cookieConsentBanner {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 10000000000;
    contain: layout;
}

/* ===========================
   14. FOOTER
   =========================== */
#footer {
    min-height: 200px;
}

section.footer {
    min-height: 180px;
}

/* Facebook iframe container */
.td_blog .box[style*="height:260px"] {
    min-height: 260px;
    contain: layout;
}

/* ===========================
   15. MOBILE RESPONSIVE CLS FIXES
   =========================== */
@media screen and (max-width: 768px) {
    header#top_header {
        padding: 0;
        min-height: auto;
        height: auto;
    }

    header#top_header .container {
        width: auto !important;
        height: auto;
    }

    .primary_sheader .container {
        min-height: 42px;
        flex-wrap: wrap;
    }

    #content {
        min-height: 100vh !important;
    }

    /* Mobile banner ordering */
    #destop_show {
        display: flex;
        flex-direction: column;
    }

    .homesld .image {
        height: auto !important;
        aspect-ratio: 721 / 560;
        margin-top: 0;
    }

    .topbanimg {
        order: 2;
    }

    .ban_contentsect {
        order: 1;
        position: static !important;
        top: 20px !important;
        min-height: 200px;
    }

    .topbanimg img {
        order: 2;
        width: 100%;
        margin-top: 40px;
    }

    .homesld .topbanimg {
        padding-bottom: 0 !important;
        aspect-ratio: 721 / 560;
    }

    .homesld {
        margin-top: 0;
        background: #000;
    }

    .ban_contentsect .row {
        display: block;
    }

    /* Form on mobile */
    .form_tab {
        min-height: 560px;
    }

    .form_tab1 {
        min-height: 520px;
    }

    /* Inner banner mobile */
    .page_banner1 {
        min-height: 350px;
    }

    .page_banner1_text {
        min-height: 320px;
    }

    .form_booking {
        min-height: 500px;
    }

    /* Slider mobile */
    .airport_sldders:not(.slick-initialized) {
        min-height: 250px;
    }

    /* Google reviews mobile */
    #google-reviews {
        min-height: 150px;
        display: flex;
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 479px) {
    .form_tab {
        min-height: 580px;
    }

    .form_tab1 {
        min-height: 540px;
    }

    .page_banner1 {
        min-height: 300px;
    }

    .page_banner1_text {
        min-height: 280px;
        flex-direction: column;
    }

    .banner_title h1 {
        font-size: 22px;
        min-height: 30px;
    }

    .noble_transfer {
        min-height: 250px;
    }
}

/* ===========================
   16. PREVENT FOUC (Flash of Unstyled Content)
   =========================== */
@media screen and (min-width: 769px) {
    .form_tab .table_scrool,
    .tabs .table_scrool {
        display: none !important;
    }
}

/* ===========================
   17. THIRD-PARTY SCRIPT PLACEHOLDERS
   =========================== */
/* Reserve space for chat/jivo widget */
.jivo-iframe-container,
#jivo-iframe-container {
    position: fixed !important;
    contain: layout style;
}

/* Map placeholder */
#map,
#map-plug {
    min-height: 300px;
    contain: layout;
}

/* ===========================
   18. CONTENT VISIBILITY OPTIMIZATION
   =========================== */
.about_home,
.about_uspage,
.td_blog,
.faq_section {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* ===========================
   19. READ MORE / HIDDEN MENU TRANSITIONS
   =========================== */
.hidden-menu,
.hidden-menu1 {
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.in_add {
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

/* Hide_more button stability */
.Hide_more {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.Hide_more .read_less {
    display: none;
}

.Hide_more.showhide .read_more {
    display: none;
}

.Hide_more.showhide .read_less {
    display: inline;
}

/* ===========================
   20. PRINT / REDUCED MOTION
   =========================== */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
