.leaflet-control-container .leaflet-routing-container-hide {
    display: none;
}

.leaflet-popup-content-wrapper {
    width: auto !important; /* Adjust popup width to fit content */
    padding: 5px; /* Optional: Adjust padding to fit image better */
}

.leaflet-popup-content{
    width: auto !important;
}

.geomap_marker_trip_image{
    width: auto;
    max-width: 90vw;
    height: auto;
    max-height: 40vw;
}

.info-icon {
    position: absolute;
    top: 70px;
    right: 15px;
    background-color: #ffffff;
    padding: 4px;
    border-radius: 100%;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    z-index: 1000;
    height: 30px;
}

/* Full-screen overlay popup styling */
.info-popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1001;
}

/* Hidden state for popup */
.hidden {
    display: none;
}

/* Close button styling */
.close-btn {
    position: absolute;
    height: 50px;
    top: 30px;
    right: 30px;
    background-color: #ff4f4f;
    padding: 5px;
    border-radius: 100%;
    font-size: 1.5rem;
    cursor: pointer;
}

#info-popup-content{
    width: 78%;
}

#info-popup-content a:visited{
    color: orange
}
#info-popup-content a{
    color: yellow
}


/* UI changes for phone */
@media (max-width: 768px)  {
    #info-popup-content {
        width: 90%;
    }
    #navbar-phone-holder{
        z-index: 1005;
    }
    .info-popup{
        font-size: 1.5vh;
    }
    .close-btn {
        height: 30px;
        top: 10px;
        right: 10px;
    }
    .close-btn IMG{
        height: 30px;
        width: 30px;
    }
    .geomap_marker_trip_image {
        max-height: 65vw;
    }
}