/* SDAS Vehicle Slider */
.sdas-vehicle-slider {
    --sdas-slider-gap: 16px;
    --sdas-slide-width: 250px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.sdas-vehicle-slider__track {
    display: flex;
    gap: var(--sdas-slider-gap);
    align-items: stretch;
    will-change: transform;
    transition: none;
    animation: none;
}


.sdas-vehicle-slide {
    flex: 0 0 var(--sdas-slide-width);
    width: var(--sdas-slide-width);
    max-width: var(--sdas-slide-width);
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sdas-vehicle-slide__image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    display: block;
    background-color: #f5f5f5;
    height: 0;
    text-decoration: none;
}

.sdas-vehicle-slide__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    padding: 0;
    margin: 0;
    display: block;
}

.sdas-vehicle-slide__content {
    padding: 12px;
}

.sdas-vehicle-slide__title {
    margin: 0 0 8px 0;
    font-size: 21px !important;
    color: #333333 !important;
    text-align: center;
}

.sdas-vehicle-slide__title a {
    color: #333333 !important;
    text-decoration: none;
}

.sdas-vehicle-slide__title a:hover {
    text-decoration: none;
}

.sdas-vehicle-slide__price {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    text-align: center;
    margin-bottom: 6px;
}

.sdas-vehicle-slide__mileage,
.sdas-vehicle-slide__location {
    font-size: 14px;
    color: #666666;
    text-align: center;
    margin-bottom: 6px;
}

.sdas-vehicle-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 2;
}

.sdas-vehicle-slider__nav--prev {
    left: 8px;
}

.sdas-vehicle-slider__nav--next {
    right: 8px;
}

.sdas-vehicle-slider__nav:hover {
    background: rgba(0, 0, 0, 0.75);
}

.sdas-vehicle-slider__pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
}

.sdas-vehicle-slider__pagination button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #d0d0d0;
    padding: 0;
}

.sdas-vehicle-slider__pagination button.is-active {
    background: #333333;
}

@media (max-width: 720px) {
    .sdas-vehicle-slide {
        flex-basis: calc(100% - var(--sdas-slider-gap));
        max-width: calc(100% - var(--sdas-slider-gap));
    }
}
