/**
 * Vehicle Slider Widget CSS
 */

/* Container Layout */
.vehicle-slider {
    width: 100%;
    margin: 0 auto;
}

.vehicle-slider__container {
    display: flex;
    flex-wrap: wrap;
}

/* Header (Left Side - 20%) */
.vehicle-slider__header {
    width: 20%;
    display: flex;
    flex-direction: column;
    padding: 30px;
    background-color: #FFFFFF;
}

.vehicle-slider__title {
    margin: 0 0 20px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    color: #000;
}

.vehicle-slider__description {
    margin-bottom: 13px;
    font-size: 16px;
    line-height: 1.6;
    color: #484848;
}

.vehicle-slider__button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    width: fit-content;
}

.vehicle-slider__button:hover {
    background-color: #333;
    color: #fff;
}

.vehicle-slider__arrows {
    display: flex;
    gap: 12px;
    border-top: solid 1px #E8E8E8;
    padding-top: 30px;
}

.vehicle-slider__arrow {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: all 0.3s ease;
}

.vehicle-slider__arrow svg {
    height: 16px;
    width: auto;
    transition: transform 0.3s ease;
}

.vehicle-slider__arrow svg path {
    fill: #48484880;
    transition: fill 0.3s ease;
}

.vehicle-slider__arrow:hover svg {
    transform: scale(1.2);
}

.vehicle-slider__arrow:hover svg path {
    fill: #000000;
}

/* Slider Container (Right Side - 80%) */
.vehicle-slider__slider-container {
    width: 80%;
    position: relative;
}

.vehicle-slider__slider {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* No Results Message */
.vehicle-slider__no-results {
    padding: 50px;
    text-align: center;
    font-size: 18px;
    color: #666;
}


/* Vehicle Card */
.vehicle-card {
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.vehicle-card:hover {
    transform: translateY(-5px);
}

.vehicle-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.vehicle-card__container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vehicle-card__image-container {
    background-color: #EEEFF2;
    position: relative;
    min-height: 110px;
    padding-top: 30%;
}

.vehicle-card__categories {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.vehicle-card__category {
    display: inline-block;
    padding: 4px 8px;
    background-color: #000;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vehicle-card__image {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 20px;
    padding-right: 20px;
}

.vehicle-card__image img {
    width: 100%;
    height: auto;
    max-height: 69px;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.vehicle-card:hover .vehicle-card__image img {
    transform: scale(1.05);
}

.vehicle-card__no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #EEEFF2;
    color: #999;
}

.vehicle-card__content {
    padding: 40px 17px 7px 17px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: #fff;
    border: solid 3px #EEEFF2;
}

.vehicle-card__title {
    margin: 0 0 10px;
    font-weight: 600;
    color: #333;
}

.vehicle-card__title a {
    color: inherit;
    text-decoration: none;
}

.vehicle-card__price {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.vehicle-features {
    display: flex;
    flex-direction: column;
}

.vehicle-features__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.vehicle-features__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: auto;
    margin-bottom: auto;
}

.vehicle-features__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.vehicle-features__text {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.vehicle-features__title {
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
}

.vehicle-features__description {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.vehicle-card__button-container {
    background-color: #fff;
    text-align: center;
}

.vehicle-card__button {
    display: inline-block;
    padding: 18px 20px;
    background-color: #000;
    color: #fff;
    font-family: "Plus Jakarta Sans";
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0px 0px 5px 5px;
    transition: background-color 0.5s ease;
    width: 100%;
    border: solid 1px black;
}

/* Effet hover du bouton lorsqu'on survole la carte */
.vehicle-archive__item a.vehicle-card:hover .vehicle-card__button {
    background-color: white;
    color: black;
    border: solid 1px black;
    border-radius: 0px 0px 5px 5px;
}



/* Responsive Styles */
@media (max-width: 1024px) {
    .vehicle-slider__container {
        flex-direction: column;
    }

    .vehicle-slider__header,
    .vehicle-slider__slider-container {
        width: 100%;
    }

    .vehicle-slider__header {
        padding: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .vehicle-slider__title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .vehicle-slider__description {
        font-size: 14px;
    }

    .vehicle-slider__button {
        padding: 10px 20px;
        font-size: 14px;

    }

    .vehicle-slider__arrow {
        width: 36px;
        height: 36px;
    }

    .vehicle-slider__arrow svg {
        width: 20px;
        height: 20px;
    }
}