html, body {
    font-family: 'Segoe UI', Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0; /* Good practice to remove padding too */
    overflow: hidden; /* Prevent scrolling on the body */
}

#map { 
    height: 100vh; 
}

#search-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(5px);
    padding: 10px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    font-family: inherit;
    max-width: 278.45px;
}


#train-search {
    padding: 4px 8px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}
#search-btn {
    padding: 4px 12px;
    font-size: 1em;
    border: none;
    background: #2196f3;
    color: white;
    border-radius: 4px 4px;
    cursor: pointer;
    font-family: inherit;
}
#search-btn:hover {
    background: #1769aa;
}

.train-circle {
    height: 16px;
    width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(255, 255, 255);
    font-size: 0.6em;
    font-weight: bold;
    border-radius: 50%;
    border: 2px solid rgb(255, 255, 255);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    font-family: inherit;
    background-color: #707070;
    z-index: 10;

}

.container {
    transition: opacity 0.1s ease-in-out;
    font-family: inherit;
    height: 25px;
    width: 25px;
    display: flex;
    align-items: center;
}
.container.leaflet-hidden {
    opacity: 0;
}

.triangle {
    height: 16px;
    width: 16px;
    background: rgb(24,24 ,24);
    clip-path: polygon(37% 0, 90% 50%, 37% 100%, 0 100%, 0 0);
    margin-left: -10px;
    /* transform: rotate(0deg); change the rotation here e.g. 180deg or 90 deg */
    transform-origin: left center;
    z-index: 5;
}

/* Dropdown styles */
.dropdown {
    position: relative;
    font-family: inherit;
}
.btn {
    padding: 4px 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
}
.options {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 8px;
    z-index: 2000;
    min-width: 160px;
    font-family: inherit;
}
.options label {
    display: block;
    margin: 4px 0;
    font-family: inherit;
}

.color-box {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.15);
    box-sizing: border-box;
    flex: 0 0 auto;
}

#title-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(5px);
    padding: 10px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    font-family: inherit;
    max-width: 278.45px;
}

.title {
    
    padding: 4px 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-family: inherit;
}