/* Fleet Gallery Styles */

.car-gallery {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 40px 40px 40px;
    overflow: visible;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 300px;
    border-radius: 12px;
    overflow: visible;
    background: transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.main-car-image {
    max-width: 90%;
    max-height: none;
    width: auto;
    height: auto;
    object-fit: none;
    object-position: center;
    border-radius: 12px;
    transition: transform 0.5s ease, box-shadow 0.3s ease, z-index 0.3s ease;
    position: relative;
    z-index: 1;
    background: transparent;
    display: block;
}

.main-car-image:hover {
    transform: scale(1.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Simple view indicator without icon */

/* Animated entrance for view indicator */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-indicator.fade-in {
    animation: slideUpFade 0.5s ease-out;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0) 60%,
        rgba(0,0,0,0.4) 85%,
        rgba(0,0,0,0.8) 100%
    );
    pointer-events: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    z-index: 2;
    opacity: 0.9;
}

.main-image-container:hover .image-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.1) 60%,
        rgba(0,0,0,0.5) 85%,
        rgba(0,0,0,0.9) 100%
    );
}

.view-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 3;
    min-width: 80px;
}

.main-image-container:hover .view-indicator {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 0 15px;
}

.gallery-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 50px;
}

.gallery-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
}

.gallery-btn.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gallery-btn i {
    transition: transform 0.3s ease;
    width: 14px;
    height: 14px;
}

.gallery-btn:hover i {
    transform: scale(1.05);
}

.gallery-btn span {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading Animation */
.main-car-image.loading {
    opacity: 0.7;
    filter: blur(2px);
}

.main-car-image.loaded {
    opacity: 1;
    filter: blur(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .car-gallery {
        padding: 40px 20px 20px 20px;
        max-width: 100%;
    }

    .main-image-container {
        min-height: 250px;
        padding: 15px;
    }

    .main-car-image {
        max-width: 95%;
    }

    .main-car-image:hover {
        transform: scale(1.1);
    }

    .gallery-nav {
        gap: 4px;
        padding: 0 8px;
        margin-top: 10px;
    }

    .gallery-btn {
        padding: 6px 8px;
        min-width: 45px;
        font-size: 9px;
        border-radius: 6px;
    }

    .gallery-btn i {
        width: 12px;
        height: 12px;
    }

    .view-indicator {
        top: 12px;
        right: 12px;
        padding: 5px 10px;
        font-size: 11px;
        border-radius: 12px;
        min-width: 70px;
    }
}

@media (max-width: 480px) {
    .car-gallery {
        padding: 30px 15px 15px 15px;
    }

    .main-image-container {
        min-height: 200px;
        padding: 10px;
    }

    .main-car-image {
        max-width: 98%;
    }

    .main-car-image:hover {
        transform: scale(1.08);
    }

    .gallery-btn {
        padding: 5px 7px;
        min-width: 40px;
        font-size: 8px;
        border-radius: 5px;
        gap: 1px;
    }

    .gallery-btn i {
        width: 10px;
        height: 10px;
    }

    .view-indicator {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 10px;
        border-radius: 10px;
        min-width: 60px;
    }
}

/* Animation for image transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.main-car-image.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Enhanced hover effects */
.car-gallery:hover .gallery-btn:not(.active):not(:hover) {
    opacity: 0.6;
}

.car-gallery:hover .gallery-btn.active {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Focus states for accessibility */
.gallery-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* RTL Support */
[dir="rtl"] .view-indicator {
    right: auto;
    left: 15px;
}

[dir="rtl"] .gallery-nav {
    direction: rtl;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .gallery-btn {
        border-width: 3px;
    }
    
    .gallery-btn.active {
        background: rgba(212, 175, 55, 0.4);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .main-car-image,
    .gallery-btn,
    .gallery-btn i {
        transition: none;
    }
    
    .main-car-image:hover {
        transform: none;
    }
    
    .gallery-btn:hover {
        transform: none;
    }
}
