body {
    margin: 0;
    font-family: Arial, sans-serif;
}
header {
    background-color: white;
    color: black;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
header img {
    height: 30px;
    margin-right: 20px;
}

* {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
}

.leaflet-bottom{
	display: none;
}


.search-container {
    flex: 1;
    display: inline-block;
    text-align: center;
    position: relative;
}



.clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #888;
}

.clear-btn:hover {
    color: #000;
}

.search-container input[type=text] {
    padding: 10px;
    border: none;
    outline: none;
    font-size: 16px;
    width: 70%;
    border-radius: 20px;
    background-color: rgba(0,0,0,0.5);
    color: white;
}


::placeholder {
    color: rgb(255, 255, 255);
    opacity: 1; /* Firefox */
  }

 li::marker {
    content: "🚌 ";
    font-size: 1.2em;
}

  
.search-container .search-results {
    position: absolute;
    top: 100%;
    left: 0;
    max-width: 550px;
    width: 100%;
    margin:auto;
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
    /* background-color: rgba(255, 255, 255, 0.9); */
    border-radius: 10px;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); */
    display: none;
    z-index: 1000;
}
.search-container .search-results ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

li{
    padding: 5px 10px;
    border: solid 4px #ffcc00;
    margin: 5px 5px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.9); 
}

.search-container .search-results ul li {
    padding: 10px;
    cursor: pointer;
}
.search-container .search-results ul li:hover {
    background-color: #f0f0f0;
}
.search-container button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    background-color: #ffcc00;
    color: #fff;
    font-size: 16px;
    border-radius: 20px;
    margin-left: 10px;
}
#map {
    height: calc(100vh - 59px); /* Adjust for header height */
}
.selected-bus {
    position: absolute;
    top: 100px;
    right: 20px;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}
.selected-bus img {
    width: 32px;
    height: 37px;
    margin-right: 10px;
}
.selected-bus span {
    font-weight: bold;
}
/* Settings Popup Styles */
#settings-popup {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.3);
    padding: 20px;
    z-index: 1000;
    overflow-y: auto;
}


#settings-popup button{
    background-color: #ffcc00;
    padding: 10px 5px;
    color: white;
    border: none;
    border-radius:10px;
    cursor:pointer;
}

#settings-popup button:hover{
    background-color: #d8ad00;
    padding: 10px 5px;
    color: white;
    border: none;
    border-radius:15px;
    cursor:pointer;
}


#settings-popup h3 {
    margin-top: 0;
}
#settings-popup label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}
#settings-popup input[type=checkbox] {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #ffcc00; /* Change the checkmark color */
}
#settings-popup input[type=radio] {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #040400;
}





#settings-button {
    display: block;

    padding: 5px 5px 2px 5px;
    border: none;
    background-color: #ffcc00;
    color: #fff;
    font-size: 16px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    bottom: 15px;
    right: 5px;
    z-index: 99999999;
}
#settings-button:hover {
    background-color: #e6b800;
}
.leaflet-marker-icon {
    display: block;
}
.leaflet-marker-icon.hidden {
    display: none;
}






.custom-bus-icon {
    background-color: transparent;
    border: none;
    width: 32px;
    height: 37px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-stop-icon {
    background-color: transparent;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bus-popup-content, .stop-popup-content {
    max-width: 200px;
}


#settings-popup label {
    display: block;
    margin-bottom: 5px;
}

.leaflet-marker-icon {
    cursor: pointer;
}

.hidden {
    display: none;
}




/* Media query for mobile devices */
@media (max-width: 480px) {
    #selected-bus{
        position: absolute;
        top: 100px;
        margin: 0px 10px !important;
        background-color: white;
        padding: 10px;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
        z-index: 1000;
        font-size: 10px;
    }

    #selected-bus-name span{
        font-size: 10px;
    }
}

