.leaflet-control-zoom {
    top: 10px;
    left: 5px;
}

.container {
    width: 100%;
    padding: 0 0 0 0;
    box-sizing: border-box;
}

.leaflet-left .leaflet-control {
     margin-left: 0;
}

.new-button {
    position: absolute;
    bottom: 15px;
    right: 10px;
    width: 43px;
    height: 43px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
}

.custom-select {
    position: absolute;
    bottom: 15px;
    left: 50px;
    z-index: 1000;
    width: calc(100% - 105px);
}

.select-selected {
    background-color: #000;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    user-select: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.select-selected:hover {
    background-color: #000;
}

.select-arrow {
    border-color: white transparent transparent transparent;
    border-style: solid;
    border-width: 6px 6px 0 6px;
    transition: transform 0.3s ease;
}

.select-items {
    position: absolute;
    background-color: white;
    bottom: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    user-select: none;
    opacity: 0;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

#map {
    height: 100%;
    width: 100%;
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
}

.select-items.show {
    max-height: 50vh;
    opacity: 1;
}

.select-items-scroll {
    max-height: 50vh;
    overflow-y: auto;
}

.select-item {
    padding: 10px 16px;
    cursor: pointer;
    z-index: 999;
    transition: background-color 0.2s ease;
}

.select-selected.active .select-arrow {
    transform: rotate(180deg);
}

.warning {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 998;
    text-align: center;
    color: red;
    font-weight: bold;
    border-radius: 9px;
    background: #ffffff;
    padding: 10px;
    width: fit-content;
    max-width: 70%;
    white-space: nowrap;
}
.hidden {
    display: none;
}

.hiddenInfo {
    visibility: hidden;
}

.select-items-scroll::-webkit-scrollbar {
    width: 8px;
}

.select-items-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.select-items-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.select-items-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.location-button {
    background-color: #0078ff;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    bottom: 40px;
    right: 1px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.location-button img {
    width: 35px;
    height: 35px;
}

.focus-stop-button {
    background-color: #00000000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    bottom: 40px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.focus-stop-button img {
    width: 40px;
    height: 40px;
}

.focus-stop-button i {
    font-size: 20px;
}


.leaflet-control-container .leaflet-bottom.leaflet-left {
    bottom: 12px;
}

.mode-switcher {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 998;
    display: flex;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.mode-button {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border: none;
    background-color: #f0f0f0;
    color: #000;
    transition: background-color 0.3s ease;
    flex: 1;
    text-align: center;
}

.mode-button:hover {
    background-color: #ddd;
}

.mode-button.active {
    background-color: #007bff;
    color: white;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 45vh;
    overflow: hidden;
    z-index: 1000;
}

.bottom-sheet.open {
    transform: translateY(0);
}

.bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.bottom-sheet-content {
    max-height: calc(45vh - 100px);
    overflow-y: auto;
}

.bus-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bus-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.map-icon, .close-icon {
    cursor: pointer;
}

.window {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 80vw;
    max-width: 600px;
    box-sizing: border-box;
    z-index: 1001;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.title {
    text-align: center;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.search {
    margin-bottom: 15px;
}

.search input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.items {
    list-style: none;
    padding: 0 5px 0 0;
    margin: 0 0 10px;
    height: 50vh;
    overflow-y: auto;
}

.items::-webkit-scrollbar {
    width: 6px;
}

.items::-webkit-scrollbar-track {
    background: rgba(240, 240, 240, 0.8);
    border-radius: 6px;
}

.items::-webkit-scrollbar-thumb {
    background: rgba(100, 100, 255, 0.8);
    border-radius: 6px;
}

.items::-webkit-scrollbar-thumb:hover {
    background: rgba(80, 80, 200, 0.8);
}

.items li {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    text-align: center;
    background-color: rgba(240, 240, 240, 0.8);
    transition: background-color 0.3s, transform 0.2s;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}



@media (hover: hover) {
    .items li:hover {
        background-color: rgba(200, 200, 255, 0.8);
    }
    .select-item:hover {
        background-color: #f0f0f0;
    }
}

@media (hover: none) {
    .items li:active {
        background-color: rgba(200, 200, 255, 0.8);
    }
}

.items li.selected {
    background-color: rgba(100, 100, 255, 0.8);
    color: white;
}

.buttons {
    display: flex;
    justify-content: space-between;
}

.buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #007BFF;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.buttons button:hover {
    background-color: #0056b3;
}

.info-button {
    position: absolute;
    bottom: 120px;
    right: 14px;
    width: 33px;
    height: 33px;
    background-color: #0078ff;
    background-image: url('../icons/info.svg');
    background-size: 50px 50px;
    background-repeat: no-repeat;
    background-position: center;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
}

.info-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1002;
    display: none;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.info-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.info-close {
    position: absolute;
    top: 4px;
    right: 10px;
    background: none;
    border: none;
    font-size: 34px;
    cursor: pointer;
    color: #666;
}

.info-content {
    line-height: 1.6;
}

.info-stats {
    margin-top: 15px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.info-stats-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.info-stats-item {
    margin-bottom: 5px;
}

.info-update {
    display: block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: background-color 0.3s;
}

.info-update:hover {
    background-color: #0056b3;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
}

.loading {
    text-align: center;
    padding: 20px;
}

.loader {
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #0078ff;
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.info-window::-webkit-scrollbar {
    width: 8px;
}

.info-window::-webkit-scrollbar-thumb {
    background: #b4b4b4;
    border-radius: 15px;
}

.info-window::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 15px;
    margin-bottom: 6px;
    margin-top: 6px;
}