﻿
/* --- Container --- */
.tours-slider-container {
    position: relative;
}

/* --- Viewport (defines visible area) --- */
.tours-slider-viewport {
    overflow: hidden;
    width: 100%;
}

/* --- Track --- */

/* --- Slides --- */
.tour-slide {
    flex-shrink: 0;
    transition: opacity 0.4s ease;
}

/* ============================================
   DESKTOP (≥992px) - Paginated Carousel
   ============================================ */
@media (min-width: 992px) {
    .tours-slider-container {
        padding: 0 3.5rem; /* Space for arrows */
    }

    .tours-slider-viewport {
        overflow: hidden;
    }

    /* 
       3 items per page with 1.5rem (24px) gap
       Each item = (viewport - 2 gaps) / 3
    */
    .tour-slide {
        width: calc((100% - 3rem) / 3);
        min-width: 0;
    }

    /* Navigation Arrows */
    .slider-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        opacity: 0.7;
    }

        .slider-arrow:hover {
            opacity: 1;
            transform: translateY(-50%) scale(1.1);
            background-color: var(--tblr-primary) !important;
            color: white !important;
            box-shadow: 0 4px 12px rgba(var(--tblr-primary-rgb), 0.4) !important;
        }

        .slider-arrow:active {
            transform: translateY(-50%) scale(0.95);
        }

        .slider-arrow:disabled {
            opacity: 0.2 !important;
            cursor: not-allowed;
            transform: translateY(-50%) scale(1);
            background-color: var(--tblr-light) !important;
            color: inherit !important;
            box-shadow: none !important;
        }

    .slider-arrow-prev {
        left: 0;
    }

    .slider-arrow-next {
        right: 0;
    }

    /* Page Dots */
    .slider-dots {
        margin-top: 2rem !important;
    }

    .slider-dot {
        width: 32px;
        height: 6px;
        border-radius: 3px;
        background: var(--tblr-border-color);
        border: none;
        padding: 0;
        transition: all 0.3s ease;
        cursor: pointer;
    }

        .slider-dot:hover {
            background: var(--tblr-muted);
        }

        .slider-dot.active {
            background: var(--tblr-primary);
            width: 48px;
        }
}

/* ============================================
   MOBILE (<992px) - Vertical Stack
   ============================================ */
@media (max-width: 991.98px) {
    .tours-slider-container {
        padding: 0;
    }

    .tours-slider-viewport {
        overflow: visible;
    }

    .tours-slider-track {
        flex-direction: column;
        gap: 1.5rem;
        transform: none !important;
    }

    .tour-slide {
        width: 100%;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .activity-card {
        height: 450px;
    }

    /* Hide arrows on mobile */
    .slider-arrow {
        display: none !important;
    }

    /* Hide dots on mobile */
    .slider-dots {
        display: none !important;
    }
}

/* ============================================
   ACTIVITY CARD (preserved animations)
   ============================================ */
.activity-card {
    height: 520px !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

    .activity-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
    }

    .activity-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.85) 100% );
        z-index: 1;
        transition: background 0.5s ease;
    }

    .activity-card:hover::before {
        background: linear-gradient( 180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.9) 100% );
    }

.activity-card-image {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.activity-card:hover .activity-card-image {
    transform: scale(1.08);
}

.activity-card .card-img-overlay {
    z-index: 2;
    background: none !important;
}

/* Content */
.activity-title,
.activity-description,
.activity-highlight-item,
.activity-btn {
    transform: translateY(0);
    opacity: 1;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.activity-card:hover .activity-title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.activity-btn .btn-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.activity-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Shine effect */
.activity-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient( 45deg, transparent 40%, rgba(255, 255, 255, 0.03) 50%, transparent 60% );
    z-index: 3;
    transform: rotate(30deg) translateX(-100%);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.activity-card:hover::after {
    transform: rotate(30deg) translateX(100%);
}

/* Stagger highlights on hover */
.activity-card:hover .activity-highlight-item:nth-child(1) {
    transition-delay: 0.05s;
}

.activity-card:hover .activity-highlight-item:nth-child(2) {
    transition-delay: 0.1s;
}

.activity-card:hover .activity-highlight-item:nth-child(3) {
    transition-delay: 0.15s;
}

.activity-card:hover .activity-highlight-item:nth-child(4) {
    transition-delay: 0.2s;
}

#section-making-adventures img {
    object-position: center right
}

#section-making-adventures::after {
    position: absolute;
    top: 0;
    content: "";
    width: 100%;
    height: 100%;
    background: linear-gradient( 90deg, rgb(0 0 0 / 0.7) 0%, rgb(0 0 0 / 0) 100% ) !important;
}
