/* =====================================================================
   Action Car Rental — Mobile UX overhaul (phones / small tablets)
   Visual layer only. No ids/JS hooks changed. Scoped to <=767px plus the
   mobile off-canvas menu (#mobile-mySidenav) which is mobile-only anyway.
   ===================================================================== */

@media (max-width: 767px) {

    /* ---------------------------------------------------------------- */
    /* 1. Show the FULL homepage on phones, drop the broken inline form  */
    /* ---------------------------------------------------------------- */
    .home-v2 .MobileSection { display: none !important; }
    .home-v2 .DesktopSection { display: block !important; }
    .home-v2 .DesktopSection.home-hero { display: flex !important; }

    /* ---------------------------------------------------------------- */
    /* 2. Mobile top bar — logo (left) + clean burger (right)           */
    /* ---------------------------------------------------------------- */
    #menu-style-2 { padding: 10px 12px; }
    #menu-style-2 > div, #menu-style-2 > div > div { width: 100%; }
    #menu-style-2 .navigation {
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: 100%;
        padding: 11px 10px 11px 16px;
        border-radius: 18px;
    }
    .mobile-bar-logo { display: inline-flex; align-items: center; }
    .mobile-bar-logo img { height: 42px; width: auto; display: block; }
    .page-home #menu-style-2 .mobile-bar-logo img {
        filter: drop-shadow(0 0 0.6px rgba(255, 255, 255, 0.8)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
    }
    #menu-style-2 #mobile-open-nav {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 46px; height: 46px;
        padding: 0;
        border: none;
        border-radius: 13px;
        background: rgba(15, 17, 22, 0.06);
        color: #1b2030;
        transition: background .2s ease;
    }
    .page-home #menu-style-2 #mobile-open-nav {
        background: rgba(255, 255, 255, 0.14);
        color: #fff;
    }
    #menu-style-2 #mobile-open-nav:active { background: rgba(242, 115, 12, 0.2); }

    /* right-side actions on the bar: language icon + login/register + burger */
    #menu-style-2 .mobile-bar-actions { display: flex; align-items: center; gap: 2px; }
    #menu-style-2 .mobile-lang { position: static; }
    #menu-style-2 .mobile-lang__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px; height: 46px;
        border-radius: 12px;
        color: #1b2030;
        text-decoration: none;
    }
    #menu-style-2 .mobile-lang__toggle svg { width: 24px; height: 24px; }
    #menu-style-2 .mobile-lang__toggle::after { display: none !important; } /* no bootstrap caret */
    #menu-style-2 .mobile-lang__toggle:active { background: rgba(15, 17, 22, 0.06); }
    #menu-style-2 .mobile-bar-login,
    #menu-style-2 .mobile-bar-register {
        display: inline-flex;
        align-items: center;
        padding: 10px 7px;
        font-family: "Inter", sans-serif;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: -.1px;
        white-space: nowrap;
        text-decoration: none;
        color: #1b2030;
    }
    #menu-style-2 .mobile-bar-register { color: #f2730c; }
    #menu-style-2 .mobile-bar-account { display: inline-flex; padding: 4px 6px; }
    #menu-style-2 .mobile-bar-account img {
        width: 32px; height: 32px; border-radius: 50%;
        border: 1px solid rgba(242, 115, 12, .35);
        background: rgba(242, 115, 12, .1);
    }
    /* dark hero bar (home) -> light text */
    .page-home #menu-style-2 .mobile-lang__toggle,
    .page-home #menu-style-2 .mobile-bar-login { color: #fff; }
    .page-home #menu-style-2 .mobile-bar-register { color: #ffb877; }
    .page-home #menu-style-2 .mobile-lang__toggle:active { background: rgba(255, 255, 255, 0.14); }

    /* language dropdown card on the bar */
    #menu-style-2 .mobile-lang__menu {
        right: 0; left: auto;
        min-width: 196px;
        max-height: 60vh;
        overflow-y: auto;
    }

    /* very small phones: tighten a little so nothing wraps */
    @media (max-width: 360px) {
        #menu-style-2 .navigation { padding: 9px 7px 9px 11px; }
        .mobile-bar-logo img { height: 32px; }
        #menu-style-2 .mobile-bar-login,
        #menu-style-2 .mobile-bar-register { font-size: 13px; padding: 9px 5px; }
        #menu-style-2 .mobile-lang__toggle { width: 34px; }
        #menu-style-2 #mobile-open-nav { width: 40px; height: 40px; }
    }

    /* ---------------------------------------------------------------- */
    /* 3. Hero — comfortable on a phone                                  */
    /* ---------------------------------------------------------------- */
    .home-v2 .home-hero { min-height: 84vh; }
    .home-v2 .home-hero__inner { padding: 28px 22px 56px; }
    .home-v2 .home-hero .homepage-content .homepage-title { font-size: clamp(32px, 9vw, 42px); }
    .home-v2 .home-hero .homepage-content .homepage-text { font-size: 15px; max-width: 90%; }
    .home-v2 .home-hero-feats { gap: 12px 18px; margin-top: 30px; }
    .home-v2 .home-hero-feat { font-size: 13px; }
    .home-v2 .home-hero-feat__ic { width: 34px; height: 34px; }
    .home-v2 .home-scroll-cue { display: none; }   /* not useful on touch */

    /* ---------------------------------------------------------------- */
    /* 4. Section rhythm — breathing room on small screens              */
    /* ---------------------------------------------------------------- */
    .home-v2 .about-us-sec,
    .home-v2 .news-sec-desktop { padding-top: 56px; padding-bottom: 56px; }
    .home-v2 .about-us-sec .title { justify-content: center; flex-wrap: wrap; gap: 6px 18px; }
    .home-v2 .about-us-sec .car-card { padding: 0 18px; }
    .home-v2 .dicover .container { padding: 48px 20px; }
    .home-v2 .dicover .text { margin-left: 0; }
    .home-v2 .dicover .text .video { width: 100%; height: auto; }
    .home-v2 .dicover .image,
    .home-v2 .dicover .image img { width: 100%; height: auto; max-width: 100%; }
    .home-v2 .company-experience { padding: 56px 18px; }
    .home-v2 .rto-band__inner { padding-left: 22px; padding-right: 22px; }
}

/* ===================================================================== */
/*  5. MOBILE MENU — dark premium off-canvas panel                       */
/*     (#mobile-mySidenav opens via JS width 0% -> 100%; we keep that)    */
/* ===================================================================== */
.mobile-nav #mobile-mySidenav.sidenav {
    background:
        radial-gradient(120% 70% at 100% 0%, rgba(242, 115, 12, 0.18) 0%, rgba(242, 115, 12, 0) 52%),
        linear-gradient(165deg, #1c1f27 0%, #14161d 55%, #0c0d12 100%);
    box-shadow: none;
    transition: width .42s cubic-bezier(.16, .84, .44, 1);
}
.mobile-nav #mobile-mySidenav .side-nav-wrapper {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    height: 100%;
    width: 100vw;
    max-width: 100vw;
    padding: 18px 22px calc(20px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* header: logo + close */
.mobile-nav #mobile-mySidenav .side-nav-wrapper > a:first-child {
    display: inline-flex;
    align-items: center;
    margin: 4px 0 6px;
}
.mobile-nav #mobile-mySidenav .side-nav-wrapper > a:first-child img {
    height: 46px !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    /* transparent logo on a dark panel: a faint light edge keeps the dark
       "CAR RENTAL" sub-line readable without any visible box */
    filter: drop-shadow(0 0 0.6px rgba(255, 255, 255, 0.85)) drop-shadow(0 2px 9px rgba(0, 0, 0, 0.45));
}
.mobile-nav #mobile-mySidenav .closebtn {
    position: absolute;
    top: 16px; right: 20px;
    width: 46px; height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(242, 115, 12, 0.5);
    color: #ffb877;
    font-size: 0;
    transition: background .2s ease, transform .15s ease;
}
.mobile-nav #mobile-mySidenav .closebtn:active { transform: scale(.94); background: rgba(242, 115, 12, .18); }

/* the list */
.mobile-nav #mobile-mySidenav .side-nav-wrapper > ul {
    position: static !important;
    transform: none !important;
    left: auto; right: auto; top: auto;
    height: auto !important;
    width: 100%;
    margin: 16px 0 0 !important;
    padding: 0 !important;
    list-style: none;
    display: flex;
    flex-direction: column;
}
.mobile-nav #mobile-mySidenav .side-nav-wrapper > ul > li {
    padding: 0 !important;
    margin: 0;
    display: block !important;
    width: 100%;
}

/* a menu row */
.mobile-nav #mobile-mySidenav .msnav__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 17px 2px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #f4f5f7 !important;
    font-family: "Inter", sans-serif;
    font-size: 23px !important;
    font-weight: 600 !important;
    letter-spacing: -.4px;
    text-decoration: none !important;
    transition: color .2s ease, padding-left .2s ease;
}
.mobile-nav #mobile-mySidenav .msnav__row:hover,
.mobile-nav #mobile-mySidenav .msnav__row:active {
    color: #ff9a3c !important;
    padding-left: 8px !important;
}
.mobile-nav #mobile-mySidenav .msnav__rowlabel {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    position: static !important;   /* override a legacy global span rule */
    margin: 0 !important;
    flex: 1 1 auto;
}
.mobile-nav #mobile-mySidenav .msnav__chev { color: rgba(255, 255, 255, .4); flex: none; transition: transform .25s ease; }
.mobile-nav #mobile-mySidenav .msnav__hasdrop.show .msnav__chev { transform: rotate(180deg); }
.mobile-nav #mobile-mySidenav .msnav__row.dropdown-toggle::after { display: none !important; } /* kill bootstrap caret */

/* Book now — primary accent */
.mobile-nav #mobile-mySidenav .msnav__row--cta {
    color: #ff8f28 !important;
    font-weight: 700 !important;
}
.mobile-nav #mobile-mySidenav .msnav__cta-arrow { color: #ff8f28; flex: none; }

/* expandable sub-menus (language / account) — inline list */
.mobile-nav #mobile-mySidenav .msnav__submenu {
    position: static !important;
    transform: none !important;
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 6px 0 10px 8px;
    border: none;
    background: transparent;
    box-shadow: none;
}
.mobile-nav #mobile-mySidenav .msnav__submenu .language-option,
.mobile-nav #mobile-mySidenav .msnav__submenu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 10px;
    color: rgba(255, 255, 255, .82) !important;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}
.mobile-nav #mobile-mySidenav .msnav__submenu .language-option img {
    width: 22px; height: 22px; border-radius: 4px; object-fit: cover;
}
.mobile-nav #mobile-mySidenav .msnav__submenu .language-option:active,
.mobile-nav #mobile-mySidenav .msnav__submenu .dropdown-item:active {
    background: rgba(242, 115, 12, .16);
    color: #fff !important;
}
.mobile-nav #mobile-mySidenav .msnav__submenu .dropdown-item-text {
    padding: 4px 10px;
    color: rgba(255, 255, 255, .45);
    font-size: 13px;
}
.mobile-nav #mobile-mySidenav .msnav__submenu form { margin: 0; }
.mobile-nav #mobile-mySidenav .msnav__submenu button.dropdown-item {
    width: 100%; text-align: left; background: transparent; border: none; cursor: pointer;
}

/* social */
.mobile-nav #mobile-mySidenav .mobile-social-icon {
    margin-top: auto;
    padding-top: 24px;
}
.mobile-nav #mobile-mySidenav .mobile-social-icon ul {
    display: flex; gap: 12px; margin: 0; padding: 0; list-style: none;
}
.mobile-nav #mobile-mySidenav .mobile-social-icon li { margin: 0; }
.mobile-nav #mobile-mySidenav .mobile-social-icon a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
    transition: background .2s ease;
}
.mobile-nav #mobile-mySidenav .mobile-social-icon a:active { background: #f2730c; }
