/* ============================================================
   Chaliko site-wide enhancements
   - Fixes the mobile menu (unified across all pages)
   - Adds a "door swinging open" animation + page recede effect
   ============================================================ */

/* ---- Page content: recedes/zooms out while the menu is open ---- */
#page-scale-wrapper {
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open #page-scale-wrapper {
    transform: scale(0.92);
    filter: brightness(0.85);
}

/* ---- Menu stage: isolated 3D context so the sidebar can "swing" like a door
   without affecting the fixed positioning of anything else on the page ---- */
#menu-stage {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 10000;
    perspective: 1600px;
    pointer-events: none;
}

/* ---- The door itself: always covers the full device height, even on
   mobile browsers whose address bar shrinks/grows the visible viewport ---- */
#side-bar {
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    transform-origin: right center;
    transform: rotateY(90deg);
    backface-visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

#side-bar.show {
    transform: rotateY(0deg);
    opacity: 1;
    pointer-events: auto;
}

/* ---- Close button: replace the theme's broken absolute/negative-margin
   positioning with a tidy circular button inside the panel ---- */
#side-bar button.close-icon-menu {
    position: static;
    align-self: flex-end;
    flex: 0 0 40px;
    width: 40px;
    max-width: 40px;
    height: 40px;
    margin: 0 0 24px;
    padding: 0;
    border-radius: 50%;
    background: var(--color-primary, #FF3600);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.side-bar .mobile-menu-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* ---- Logo / brand ---- */

/* Dark-green rounded badge behind the CHALIKO wordmark, in every header state */
.logo-badge {
    display: inline-flex;
    border-radius: 10px;
    background: var(--color-logo-bg, #143628);
    padding: 8px 18px;
}

.side-bar .mobile-menu-logo {
    margin-bottom: 30px;
}

.side-bar .mobile-menu-logo a.logo-badge {
    padding: 10px 20px;
}

.side-bar .mobile-menu-logo a.logo-badge .brand-name {
    color: #fff;
}

.side-bar .mobile-menu-logo a.logo-badge .brand-sub {
    color: rgba(255, 255, 255, 0.75);
}

.side-bar .mobile-menu-logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.side-bar .mobile-menu-logo .brand-name {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--color-heading, #143628);
}

.side-bar .mobile-menu-logo .brand-sub {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(20, 54, 40, 0.55);
    margin-top: 3px;
}

/* ---- Nav links ---- */
.side-bar .mainmenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-bar .mainmenu li {
    border-bottom: 1px solid rgba(20, 54, 40, 0.08);
}

.side-bar .mainmenu li a {
    display: block;
    padding: 14px 2px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-heading, #143628);
    text-decoration: none;
    transition: color 0.2s ease;
}

.side-bar .mainmenu li a:hover {
    color: var(--color-primary, #FF3600);
}

/* ---- Phone + Book Now CTA ---- */
.side-bar .mobile-menu-cta {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-bar .mobile-menu-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    color: var(--color-heading, #143628);
    text-decoration: none;
}

.side-bar .mobile-menu-phone i {
    color: var(--color-primary, #FF3600);
}

.side-bar .mobile-menu-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary, #FF3600);
    color: #fff;
    padding: 13px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

/* ---- Social icons: pinned to the bottom of the panel ---- */
.side-bar .mobile-menu-social {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(20, 54, 40, 0.08);
}

.side-bar .mobile-menu-social ul {
    display: flex;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-bar .mobile-menu-social ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(20, 54, 40, 0.06);
    color: var(--color-heading, #143628);
    transition: background 0.2s ease, color 0.2s ease;
}

.side-bar .mobile-menu-social ul li a:hover {
    background: var(--color-primary, #FF3600);
    color: #fff;
}

.rts-faq__accordion.faq-centered {
    margin-right: 0;
    margin-left: 0;
    background: var(--color-white, #fff);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(20, 54, 40, 0.05);
}

.rts-faq__accordion.faq-centered .accordion .accordion-item.active {
    border: 1px solid rgba(85, 85, 85, 0.15);
}

@media (max-width: 767px) {
    .rts-faq__accordion.faq-centered {
        padding: 30px 20px;
    }
}

/* ---- Fleet cards (index.html "Our Fleet" preview + fleet.html grid):
   below the 1200px container breakpoint the card column narrows enough
   that the seats/fuel/transmission row collides with the circular
   "view" button pinned to the card's bottom-right corner, clipping the
   last spec ("Automatic"). Wrap the row and give the 3rd item its own
   line so nothing sits under the button. ---- */
@media (max-width: 1199px) {
    .single-car-list-item .content .car-list-service {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .single-car-list-item .content .car-list-service li:nth-child(3) {
        flex-basis: 100%;
    }
}

/* ---- Fleet grid at tablet widths (768px-991px): Bootstrap's col-md-6
   packs cards 2-per-row here, so an odd vehicle count (any filtered
   category, or the homepage's 3-car preview) leaves the last card
   dangling next to a large empty gap. Drop to a single column in this
   range only - col-lg-4 already gives 3-per-row from 992px up, where
   the same-parity issue is far less visually obvious. ---- */
@media (min-width: 768px) and (max-width: 991px) {

    .rts-car-list-wrapper .col-md-6,
    .ms-portfolio-filter-area .col-md-6 {
        width: 100%;
    }
}

