/* Style pour la carte */
#map {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 1; /* Positionner derrière la sidebar */
}

/* Style pour la sidebar */
.sidebar {
    width: 30%;
    height: 30vh;
    background-color: #f0f0e9;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 2; /* Positionner devant la carte */
    transform: translateX(30%); /* Décaler vers la gauche */
}

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

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

/* Style pour le groupement du champ de destination et du bouton + */
.destination-group {
    display: flex;
    align-items: center;
}

.destination-container {
    display: flex;
    flex-grow: 1; /* Permet au champ de prendre tout l'espace disponible */
    align-items: center; /* Centre le contenu verticalement */
}

/* Ajuster la taille du champ pour qu'il prenne tout l'espace restant */
#destination-search {
    width: 100%; /* Prend tout l'espace disponible */
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px; /* Coins arrondis seulement à gauche */
}

/* Style pour le bouton + 
#add-waypoint-btn {
    padding: 8px 12px;
    background-color: #28a745;  Couleur verte pour le bouton + 
    color: white;
    border: none;
    border-radius: 0 4px 4px 0; Coins arrondis seulement à droite 
    cursor: pointer;
    font-size: 18px;
}

#add-waypoint-btn:hover {
    background-color: #218838;  Couleur légèrement plus foncée au survol 
}*/
/* Style des boutons et entrées de texte */
.input-group {
    margin-bottom: 10px;
}

.input-group label {
    display: block; /* Place le label sur une ligne séparée */
    margin-bottom: 5px; /* Ajoute un petit espace entre le label et l'input */
}

.destination-container {
    display: flex;
    align-items: center; /* Centre le contenu verticalement */
}

/* Ajuster la taille du champ pour qu'il prenne tout l'espace restant */
#destination-search {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px 4px 0 4px; /* Coins arrondis seulement à gauche */
}

/* Style pour le bouton + */
#add-waypoint-btn {
    padding: 8px 12px;
    background-color: #28a745; /* Couleur verte pour le bouton + */
    color: white;
    border: none;
    border-radius: 0 4px 4px 0; /* Coins arrondis seulement à droite */
    cursor: pointer;
    font-size: 12px;
}

#add-waypoint-btn:hover {
    background-color: #218838; /* Couleur légèrement plus foncée au survol */
}
/**/
/* Style pour les champs supplémentaires */
#additional-waypoints .input-group {
    margin-top: 10px;
}

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

/* Style pour les instructions */
#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 {
    margin-top: 2px;
    background: white;
    padding: 30px;
    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;
}
