/* Model Gallery Banner Styles */
.model-gallery-banner {
    position: relative;
    width: 100%;
    height: 500px;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.gallery-slide:hover .banner-image {
    transform: scale(1.05);
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 3rem 2rem 2rem;
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-slide:hover .image-overlay {
    transform: translateY(0);
    opacity: 1;
}

.model-info-overlay h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.model-info-overlay .brand-name {
    font-size: 1.1rem;
    color: #ffd700;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.model-info-overlay .model-year {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    margin-right: 1rem;
}

.model-info-overlay .price-range {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4CAF50;
    margin-top: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    opacity: 0.8;
    pointer-events: auto;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.gallery-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-nav-prev {
    left: -30px;
}

.gallery-nav-next {
    right: -30px;
}

.gallery-nav svg {
    width: 28px;
    height: 28px;
    color: white;
    transition: color 0.3s ease;
    pointer-events: none;
}

/* Slide Counter */
.slide-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slide-counter .current {
    color: #ffd700;
    font-weight: 600;
}

/* Slide Indicators */
.gallery-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 100;
}

.gallery-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.gallery-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.gallery-indicators .indicator.active {
    background: #007bff;
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Gallery Controls */
.gallery-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.control-btn {
    background: rgba(0, 0, 0, 0.7);
    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.8;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    opacity: 1;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn svg {
    width: 16px;
    height: 16px;
    color: white;
    pointer-events: none;
}

.pause-btn.paused .play-icon {
    display: block;
}

.pause-btn.paused .pause-icon {
    display: none;
}

.pause-btn:not(.paused) .play-icon {
    display: none;
}

.pause-btn:not(.paused) .pause-icon {
    display: block;
}

/* Loading State */
.gallery-slide img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-slide img.loaded {
    opacity: 1;
}

/* Fullscreen Mode */
.gallery-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: black;
}

.gallery-container.fullscreen .model-gallery-banner {
    height: 100vh;
    border-radius: 0;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .model-gallery-banner {
        height: 300px;
        margin: 1rem 0;
        border-radius: 8px;
    }
    
    .gallery-nav {
        width: 45px;
        height: 45px;
    }
    
    .gallery-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .gallery-nav-prev {
        left: 10px;
    }
    
    .gallery-nav-next {
        right: 10px;
    }
    
    .gallery-indicators {
        bottom: 15px;
    }
    
    .gallery-indicators .indicator {
        width: 10px;
        height: 10px;
    }
    
    .slide-counter {
        top: 15px;
        right: 15px;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .gallery-controls {
        top: 15px;
        left: 15px;
    }
    
    .control-btn {
        width: 35px;
        height: 35px;
    }
    
    .model-info-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .model-info-overlay h2 {
        font-size: 1.5rem;
    }
    
    .model-info-overlay .price-range {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .model-gallery-banner {
        height: 250px;
        border-radius: 6px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
    }
    
    .gallery-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .gallery-nav-prev {
        left: 5px;
    }
    
    .gallery-nav-next {
        right: 5px;
    }
    
    .gallery-indicators .indicator {
        width: 8px;
        height: 8px;
    }
    
    .model-info-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .model-info-overlay h2 {
        font-size: 1.3rem;
    }
    
    .image-overlay {
        padding: 2rem 1rem 1rem;
    }
}

/* Additional Effects - Removed background overlay */

/* Smooth transitions for all elements */
* {
    box-sizing: border-box;
}

/* Enhanced hover effects */
.gallery-container:hover .gallery-nav,
.gallery-container:hover .gallery-controls {
    opacity: 1;
}

/* Focus states for accessibility */
.gallery-nav:focus,
.gallery-indicators .indicator:focus,
.control-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Animation for slide change */
.gallery-slide.entering {
    transform: translateX(100%);
}

.gallery-slide.leaving {
    transform: translateX(-100%);
}

/* Image loading placeholder */
.gallery-slide .banner-image[src=""] {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}