/* ============================================
   UNIVERSAL SLIDER CSS FIXES
   Ensures all sliders display and work correctly
   ============================================ */

/* Destination Slider Containers */
.destination-slider {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.destination-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease, scroll-behavior 0.3s ease;
    scroll-behavior: smooth;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.destination-slider-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Destination Cards */
.destination-card {
    flex: 0 0 300px;
    min-width: 300px;
    height: 280px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.destination-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Navigation Buttons - CRITICAL FIX */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #1e40af;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: #1e40af;
    font-size: 1.2rem;
    pointer-events: auto !important;
}

.slider-nav-btn:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

.slider-nav-btn:active {
    transform: translateY(-50%) scale(1.05);
}

.slider-nav-btn.prev {
    left: 10px;
}

.slider-nav-btn.next {
    right: 10px;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: #cbd5e1;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background: #94a3b8;
    transform: scale(1.2);
}

.slider-dot.active {
    background: #1e40af;
    width: 30px;
    border-radius: 6px;
}

/* 2026 Carousel Navigation - CRITICAL FIX */
.carousel-2026-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #1e40af;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: #1e40af;
    font-size: 1.2rem;
    pointer-events: auto !important;
}

.carousel-2026-nav:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-2026-nav.prev {
    left: 20px;
}

.carousel-2026-nav.next {
    right: 20px;
}

/* 2026 Carousel Indicators */
.carousel-2026-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-2026-indicator {
    width: 12px;
    height: 12px;
    background: #cbd5e1;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-2026-indicator:hover {
    background: #94a3b8;
}

.carousel-2026-indicator.active {
    background: #1e40af;
    width: 30px;
    border-radius: 6px;
}

/* Bootstrap Carousel Fixes */
.carousel-control-prev,
.carousel-control-next {
    z-index: 100 !important;
    pointer-events: auto !important;
    opacity: 1 !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #1e40af;
    border-radius: 50%;
    padding: 15px;
}

/* Ensure all buttons are clickable */
button, .btn, a[role="button"] {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Prevent card click from blocking navigation */
.destination-card,
.group-package-card,
.offer-card {
    pointer-events: auto;
}

.destination-card > *,
.group-package-card > *,
.offer-card > * {
    pointer-events: none;
}

.destination-card a,
.group-package-card a,
.offer-card a,
.destination-card button,
.group-package-card button,
.offer-card button {
    pointer-events: auto !important;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .slider-nav-btn,
    .carousel-2026-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .destination-card {
        flex: 0 0 280px;
        min-width: 280px;
    }
}

@media (max-width: 767px) {
    .slider-nav-btn.prev,
    .carousel-2026-nav.prev {
        left: 5px;
    }
    
    .slider-nav-btn.next,
    .carousel-2026-nav.next {
        right: 5px;
    }
    
    .destination-card {
        flex: 0 0 260px;
        min-width: 260px;
    }
}

/* Ensure sliders are visible */
.destination-slider-container,
.split-screen-2026,
.group-yatra-container {
    position: relative;
    width: 100%;
    overflow: visible;
}

/* Fix for overlapping elements */
.hero-section {
    position: relative;
    z-index: 1;
}

.booking-card-mmt,
.split-screen-2026,
.group-yatra-container {
    position: relative;
    z-index: 10;
}

.slider-nav-btn,
.carousel-2026-nav,
.group-carousel-nav {
    z-index: 100 !important;
}

/* Smooth transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

button:focus,
a:focus {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

/* Debug helper - remove in production */
.slider-nav-btn::before,
.carousel-2026-nav::before,
.group-carousel-nav::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    /* Expand click area */
}