.revolt-name {
    font-size: 16px;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
}

.legend {
    padding: 6px 8px;
    font: 14px Arial, Helvetica, sans-serif;
    background: white;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    line-height: 24px;
    color: #555;
}

.legend i {
    width: 18px;
    height: 18px;
    float: left;
    margin-right: 8px;
    opacity: 0.7;
}

.legend-item {
    padding: 3px;
    cursor: pointer;
}

.marker-detail {
    padding: 1px 8px;
}

.marker-detail:hover {
    background-color: #afafaf;
}

.legend-item:hover {
    background-color: #f0f0f0;
}

.legend .marker-detail {
    cursor: pointer;
}

.leaflet-popup-content iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    /* maintain aspect ratio, change if needed */
    overflow: hidden;
    word-wrap: break-word;
}

.leaflet-popup-content a {
    word-break: break-all; /* Breaks the link to prevent overflow */
}


.highlighted-legend-item {
    font-weight: bold;
}


.legend-container {
    position: relative;
}

.info.legend {
    max-height: 300px;
    overflow: auto;
    transition: max-height 0.5s ease;
}
.legend-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    padding: 5px 10px;
    cursor: pointer;
}

.legend-toggle-text {
    margin-left: 5px; /* Adjust as needed */
    vertical-align: middle;
}

/* Media query for mobile screens */
@media screen and (max-width: 767px) {
    .leaflet-popup-content {
        width: auto;
    }
}

@media screen and (min-width: 768px) {
    .leaflet-popup-content {
        width: 400px !important;
    }
}

@media only screen and (max-width: 800px) {
    .info.legend.legend-collapsed {
        max-height: 0;
        padding: 0;
        overflow: hidden;
    }

    .marker-detail {
        max-width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .legend-toggle-btn {
        position: absolute;
        top: 0;
        left: 0;
    }

    .info.legend {
        width: 200px;
        position: absolute;
        top: 40px;
        left: 0;
        z-index: 1; 
    }

}
/* Hide text on larger screens */
@media only screen and (min-width: 801px) {
    .legend-toggle-text {
        display: none;
    }
}

.image-with-captiion{
    float: left;
    max-width:50%;
    height: auto;

}

.captiion{

 font-size:6px;
}