/* New Style Map CSS */

.nsm-map-wrapper {
    max-width: 100%;
    margin: 0 auto;
    font-family: inherit;
    position: relative;
}

.nsm-frontend-map-container {
    position: relative;
    width: 100%;
    height: 100dvh;
    /* Initial height 100dvh on desktop */
    overflow: visible;
}

.nsm-map-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.nsm-map-layer[data-id="default"] {
    position: relative;
}

.nsm-map-layer.active {
    opacity: 1;
}

.nsm-filters {
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: absolute;
    top: 150px;
    right: 200px;
    z-index: 20;
}

.nsm-filter-btn {
    width: 295px;
    height: 70px;
    font-size: 21px;
    font-family: "Momo Signature", cursive, sans-serif;
    border: none;
    border-radius: 35px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nsm-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
    /* Transition for filtering */
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    padding: 0px 15px;
    border-radius: 26px;
    border: 2px solid white;
    /* Border white 3px */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nsm-marker.is-visible {
    opacity: 1;
    visibility: visible;
}

.nsm-marker-text {
    font-family: "Momo Trust Sans", sans-serif;
    font-size: 14px;
    white-space: nowrap;
}

@media (max-width: 1650px) {
    .nsm-filters {
        top: 10%;
        right: 5%;
    }

    .nsm-filter-btn {
        width: 270px;
        height: 50px;
    }
}

@media (max-width: 1024px) {
    .nsm-frontend-map-container {
        height: 576px;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    
    .nsm-frontend-map-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }
	.nsm-filter-btn:nth-child(1) {
        order: 1;
    }

    .nsm-filter-btn:nth-child(3) {
        order: 2;
    }

    .nsm-filter-btn:nth-child(2) {
        order: 3;
    }

    .nsm-filter-btn:nth-child(4) {
        order: 4;
    }

    .nsm-map-layer {
        height: 576px;
        width: auto;
        max-width: none;
    }

    .nsm-main-map-image {
        height: auto;
    }

    .nsm-filters {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-top: 20px;
        padding: 20px;
    }

    .nsm-filter-btn {
        width: calc(50% - 7.5px);
        max-width: 178px;
        height: 41px;
        font-size: 14px;
        border-radius: 21px;
        margin: 0;
    }

    .nsm-marker {
        width: 14px;
        height: 14px;
        padding: 0;
        border-radius: 50%;
        border: 2px solid white;
        z-index: 10;
        transition: all 0.3s ease;
    }

    .nsm-marker:hover,
    .nsm-marker:active {
        width: auto;
        height: 24px;
        padding: 0px 15px;
        border-radius: 26px;
        z-index: 100;
    }

    .nsm-marker-text {
        display: none;
        font-family: "Momo Trust Sans", sans-serif;
        font-size: 10px;
        white-space: nowrap;
    }

    .nsm-marker:hover .nsm-marker-text,
    .nsm-marker:active .nsm-marker-text {
        display: block;
    }
}