:root {
    --porsche-red: #d5001c;
    --porsche-black: #000;
    --porsche-gray: #f7f7f7;
    --porsche-dark-gray: #666;
    --porsche-light-gray: #e5e5e5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Porsche Next", Arial, sans-serif;
    line-height: 1.6;
    background-color: #fff;
    color: #333;
}

header {
    padding: 20px;
    border-bottom: 1px solid var(--porsche-light-gray);
}

header img {
    width: 100%;
    height: auto;
    display: block;
}

.breadcrumb ul {
    display: flex;
    list-style: none;
    margin-top: 10px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin: 0 10px;
    color: var(--porsche-dark-gray);
}

.breadcrumb a {
    color: var(--porsche-black);
    text-decoration: none;
}

.breadcrumb .title {
    font-weight: bold;
}

.container {
    display: flex;
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* Filters Section */
.filters {
    width: 380px;
    background-color: #fff;
    border-right: 1px solid var(--porsche-light-gray);
    padding: 30px;
    position: relative;
    box-shadow: 4px 4px 6px #888;
    -moz-box-shadow: 4px 4px 10px #888;
    -webkit-box-shadow: 4px 4px 10px #888;
}

.filter-group {
    background-color: white;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--porsche-light-gray);
    padding-bottom: 15px;
}

.filters-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--porsche-black);
}

.reset-filters {
    color: var(--porsche-dark-gray);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    background-color: #f0f0f0;
}

.reset-filters:hover {
    background-color: #e0e0e0;
    color: var(--porsche-black);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 20px;
}

.filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.filter-content.open {
    overflow: visible;
}

.filter-group h3 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    text-transform: uppercase;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: black;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: nowrap;
}

.filter-group h3 .title-text {
    flex: 1;
    margin-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-group h3 .toggle-icon {
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 50%;
    margin-left: auto;
    flex-shrink: 0;
}

.filter-group .custom-checkbox {
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.filter-group input[type="checkbox"]:checked + .custom-checkbox {
    background-color: var(--porsche-black);
    border-color: var(--porsche-black);
    box-shadow: 0 0 0 1px var(--porsche-black);
}

.filter-group select {
    width: 100%;
    padding: 10px 40px 10px 12px;
    font-size: 15px;
    font-family: inherit;
    color: #000;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23333' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-group select:hover {
    border-color: #bbb;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--porsche-black);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.search-input {
    position: relative;
    margin-bottom: 20px;
}

.search-input input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-input input:focus {
    border-color: var(--porsche-black);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
    outline: none;
}

.search-input.active input {
    border-color: var(--porsche-black);
    background-color: #f9f9f9;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.search-input i.fa-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.search-input .clear-filter {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 12px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #eee;
}

select option:hover {
    font-weight: bold;
    background-color: #f0f0f0;
}

.search-input.active .clear-filter {
    opacity: 1;
}

.search-input .clear-filter:hover {
    color: #333;
    background-color: #ddd;
}

.range-inputs {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.range-input-group {
    flex: 1;
    min-width: 0;
}

.range-input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.color-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
}

/* Style personnalisé pour les cases à cocher de couleur */
.filter-group .color-checkbox-label .custom-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Style pour afficher la couleur à l'intérieur de la checkbox */
.color-checkbox-label .color-indicator {
    display: none; /* Cacher l'indicateur de couleur qui était à côté */
}

/* Utiliser des attributs personnalisés pour définir la couleur de fond de la checkbox */
.color-checkbox-label[data-color-code] .custom-checkbox {
    background-color: attr(
        data-color-code
    ); /* Ceci est une approche, mais ne fonctionne pas directement */
    position: relative;
}

/* L'approche suivante est plus fiable: on ajoute un span à l'intérieur de la checkbox */
.color-checkbox-label .custom-checkbox::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 2px;
    background-color: transparent; /* Sera défini par JavaScript */
}

/* Style pour la coche qui apparaît quand la case est cochée */
.filter-group input[type="checkbox"]:checked + .custom-checkbox::after {
    content: "✓";
    color: white;
    font-size: 12px;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5); /* Pour que la coche soit visible sur les couleurs claires */
}

/* Ajuster les styles pour les couleurs très claires */
.color-checkbox-label.light-color
    input[type="checkbox"]:checked
    + .custom-checkbox::after {
    color: #333;
    text-shadow: none;
}

/* Ajouter un effet de survol */
.color-checkbox-label:hover .custom-checkbox {
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Ajouter un effet lorsque cochée */
.filter-group input[type="checkbox"]:checked + .custom-checkbox {
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Alignement et espacement pour le label */
.color-checkbox-label {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.color-name {
    flex: 1;
    margin-left: 0; /* Puisque la couleur est maintenant dans la checkbox */
}

/* Ajustements pour les motifs spéciaux comme Alcantara et Tissus */
.color-checkbox-label.pattern-texture .custom-checkbox::before {
    background-size: 6px 6px;
    background-position: 0 0, 3px 3px;
}

/* Alcantara pattern avec points */
.color-checkbox-label.pattern-alcantara .custom-checkbox::before {
    background-image: radial-gradient(circle, #444 1px, transparent 1px);
    background-size: 4px 4px;
}

/* Tissus pattern avec lignes */
.color-checkbox-label.pattern-tissu .custom-checkbox::before {
    background-image: linear-gradient(
        45deg,
        #444 25%,
        transparent 25%,
        transparent 50%,
        #444 50%,
        #444 75%,
        transparent 75%,
        transparent
    );
    background-size: 4px 4px;
}

/* Style pour les couleurs dégradées ou spéciales */
.color-checkbox-label.pattern-gradient .custom-checkbox::before {
    background: linear-gradient(135deg, #f6f6f6 0%, #e0e0e0 100%);
}

.category-header {
    background-color: #f5f5f5;
    padding: 8px 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid #e0e0e0;
}

.category-header:hover {
    background-color: #e9e9e9;
    border-left-color: var(--porsche-black);
}

.category-header strong {
    font-weight: 600;
}

.model-category {
    margin-bottom: 15px;
}

.category-header {
    background-color: #f5f5f5;
    padding: 6px 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s;
}

.category-header:hover {
    background-color: #e9e9e9;
}

.category-header strong {
    font-weight: 600;
}

.model-category label {
    padding-left: 10px;
}

.model-category.collapsed .category-header:after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    float: right;
}

.model-category:not(.collapsed) .category-header:after {
    content: "\f077";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    float: right;
}

.model-category.collapsed label {
    display: none;
}

.scrollable-models {
    padding-right: 8px;
}

.filter-group label {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 15px;
    cursor: pointer;
}

.filter-group .custom-checkbox {
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.filter-group input[type="checkbox"] {
    display: none;
}

.filter-group input[type="checkbox"]:checked + .custom-checkbox {
    background-color: var(--porsche-black);
    border-color: var(--porsche-black);
}

.filter-group input[type="checkbox"]:checked + .custom-checkbox::after {
    content: "✓";
    color: white;
    font-size: 12px;
}

.checkbox-count {
    margin-left: auto;
    color: var(--porsche-dark-gray);
    font-size: 12px;
}

.search-input {
    position: relative;
    margin-bottom: 15px;
}

.search-input input {
    width: 100%;
    padding: 8px 10px;
    padding-right: 50px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

.search-input.active input {
    border-color: #0056b3;
    background-color: #f0f8ff;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.15);
}

.search-input i.fa-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.search-input .clear-filter {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 12px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #eee;
}

.search-input.active .clear-filter {
    opacity: 1;
}

.search-input .clear-filter:hover {
    color: #333;
    background-color: #ddd;
}

.search-tip {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 5px;
    font-size: 11px;
    color: #666;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.search-input:hover .search-tip,
.search-input input:focus ~ .search-tip {
    opacity: 1;
}

.range-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.range-input-group {
    flex: 1;
    min-width: 0;
}

.range-input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #666;
}

.range-input-group select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 13px;
}

.range-inputs {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    gap: 10px;
}

.direct-select {
    position: relative;
    width: 48%;
    margin-bottom: 5px;
}

.direct-select {
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    display: flex;
    align-items: center;
}

.direct-select:hover {
    border-color: #b3b3b3;
}

.direct-select.active {
    border-color: #007bff;
}

.direct-input {
    flex: 1;
    border: none;
    padding: 10px 12px;
    background: transparent;
    font-size: 14px;
    outline: none;
    width: calc(100% - 40px);
}

.direct-input::placeholder {
    color: #999;
}

.dropdown-toggle {
    width: 36px;
    height: 38px;
    background: none;
    border: none;
    border-left: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #777;
}

.dropdown-toggle:hover {
    background-color: #f8f8f8;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none;
    max-height: 250px;
    overflow-y: auto;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.dropdown-item.selected {
    background-color: #e9f2fe;
    color: #007bff;
    font-weight: 500;
}

.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.direct-select:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 2px;
    display: none;
}

.direct-select.error .error-message {
    display: block;
}

.direct-select.error {
    border-color: #dc3545;
}

/* Style pour la zone des filtres actifs */
.active-filters {
    margin: -5px 0 20px;
    padding: 0 0 15px;
    border-bottom: 1px solid #eaeaea;
    display: none; /* Caché par défaut, s'affiche quand il y a des filtres actifs */
}

.active-filters.visible {
    display: block;
}

.active-filters-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.active-filter {
    display: inline-flex;
    align-items: center;
    background-color: #ffde59; /* Fond jaune */
    border-radius: 3px;
    padding: 4px 10px 4px 12px;
    font-size: 13px;
    color: #333;
    transition: background-color 0.2s;
}

.active-filter:hover {
    background-color: #ffd21e;
}

.active-filter-label {
    margin-right: 8px;
}

.active-filter-remove {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    border-radius: 50%;
    font-size: 12px;
    transition: all 0.2s;
}

.active-filter-remove:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #000;
}

/* Animation pour l'apparition/disparition des filtres actifs */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-5px);
    }
}

.active-filter {
    animation: fadeIn 0.2s ease-out;
}

.active-filter.removing {
    animation: fadeOut 0.2s ease-out forwards;
}

/* Vehicles Section */
.vehicles-section {
    flex: 1;
    padding: 20px;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-count {
    font-size: 18px;
    font-weight: 600;
}

.sort-options {
    display: flex;
    align-items: center;
}

.sort-options label {
    margin-right: 10px;
    font-size: 14px;
}

.sort-options select {
    padding: 8px 30px 8px 10px;
    border: 1px solid var(--porsche-light-gray);
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%23333' d='M0 0l4 5 4-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    appearance: none;
}

.layout-options {
    display: flex;
    gap: 10px;
}

.layout-option {
    border: none;
    background: none;
    padding: 5px;
    cursor: pointer;
    color: var(--porsche-dark-gray);
}

.layout-option.active {
    color: var(--porsche-black);
}

.vehicle-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.vehicle-list.list-view {
    grid-template-columns: 1fr;
}

.vehicle-card {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer !important;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.vehicle-image {
    position: relative;
    height: 0;
    padding-bottom: 65%;
    overflow: hidden;
}

.vehicle-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--porsche-black);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 2px;
}

.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--porsche-dark-gray);
}

.favorite-btn.active {
    color: var(--porsche-red);
}

.vehicle-info {
    padding: 20px;
}

.vehicle-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vehicle-subtitle {
    font-size: 14px;
    color: var(--porsche-dark-gray);
    margin-bottom: 15px;
}

.vehicle-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

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

.vehicle-spec .spec-name {
    color: var(--porsche-dark-gray);
    display: block;
    margin-bottom: 2px;
}

.vehicle-spec .spec-value {
    font-weight: 600;
}

.vehicle-price {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.vehicle-actions {
    display: flex;
    justify-content: space-between;
}

.details-btn {
    background-color: var(--porsche-black);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex: 1;
}

.details-btn:hover {
    background-color: #333;
}

.compare-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--porsche-light-gray);
    background-color: white;
    border-radius: 4px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.compare-btn:hover {
    background-color: var(--porsche-gray);
}

.vehicle-list.list-view .vehicle-card {
    display: grid;
    grid-template-columns: 300px 1fr;
}

.vehicle-list.list-view .vehicle-image {
    height: auto;
    padding-bottom: 0;
}

.vehicle-list.list-view .vehicle-info {
    display: flex;
    flex-direction: column;
}

.vehicle-list.list-view .vehicle-specs {
    grid-template-columns: repeat(4, 1fr);
}

.vehicle-list.list-view .vehicle-actions {
    margin-top: auto;
}

.no-results {
    text-align: center;
    padding: 40px 0;
}

.no-results h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.no-results p {
    color: var(--porsche-dark-gray);
    margin-bottom: 20px;
}

.no-results button {
    background-color: var(--porsche-black);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--porsche-black);
    border: 1px solid var(--porsche-light-gray);
    border-radius: 6px;
    background-color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-link:hover {
    background-color: var(--porsche-black);
    color: #fff;
}

.page-link.active {
    background-color: var(--porsche-black);
    color: white;
    font-weight: bold;
    pointer-events: none;
    border-color: var(--porsche-black);
}

.page-link.prev i,
.page-link.next i {
    margin: 0 4px;
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        flex-direction: column;
    }

    .filters {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--porsche-light-gray);
        padding: 20px;
    }

    .filter-group {
        margin-bottom: 20px;
    }

    .vehicle-list.list-view .vehicle-card {
        grid-template-columns: 1fr;
    }

    .vehicle-list.list-view .vehicle-image {
        height: 0;
        padding-bottom: 65%;
    }
}

/* Responsive pour la grille des modèles */
@media (max-width: 1400px) {
    .filter-content.models-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .filter-content.models-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .filter-content.models-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .range-inputs {
        flex-direction: column;
        gap: 15px;
    }

    .color-options {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 500px) {
    .range-inputs {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px;
    }

    .direct-select {
        width: 48% !important;
        min-width: 0;
        flex-shrink: 1;
    }

    .direct-input {
        padding: 8px 6px !important;
        font-size: 12px !important;
    }

    .dropdown-toggle {
        width: 28px !important;
        min-width: 28px !important;
    }

    .dropdown-item {
        font-size: 12px !important;
        padding: 6px 8px !important;
    }

    .filter-group {
        padding: 15px !important;
    }

    .direct-input,
    .dropdown-item {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 480px) {
    .filter-content.models-grid {
        grid-template-columns: 1fr;
    }
}
