/* ========================================
   MOBILE RESPONSIVE FIXES - ENTIRE PROJECT
   ======================================== */

/* Base Mobile Optimizations */
@media (max-width: 991px) {
    body {
        font-size: 15px;
        overflow-x: hidden;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    h1 {
        font-size: 28px !important;
    }
    
    h2 {
        font-size: 24px !important;
    }
    
    h3 {
        font-size: 20px !important;
    }
}

/* ========== HOME PAGE BANNER SLIDER ========== */
@media (max-width: 768px) {
    .home-banner-slider {
        height: 55vh !important;
        min-height: 380px !important;
        max-height: 480px !important;
        overflow: hidden !important;
        position: relative !important;
    }
    
    .banner-slider-container {
        display: flex !important;
        width: 100% !important;
        height: 100% !important;
        transition: transform 0.5s ease-in-out !important;
    }
    
    .banner-slide {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        position: relative !important;
        flex-shrink: 0 !important;
    }
    
    .banner-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
    }
    
    .banner-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .banner-content {
        padding: 0 20px !important;
        max-width: 100% !important;
        width: 90% !important;
    }
    
    .banner-title {
        font-size: 26px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }
    
    .banner-subtitle {
        font-size: 13px !important;
        letter-spacing: 1px !important;
        margin-bottom: 10px !important;
    }
    
    .banner-description {
        font-size: 14px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        margin-bottom: 15px !important;
    }
    
    .banner-slider-btn {
        display: flex !important;
        width: 36px !important;
        height: 36px !important;
        background: rgba(255,255,255,0.7) !important;
    }
    
    .banner-slider-btn i {
        font-size: 18px !important;
    }
    
    .banner-slider-prev {
        left: 10px !important;
    }
    
    .banner-slider-next {
        right: 10px !important;
    }
    
    .banner-slider-dots {
        bottom: 20px !important;
        gap: 8px !important;
    }
    
    .banner-dot {
        width: 10px !important;
        height: 10px !important;
    }
    
    .banner-dot.active {
        width: 28px !important;
    }
    
    .banner-btn {
        padding: 12px 25px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 576px) {
    .home-banner-slider {
        height: 50vh !important;
        min-height: 320px !important;
        max-height: 420px !important;
    }
    
    .banner-slide {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        width: 100% !important;
    }
    
    .banner-content {
        width: 95% !important;
        padding: 0 15px !important;
    }
    
    .banner-title {
        font-size: 22px !important;
        margin-bottom: 10px !important;
    }
    
    .banner-subtitle {
        font-size: 11px !important;
        margin-bottom: 8px !important;
    }
    
    .banner-description {
        font-size: 13px !important;
        margin-bottom: 12px !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }
    
    .banner-btn {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }
    
    .banner-slider-dots {
        bottom: 15px !important;
    }
    
    .banner-dot {
        width: 8px !important;
        height: 8px !important;
    }
    
    .banner-dot.active {
        width: 22px !important;
    }
}

@media (max-width: 480px) {
    .home-banner-slider {
        height: 45vh !important;
        min-height: 280px !important;
        max-height: 380px !important;
    }
    
    .banner-title {
        font-size: 20px !important;
    }
    
    .banner-subtitle {
        font-size: 10px !important;
    }
    
    .banner-description {
        font-size: 12px !important;
    }
    
    .banner-btn {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }
}

/* ========== TOUR CITIES SLIDER (HOME) ========== */
@media (max-width: 768px) {
    .tour-cities-section {
        padding: 40px 0 !important;
    }
    
    .tour-cities-header {
        flex-direction: row !important;
        align-items: center !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
    }
    
    .tour-cities-title {
        font-size: 20px !important;
        flex: 1 !important;
    }
    
    .tour-cities-nav {
        display: flex !important;
        flex-shrink: 0 !important;
    }
    
    .nav-btn-city {
        width: 38px !important;
        height: 38px !important;
        font-size: 15px !important;
    }
    
    .tour-cities-carousel-wrapper {
        width: 100% !important;
    }
    
    .tour-cities-swiper {
        padding-bottom: 10px !important;
    }
    
    .tour-city-slide {
        padding: 0 5px !important;
        box-sizing: border-box !important;
    }
    
    .tour-city-card {
        height: 300px !important;
        width: 100% !important;
    }
    
    .tour-city-card img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    .tour-city-name {
        font-size: 15px !important;
        padding: 12px 10px !important;
    }
}

@media (max-width: 576px) {
    .tour-city-slide {
        padding: 0 5px !important;
    }
    
    .tour-city-card {
        height: 280px !important;
    }
}

@media (max-width: 480px) {
    .tour-city-slide {
        padding: 0 5px !important;
    }
    
    .tour-city-card {
        height: 260px !important;
    }
}

/* ========== TOUR TYPES SLIDER (HOME) ========== */
@media (max-width: 768px) {
    .tour-types-section {
        padding: 40px 0 !important;
    }
    
    .tour-types-header {
        flex-direction: row !important;
        align-items: center !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
    }
    
    .tour-types-title {
        font-size: 20px !important;
        flex: 1 !important;
    }
    
    .tour-types-nav {
        display: flex !important;
        flex-shrink: 0 !important;
    }
    
    .nav-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 15px !important;
    }
    
    .tour-types-carousel-wrapper {
        width: 100% !important;
    }
    
    .tour-types-swiper {
        padding-bottom: 10px !important;
    }
    
    .tour-type-slide {
        padding: 0 5px !important;
        box-sizing: border-box !important;
    }
    
    .tour-type-card {
        height: 340px !important;
        width: 100% !important;
    }
    
    .tour-type-card img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    .tour-type-name {
        font-size: 16px !important;
    }
}

@media (max-width: 576px) {
    .tour-type-slide {
        padding: 0 5px !important;
    }
    
    .tour-type-card {
        height: 320px !important;
    }
}

@media (max-width: 480px) {
    .tour-type-slide {
        padding: 0 5px !important;
    }
    
    .tour-type-card {
        height: 300px !important;
    }
}

/* ========== TOUR RELIGIONS SLIDER (HOME) ========== */
@media (max-width: 768px) {
    .tour-religions-section {
        padding: 40px 0 !important;
    }
    
    .tour-religions-header {
        flex-direction: row !important;
        align-items: center !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
    }
    
    .tour-religions-title {
        font-size: 20px !important;
        flex: 1 !important;
    }
    
    .tour-religions-nav {
        display: flex !important;
        flex-shrink: 0 !important;
    }
    
    .tour-religions-carousel-wrapper {
        width: 100% !important;
    }
    
    .tour-religions-swiper {
        padding-bottom: 10px !important;
    }
    
    .tour-religion-slide {
        padding: 0 5px !important;
        box-sizing: border-box !important;
    }
    
    .tour-religion-card {
        height: 320px !important;
        width: 100% !important;
    }
    
    .tour-religion-card img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}

@media (max-width: 576px) {
    .tour-religion-slide {
        padding: 0 5px !important;
    }
    
    .tour-religion-card {
        height: 300px !important;
    }
}

@media (max-width: 480px) {
    .tour-religion-slide {
        padding: 0 5px !important;
    }
    
    .tour-religion-card {
        height: 280px !important;
    }
}

/* ========== WHY CHOOSE US SECTION ========== */
@media (max-width: 768px) {
    .why-choose-section,
    [class*="choose-us"],
    [class*="advantages"] {
        padding: 40px 0 !important;
    }
    
    .why-choose-section h2,
    [class*="choose-us"] h2 {
        font-size: 22px !important;
    }
}

/* ========== GENERAL SLIDERS/CAROUSELS ========== */
@media (max-width: 768px) {
    /* Specific tour carousels - use transform-based navigation */
    .tour-cities-carousel-wrapper,
    .tour-types-carousel-wrapper,
    .tour-religions-carousel-wrapper {
        overflow: hidden !important;
    }
    
    .tour-cities-swiper,
    .tour-types-swiper,
    .tour-religions-swiper {
        overflow: hidden !important;
        scroll-snap-type: none !important;
    }
    
    /* Other carousel wrappers */
    [class*="carousel-wrapper"]:not(.tour-cities-carousel-wrapper):not(.tour-types-carousel-wrapper):not(.tour-religions-carousel-wrapper),
    [class*="slider-wrapper"] {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    [class*="carousel-wrapper"]::-webkit-scrollbar,
    [class*="slider-wrapper"]::-webkit-scrollbar {
        display: none !important;
    }
    
    /* All carousels - except tour carousels */
    [class*="carousel"]:not(.tour-cities-carousel):not(.tour-types-carousel):not(.tour-religions-carousel),
    [class*="slider-container"] {
        scroll-snap-type: x mandatory !important;
    }
    
    /* All slides - except tour slides */
    [class*="slide"]:not(.tour-city-slide):not(.tour-type-slide):not(.tour-religion-slide) {
        scroll-snap-align: start !important;
    }
}

/* Mobile Images - Perfect Fit */
@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Package Cards */
    .package-card {
        flex-direction: column !important;
    }
    
    .package-image {
        width: 100% !important;
        min-width: 100% !important;
        height: 220px !important;
    }
    
    /* Buttons */
    .btn, .book-btn, .btn--base {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }
    
    /* Forms */
    .form-control {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }
    
    /* Cards */
    .card {
        margin-bottom: 20px;
    }
    
    .card-body {
        padding: 15px !important;
    }
    
    /* Footer */
    footer .footer-widget {
        margin-bottom: 30px;
        text-align: center;
    }
}

/* Small Mobile Devices */
@media (max-width: 576px) {
    body {
        font-size: 14px;
    }
    
    /* Headings */
    h1 {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }
    
    h2 {
        font-size: 20px !important;
    }
    
    h3 {
        font-size: 18px !important;
    }
    
    /* Package Cards */
    .package-image {
        height: 200px !important;
    }
    
    .package-content {
        padding: 15px !important;
    }
    
    .package-title {
        font-size: 16px !important;
    }
    
    .package-desc {
        font-size: 13px !important;
    }
    
    /* Price Display */
    .price-display,
    .cost-price {
        font-size: 20px !important;
    }
    
    /* Buttons */
    .btn, .book-btn {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }
    
    /* Tables - Responsive */
    table {
        font-size: 12px;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Spacing */
    section {
        padding: 30px 0 !important;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Section Titles */
    .section-title,
    [class*="section-title"],
    [class*="title"] h2 {
        font-size: 20px !important;
    }
}

/* Tour Package Details Mobile */
@media (max-width: 768px) {
    .hero-slider-section {
        height: 280px !important;
    }
    
    .slider-slide img {
        object-fit: cover;
        object-position: center;
    }
    
    .duration-badge {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
    
    .title-price-section {
        padding: 20px 0 !important;
    }
    
    .package-title {
        font-size: 20px !important;
    }
    
    .cost-summary {
        margin-top: 15px;
        text-align: center;
    }
    
    /* Tabs */
    .tab-buttons {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        white-space: nowrap;
        font-size: 13px !important;
        padding: 10px 15px !important;
    }
    
    /* Content Boxes */
    .content-box {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .section-title {
        font-size: 18px !important;
    }
    
    /* Enquiry Sidebar - Mobile */
    .enquiry-sidebar,
    .enquiry-card {
        position: static !important;
        margin-top: 30px;
    }
}

/* City/Religion Tour Pages Mobile */
@media (max-width: 768px) {
    .page-header {
        padding: 20px 0 10px !important;
    }
    
    .page-title {
        font-size: 22px !important;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    .package-count {
        font-size: 13px !important;
        padding: 6px 15px !important;
    }
}

/* Tour Types Page Mobile */
@media (max-width: 768px) {
    .state-banner {
        height: 250px !important;
    }
    
    .state-banner img {
        object-fit: cover;
    }
    
    .destinations-sidebar {
        position: static !important;
        margin-top: 20px;
    }
    
    .destinations-list {
        max-height: none !important;
    }
}

/* Breadcrumb Mobile */
@media (max-width: 576px) {
    .breadcrumb-section {
        display: none;
    }
}

/* Footer Mobile */
@media (max-width: 768px) {
    .footer-widget h4 {
        font-size: 16px !important;
    }
    
    .footer-widget ul li {
        font-size: 13px;
    }
    
    .footer-bottom {
        text-align: center;
        padding: 15px 0 !important;
    }
    
    .copyright-text {
        font-size: 12px;
    }
}

/* Fix Horizontal Scroll Issues */
html, body {
    overflow-x: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .row > * {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Images in content */
    .overview-text img,
    .content-box img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Touch Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Better tap targets */
    a, button, .btn {
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    *:hover {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Extra Small Devices (480px) */
@media (max-width: 480px) {
    .tour-city-slide,
    .tour-type-slide {
        padding: 0 5px !important;
    }
    
    .tour-religion-slide {
        padding: 0 5px !important;
        min-height: 280px !important;
    }
    
    .hero-slider-section {
        height: 350px !important;
    }
}

/* Very Small Devices (320px) */
@media (max-width: 375px) {
    .banner-title {
        font-size: 20px !important;
    }
    
    .banner-subtitle {
        font-size: 11px !important;
    }
    
    .banner-description {
        font-size: 12px !important;
    }
    
    .package-card {
        margin-bottom: 15px;
    }
    
    .package-image {
        height: 180px !important;
    }
    
    .tour-city-slide,
    .tour-type-slide,
    .tour-religion-slide {
        padding: 0 5px !important;
    }
}

/* WhatsApp Button Mobile Position */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 80px !important;
        right: 15px !important;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 70px !important;
        right: 10px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 24px !important;
    }
}
