/*
 * Styles pour la modal de saisie d'itinéraire
 * Créer ce fichier: app/static/css/route-input-modal.css
 */

.route-input-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.route-input-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.route-input-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.route-input-close:hover,
.route-input-close:focus {
    color: #000;
}

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

.route-input-results {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
    display: none;
    background-color: white;
    position: absolute;
    width: 100%;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.route-result-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

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

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

/* Scrollbar pour les résultats */
.route-input-results::-webkit-scrollbar {
    width: 8px;
}

.route-input-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.route-input-results::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.route-input-results::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Media queries pour mobile */
@media only screen and (max-width: 768px) {
    .route-input-content {
        width: 95%;
        margin: 5% auto;
        padding: 15px;
    }
}