/* Custom styles for Walk Assistant */

/* General layout */
body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header, footer {
    text-align: center;
}

/* Map container */
#map-container {
    height: 500px;
    width: 100%;
    margin: 20px 0;
    border-radius: 5px;
}

/* Form styling */
.form-group {
    margin-bottom: 15px;
}

/* Route controls */
#route-controls {
    margin-top: 20px;
}

/* Status messages */
#upload-status {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
}

.success {
    background-color: #d4edda;
    color: #155724;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Route colors */
.existing-route {
    color: blue;
}

.suggested-route-streets {
    color: green;
}

.suggested-route-direct {
    color: orange;
}

/* Legend and Info Panels */
.map-legend, .route-info-panel {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    min-width: 200px;
}

.legend-item, .route-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-color, .route-color {
    width: 20px;
    height: 10px;
    margin-right: 8px;
    border-radius: 2px;
}

.legend-color.blue, .route-color.blue {
    background-color: blue;
}

.legend-color.green, .route-color.green {
    background-color: green;
}

.legend-color.orange, .route-color.orange {
    background-color: orange;
}

.route-info-panel h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

/* Route tooltip */
.route-tooltip {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #map-container {
        height: 300px;
    }
}
