html, body {
    font-size: 16px;
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    box-sizing: border-box;
}
/* Adjust font size for different screen sizes */
@media only screen and (min-width: 600px) {
    html, body {
        font-size: 1.25rem; 
    }
}

@media only screen and (min-width: 768px) {
    html, body {
        font-size: 1.125rem; 
    }
}

@media only screen and (min-width: 992px) {
    html, body {
        font-size: 1rem; 
    }
}

@media only screen and (min-width: 1200px) {
    html, body {
        font-size: 0.9rem;
    }
}

.container {
    display: flex;
}

#search-info {
    width: auto !important;
    padding: 12px;
    position: relative;
    max-height: none;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1000;
    border: thin solid black;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    max-width: 95vw; /* Use viewport width (95% of the viewport width) */
    min-width: 280px; /* Use relative width (e.g., 280px for mobile devices) */
}

#search-info .ui-resizable-s, #search-info .ui-resizable-e, #search-info .ui-resizable-se {
    display: none;
}

#search-info > * {
    position: relative;
}

/* Mobile-first: controls are stacked vertically */
#search-controls {
    flex-direction: column;
    display: flex;
    justify-content: flex-start; /* aligns children to the left */
    align-items: center;
}

#draggable-area {
    position: relative;
    width: 100%;
    height: 100%;
}

/* At wider screen widths, controls are arranged horizontally */
@media only screen and (min-width: 600px) {
    #search-controls {
        flex-direction: row;
        display: flex;
        justify-content: flex-start; /* aligns children to the left */
        align-items: center;
    }
}

#stateSelect {
    display: inline-flex;
    width: 200px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}

#filterNetwork {
    display: inline-flex;
    width: 200px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}

#resetButton {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: inline-flex; /* Change display to inline-flex */
    justify-content: center;
    align-items: center;
    margin-left: 10px; /* Add margin-left */
    margin-bottom: 8px;
    font-size: inherit; /* inherits font size from #search-info */
}

#hideButton {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: inline-flex; /* Change display to inline-flex */
    justify-content: center;
    align-items: center;
    margin-left: 10px; /* Add margin-left */
    margin-bottom: 8px;
    font-size: inherit; /* inherits font size from #search-info */
}

#showButton {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: inline-flex; /* Change display to inline-flex */
    justify-content: center;
    align-items: center;
    margin-left: 10px; /* Add margin-left */
    margin-bottom: 8px;
    font-size: inherit; /* inherits font size from #search-info */
    z-index: 1100;
    position: absolute;
    top: 10px; /* Adjust the top position as needed */
    right: 10px; /* Adjust the right position as needed */
}

.leaflet-tooltip {
    border: 25px solid transparent; 
}

.station-tooltip {
    background-color: #ffffff;
    border-radius: 5px;
    border: 5px solid transparent; 
    padding: 10px;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.15);
    max-width: 300px;
}

.station-tooltip .tooltiptext {
    font-size: 1em;
    color: #333;
    margin-bottom: 10px;
}

.station-tooltip .tooltip-image {
    margin-top: 10px;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;  /* Center the image horizontally */
    align-items: center;      /* Center the image vertically */
}

.station-tooltip .tooltip-image img {
    max-width: 100%;  /* Ensure the image doesn't overflow the tooltip container */
    height: auto;
}

.details {
    flex: 1 1 auto;
    width: 100%;
}

.details h3, .details p {
    transition: transform .2s; /* Animation */
}

#close-container {
    position: absolute;
    z-index: 1001;
    right: 10px;
    top: 10px;
}

#close-button {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
}


#map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; /* Make the map fill the entire page */
}

#search-controls input, #search-controls select {
    display: inline-flex;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #00C3FF;
    border-radius: 5px;
    margin-bottom: 10px;
    
}

#searchInput {
    width: 250px;
}

#info {
    position: relative;
}

.details .row {
    display: flex;
}

.details .column {
    flex: 1;
}

.marker-cluster-small {
background-color: #89e3ff;
}
.marker-cluster-small div {
    background-color: #00C3FF;
}
.marker-cluster-medium {
    background-color: #89e3ff;
}
.marker-cluster-medium div {
    background-color: #00C3FF;
}

.marker-cluster-large {
    background-color: #89e3ff;
}
.marker-cluster-large div {
    background-color: #00C3FF;
}

.custom-cluster-icon {
    background-color: #00C3FF; 
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 40px;
  }
  
  .geo-button {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: transparent;
    border: none;
    font-size: 2.5em;
    padding: 5px 10px;
    margin: 5px;
    cursor: pointer;
    z-index: 1005;
}