/* Voertuig Afbeeldingen (autoflow_pro_vehicle_images): slider met thumbnails */

.autoflow-vehicle-images {
    position: relative;
    width: 100%;
}

.autoflow-vehicle-images .autoflow-image-slider {
    position: relative;
    overflow: hidden;
    border-radius: inherit;
}

.autoflow-vehicle-images .autoflow-slide {
    display: none;
    position: relative;
}

.autoflow-vehicle-images .autoflow-slide.active {
    display: block;
    animation: autoflow-slide-fade 0.4s ease;
}

@keyframes autoflow-slide-fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.autoflow-vehicle-images .autoflow-slide-image {
    width: 100%;
    height: 600px; /* wordt per widget overschreven met de ingestelde hoogte */
}

.autoflow-vehicle-images .autoflow-slide-number {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
}

.autoflow-vehicle-images .autoflow-slider-prev,
.autoflow-vehicle-images .autoflow-slider-next {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.autoflow-vehicle-images .autoflow-slider-prev { left: 12px; }
.autoflow-vehicle-images .autoflow-slider-next { right: 12px; }

.autoflow-vehicle-images .autoflow-slider-prev:hover,
.autoflow-vehicle-images .autoflow-slider-next:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
}

.autoflow-vehicle-images .autoflow-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 4px;
}

.autoflow-vehicle-images .autoflow-thumbnail {
    flex: 0 0 auto;
    width: 90px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.autoflow-vehicle-images .autoflow-thumbnail:hover { opacity: 0.85; }

.autoflow-vehicle-images .autoflow-thumbnail.active {
    opacity: 1;
    box-shadow: 0 0 0 2px currentColor;
}

.autoflow-vehicle-images .autoflow-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media only screen and (max-width: 600px) {
    .autoflow-vehicle-images .autoflow-slider-prev,
    .autoflow-vehicle-images .autoflow-slider-next {
        width: 36px;
        height: 36px;
        margin-top: -18px;
        font-size: 15px;
    }

    .autoflow-vehicle-images .autoflow-thumbnail {
        width: 70px;
        height: 50px;
    }
}
