/* selector */
.selector-wrapper {
    position: relative;
}

section.selector {
    position: relative;
    z-index: 1;
}

#selector-etape2 {
    /*max-height: 895px;*/
    position: relative;
    overflow: hidden;
    aspect-ratio: 2500/1406;
}

.selector-image {
    width: 100%;
    z-index: 1;
}

.layer-image {
    width: 100%;
    inset: 0;
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.svg-layer {
    z-index: 2;
}

.selector .layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}




.selector svg {
    width: 100%;
    height: auto;
}


.selector-buttons {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
}

.selector-button {
    display: inline-block;
    border: 1px solid var(--color-bordeaux);
    color: var(--color-bordeaux);
    background-color: var(--color-orangebrown);
    padding: 6px 20px;
}

.bottom-buttons {
    position: absolute;
    bottom: 31.2%;
    right: 40px;
}

.bottom-center-buttons {
    position: absolute;
    bottom: 7%;
    left: 50%;
    z-index: 5;
    transform: translateX(-50%);
    text-align: center;
}

.selector .back-button {
    border: 1px solid var(--color-orangebrown);
    color: #fff;
    padding: 15px 55px;
    text-decoration: none;
    transition-duration: 0.2s;
    display: block;
    line-height: 1.4;
    background-color: rgba(0,0,0,0.5);
}

.selector .back-button:hover {
    background-color: var(--color-orangebrown);
}

.floor-info .back-button {
    margin-bottom: 10px;
    margin-top: 10px;
}


.step {
    display: none;
}

.step.active {
    display: block;
}



.house-design {
    transition-duration: 0.5s;
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translate(0, -50%);
    width: 400px;
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

#house-desc { opacity: 0; }
#house-desc.active { opacity: 1; }

.house-design .ident {
    font-size: 281.25%;
    color: var(--color-orangebrown);
    font-weight: var(--font-bold);
    text-shadow: rgba(0,0,0,0.5) 3px 3px 5px;
    margin: 0.2em 0;
}

.house-design .image {
    margin: 0 auto;
    text-align: center;
    z-index: 3;
    position: relative;
    height: 308px;
}

.house-design .image img {
    width: 300px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: rgba(0, 0, 0, 1) 0 0 5px 0;
}

.house-design .data {
    z-index: 2;
    width: 300px;
    height: 300px;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    background-color: var(--color-orangebrown);
    font-weight: var(--font-light);
    color: #fff;
    font-size: 112.5%;
    opacity: 1;
    line-height: 1.7;
    text-align: center;
    margin: 0 auto;
    border-radius: 50%;
    position: relative;
    top: -70px;
}

.house-design .data > div {
    margin-top: 1.8em
}

.house-design .data .pipe {
    color: var(--color-blue);
    padding: 0 2px;
}

.house-design .data .housetype {
    color: var(--color-blue);
    text-transform: uppercase;
    font-weight: var(--font-semibold);
}


.desc-design {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 715px;
    aspect-ratio: 715/160;
    background: url("../../../img/selector-etapa2/floor-desc.png") right bottom no-repeat;
    background-size: 100%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: flex-end;
    padding-right: 40px;
    box-sizing: border-box;
    line-height: 1.7;
    font-weight: var(--font-semibold);
}

#unit-desc.desc-design {
    z-index: 4;
}

.desc-design  .title {
    font-size: 150%;
    color: var(--color-blue);
    text-transform: uppercase;
}

.desc-design .title span.pipe {
    color: #fff;
    padding: 0 2px;
}

.desc-design  .disps {
    font-size: 125%;
    color: #fff;
}

.desc-design .disps span.pipe {
    color: var(--color-blue);
    padding: 0 2px;
}

.desc-design .statuses {
    font-size: 125%;
    color: var(--color-blue);
    font-weight: var()
}

.desc-design .statuses span {
    color: #fff;
}


#svgStep1 polygon {
    transition-duration: 0.3s;
    fill: transparent;
    stroke: transparent;
    fill-opacity: 0.85;
    stroke-width: 2;
}

#svgStep1 polygon:hover {
    fill: #d6ad54;
    stroke: #fff;
    cursor: pointer;
}

#svgStep2 {}

.step2 text {
    font-weight: var(--font-semibold);
    font-size: 187.5%;
    fill: #fff;
}

.step2 g polygon {
    fill: transparent;
    transition-duration: 0.3s;
}
.step2 g text {
    fill: transparent;
    transition-duration: 0.3s;
}

.step2 g:hover {
    cursor: pointer;
}

.step2 g:hover polygon {
    fill: var(--color-orangebrown);
    fill-opacity: 0.85;
}

.step2 g:hover text {
    fill: #fff;
}


#step-3 .selector-image, #step-3 .bglayer-image, #step-4 .selector-image {
    /*filter: url("../../../img/blur.svg#blur");*/
    z-index: 2;
    filter: brightness(0.4) blur(8px);
}

#step-3 .floor-layer, #step-4 .rowhouse-layer {
    display: none;
}

#step-3 .floor-layer.active, #step-4 .rowhouse-layer.active {
    display: block;
}

.floorSvg polygon, .floorSvg rect {
    fill: var(--color-orangebrown);
    fill-opacity: 0.7;
    transition-duration: 0.3s;
}

.floorSvg polygon:hover, .floorSvg polygon.active-hover, .floorSvg rect:hover, .floorSvg rect.active-hover {
    fill-opacity: 1;
    cursor: pointer;
}

.floorSvg polygon.status3, .floorSvg polygon.status4, .floorSvg polygon.status5, .floorSvg rect.status3, .floorSvg rect.status4, .floorSvg rect.status5 {
    fill: #a6a6a6;
    fill-opacity: 0.7;
}
.floorSvg polygon.status3:hover, .floorSvg polygon.status4:hover, .floorSvg polygon.status5:hover, .floorSvg rect.status3:hover, .floorSvg rect.status4:hover, .floorSvg rect.status5:hover {
    fill-opacity: 0.7;
    cursor: default;
}

.rowhouseSvg g polygon, .rowhouseSvg g rect {
    fill: var(--color-orangebrown);
    fill-opacity: 0.7;
    transition-duration: 0.3s;
}

.rowhouseSvg g:hover polygon, .rowhouseSvg g:hover rect, .rowhouseSvg g.active-hover polygon, .rowhouseSvg g.active-hover rect {
    fill-opacity: 1;
    cursor: pointer;
}

.rowhouseSvg polygon.status3, .rowhouseSvg polygon.status4, .rowhouseSvg polygon.status5,
.rowhouseSvg rect.status3, .rowhouseSvg rect.status4, .rowhouseSvg rect.status5
{
    fill: #a6a6a6;
    fill-opacity: 0.7;
}

.rowhouseSvg polygon.status3:hover, .rowhouseSvg polygon.status4:hover, .rowhouseSvg polygon.status5:hover,
.rowhouseSvg rect.status3:hover, .rowhouseSvg rect.status4:hover, .rowhouseSvg rect.status5:hover
{
    fill-opacity: 0.7;
    cursor: default;
}

.floor-info {
    position: absolute;
    right: 0;
    bottom: 180px;
    z-index: 4;
    padding-right: 40px;
    text-align: right;
    line-height: 1.8;
}

.floor-info .house-title {
    font-weight: var(--font-semibold);
    font-size: 250%;
    color: var(--color-orangebrown);
}

.floor-info .house-type, .floor-info .house-floor {
    font-weight: var(--font-semibold);
    color: #fff;
    font-size: 150%;
    text-transform: uppercase;
    line-height: 1.2;
}

.change-floor-button {
    font-weight: var(--font-semibold);
    color: #fff;
    text-decoration: none;
    text-align: right;
    display: block;
    padding: 4px 2px 4px 0
}

.change-floor-button:after {
    content: "";
    width: 3px;
    height: 3px;
    border-top: 2px solid var(--color-orangebrown);
    border-right: 2px solid var(--color-orangebrown);
    display: inline-block;
    transform: rotate(-45deg);
    transform-origin: center center;
    margin-left: 10px;
}

.change-floor-button:hover {
    color: #fff;
}

.change-floor-button:last-of-type:after {
    transform: translateY(-5px) rotate(135deg);
}

.flatinfo {
    text-align: right;
}

.flatinfo__name {
    color: var(--color-blue);
    font-weight: var(--font-semibold);
    font-size: 150%;
}

.flatinfo__name span.pipe {
    color: #fff;
    padding: 0 2px;
}

.flatinfo__area {
    color: #fff;
    font-weight: var(--font-semibold);
}

.flatinfo__status {
    color: var(--color-blue);
    font-weight: var(--font-semibold);
    font-size: 112.5%;
    text-transform: uppercase;
}

.twin-pov {
    position: absolute;
    z-index: 6;
    color: #fff;
    font-size: 120%;
    font-weight: var(--font-semibold);
}

.twin-pov-left {
    bottom: 27%;
    left: 28%;
    transform: translateX(-50%);
}
.twin-pov-right {
    bottom: 27%;
    right: 28%;
    transform: translateX(-50%);
}