/*
 *  Licensed to GraphHopper GmbH under one or more contributor
 *  license agreements. See the NOTICE file distributed with this work for
 *  additional information regarding copyright ownership.
 *
 *  GraphHopper GmbH licenses this file to you under the Apache License,
 *  Version 2.0 (the "License"); you may not use this file except in
 *  compliance with the License. You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

 #map {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

#layer-menu {
    position: absolute;
    background: #fff;
    padding: 10px;
}

#mvt-menu {
    position: absolute;
    left: 200px;
    background: #fff;
    padding: 10px;
}

#isomenu {
    position: absolute;
    left: 10px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    width: 350px;
}

#hint {
    position: absolute;
    bottom: 30px;
    background: #fff;
    padding: 10px;
}

.location-icon {
    width: 30px; /* Adjust size as needed */
    height: 25px; /* Adjust size as needed */
    margin-left: -5px;
    margin-right: 5px; /* Adjust spacing */
    vertical-align: middle; /* Align with text if necessary */
}

.clock-icon {
    width: 25px; /* Adjust size as needed */
    height: 25px; /* Adjust size as needed */
    margin-left: -3px;
    margin-right: 8px; /* Adjust spacing */
    vertical-align: middle; /* Align with text if necessary */
}

.input-wrapper {
    flex-grow: 1; /* Allow the input to grow and take the available space */
    display: flex;
    align-items: center;
    margin-top: 10px;
    width: 100%;
}

.input-wrapper-top {
    flex-grow: 1; /* Allow the input to grow and take the available space */
    display: flex;
    align-items: center;
    margin-top: 10px;
    width: 100%;
    margin-bottom: 25px;
}

.input-wrapper input {
    box-sizing: border-box;
    width: 80%; /* Ensure the input takes full width */
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    border: 1px solid #5b616a;
    border-radius: 0.2rem;
}

.min-label {
    margin-left: 5px; /* Adjust space before "min" label */
}

.iso-button {
    display: inline-flex; /* Use inline-flex to allow vertical centering */
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    cursor: pointer;
    padding: 0; /* Remove padding */
    background-color: transparent; /* Transparent background */
    border: none; /* Remove border */
    width: 40px; /* Adjust button width */
    height: 40px; /* Adjust button height */
    border-radius: 50%; /* Make button circular */
    position: relative; /* Position for pseudo-element */
}


.iso-button img {
    width: 27px; /* Adjust icon size */
    height: 27px; /* Adjust icon size */
}

#isochrone-buttons button.active {
    background-color: rgba(53, 51, 52, 0.329);
    color: white;
    border: none; 
}

.cyclist-type-title {
    font-size: 17px; /* Adjust size as needed */
    color: #000; /* Set a specific color or use inherited color */
    margin-right: 8px; /* Adjust spacing as needed */
    margin-left: 2px; /* Adjust spacing as needed */
}

.separator-bar {
    width: 2px;
    height: 40px; /* Adjust height as needed */
    background-color: #ccc;
    margin-left: 10px; /* Space around the separator */
    margin-right: 10px; /* Space around the separator */
}

.back-button {
    cursor: pointer;
    padding: 0; /* Remove padding */
    background-color: transparent; /* Transparent background */
    color: transparent; /* Transparent text color */
    border: none;
}

.back-button img {
    width: 60px; /* Adjust icon size */
    height: 20px; /* Adjust icon size */
    margin-right: 5px; /* Adjust spacing between icon and text */
}

.autocomplete-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    position: absolute;
    z-index: 1000;
    width: calc(100% - 2px); /* Adjust width to match input field */
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    max-height: 200px;
    overflow-y: auto;
}

/* Style for each autocomplete item */
.autocomplete-list li {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items to the left */
}

/* Highlighted item style */
.autocomplete-list li.highlighted {
    background-color: #f1f1f1;
}

/* Hover effect for autocomplete items */
.autocomplete-list li:hover {
    background-color: #f9f9f9;
}

.autocomplete-list li hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 5px 0;
}

.autocomplete-item {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.autocomplete-item .label {
    font-weight: bold;
}

.autocomplete-item .details {
    display: flex;
    flex-direction: column;
    width: 100%;
    white-space: normal; /* Allow line breaks */
}

.autocomplete-item .details .street {
    width: 100%;
    white-space: normal; /* Allow line breaks */
}

#context-menu {
    display: none;
    position: absolute;
    background: white;
    padding: 2px;
    z-index: 1000;
}

#context-menu .location-icon {
    width: 20px; /* Increased size of the icon */
    height: 20px; /* Increased size of the icon */
    vertical-align: middle; /* Align icon with text */
    margin-right: 5px; /* Space between icon and text */
}

#context-menu button {
    background: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    display: flex; /* Use flexbox for proper alignment */
    align-items: center; /* Center items vertically */
    font-size: 16px; /* Increased font size */
}

#context-menu button:hover {
    background: #f0f0f0; /* Slight hover effect */
}

.close-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 1.5rem;
    line-height: 1;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.close-button:hover {
    color: #333;
}

/* .open-button {
    position: absolute;
    display: none;
} */

.open-button {
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    position: absolute;
}

.open-button-image {
    position: absolute;
    left: 10px;
    border-radius: 8px;
    width: 20px;
    height: 17px;
    cursor: pointer;
    display: flex;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 9px;
    transition: background-color 0.3s ease;
    pointer-events: auto;
    position: fixed; /* Keep it fixed to the bottom right */
}

.open-button-image:hover {
    background-color: #f0f0f0; /* Lightest grey color on hover */
}

.zoom-control {
    position: absolute;
    top: 10px; /* Adjust position from the top */
    right: 10px; /* Adjust position from the right */
    display: flex;
    flex-direction: column;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.9); /* Slight transparency */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); /* Add a subtle shadow */
    z-index: 1000; /* Ensure it's on top of the map */
}

.zoom-control button {
    background: transparent;
    border: none;
    border-radius: 2px;
    margin: 1px;
    font-size: 18px;
    height: 1.375em;
    width: 1.375em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.zoom-control button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    outline: 1px solid black;
}

.zoom-control button:active {
    background-color:rgba(255, 255, 255, 0.9);
    outline: 1px solid black;
}