/* Style pour la carte */

#map {
    height: 100vh;
    width: 70%;
    float: right;
    clear: both; /* Pour éviter les problèmes de flottement */
}

/* Style pour la sidebar */
.sidebar {
    width: 30%;
    height: 30vh;
    background-color: #f0f0e9;
    padding: 20px;
    box-sizing: border-box;
    float: left;
    position: relative; /* Position relative pour les suggestions */
}

/* Style des boutons et entrées de texte */
.input-group {
    margin-bottom: 10px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.button:hover {
    background-color: #0056b3;
}

/* Style pour les instructions */
#route-instructions {
    margin-top: 20px;
    height: 60vh;
    overflow-y: auto;
}

#instructions-list {
    list-style-type: none;
    padding-left: 0;
}

#instructions-list li {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

#instructions-list li:hover {
    background-color: #e0e0e0;
}

/* Style pour la fenêtre flottante des instructions */
#instructions-container {
    display: none; /* Masquer par défaut */
    margin-top: 20px; /* Espace au-dessus */
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 1000;
    max-width: 300px;
    overflow-y: auto; /* Pour faire défiler les instructions si elles sont trop longues */
    max-height: 400px; /* Limiter la hauteur */
}

#source-suggestions, #destination-suggestions {
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    background: white;
    position: absolute;
    width: 100%;
    z-index: 1000;
}

.suggestion {
    padding: 8px;
    cursor: pointer;
}

.suggestion:hover {
    background-color: #f0f0f0;
}
