/**
 * Tour Media Tabs - Images and Videos
 * Styles for the tabbed interface and video carousel
 */

/* Media Tabs Container */
.media-tabs-container {
    margin-bottom: 20px;
}

/* Tab Navigation */
.media-tabs {
    border-bottom: 2px solid #e74c3c;
    margin-bottom: 0;
}

.media-tabs .nav-item {
    margin-bottom: 0;
}

.media-tabs .nav-link {
    color: #666;
    font-weight: 600;
    padding: 12px 25px;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    transition: all 0.3s ease;
}

.media-tabs .nav-link:hover {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

.media-tabs .nav-link.active {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
    background: transparent;
}

.media-tabs .nav-link i {
    margin-right: 5px;
}

/* Tab Content */
.tab-content {
    padding: 20px 0;
    position: relative;
}

/* Tab Panes - Use height and overflow to hide content */
.tab-pane {
    margin: 0px 15px 0px 15px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.tab-pane.show.active {
    max-height: none;
    opacity: 1;
    overflow: visible;
}

/* Photos Container - Ensure proper positioning */
#photos-content {
    position: relative;
}

#photos-content #Img_carousel {
    margin: 0;
}

/* Images Container - Backward compatibility */
#images-content {
    position: relative;
}

#images-content #Img_carousel {
    margin: 0;
}

/* Video Carousel Container */
.video-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    margin: 0;
}

.video-carousel-wrapper {
    position: relative;
    width: 100%;
    min-height: 400px;
}

.video-slide {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease-in;
}

.video-slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Video Info */
.video-info {
    padding: 20px;
    background: #fff;
    color: #333;
}

.video-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.video-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Navigation Arrows */
.video-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.video-nav-arrow:hover {
    background: rgba(231, 76, 60, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.video-nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.video-nav-prev {
    left: 15px;
}

.video-nav-next {
    right: 15px;
}

.video-nav-arrow i {
    pointer-events: none;
}

/* Video Indicators */
.video-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
}

.video-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.video-indicator.active {
    background: #e74c3c;
    transform: scale(1.3);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .tab-pane {
        margin: 10px;
    }
    
    .media-tabs .nav-link {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .video-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .video-nav-prev {
        left: 10px;
    }
    
    .video-nav-next {
        right: 10px;
    }
    
    .video-info {
        padding: 15px;
    }
    
    .video-title {
        font-size: 18px;
    }
    
    .video-description {
        font-size: 13px;
    }
    
    .video-indicators {
        bottom: 10px;
        padding: 8px 12px;
    }
    
    .video-indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .tab-pane {
        margin: 8px;
    }
    
    .video-carousel-wrapper {
        min-height: 250px;
    }
    
    .video-nav-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .media-tabs .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Smooth Transitions */
.video-slide,
.video-nav-arrow,
.video-indicator,
.media-tabs .nav-link {
    transition: all 0.3s ease;
}
