/* Styles pour l'autocomplétion des villes dans la barre de recherche */
#location-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1050; /* Plus élevé que Bootstrap */
    max-height: 300px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Corriger l'affichage des éléments dans la liste */
.city-suggestion {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.city-suggestion:last-child {
    border-bottom: none;
}

.city-suggestion:hover {
    background-color: #f8f9fa;
}

.city-suggestion strong {
    font-weight: 600;
}

.city-suggestion .text-muted {
    color: #6c757d;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

/* Styles pour le champ de recherche actif */
#location-input:focus + #location-autocomplete-results {
    display: block;
}

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

#location-autocomplete-results[style*="display: block"] {
    animation: fadeIn 0.15s ease-out;
}

/* Assurer que le conteneur parent est bien positionné */
.position-relative {
    position: relative !important;
}

/* Corriger les problèmes d'imbrication */
#location-col .input-group .position-relative {
    flex: 1;
    min-width: 0;
}
