body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
}

h1, h2, h3 { /* Added h3 */
    color: #333;
}

#map {
    width: 100%;
    height: 500px;
    background-color: #eee;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#route-info { /* New style for route details */
    background-color: #e9f7ef; /* Light green background */
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #d4edda;
    color: #155724;
}
#route-info h3 {
    margin-top: 0;
    color: #155724;
}
#route-info p {
    margin-bottom: 5px;
}


#waypoints {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.waypoint-input {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.waypoint-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

button:hover {
    background-color: #0056b3;
}

/* Custom Marker Styles */
.custom-marker {
    background-color: #4264fb; /* Default blue for intermediate */
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.2s ease-in-out; /* Smooth transition for highlight */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}
.custom-marker.start {
    background-color: #00BFFF; /* Deep sky blue for start */
    border-color: #00BFFF;
    color: black; /* Changed to black for better contrast on light blue */
}
.custom-marker.end {
    background-color: #FF6347; /* Tomato for end */
    border-color: #FF6347;
    color: black; /* Changed to black for better contrast on light red */
}
.custom-marker.highlighted {
    transform: scale(1.3); /* Make it bigger */
    box-shadow: 0 0 10px rgba(0,0,0,0.5); /* Add a shadow */
    border-color: #FFD700; /* Gold border when highlighted */
}