*{
    --legendWidth:260px;
    --levelsWidth:47px;
    --unitswidth:calc(100% - var(--levelsWidth) - var(--legendWidth));
    --floorPrevButtonIcon: url('data: image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.28851 13.0001L10 5.28857L17.7115 13.0001L16.5914 14.1203L10 7.52893L3.40867 14.1203L2.28851 13.0001Z" fill="white" /></svg>');
    --floorNextButtonIcon: url('data: image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M17.7115 6.9999L9.99997 14.7114L2.28845 6.9999L3.40862 5.87974L9.99997 12.4711L16.5913 5.87974L17.7115 6.9999Z" fill="white" /></svg>');
}
body [data-page-url="floor-plan-viewer"]{
   background: black;
}
body [data-page-url="floor-plan-viewer"] .rightSide{
    height: 100%;
    padding: 0 !important;
}
.floorplanContainer{
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: row;
}

.backToAllUnits{
    position: absolute;
    margin:1rem 0 0 1rem;
    z-index: 1;
    display: none;
}
.backToAllUnits i{
    font-size: 1rem;
    margin-right: 0.5rem;
    vertical-align:middle;
}

/* Units */
.unitsControl, .unitsContainer{
    position: relative;
    top:0;
    height: 100%;
}
.unitsControl{
    width:auto;
    left:0;
    display: flex;
    overflow-y: auto;
}
.unitsControl > div{
    position: relative;
}
.unitsContainer{
    width:var(--unitswidth);
    right: 0;
    overflow: hidden;
}

.unitsContainer > svg{
    width:100%;
    height: 100%;
}
.unitsContainer #units > *{
    transition: all 0.2s ease;
    fill-opacity: 0.6;
    cursor: pointer;
    mix-blend-mode: screen;
}
.unitsContainer #units > *[data-status="available"]{
    fill:var(--colorAvailableFloorPlan);
}
.unitsContainer #units > *[data-status="sold"]{
    fill:var(--colorSold);
}
.unitsContainer #units > *[data-status="reserved"]{
    fill:var(--colorReserved);
}
body.hasHover .unitsContainer #units > *:hover{
    fill-opacity: 1;
}
/* Units */


/* Legend */
.unitsControl .legend{
    /* font-size: clamp(12px, 0.9rem, 2rem); */
    width: var(--legendWidth);
    height: 100%;
    padding: 1rem 0;
    border-right: solid 1px var(--colorPrimaryBlue);
}
.unitsControl .legend .disclaimer{
    font-size: 0.8em;
    opacity: 0.7;
    user-select: none;
    transition: opacity 0.2s;
    padding: 0 1rem;
    position: absolute;
    bottom: 1rem;
}
.unitsControl .legend .disclaimer:hover{
    opacity: 1;
}

/* Specs */
.unitsControl .legend .spec{
    flex-wrap: wrap;
    display: flex;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 1s ease;
}
.unitsControl .legend .spec.active{
    height: auto;
    opacity: 1;
}
.unitsControl .legend .spec>div{
    padding: 0.5rem 1rem;
    position: relative;
    width: 100%;
    border-bottom: solid 1px var(--colorSecondaryDeepBlueGray);
    display: flex;
    color:#ffffffa0;
    transition: 0.2s;
}
body.hasHover .unitsControl .legend .spec>div:hover{
    color:#ffffff;
    transition:none;
    background-color: #ffffff30;
}
.unitsControl .legend .spec>div>div{
    width: 50%;
    position: relative;
}
div[data-value='sold'],
div[data-value='available'],
div[data-value='reserved']{
    width: auto !important;
    color:#fff;
    padding: 0 1rem;
    border-radius: 1rem;
    margin-left: auto;
}
.unitsControl .legend .spec>div>div[data-value='sold']{
    background-color: var(--colorSold);
}
.unitsControl .legend .spec>div>div[data-value='available']{
    background-color:var(--colorAvailableFloorPlan);
}
.unitsControl .legend .spec>div>div[data-value='reserved']{
    background-color:var(--colorReserved);
}
.unitsControl .legend .spec>div>div:nth-child(2n+0){
    text-align: right;
}
.unitsControl .legend .spec>div>div:nth-child(2n+1){
    font-weight: 500;
}
/* Specs */



/* Switcher */
.switcher{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    align-items: center;
    margin-bottom: 2rem;
}
.switcher .switcherNumber{
    font-size: 1.5rem;
    font-family: var(--fontSerif);
    padding:0.5em 0;
}
.switcherButton{
    width: 4rem;
    height: 2rem;
    border-radius: 4px;
    transition: var(--buttonOverTransition);
    cursor: pointer;
    box-shadow: 0 0 0 1px #ffffff20;
    position: relative;
}
.switcherButton.disabled{
    pointer-events: none;
    opacity: 0.5;
}
.switcherButton:before{
    content: '';
    background-image: var(--floorNextButtonIcon);
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.switcherButton:nth-child(1):before{
    background-image: var(--floorPrevButtonIcon);
}
body.hasHover .switcherButton:hover{
    background: var(--buttonOverGradient);
    background-color: var(--colorPrimaryBlueLight);
    box-shadow: var(--buttonOverOutline);
}
/* Switcher */
/* Legend */

/* Levels */
.unitsControl .levels{
    display: flex;
    flex-direction: column;
    width: var(--levelsWidth);
    height: 100%;
    justify-content: space-evenly;
    overflow: hidden;
    padding: 1rem 0;
    align-items: flex-start;
}

.unitsControl .levels > div{
    position: relative;
    color: var(--colorWhite);
    height: auto;
    width: 100%;
    text-align: center;
    flex-grow: 1;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s ease, opacity 0.3s;
}
.unitsControl .levels > div.disabled{
    opacity: 0.5;
    pointer-events: none;
}
body.hasHover .unitsControl .levels > div:hover{
    background-color: var(--colorPrimaryDeepBlueLight);
    transition: background-color 0s ease;
}
.unitsControl .levels > div.active{
    background-color: var(--colorPrimaryBlue);
}
/* Levels */




