/* ==========================================================================
   NIDHI CABS AGRA - COMPLETE MOBILE & RESPONSIVE UI PERFECTION (V2.0 HIGH-END)
   ========================================================================== */

:root {
    --nidhi-primary: #f59e0b;
    --nidhi-primary-hover: #d97706;
    --nidhi-secondary: #0f172a;
    --nidhi-accent: #2563eb;
    --nidhi-dark: #0f172a;
    --nidhi-light: #f8fafc;
    --nidhi-success: #10b981;
    --nidhi-radius: 16px;
    --nidhi-card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

/* Global Smooth Polish */
html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #334155;
    background-color: #f8fafc;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden !important;
}

/* Card Modern Elevation */
.card, .single-tour, .single-destination, .single-feature {
    border-radius: var(--nidhi-radius) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    overflow: hidden;
}

.hover-lift, .single-tour:hover, .single-destination:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.12) !important;
}

/* Form Controls & Inputs Polish */
.form-control, .form-select {
    min-height: 48px;
    border-radius: 12px !important;
    border: 1.5px solid #cbd5e1 !important;
    font-size: 15px !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--nidhi-primary) !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2) !important;
}

/* Primary CTA Buttons */
.btn-primary, .eg-btn.btn--primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: none !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    padding: 12px 26px !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4) !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover, .eg-btn.btn--primary:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5) !important;
}

/* Header & Navigation Styling */
.header-area.style-1 {
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
}

.main-menu .menu-list > li > a {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    padding: 12px 14px !important;
    transition: color 0.2s ease !important;
}

.main-menu .menu-list > li > a:hover,
.main-menu .menu-list > li.active > a {
    color: #f59e0b !important;
}

/* Submenu Dropdown Polish */
.main-menu .sub-menu {
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12) !important;
    border: 1px solid #f1f5f9 !important;
    padding: 10px 0 !important;
}

.main-menu .sub-menu li a {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    padding: 9px 20px !important;
    transition: all 0.2s ease !important;
}

.main-menu .sub-menu li a:hover {
    background: #fffbeb !important;
    color: #d97706 !important;
    padding-left: 24px !important;
}

/* Hero Booking Form Styling */
.hero-search-card, .search-wrapper {
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15) !important;
    border: 1px solid #f1f5f9 !important;
    padding: 24px !important;
}

/* Tab Navigation Styling in Hero Search Widget */
#heroTab .nav-link, #heroBookingTabs .nav-link {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    border-radius: 50px !important;
    padding: 10px 22px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

#heroTab .nav-link:hover, #heroBookingTabs .nav-link:hover {
    background: #e2e8f0;
    color: #0f172a;
}

#heroTab .nav-link.active, #heroBookingTabs .nav-link.active {
    background: #f59e0b !important;
    color: #0f172a !important;
    border-color: #f59e0b !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
}

/* Vehicle Booking Cards in Booking Wizard */
.vehicle-booking-card {
    border: 2px solid #e2e8f0 !important;
    border-radius: 16px !important;
    background: #ffffff;
    padding: 16px;
    transition: all 0.25s ease !important;
    cursor: pointer;
}

.vehicle-booking-card:hover {
    border-color: #cbd5e1 !important;
    transform: translateY(-3px);
}

.vehicle-booking-card.selected {
    border-color: #f59e0b !important;
    background: #fffbeb !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2) !important;
}

/* Tour & Package Cards */
.single-tour .tour-img img, .single-destination .destination-img img {
    border-radius: 14px 14px 0 0 !important;
    transition: transform 0.4s ease !important;
}

.single-tour:hover .tour-img img {
    transform: scale(1.05);
}

.tour-price-badge {
    background: #0f172a;
    color: #f59e0b;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
}

/* Footer Section Polish */
.footer-area {
    background: #0f172a !important;
    color: #94a3b8 !important;
    padding-top: 60px !important;
}

.footer-area h4 {
    color: #ffffff !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
}

.footer-area a {
    color: #cbd5e1 !important;
    transition: color 0.2s ease !important;
}

.footer-area a:hover {
    color: #f59e0b !important;
}

/* Mobile Quick Action Floating & Bottom Bar */
.nidhi-floating-actions {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Mobile Specific Responsive Tweaks */
@media (max-width: 991.98px) {
    .header-area .main-menu:not(.show-menu):not(.active) {
        display: none !important;
    }

    .hero-search-card {
        padding: 16px !important;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 75px !important;
    }

    /* Show sticky bottom bar on smartphones */
    .mobile-bottom-bar {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 10px 14px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        z-index: 9999;
        gap: 8px;
        align-items: center;
        border-top: 1px solid #e2e8f0;
    }

    .nidhi-floating-actions {
        display: none !important;
    }

    .header-logo img {
        max-height: 42px !important;
    }

    .home1-banner-content h1 {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }

    .home1-banner-content p {
        font-size: 13.5px !important;
    }

    .hero-search-card {
        margin-top: 10px !important;
    }
}

/* DISABLE PRELOADER OVERLAY FOR INSTANT PAGE LOAD SPEED */
.egns-preloader, #preloader, .preloader-area, .preloader {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* ==========================================================================
   STRICT DESKTOP VS MOBILE BOTTOM BAR ISOLATION (FIXES MASSIVE STACKED ROWS)
   ========================================================================== */

/* HIDE MOBILE BOTTOM BAR ON DESKTOP & TABLETS (>= 768px) */
.mobile-bottom-bar {
    display: none !important;
}

/* SHOW COMPACT 1-LINE HORIZONTAL BAR ONLY ON SMARTPHONES (< 768px) */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 70px !important;
    }

    .mobile-bottom-bar {
        display: flex !important;
        flex-direction: row !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        padding: 8px 12px !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
        z-index: 99999 !important;
        gap: 8px !important;
        align-items: center !important;
        border-top: 1.5px solid #e2e8f0 !important;
    }

    .mobile-bottom-bar a {
        flex: 1 !important;
        white-space: nowrap !important;
        margin: 0 !important;
        padding: 8px 6px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        border-radius: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .nidhi-floating-actions {
        display: none !important;
    }
}

/* HIGH-END SLATE NAVY FOOTER STYLING */
.footer-section {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%) !important;
    border-top: 4px solid #f59e0b !important;
    color: #94a3b8 !important;
    padding-top: 60px !important;
    padding-bottom: 30px !important;
}

.footer-widget h3, .footer-widget h5, .footer-widget .widget-title h5 {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    margin-bottom: 18px !important;
    letter-spacing: 0.3px;
}

.footer-widget p {
    color: #94a3b8 !important;
    font-size: 14.5px !important;
    line-height: 1.7 !important;
}

.footer-widget ul li a {
    color: #cbd5e1 !important;
    font-size: 14.5px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.footer-widget ul li a:hover {
    color: #f59e0b !important;
    padding-left: 4px;
}

.single-contact {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 14px;
}

.single-contact a {
    color: #f59e0b !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-decoration: none !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 25px !important;
    margin-top: 40px !important;
}

.social-list {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-list li a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 16px;
}

.social-list li a:hover {
    background: #f59e0b !important;
    color: #0f172a !important;
    transform: translateY(-3px);
}


/* ==========================================================================
   OFF-CANVAS MOBILE DRAWER NAVIGATION MENU (FIXES HORIZONTAL SPREAD BUG)
   ========================================================================== */

@media (max-width: 991.98px) {
    /* Mobile Drawer Off-Canvas Container */
    .main-menu {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 320px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        background: #ffffff !important;
        z-index: 999999 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 8px 0 35px rgba(15, 23, 42, 0.25) !important;
        padding: 20px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .main-menu.show-menu, .main-menu.active {
        left: 0 !important;
    }

    /* Mobile Drawer Header */
    .mobile-logo-area {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        border-bottom: 1.5px solid #f1f5f9 !important;
        padding-bottom: 15px !important;
        margin-bottom: 15px !important;
        width: 100% !important;
    }

    .mobile-logo-wrap img {
        max-height: 40px !important;
        width: auto !important;
    }

    .menu-close-btn {
        background: #f1f5f9 !important;
        border: none !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 18px !important;
        color: #0f172a !important;
        cursor: pointer !important;
    }

    /* Vertical 1-Column Menu List */
    .main-menu .menu-list {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        list-style: none !important;
    }

    .main-menu .menu-list > li {
        display: block !important;
        width: 100% !important;
        border-bottom: 1px solid #f1f5f9 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-menu .menu-list > li > a {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 13px 10px !important;
        color: #0f172a !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        width: 100% !important;
    }

    .main-menu .menu-list > li > a:hover {
        color: #f59e0b !important;
        background: #f8fafc !important;
    }

    /* Mobile Drawer Contact & Support Buttons */
    .mobile-drawer-contact {
        margin-top: auto !important;
        padding-top: 15px !important;
        border-top: 1.5px solid #f1f5f9 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .mobile-drawer-contact .contact-header {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        margin-bottom: 4px !important;
    }

    .mobile-drawer-contact .drawer-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 12px 16px !important;
        border-radius: 50px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        width: 100% !important;
        border: none !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    }

    .mobile-drawer-contact .call-btn {
        background: #0f172a !important;
        color: #ffffff !important;
    }

    .mobile-drawer-contact .wa-btn {
        background: #25D366 !important;
        color: #ffffff !important;
    }

    .mobile-drawer-contact .login-btn {
        background: #f59e0b !important;
        color: #0f172a !important;
    }

    /* Menu Backdrop Dark Overlay */
    .nidhi-menu-backdrop {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(15, 23, 42, 0.6) !important;
        backdrop-filter: blur(4px) !important;
        z-index: 999998 !important;
        display: none;
    }

    .nidhi-menu-backdrop.active {
        display: block !important;
    }
}


/* ==========================================================================
   FAILSAFE MOBILE DRAWER NAVIGATION MENU (GUARANTEED SLIDE-IN)
   ========================================================================== */

/* Mobile Hamburger Button Styling */
.mobile-menu-trigger-btn {
    background: #f59e0b !important;
    color: #0f172a !important;
    border: none !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4) !important;
    cursor: pointer !important;
}

@media (max-width: 991.98px) {
    /* Mobile Off-Canvas Drawer Container */
    .main-menu {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 320px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        background: #ffffff !important;
        z-index: 9999999 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 10px 0 40px rgba(15, 23, 42, 0.3) !important;
        padding: 20px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Active Open Drawer State */
    .main-menu.show-menu, .main-menu.active {
        left: 0 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mobile-logo-area {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        border-bottom: 1.5px solid #f1f5f9 !important;
        padding-bottom: 15px !important;
        margin-bottom: 15px !important;
        width: 100% !important;
    }

    .mobile-logo-wrap img {
        max-height: 40px !important;
        width: auto !important;
    }

    .menu-close-btn {
        background: #f1f5f9 !important;
        border: none !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 18px !important;
        color: #0f172a !important;
        cursor: pointer !important;
    }

    /* Vertical 1-Column Menu List */
    .main-menu .menu-list {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        list-style: none !important;
    }

    .main-menu .menu-list > li {
        display: block !important;
        width: 100% !important;
        border-bottom: 1px solid #f1f5f9 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-menu .menu-list > li > a {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 13px 10px !important;
        color: #0f172a !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        width: 100% !important;
    }

    .main-menu .menu-list > li > a:hover {
        color: #f59e0b !important;
        background: #f8fafc !important;
    }

    /* Mobile Drawer Contact & Support Buttons */
    .mobile-drawer-contact {
        margin-top: auto !important;
        padding-top: 15px !important;
        border-top: 1.5px solid #f1f5f9 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .mobile-drawer-contact .contact-header {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        margin-bottom: 4px !important;
    }

    .mobile-drawer-contact .drawer-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 12px 16px !important;
        border-radius: 50px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        width: 100% !important;
        border: none !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    }

    .mobile-drawer-contact .call-btn {
        background: #0f172a !important;
        color: #ffffff !important;
    }

    .mobile-drawer-contact .wa-btn {
        background: #25D366 !important;
        color: #ffffff !important;
    }

    .mobile-drawer-contact .login-btn {
        background: #f59e0b !important;
        color: #0f172a !important;
    }

    /* Menu Backdrop Overlay */
    .nidhi-menu-backdrop {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(15, 23, 42, 0.6) !important;
        backdrop-filter: blur(4px) !important;
        z-index: 999998 !important;
        display: none;
    }

    .nidhi-menu-backdrop.active {
        display: block !important;
    }
}
