/* =====================================================================
   GANGASAGAR TOUR YATRA - RESPONSIVE STYLESHEET
   Mobile First Responsive Design & Media Queries
   Tested on: 360px, 375px, 390px, 412px, 768px, 1024px, 1366px+
   ===================================================================== */

/* Prevent any accidental horizontal scroll anywhere */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

/* Touch target minimum 44px for accessibility */
button, 
.btn, 
.nav-link, 
.dropdown-item {
    touch-action: manipulation;
}

/* -------------------------------------------------------------
   Mobile & Tablet Navigation (< 992px)
   ------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .main-navbar {
        padding: 0.55rem 0;
    }

    .site-header-logo {
        max-height: 40px !important;
    }

    .navbar-collapse {
        background: #ffffff;
        padding: 1.15rem;
        border-radius: 18px;
        margin-top: 0.75rem;
        box-shadow: 0 16px 45px rgba(22, 59, 112, 0.16);
        border: 1px solid rgba(36, 85, 164, 0.1);
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-drawer-header {
        background: linear-gradient(135deg, #0d2346 0%, #163B70 60%, #2455A4 100%);
    }

    .mobile-drawer-om {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: linear-gradient(135deg, #F28C28 0%, #FFB703 100%);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.7rem 0.75rem !important;
        font-size: 1rem;
        font-weight: 600;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        display: flex;
        align-items: center;
        gap: 12px;
        border-radius: 10px;
        margin-bottom: 3px;
        color: #17243A;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background-color: rgba(36, 85, 164, 0.06);
        color: var(--primary);
    }

    .navbar-nav .nav-link.nav-highlight-pill {
        margin: 6px 0;
        padding: 0.75rem 0.85rem !important;
        border-radius: 12px;
        border-bottom: none;
        box-shadow: 0 4px 14px rgba(242, 140, 40, 0.35);
    }

    .navbar-nav .nav-link.nav-highlight-pill .nav-item-title {
        color: #ffffff !important;
    }

    .mobile-nav-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
        flex-shrink: 0;
        transition: transform 0.2s ease;
    }

    .nav-link:hover .mobile-nav-icon {
        transform: scale(1.08);
    }

    .nav-item-title {
        font-size: 0.98rem;
        font-weight: 600;
    }

    .dropdown-menu {
        background: #f8fafc;
        border-radius: 12px;
        margin: 0.35rem 0 0.5rem 1rem;
        padding: 0.5rem;
        box-shadow: none;
        border: none;
        border-left: 3px solid #F28C28;
    }

    .dropdown-item {
        padding: 0.55rem 0.85rem;
        font-size: 0.92rem;
        border-radius: 8px;
    }

    .mobile-drawer-wa {
        background: #25D366;
        border-color: #25D366;
        box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    }

    .mobile-drawer-wa:hover {
        background: #1eb957;
        border-color: #1eb957;
    }

    /* Hero section adjustments */
    .hero-slide-item {
        min-height: auto;
        padding: 3.5rem 0 4.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 5.5vw, 2.75rem);
    }

    .hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.55;
    }
}

/* -------------------------------------------------------------
   Medium Desktop / Laptops (992px - 1199px)
   Prevents Header Link Wrapping On Narrow Desktops
   ------------------------------------------------------------- */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-header-logo {
        max-height: 40px !important;
    }

    .navbar-nav .nav-link {
        padding: 0.4rem 0.42rem !important;
        font-size: 0.82rem;
    }

    .navbar-nav .nav-link .nav-item-icon {
        display: none !important; /* Conceals icons when desktop width is tight to guarantee single line */
    }

    .header-book-btn {
        padding: 0.42rem 0.95rem !important;
        font-size: 0.84rem !important;
    }

    .nav-highlight-pill {
        padding: 0.38rem 0.65rem !important;
        font-size: 0.82rem !important;
    }
}

/* -------------------------------------------------------------
   Standard Desktop & Large Laptops (1200px - 1399px)
   ------------------------------------------------------------- */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .navbar-nav .nav-link {
        padding: 0.48rem 0.65rem !important;
        font-size: 0.88rem;
    }

    .navbar-nav .nav-link .nav-item-icon {
        font-size: 0.86rem;
    }

    .header-book-btn {
        padding: 0.48rem 1.15rem !important;
        font-size: 0.88rem !important;
    }
}

/* -------------------------------------------------------------
   Small Mobile Phones (360px - 576px)
   ------------------------------------------------------------- */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-slide-item {
        padding: 2.75rem 0 3.75rem;
    }

    .hero-title {
        font-size: 1.95rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-slide-item .d-flex.flex-wrap.gap-3 {
        gap: 0.65rem !important;
    }

    .hero-slide-item .d-flex.flex-wrap.gap-3 > a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-carousel-control {
        width: 38px;
        height: 38px;
    }

    .brand-title {
        font-size: 1.1rem;
    }

    .brand-sub {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }

    .brand-badge {
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
    }

    .site-header-logo {
        max-height: 36px !important;
    }

    /* Cards */
    .card-img-wrap {
        height: 190px;
    }

    .travel-card-title {
        font-size: 1.1rem;
    }

    /* Floating WhatsApp Button */
    .floating-contact-wrap {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    /* Statistics Counters */
    .counter-val {
        font-size: 2rem !important;
    }

    /* Mela Camp Feature Badges Scroll */
    .feature-badges-wrap {
        gap: 12px !important;
        overflow-x: auto;
        padding-bottom: 8px;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch;
    }
}
