@media (max-width: 1023px) and (orientation: portrait) {
    :root {
        --fpLegendWidth: 220px;
    }

    body.floorplanOverlay .unitsControl {
        padding-left: 0px;
    }

    .filterTitle {
        display: none;
    }

    .unitsControl .filterContainer {
        justify-content: center;
        align-items: center;
    }

    .unitsControl .legend {
        border: none;
    }

    .unitsContainer > svg {
        width: 100%;
        height: 100%;
    }

    .floorplanContainer {
        flex-direction: column-reverse;
    }

    :root {
        --fpLegendWidth: 100%;
        --fpUnitsWidth: 100%;
    }

    .unitsControl,
    .unitsContainer {
        height: auto;
        padding: 0;
    }

    body.floorplanPage .switcher {
        margin-top: 0;
    }

    .switcher {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        flex-wrap: nowrap;
        width: 100%;
        align-items: center;
        margin-bottom: 0;
        margin-top: 1rem;
    }

    .filters {
        margin: 0;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .unitsContainer > svg {
        width: 100%;
        height: 100%;
        padding: 3.5rem 1rem 0.5rem 1rem;
        padding: 0;
    }

    .unitsControl .legend .spec > div {
        padding: 0.5rem;
    }

    .unitsControl {
        background-image: radial-gradient(ellipse 50% 20% at 50% 0, #ffffff10 0%, transparent 100%);
        flex-shrink: 0;
        max-height: 33%;
    }

    .unitsControl .legend {
        top: 0;
        height: auto;
        padding-bottom: var(--footerHeight);
    }
}
.unitsContainer {
    flex-grow: 1;
}

@media (max-width: 1023px) {
    body[data-page-template="page-floorplan"] .page__content .page__top {
        top: 10px;
        padding: 0 10px;
        justify-content: space-between;
    }
    .floorplanBackToAllUnits {
        margin-left: 10px;
    }
    body.floorplanUnitView .page-small-screen-header {
        display: none;
    }
    .unitsControl {
        margin-left: 0px;
        padding-left: 0px;
    }
}

/* Smartphones: Vertical and Horizontal */
@media only screen and (max-width: 767px), (max-height: 575px) {
}
