/* Ajout de styles pour la finition et les prix */
.vehicle-finition {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 10px;
    color: #777;
}

.selected-vehicle-finition {
    font-size: 12px;
    color: #777;
    margin-bottom: 5px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
    white-space: nowrap;
    display: inline-block;
}

.promo-price {
    color: #e74c3c;
    font-weight: bold;
    white-space: nowrap;
    display: inline-block;
}

/* Rendre les filtres de modèle scrollables horizontalement */
.quick-filters {
    position: relative;
    margin-bottom: 15px;
}

.model-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch; /* Pour le défilement fluide sur iOS */
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    margin-bottom: 5px;
    max-width: 100%;
    padding-left: 5px;
    padding-right: 5px;
}

.model-filters::-webkit-scrollbar {
    height: 6px;
}

.model-filters::-webkit-scrollbar-track {
    background: transparent;
}

.model-filters::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 20px;
}

.model-filter {
    flex: 0 0 auto;
    margin-right: 10px;
    white-space: nowrap;
}

/* Indicateurs de défilement */
.quick-filters::before,
.quick-filters::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 10px;
    width: 30px;
    pointer-events: none;
    z-index: 1;
}

.quick-filters::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.quick-filters::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

/* Styles pour les infobulles de Google Maps */
.dealership-info {
    font-family: 'DM Sans', sans-serif;
    padding: 10px;
    max-width: 300px;
}

/* Style spécifique pour les infobulles au survol */
.dealership-info-tooltip {
    font-family: 'DM Sans', sans-serif;
    padding: 12px 15px;
    max-width: 220px;
    text-align: center;
    border-radius: 8px;
    border-top: 3px solid #0b3c7c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: white;
    cursor: pointer;
}

.dealership-info-tooltip:hover {
    background: #f9f9ff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.dealership-info-tooltip h3 {
    margin: 0 0 8px;
    font-weight: 600;
    color: #0b3c7c;
    font-size: 16px;
    line-height: 1.3;
}

.dealership-info-tooltip p {
    margin: 6px 0;
    font-size: 13px;
    color: #555;
}

.dealership-info-tooltip p:last-of-type {
    margin-top: 10px;
    color: #2563eb;
    font-weight: 500;
    font-size: 12px;
}

.dealership-info-tooltip .click-info {
    margin-top: 8px;
    font-size: 12px;
    color: #888;
    font-style: italic;
    border-top: 1px solid #eee;
    padding-top: 8px;
}

.dealership-info-tooltip i {
    color: #0b3c7c;
    margin-right: 4px;
}

/* Style pour les fenêtres infobulles Google Maps */
.gm-style-iw.gm-style-iw-c {
    padding: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    overflow: visible !important;
    max-width: 240px !important;
    border: none !important;
}

.gm-style-iw.gm-style-iw-c button.gm-ui-hover-effect {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    top: 0 !important;
    right: 0 !important;
}

.gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
    max-width: 240px !important;
    max-height: none !important;
}

/* Supprimer complètement le bouton de fermeture */
.gm-ui-hover-effect {
    display: none !important;
}

/* Pas d'animation pour les infobulles */
.gm-style-iw.gm-style-iw-c {
    opacity: 1;
}

/* Styliser la flèche de l'infobulle */
.gm-style-iw-tc::after {
    background: white !important;
    box-shadow: 0px -2px 2px rgba(0, 0, 0, 0.05) !important;
}

.dealership-info h3 {
    margin: 0 0 10px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.dealership-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.dealership-hours {
    margin-top: 10px;
}

.dealership-hours h4 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.dealership-hours ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dealership-hours li {
    font-size: 12px;
    padding: 2px 0;
    color: #555;
}

/* Layout: showrooms on left, dealer locator on right */
.event-map {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 900px) {
    .event-map {
        grid-template-columns: 1fr;
    }
}

/* Dealer Locator */
.dealer-locator {
    background: linear-gradient(155deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 22px 20px;
    box-shadow: 0 6px 18px rgba(24, 59, 126, 0.22);
    position: sticky;
    top: 110px;
    align-self: start;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
}

.dealer-locator-header {
    text-align: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.dealer-locator-header i {
    font-size: 1.9rem;
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.15);
    width: 52px;
    height: 52px;
    line-height: 52px;
    border-radius: 50%;
    margin-bottom: 10px;
    display: inline-block;
}

.dealer-locator-header h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
}

.dealer-locator-header p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
    opacity: 0.85;
}

.dealer-locator-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.dealer-locator-form label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
    margin-bottom: -4px;
}

.dealer-locator-form select {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--border-radius-sm);
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    background-color: var(--white);
    color: var(--secondary-color);
    cursor: pointer;
}

.dealer-locate-me {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: var(--transition);
}

.dealer-locate-me:hover {
    background-color: var(--white);
    color: var(--secondary-color);
    border-color: var(--white);
}

.dealer-locate-me i {
    margin-right: 6px;
}

.dealer-locate-me[disabled],
.dealer-locate-me.is-loading {
    opacity: 0.7;
    cursor: wait;
}

.dealer-locator-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dealer-locator-hint {
    font-size: 0.82rem;
    opacity: 0.75;
    text-align: center;
    font-style: italic;
    margin: 10px 0;
}

.dealer-locator-results-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
    margin: 2px 0 4px;
}

.dealer-result-card {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.dealer-result-card:hover {
    background-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.dealer-result-brand {
    display: inline-block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--white);
    color: var(--secondary-color);
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 6px;
    font-weight: 700;
}

.dealer-result-card h4 {
    margin: 0 0 6px;
    font-size: 0.92rem;
    line-height: 1.3;
}

.dealer-result-card p {
    margin: 3px 0;
    font-size: 0.78rem;
    line-height: 1.4;
    opacity: 0.9;
}

.dealer-result-card p i {
    width: 14px;
    text-align: center;
    margin-right: 4px;
    opacity: 0.7;
}

.dealer-result-distance {
    display: inline-block;
    font-size: 0.72rem;
    background-color: rgba(255, 255, 255, 0.14);
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
}

.dealer-result-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.dealer-result-actions a {
    flex: 1;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.14);
    color: var(--white);
    text-decoration: none;
    padding: 7px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
}

.dealer-result-actions a:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

.dealer-result-actions a i {
    margin-right: 4px;
}

.dealer-no-results {
    font-size: 0.85rem;
    text-align: center;
    padding: 15px;
    opacity: 0.85;
}

/* Styles pour la liste des showrooms */
.showrooms-container {
    position: relative;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    overflow: hidden;
}

.showrooms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eaeaea;
    background-color: #f9f9ff;
}

.showrooms-title h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #0b3c7c;
}

.showrooms-title p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.city-selector-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.city-selector-controls select {
    min-width: 180px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    background-color: white;
}

.city-selector-controls button {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.city-selector-controls button i {
    margin-right: 5px;
    color: #0b3c7c;
}

.city-selector-controls button:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.showrooms-list {
    min-height: 450px;
    max-height: 600px;
    overflow-y: auto;
    padding: 20px;
}

.showroom-item {
    padding: 15px;
    border: 1px solid #eaeaea;
    display: flex;
    align-items: flex-start;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    background-color: #ffffff;
}

.showroom-item:hover {
    background-color: #f9f9ff;
    cursor: pointer;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.showroom-item:last-child {
    border-bottom: none;
}

.showroom-logo {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    overflow: hidden;
}

.brand-logo-img {
    width: 35px;
    height: auto;
    object-fit: contain;
}

.showroom-info {
    flex: 1;
}

.showroom-name {
    font-size: 16px;
    font-weight: 600;
    color: #0b3c7c;
    margin-bottom: 5px;
}

.showroom-address {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.showroom-city {
    font-size: 13px;
    color: #777;
    margin-top: 5px;
}

/* Styles keep available for showroom modal buttons */
.showroom-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.loading-showrooms {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #777;
    font-size: 16px;
}

.loading-showrooms i {
    margin-right: 10px;
    color: #0b3c7c;
}

.showroom-marker {
    background-color: #0b3c7c;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
}

.no-showrooms {
    text-align: center;
    padding: 30px;
    color: #777;
}

.showroom-filter-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.brand-filter-btn {
    background-color: white;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.brand-filter-btn:hover:not(.active) {
    border-color: #ccc;
    background-color: #f9f9f9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.brand-filter-btn.active {
    background-color: white;
    color: #0b3c7c;
    border-color: #0b3c7c;
    border-width: 2px;
    font-weight: 500;
}

.brand-filter-btn img {
    height: 18px;
    width: auto;
    margin-right: 8px;
    object-fit: contain;
}

/* Styles pour les véhicules sélectionnés dans le drawer */
.selected-vehicles-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    display: flex;
    align-items: center;
}

.selected-vehicles-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e0e0e0;
    margin-left: 10px;
}

.selected-vehicles {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    padding: 10px 5px;
}

/* New class to hide elements while maintaining their display property */
.hidden-element {
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.selected-vehicle {
    width: calc(33.33% - 10px);
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: visible;
}

.selected-vehicle-image {
    width: 100%;
    height: 80px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 8px;
}

.selected-vehicle-info {
    flex: 1;
    text-align: center;
    width: 100%;
}

.selected-vehicle-model {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selected-vehicle-price {
    font-size: 11px;
    margin: 2px 0;
    max-width: 100%;
    display: inline-block;
}

/* Style spécifique pour maintenir les prix sur une ligne */
.vehicle-price, .selected-vehicle-price {
   
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
}

/* Style pour le bouton de suppression */
.selected-vehicle-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #e74c3c;
    color: white;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
    font-size: 12px;
    outline: none;
}

.selected-vehicle-remove:hover {
    background-color: #c0392b;
    transform: scale(1.1);
}

.selected-vehicle-remove i {
    font-size: 10px;
}

/* Styles pour les caractéristiques dans les véhicules sélectionnés */
.selected-vehicle-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 5px;
    gap: 5px;
}

.feature-item {
    font-size: 11px;
    color: #555;
    background-color: #f5f5f5;
    padding: 3px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

.feature-item i {
    margin-right: 3px;
    font-size: 10px;
    color: #777;
}

/* Styles pour le bouton All Cities */
#allCitiesBtn.active {
    background-color: #f0f3f8;
    border-color: #0b3c7c;
}

/* Styles pour les fiches techniques */
.fiches-techniques {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 20px 0;
    border-left: 4px solid #2563eb;
}

.fiches-techniques h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.fiches-techniques p {
    font-size: 14px;
    margin-bottom: 12px;
    color: #666;
}

.fiches-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fiche-link {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.fiche-link i {
    color: #e74c3c;
    margin-right: 8px;
    font-size: 16px;
}

.fiche-link:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.no-fiches {
    color: #777;
    font-style: italic;
    font-size: 13px;
}

/* Styles pour le formulaire de contact */
.contact-form {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-top: 15px;
}

.contact-form h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
    text-align: center;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    gap: 10px;
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
}

.form-group-small {
    flex: 0 0 70px;
    min-width: 70px;
}

.form-group-medium {
    flex: 1;
    min-width: 120px;
}

.form-group-half {
    flex: 1;
    min-width: 120px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

.checkbox-group label {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.submit-btn {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    font-size: 15px;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #1d4ed8;
}

/* Styles pour le formulaire dans le drawer */
.selection-drawer .contact-form {
    padding: 10px;
    margin-top: 5px;
}

.selection-drawer .form-row {
    gap: 5px;
}

.selection-drawer .form-group {
    margin-bottom: 10px;
}

.selection-drawer .form-group label {
    font-size: 12px;
}

.selection-drawer .form-group input,
.selection-drawer .form-group select {
    padding: 6px 10px;
    font-size: 13px;
}

.selection-drawer .checkbox-group label {
    font-size: 11px;
}

/* Responsive pour le formulaire */
@media (max-width: 480px) {
    .form-row {
        display: flex;
        flex-flow: row wrap;
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .form-group-small {
        flex: 0 0 60px;
        min-width: 60px;
        padding: 0 5px;
    }
    
    .form-group-medium {
        flex: 1;
        min-width: 100px;
        padding: 0 5px;
    }
    
    .form-group-half {
        flex: 1;
        min-width: 120px;
        padding: 0 5px;
    }
    
    /* Assurer que la civilité, le nom et le prénom restent sur la même ligne */
    .selection-drawer .form-group-small {
        width: 70px;
        flex: 0 0 70px;
    }
    
    .selection-drawer .form-group-medium {
        flex: 1;
    }
}

/* Pour les très petits écrans */
@media (max-width: 359px) {
    .form-row {
        flex-direction: row;
    }
    
    /* Faire en sorte que civilité, nom et prénom restent sur la même ligne */
    .form-group-small {
        flex: 0 0 50px;
        min-width: 50px;
    }
    
    /* Ajuster le texte des labels pour les petits écrans */
    .selection-drawer .form-group label {
        font-size: 11px;
    }
    
    .selection-drawer .checkbox-group label {
        font-size: 10px;
    }
}

/* Media queries for showrooms section */
@media (max-width: 768px) {
    .showrooms-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .showrooms-title {
        text-align: center;
    }
    
    .city-selector-controls {
        width: 100%;
        justify-content: center;
    }
    
    .city-selector-controls select {
        flex: 1;
    }
    
    .showrooms-list {
        padding: 15px;
    }
    
    /* Improved mobile styling for showroom items */
    .showroom-item {
        flex-direction: column;
        padding: 15px 12px;
    }
    
    .showroom-logo {
        margin: 0 auto 15px;
        width: 60px;
        height: 60px;
    }
    
    .brand-logo-img {
        width: 40px;
    }
    
    .showroom-info {
        text-align: center;
    }
    
    .showroom-name {
        font-size: 16px;
    }
    
    .showroom-city {
        text-align: center;
        margin-top: 8px;
    }
    
    /* Brand filter buttons for mobile */
    .showroom-filter-section {
        overflow-x: auto;
        padding-bottom: 10px;
        margin-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }
    
    .brand-filter-btn {
        white-space: nowrap;
        flex: 0 0 auto;
    }
}

/* For extra small devices */
@media (max-width: 480px) {
    .showroom-filter-section {
        justify-content: flex-start;
    }
    
    .brand-filter-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .brand-filter-btn img {
        height: 15px;
        margin-right: 6px;
    }
}

/* Style pour intl-tel-input */
.iti {
    width: 100%;
}

/* Ajuster les marges des conteneurs de champs dans le drawer */
.selection-drawer .form-row {
    margin-bottom: 10px;
}

/* Mise en forme pour éviter les textes trop longs */
.selection-drawer .form-group label,
.selection-drawer select option {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Style pour les champs en focus */
.selection-drawer .form-group input:focus,
.selection-drawer .form-group select:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.iti__selected-flag{
    font-size: 12px;
}

/* Form validation styles */
.error-message {
    display: none;
    color: #ff3d3d;
    font-size: 11px;
    margin-top: 4px;
    font-weight: 400;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ff3d3d !important;
    background-color: rgba(255, 61, 61, 0.05);
}

.form-group.error .error-message {
    display: block;
}

.checkbox-group.error {
    color: #ff3d3d;
}

/* Animation for form validation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-group.error input,
.form-group.error select,
.checkbox-group.error {
    animation: shake 0.4s ease-in-out;
}

/* Styles pour la modale du showroom */
.showroom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    animation: fadeIn 0.3s ease-in-out;
}

.showroom-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.showroom-modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    animation: slideIn 0.3s ease-in-out;
}

.showroom-modal-header {
    background: #0b3c7c;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.showroom-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.showroom-modal-body {
    padding: 20px;
}

.showroom-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.showroom-info p {
    margin: 8px 0;
    font-size: 15px;
    line-height: 1.5;
}

.showroom-info i, .showroom-hours i {
    color: #0b3c7c;
    width: 20px;
    text-align: center;
    margin-right: 5px;
}

.showroom-hours h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 17px;
    color: #444;
}

.showroom-hours ul {
    padding-left: 10px;
    margin: 0;
    list-style-type: none;
}

.showroom-hours li {
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}

.showroom-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.directions-btn {
    display: inline-block;
    background: #0b3c7c;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.directions-btn:hover {
    background: #0a2e5c;
    text-decoration: none;
    color: white;
}

.close-btn {
    background: #e0e0e0;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.close-btn:hover {
    background: #d0d0d0;
}

.close-popup-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-popup-btn:hover {
    color: #f0f0f0;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Media Queries */
@media (min-width: 768px) {
    .showroom-details {
        flex-direction: row;
    }
    
    .showroom-info {
        flex: 1;
    }
    
    .showroom-hours {
        flex: 1;
    }
}

/* Add padding to specific sections */
.vehicles-section,
.event-section,
header .container,
footer .footer-content {
    padding-left: 20px;
    padding-right: 20px;
}

/* Container without padding */
.container.no-padding {
    padding: 0;
    overflow: hidden;
}

/* Hero overlay for better text visibility */
.hero-section:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay with 40% opacity */
    z-index: 1;
    pointer-events: none; /* Allow clicks to pass through */
}

/* Make all hero content appear above the overlay */
.hero-text, 
.brand-logos, 
.search-filters,
.hero-section > * {
    position: relative;
    z-index: 2; /* Above the overlay */
}

/* Hero Slogan Image */
.hero-slogan {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0 auto 30px;
    position: relative;
    z-index: 2; /* Above the overlay */
}

@media (max-width: 768px) {
    body {
        padding-top: 0px;
    }
    
    .hero-slogan {
        max-width: 95%;
        margin-bottom: 20px;
    }
    
    .hero-section {
        margin-top: 0; /* No negative margin needed with sticky header */
        padding-top: 40px; /* Reduced padding */
    }
    
    .brand img.logo-image {
        max-height: 40px;
    }
}

/* Header layout: ticker on top, main row below */
header {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

/* Promo ticker (scrolling marquee) */
.promo-ticker {
    width: 100%;
    background: linear-gradient(90deg, #c71f2d 0%, #e63946 50%, #c71f2d 100%);
    color: var(--white);
    overflow: hidden;
    padding: 7px 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.promo-ticker-track {
    display: inline-flex;
    white-space: nowrap;
    animation: promo-scroll 32s linear infinite;
    will-change: transform;
}

.promo-ticker-item {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-right: 2rem;
}

@keyframes promo-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.promo-ticker:hover .promo-ticker-track {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .promo-ticker-track { animation: none; }
}

/* Header main row */
header .container {
    background-color: #252728;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-direction: row;
    justify-content: center;
    position: relative;
}

.brand .logo-image {
    max-height: 40px;
    width: auto;
}

/* Selection button repositioned top-right, sticky via fixed header */
header .selection-button {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    order: initial;
    align-self: auto;
    margin: 0;
}

header .selection-button button {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

header .selection-button .icon-car {
    height: 16px;
    margin-right: 6px;
}

header .selection-button .count-badge {
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    margin-left: 6px;
}

@media (max-width: 768px) {
    header .selection-button {
        right: 10px;
    }
    header .selection-button button {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    .selection-button-label {
        display: none;
    }
    header .selection-button .icon-car {
        margin-right: 4px;
    }
    header .selection-button .count-badge {
        margin-left: 4px;
    }
    .promo-ticker-item {
        font-size: 0.75rem;
    }
}

.selection-button button {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}