/* Destination Grid Layout Fix */

/* Fix destination section layout */
.destination-section {
    padding: 20px 0;
    background: #dae5fc;
}

/* Fix destination carousel container */
.destination-slider {
    display: flex; /* Use flexbox for horizontal alignment */
    flex-wrap: nowrap; /* Prevent wrapping to the next line */
    
    gap: 20px; /* Add spacing between items */
    padding-bottom: 10px; /* Add some padding at the bottom */
    scrollbar-width: thin; /* For Firefox scrollbar */
    scroll-behavior: smooth; /* Smooth scrolling */
    position: relative; /* For scroll indicators */
    cursor: grab; /* Show grab cursor */
}

/* Active scrolling state */
.destination-slider:active {
    cursor: grabbing;
}

/* Scroll indicators */
.scroll-indicators {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(19, 43, 107, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.scroll-indicators:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

/* Hide scroll indicators on mobile */
@media (max-width: 768px) {
    .scroll-indicators {
        display: none;
    }
}

/* Hide scrollbar for Webkit browsers (Chrome, Safari) */
.destination-slider::-webkit-scrollbar {
    display: none;
}

.destination-slider {
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

/* Fix destination item layout */
.destination-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    width: 360px; /* Set a fixed width for each item */
    height: 300px;
    flex: 0 0 auto; /* Prevent items from shrinking or growing */
    box-shadow: 0 8px 25px rgba(45, 62, 80, 0.15);
    transition: all 0.3s ease;
}

.destination-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.destination-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(20, 20, 20, 0.8) 100%);
    z-index: 1;
    border-radius: 15px;
}

.destination-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 2;
    text-align: center;
}

.destination-content h5 {
    color: #fff !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    font-family: 'Poppins', sans-serif !important;
}

.dest-count {
    background: #f8c300 !important;
    color: #2d3e50 !important;
    font-size: 12px !important;
    padding: 4px 8px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
}

/* Hover effects */
.destination-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(45, 62, 80, 0.25);
}

.destination-item:hover img {
    transform: scale(1.1);
}

/* Owl carousel navigation */
.destination-slider .owl-nav {
    margin-top: 0;
    text-align: center;
}

.destination-slider .owl-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff !important;
    border: none;
    margin: 0 10px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.destination-slider .owl-nav button:hover {
    transform: scale(1.1);
}

.destination-slider .owl-dots {
    text-align: center;
    margin-top: 30px;
}

.destination-slider .owl-dots .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.destination-slider .owl-dots .owl-dot.active {
    transform: scale(1.2);
}

/* View All button fix */
.view-all .btn {
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all .btn:hover {
    transform: translateY(-2px);
}

/* Scroll progress indicator */
.destination-section::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: rgba(19, 43, 107, 0.3);
    border-radius: 2px;
    z-index: 5;
}

/* Enhanced touch scrolling for mobile */
@media (max-width: 768px) {
    .destination-slider {
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scroll-snap-type: x mandatory; /* Snap to items */
    }
    
    .destination-item {
        height: 250px;
        margin: 0 8px;
        scroll-snap-align: start; /* Snap alignment */
    }

    .destination-content h5 {
        font-size: 20px !important;
    }

    .destination-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .destination-item {
        height: 200px;
        margin: 0 5px;
    }

    .destination-content h5 {
        font-size: 18px !important;
    }

    .destination-info {
        padding: 15px;
    }
}