.max-h-50 {
    max-height: 50% !important;
}

/* Filter sidebar and container scrolling - only on large screens */
@media (min-width: 1024px) {
    .h-lg-100 {
        height: 100% !important;
        max-height: none !important;
    }
}

/* Cap map height on very tall screens */
@media (min-height: 800px) {
    .map-container {
        max-height: 700px;
    }
}

@media (min-height: 800px) {
    .shuls-scroll-container {
        display: flex;
        flex-direction: column;
    }
}

/* Hide the input when the dropdown is NOT active */
.multi.ts-wrapper:not(.dropdown-active)>.ts-control>input[type="text"] {
    display: none !important;
}

.leaflet-container {
    font-family: unset;
}

.shuls-found-control {
    cursor: initial;
}

/* Popup */
.shul-cluster-popup {
    pointer-events: none;
}

.shul-cluster-popup .leaflet-popup-content {
    pointer-events: initial;
    max-width: 425px;
    width: calc(100vw - 40px) !important;
}

.shuls-offcanvas {
    /* Same width as popups */
    max-width: 425px;
    margin: auto;
}

.leaflet-popup-content {
    font-size: 1rem;
    margin: 0;
    margin-top: 40px;
}

.leaflet-popup-content-wrapper {
    border-radius: var(--bs-border-radius) !important;
    padding: 0px;
}

/* Single cluster icon */
.marker-cluster-wrapper {
    background: none;
}

.marker-cluster-single {
    background-color: rgba(110, 204, 255, 0.6);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    position: relative;
}

.marker-cluster-single::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background-color: rgba(110, 204, 255, 0.85);
    border-radius: 50%;
}

.marker-cluster-single span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    z-index: 1;
}
