.modal-floorplan-container {
    display: none;
    position: fixed;
    /* top: 0; */
    left: 10%;
    width: 80%;
    height: 80%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 10;
    justify-content: center;
    align-items: center;
}

.modal-data-floorplan {
    position: relative;
    width: 70%;
    max-width: 1600px;
    height: 95%;
    max-height: 800px;
    border-radius: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
}

.modal-floorplan-container .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 25px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.floor-plan-wrapper {
    width: 100%;
    height: 100%;
}

.floorplan-image {

    display: block;
    margin: 0 auto;
}

.gallery-iframe {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
}

#floorPlanTitle {
    text-align: center;
}


/* Landscape orientation adjustments for small screens */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .modal-floorplan-container {
        left: 52px;
        width: 100%;
        bottom: 0;
        padding: 2px 0;
        background: rgba(0, 0, 0, 0.1);
    }

    .modal-data-floorplan {
        position: relative;
        width: 70%;
        max-width: 1600px;
        height: 80%;
        max-height: 800px;
        border-radius: 20px;
        padding: 20px;
        background: rgba(0, 0, 0, 0.3);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(6px);
    }

    .floorplan-image {
        width: 60% !important;
        /* Or whatever size you want */
        height: 110% !important;
        /* auto maintains aspect ratio */
        margin: 0 auto;
        /* center */
        display: block;
    }

    .floor-plan-wrapper {
        width: 110%;
        height: 85%;
    }


}

/* Mobile Portrait (320px - 480px) */
@media screen and (max-width: 480px) {
    .modal-floorplan-container {
        left: 52px;
        width: 100%;
        bottom: 0;
        padding: 2px 0;
        background: rgba(0, 0, 0, 0.1);
    }

    .modal-data-floorplan {
        position: relative;
        width: 75%;
        max-width: 1600px;
        height: 50%;
        max-height: 800px;
        border-radius: 20px;
        padding: 20px;
        right: 7%
    }

    .floorplan-image {
        width: 100% !important;
        /* Or whatever size you want */
        height: 80% !important;
        /* auto maintains aspect ratio */
        margin: 0 auto;
        /* center */
        display: block;
    }
}