/* Activity Detail Page Styles - Scoped to avoid conflicts */

/* Activity Detail Page Container */
.activity-detail-page {
    padding: 2rem 0 4rem;
    overflow-x: hidden;
    width: 100%;
}

.activity-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    overflow-x: hidden;
}

/* Activity Gallery Carousel - Full Width with Side Previews */
.activity-gallery-carousel-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 120px; /* Space below header (top-bar ~40px + header ~80px) */
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: #f9fafb;
    overflow-x: hidden;
    overflow-y: visible;
}

.activity-gallery-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
    padding: 0 5%;
}

.activity-gallery-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    cursor: grab;
    width: 100%;
}

/* Single image: center the slide (no JS transform runs) */
.activity-gallery-carousel-section.activity-gallery-carousel--single .activity-gallery-carousel-track {
    justify-content: center;
    cursor: default;
}

.activity-gallery-carousel-slide {
    flex: 0 0 90%;
    min-width: 0;
    padding: 0 1rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-gallery-slide-content {
    position: relative;
    width: 100%;
    aspect-ratio: 21/9; /* Reduced height - wider aspect ratio */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--primary-color); /* Fallback background color */
}

.activity-gallery-slide-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Ensure images are centered */
    display: block;
    user-select: none;
    pointer-events: none;
}

/* Navigation Arrows */
.activity-gallery-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.activity-gallery-carousel-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.activity-gallery-carousel-prev {
    left: 2rem;
}

.activity-gallery-carousel-next {
    right: 2rem;
}

/* Indicators */
.activity-gallery-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.activity-gallery-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.activity-gallery-indicator.active {
    background: var(--primary-color);
    width: 32px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .activity-gallery-carousel-section {
        margin-top: 100px; /* Reduced spacing for mobile (smaller header) */
        padding: 1.5rem 0;
    }
    
    .activity-gallery-carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .activity-gallery-carousel-prev {
        left: 1rem;
    }
    
    .activity-gallery-carousel-next {
        right: 1rem;
    }
    
    .activity-gallery-carousel-wrapper {
        padding: 0 3%;
    }
}
