/* Home Page Premium Mobile Optimization */

/* Global Section Spacing for Mobile */
@media (max-width: 768px) {
    .sec-pad {
        padding: 50px 0px 50px 0px !important;
    }
    .sec-pad-2 {
        padding: 60px 0px !important;
    }
    .sec-title {
        margin-bottom: 30px !important;
    }
    .sec-title h2 {
        font-size: 32px !important;
        line-height: 40px !important;
    }
}

/* Banner Section Mobile Optimization */
@media (max-width: 768px) {
    .banner-section {
        padding: 140px 0px 100px 0px !important;
        text-align: center;
    }
    .banner-section .content-box h2 {
        font-size: 42px !important;
        line-height: 50px !important;
        margin-bottom: 15px !important;
    }
    .banner-section .content-box p {
        font-size: 16px !important;
        line-height: 26px !important;
    }
}

@media (max-width: 480px) {
    .banner-section .content-box h2 {
        font-size: 36px !important;
        line-height: 44px !important;
    }
}

/* Feature Section Horizontal Scroll on Mobile */
@media (max-width: 768px) {
    .feature-section .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 0 15px 20px 15px !important;
        margin: 0 -15px !important;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        scroll-snap-type: x mandatory !important;
        gap: 15px !important;
    }
    
    .feature-section .row::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .feature-block {
        flex: 0 0 280px !important; /* Fixed width for better visibility */
        max-width: 280px !important;
        scroll-snap-align: center !important;
        margin-right: 0 !important;
    }
    
    .feature-block-one .inner-box {
        margin-bottom: 0 !important;
        height: 100% !important;
    }
}

/* Category Tour Packages Horizontal Scroll on Mobile */
@media (max-width: 768px) {
    .category-section .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 0 15px 15px 15px !important;
        margin: 0 -15px !important;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        scroll-snap-type: x mandatory !important;
        gap: 15px !important;
    }
    
    .category-section .row::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .tour-block {
        flex: 0 0 280px !important; /* Fixed width for premium feel */
        max-width: 280px !important;
        scroll-snap-align: center !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .tour-block-one .inner-box {
        margin-bottom: 0 !important;
        height: 100% !important;
    }

    .tour-block-one .inner-box .lower-content {
        padding: 20px 15px !important;
    }
}

/* Category Header Stack Fix */
@media (max-width: 576px) {
    .category-header {
        flex-direction: row !important; /* Keep horizontal on mobile as it's cleaner now */
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 15px 0 !important;
    }
    .category-header h3 {
        font-size: 20px !important;
        margin-bottom: 0 !important;
    }
    .category-header .theme-btn {
        width: auto !important;
        padding: 6px 15px !important;
        font-size: 13px !important;
    }
}

/* Tour Card Spacing */
@media (max-width: 768px) {
    .tour-block {
        margin-bottom: 30px !important;
    }
    .tour-block-one .inner-box .lower-content h3 {
        font-size: 20px !important;
    }
}

/* Popular Destinations Stack Fix */
@media (max-width: 768px) {
    .place-section .title-column {
        margin-bottom: 30px !important;
        text-align: center;
    }
    .place-block {
        margin-bottom: 20px !important;
    }
    .link-column {
        margin-top: 20px !important;
    }
}

/* About Section Mobile Fix */
@media (max-width: 991px) {
    .about-section .image-column {
        margin-bottom: 50px !important;
    }
    .about-section .content-column {
        text-align: center;
    }
    .about-section .content-box .list {
        display: inline-block;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .image_block_1 .image-box .image-2 {
        display: none; /* Simplify on very small screens to avoid overlap */
    }
    .image_block_1 .image-box .image-1 {
        padding-right: 0 !important;
        margin-right: 0 !important;
    }
}

/* Testimonials Carousel */
@media (max-width: 768px) {
    .testimonial-block-one .inner-box {
        padding: 30px 20px !important;
    }
}

/* Footer Section Padding */
@media (max-width: 768px) {
    .main-footer {
        padding-top: 60px !important;
    }
}

/* Explore by Category 2-Column Mobile Fix */
@media (max-width: 576px) {
    .place-block {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .place-block-one .inner-box {
        padding: 5px !important;
        margin-bottom: 15px !important;
        border-radius: 8px !important;
    }
    .place-block-one .inner-box .text {
        padding-left: 12px !important;
        padding-bottom: 12px !important;
    }
    .place-block-one .inner-box .text h3 {
        font-size: 14px !important;
        line-height: 18px !important;
    }
}

/* Premium Corner Ribbon for Multi-Packages */
.image-box {
    position: relative;
    overflow: hidden;
}

.pkg-ribbon {
    position: absolute;
    top: 15px;
    right: -35px;
    width: 130px;
    background: var(--primary-blue);
    color: #fff;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 0;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Updated Compact Footer for Multi-Package Cards */
.multi-pkg-limited {
    padding-top: 4px;
    text-align: left;
    margin-top: -8px; /* Tighter integration */
}

.pkg-explore-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 900;
    color: var(--primary-blue) !important;
    text-decoration: none !important;
    position: relative;
    padding-bottom: 2px;
}

.pkg-explore-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--primary-blue);
    transition: width 0.4s ease-out;
}

.pkg-explore-link:hover:after {
    width: 100%;
}

.pkg-explore-link i {
    font-size: 10px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pkg-explore-link:hover i {
    transform: translateX(3px);
}

.tour-info .duration-text {
    margin-top: 10px;
}

/* Fix Banner Pattern Layer Alignment - Ensures it stays at the bottom */
.banner-section {
    position: relative !important;
}

.banner-section .pattern-layer {
    position: absolute !important;
    bottom: 0px !important;
    top: auto !important;
    left: 0px !important;
    width: 100% !important;
    z-index: 1; /* Ensure it's behind content but visible */
}
