/* Responsive Carousel for Package Display */

/* Desktop and Large Screens - Show packages in rows */
@media (min-width: 992px) {
    .experiences-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .carousel-container {
        position: relative;
    }
    
    .carousel-nav {
        display: none;
    }
}

/* Tablet Screens - Show 2 packages in carousel */
@media (min-width: 768px) and (max-width: 991px) {
    .experiences-grid {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        gap: 20px;
        padding: 0 10px;
        margin-bottom: 40px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .experiences-grid::-webkit-scrollbar {
        display: none;
    }
    
    .experience-card {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
    
    .carousel-container {
        position: relative;
    }
    
    .carousel-nav {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
    }
    
    .carousel-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 10;
        transition: all 0.3s ease;
    }
    
    .carousel-arrow:hover {
        background: white;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .carousel-arrow.prev {
        left: -20px;
    }
    
    .carousel-arrow.next {
        right: -20px;
    }
    
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ddd;
        cursor: pointer;
        transition: background 0.3s ease;
    }
    
    .carousel-dot.active {
        background: var(--primary-color, #ff6600);
    }
}

/* Mobile Screens - Show 1 package in carousel */
@media (max-width: 767px) {
    .experiences-grid {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        gap: 15px;
        padding: 0 15px;
        margin-bottom: 30px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x mandatory;
    }
    
    .experiences-grid::-webkit-scrollbar {
        display: none;
    }
    
    .experience-card {
        flex: 0 0 85%;
        min-width: 85%;
        scroll-snap-align: center;
    }
    
    .carousel-container {
        position: relative;
    }
    
    .carousel-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.95);
        border: none;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        z-index: 10;
        transition: all 0.3s ease;
    }
    
    .carousel-arrow:hover {
        background: white;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    }
    
    .carousel-arrow.prev {
        left: 5px;
    }
    
    .carousel-arrow.next {
        right: 5px;
    }
    
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 15px;
    }
    
    .carousel-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #ddd;
        cursor: pointer;
        transition: background 0.3s ease;
    }
    
    .carousel-dot.active {
        background: var(--primary-color, #ff6600);
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    .experience-card {
        flex: 0 0 90%;
        min-width: 90%;
    }
    
    .experiences-grid {
        padding: 0 10px;
        gap: 10px;
    }
}

/* Smooth scrolling animation */
.experiences-grid {
    transition: transform 0.3s ease;
}

/* Touch scrolling improvements */
@media (hover: none) and (pointer: coarse) {
    .experiences-grid {
        -webkit-overflow-scrolling: touch;
    }
}

/* Hide scrollbars on all browsers */
.experiences-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.experiences-grid::-webkit-scrollbar {
    display: none;
}

/* Carousel container positioning */
.carousel-container {
    position: relative;
    overflow: hidden;
}

/* Arrow icons */
.carousel-arrow i {
    font-size: 14px;
    color: #333;
}

/* Responsive adjustments for section padding */
@media (max-width: 767px) {
    .destination-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .destination-section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 20px;
    }
}