body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

#controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.geocoder {
    width: 100%;
    margin-bottom: 15px;
}

#route {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#route:hover {
    background-color: #45a049;
}

#slider-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    z-index: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#slider {
    width: 100%;
    margin-bottom: 15px;
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    background: #ddd;
    outline: none;
    border-radius: 5px;
}

#slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #4CAF50;
    cursor: pointer;
    border-radius: 50%;
}

#slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #4CAF50;
    cursor: pointer;
    border-radius: 50%;
}

#play {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #008CBA;
    color: white;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

#play:hover {
    background-color: #007B9A;
}

.mapboxgl-ctrl-geocoder {
    width: 100%;
    max-width: none;
    font-size: 15px;
    line-height: 20px;
    margin-top: 0;
}

.current-position-marker {
    background-color: #3FB1CE;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#layer-switcher {
    display: flex;
    flex-direction: column;
    width: 200px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
}

#layer-switcher button {
    padding: 12px;
    margin: 0;
    cursor: pointer;
    background-color: #f8f8f8;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    font-size: 14px;
    transition: background-color 0.3s;
    white-space: normal;
    word-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
}

#layer-switcher button:last-child {
    border-bottom: none;
}

#layer-switcher button:hover {
    background-color: #e8e8e8;
}

#layer-switcher button:active {
    background-color: #d8d8d8;
}

#layer-switcher button.active {
    background-color: #4CAF50;
    color: white;
}
