/* Vehicle Archive Widget Styles */

.vehicle-archive {
    position: relative;
}

/* Filters */
.vehicle-archive__filters {
    margin-bottom: 30px;
    padding: 15px 20px;
}

.vehicle-archive__filter-info {
    margin-bottom: 15px;
    text-align: center;
}

.vehicle-archive__filter-tip {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin: 0 0 10px 0;
}

.vehicle-archive__filter-marque {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.vehicle-archive__filter-label {
    font-weight: 600;
    margin-right: 10px;
}

.vehicle-archive__filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    justify-content: center;
}

.vehicle-archive__filter-options li a {
    background-color: white;
    display: flex;
    min-height: 120px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 5px 5px 5px 5px;
    padding-top: 24px;
    padding-bottom: 24px;
    padding-left: 24px;
    padding-right: 24px;
    width: 190px;
    transition: all 0.3s ease;
}

.vehicle-archive__filter-options li a:hover {
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.vehicle-archive__filter-options li a.active {
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.2);
}

.vehicle-archive__filter-options li a.active img {
    filter: grayscale(0);
    scale: 1.1;
}

.vehicle-archive__filter-options li a:hover img {
    filter: grayscale(0);
    scale: 1.1;
}

.vehicle-archive__filter-options li a img {
    width: auto;
    height: 70px;
    display: inline-block;
    vertical-align: middle;
    border: none;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(1);
    transition: all 0.3s ease;  
}

.vehicle-archive__filter-link {
    color: #666;
    text-decoration: none;
    transition: color 0.5s ease;
    position: relative;
    display: flex;
    align-items: center;
}


.vehicle-archive__filter-link:hover {
    color: #333;
}

.vehicle-archive__filter-link.active {
    color: #000;
    font-weight: 600;
}

/* Grid Layout */
.vehicle-archive__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* 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;
}

/* Pagination */
.vehicle-archive__pagination {
    text-align: center;
    margin-top: 30px;
    border-top: solid 1px #D9D9D999;
    border-bottom: solid 1px #D9D9D999;
    padding: 15px 0;
}

.vehicle-archive__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #00000066;
    text-decoration: none;
    transition: all 0.5s ease;
    padding: 0px 20px;
}

.vehicle-archive__pagination .page-numbers:hover {
    color: #00000099;
}

.vehicle-archive__pagination .page-numbers svg {
    transition: transform 0.3s ease;
}

.vehicle-archive__pagination .page-numbers svg path {
    transition: fill 0.3s ease, fill-opacity 0.3s ease;
}

.vehicle-archive__pagination .page-numbers:hover svg {
    transform: scale(1.2);
}

.vehicle-archive__pagination .page-numbers:hover svg path {
    fill: black;
    fill-opacity: 1;
}

.vehicle-archive__pagination .page-numbers.current {
    color: #00000099;
}

/* No Results */
.vehicle-archive__no-results {
    text-align: center;
    padding: 40px 20px;
    background-color: #f7f7f7;
    border-radius: 5px;
    color: #666;
}

/* Loading State */
.vehicle-archive__content.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.vehicle-archive__content.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .vehicle-archive__grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .vehicle-archive__filter-marque {
        flex-direction: column;
        align-items: flex-start;
    }

    .vehicle-archive__filter-options {
        margin-top: 10px;
    }
}