.unit-module {
    color: #000;
    position: relative;

    .unit-module__loader {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(246, 241, 235, 0.5);
        z-index: 10;
        align-items: center;
        justify-content: center;
        display: none;

        .loader {
            width: 50px;
            aspect-ratio: 1;
            border-radius: 50%;
            border: 3px solid #000;
            animation:
                l20-1 0.8s infinite linear alternate,
                l20-2 1.6s infinite linear;
        }
    }

    .unit-module__results {
        display: flex;
        flex-direction: column;

        @media (min-width: 1024px) {
            column-gap: 1rem;
            flex-direction: row;
        }
    }

    .unit-module__unit-infos {
        position: relative;
    }

    .unit-module__unit-infos,
    .unit-module__slider,
    .unit-module__list {
        flex: 1;
    }

    .unit-module__list {
        display: flex;
        flex-direction: column;
        row-gap: 1.5rem;
        margin-top: 2rem;

        @media (min-width: 1024px) {
            margin-top: 4rem;
            row-gap: 2.5rem;
        }
    }

    .unit-module__results {
        display: none;

        &.active {
            display: flex;
        }
    }

    .unit-module__unit-infos {
        background-color: #F6F1EB;
        color: #000;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;

        .unit-module__unit-name {
            margin: 0;
            font-weight: normal;
            color: #000;
            font-size: 50px;
        }

        .unit-module__unit-sup {
            background-color: #FFFFFF;
            width: 100%;
            height: 100%;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 0.5rem;

            p {
                margin: 0;
                font-weight: 600;
                margin-bottom: 8px;
            }

            .unit-module__unit-status {
                font-weight: 600;
                color: #B1AC87;
                margin: 0;
            }

            .unit-module__unit-gallery {
                display: flex;
                flex-direction: row;
                gap: 0.5rem;
                flex-wrap: nowrap;
                width: 100%;

                .unit-module__unit-gallery-big {
                    position: relative;
                    width: calc(66.6666% + 0.5rem);
                }

                .unit-module__unit-gallery-big-image {
                    aspect-ratio: 1 / 1;
                    width: 100%;
                    height: 100%;

                    img {
                        cursor: pointer;
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }

                .unit-module__unit-gallery-small {
                    display: flex;
                    flex-direction: column;
                    gap: 0.5rem;
                    width: 33.3333%
                }

                .unit-module__unit-gallery-small-image {
                    aspect-ratio: 1 / 1;

                    img {
                        cursor: pointer;
                        width: 100%;
                        height: 100%;
                        object-fit: cover;

                    }

                    &:not(:first-child):not(:nth-child(2)) {
                        display: none;
                    }
                }
            }

            .unit-module__unit-features {
                list-style: none;
                padding: 0;
                margin: 0;
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                column-gap: 1rem;
                row-gap: 0.5rem;

                li {
                    font-size: 14px;
                    display: flex;
                    align-items: center;
                    gap: 0.5rem;

                    svg {
                        color: #B1AC87;
                        width: 18px;
                        height: 18px;
                    }
                }
            }

            .unit-module__unit-actions {
                display: flex;
                gap: 0.75rem;
                margin-top: auto;
                flex-direction: column;
                width: 100%;

                @media (min-width: 1120px) {
                    flex-direction: row;
                    align-items: center;
                }

                .button {
                    color: #000;
                    padding: 1rem;
                    border: 2px solid #B1AC87;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    gap: 0.5rem;
                    transition: all 0.25s;
                    height: 100%;
                    width: 100%;
                    cursor: pointer;

                    &:hover {
                        background-color: #B1AC87;
                        color: #FFFFFF;
                    }
                }
            }

            .unit-module__unit-top-buttons {
                display: flex;
                align-items: flex-end;
                gap: 0.5rem;
                position: absolute;
                top: 27px;
                right: 1rem;

                .unit-module__unit-close {
                    border: 2px solid #000;
                    border-radius: 100%;
                    width: 80px;
                    height: 80px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    color: #000;
                    background-color: transparent;
                    cursor: pointer;
                    transition: all 0.25s;

                    &:hover {
                        background-color: #000;
                        color: #FFFFFF;
                    }

                    svg {
                        all: revert-layer;
                        width: 40px;
                        height: 40px;
                    }
                }

                .unit-module__unit-share {
                    color: #B4B4B4;
                    border: 2px solid #B4B4B4;
                    border-radius: 100%;
                    width: 30px;
                    height: 30px;
                    display: inline-flex;
                    justify-content: center;
                    align-items: center;
                    cursor: pointer;
                    background-color: transparent;

                    &:hover {
                        color: #000;
                        border-color: #000;
                    }
                }
            }
        }
    }

    .unit-module__slider {
        .swiper-slide {
            display: flex;
            flex-direction: column;
            background-color: #F6F1EB;

            img {
                max-width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center center;
                margin-top: -35px;
                min-height: 350px;

                @media (min-width: 1024px) {
                    min-height: 545px;
                }
            }
        }

        .swiper-pagination {
            position: absolute;
            bottom: 1rem;
            left: 1rem;
            display: flex;
            align-items: center;
            column-gap: 0.5rem;

            @media (min-width: 1024px) {
                left: auto;
                bottom: auto;
                top: 2rem;
                right: 1rem;
            }

            .swiper-button-prev,
            .swiper-button-next {
                position: static;
                border: 2px solid #B4B4B4;
                border-radius: 100%;
                width: 50px;
                height: 50px;
                display: flex;
                justify-content: center;
                align-items: center;
                color: #B4B4B4;
                transition: all 0.25s;

                @media (min-width: 1024px) {
                    width: 80px;
                    height: 80px;
                    color: #000;
                    border-color: #000;
                }

                &::after {
                    display: none;
                }

                svg {
                    all: revert-layer;
                    width: 40px;
                    height: 40px;
                }

                &:hover {
                    border-color: #FFF;
                    color: #FFF;

                    @media (min-width: 1024px) {
                        border-color: #000;
                        color: #B4B4B4;
                        background-color: #000;
                        color: #FFF;
                    }
                }
            }
        }

        .unit-module__img-title {
            color: #000;
            margin: 0;
            font-size: 20px;
            z-index: 2;
            padding-inline: 1rem;
            font-weight: 300;
        }

        .unit-module__img-building {
            color: #000;
            margin: 0;
            font-weight: 400;
            font-size: 60px;
            margin-top: -0.5rem;
            z-index: 2;
            padding-inline: 1rem;
        }
    }

    .unit-module__fullscreen {
        color: #B4B4B4;
        border: 2px solid #B4B4B4;
        border-radius: 100%;
        width: 30px;
        height: 30px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        bottom: 1rem;
        right: 1rem;
        cursor: pointer;

        svg {
            width: 1rem;
        }

        &:hover {
            opacity: 0.5;
        }
    }

    .unit-module__select {
        position: relative;

        &.unit-module__select--mobile {
            .choices__inner {
                font-size: 1rem;
            }

            @media (min-width: 1024px) {
                display: none;
            }
        }

        .choices[data-type*="select-one"]::after {
            display: none;
        }

        .choices__inner {
            border: 2px solid #000;
            background-color: transparent;
            border-radius: 9999px !important;
            font-size: 1.5rem;
            font-weight: 600;
            padding: 0.5rem 1rem !important;
        }

        .choices__list[aria-expanded] {
            z-index: 2;
        }

        .choices__list--dropdown {
            border-radius: 10px !important;
            border: 2px solid #000 !important;
            margin-block: 0.5rem !important;
            background-color: #F6F1EB;

            .choices__item {
                &.is-highlighted {
                    background-color: #FFF !important;
                }

                &:hover {
                    background-color: #FFF !important;
                }
            }
        }

        &::after {
            content: '';
            border-bottom: 2px solid #000;
            border-right: 2px solid #000;
            transform: rotate(45deg) translateY(-100%);
            position: absolute;
            top: 50%;
            right: 2rem;
            width: 15px;
            height: 15px;
        }
    }

    .unit-module__floors {
        list-style-type: none;
        padding: 0;
        margin: 0;
        display: none;
        align-items: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 1rem;
        padding-left: 1.5rem;

        @media (min-width: 1024px) {
            display: flex;
        }

        button {
            background-color: transparent;
            border: 0;
            padding: 0;
            display: flex;
            align-items: center;
            column-gap: 0.5rem;
            font-weight: bold;
            opacity: 0.3;
            cursor: pointer;

            svg {
                width: 1rem;
            }
        }

        button.active {
            opacity: 1;

            svg {
                transform: rotate(180deg);
                color: #B1AC87;
            }
        }
    }

    .unit-module__units {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
        list-style: none;
        max-height: 400px;
        overflow-y: auto;
        padding-left: 1.5rem;
    }

    .unit-module__unit {
        text-decoration: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #000;
        border-bottom: 1px solid #B1AC87;
        padding-block: 2rem;
        column-gap: 1rem;
        cursor: pointer;
        transition: background-color 0.25s;

        &:hover {
            background-color: rgba(255, 255, 255, 0.3);
        }

        &.active {
            background-color: #FFFFFF;
        }

        &.unit-module__unit--unavailable {
            cursor: auto;
        }

        svg {
            color: #B1AC87;
        }

        &:hover {
            color: #000;
        }

        .unit-module__unit-name {
            margin: 0;
            font-weight: normal;
            color: #11121D;
        }
    }

    .unit-module__unit--unavailable {
        opacity: 0.3;
        border-bottom: 1px solid #000;

        .unit-module__status {
            color: #000;
            text-decoration: line-through;
        }

        .unit-module__feature {
            svg {
                color: #000;
            }
        }
    }

    .unit-module__status {
        font-weight: 600;
        color: #B1AC87;
        margin: 0;
    }

    .unit-module__feature {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-weight: 600;
        row-gap: 0.25rem;

        svg {
            height: 2rem;
            width: 2.5rem;
        }

        span {
            display: none;

            @media (min-width: 1024px) {
                display: inline;
            }
        }
    }
}

.unit-module__filters-container {   
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;

    @media (min-width: 1024px) {
        display: block;
        margin-bottom: 0;
    }

    > p {
        margin: 0;
        font-weight: 600;
    }
}

.unit-module__filters {
    color: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;

    @media (min-width: 1024px) {
        margin-bottom: 2rem;
    }

    .unit-module__more-filter {
        min-width: 40px;
        min-height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 100%;
        border: 2px solid #000;
        cursor: pointer;
        transition: all 0.25s;
        background-color: transparent;

        @media (min-width: 1024px) {
            display: none;
        }
        
        &:hover {
            color: #FFF;
            background-color: #000;
        }

        svg {
            width: 18px;
            height: 18px;
        }
    }

    .unit-module__filter {
        display: none;
        align-items: center;
        gap: 0.5rem;
        font-weight: 600;

        &.main-filter {
            @media (min-width: 1024px) {
                display: flex;
            }
        }

        > label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        > svg {
            color: #B1AC87;
            width: 2rem;
            height: 2rem;
        }

        button {
            background-color: transparent;
            border: 1px solid #000;
            border-radius: 100%;
            padding: 0;
            width: 18px;
            height: 18px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            transition: all 0.25s;

            svg {
                width: 10px;
                height: 10px;
            }

            &:hover {
                background-color: #000;
                color: #FFF;
            }
        }
        
        .unit-module__filter-select {
            position: relative;

            .choices {
                z-index: 2;
            }

            .choices__placeholder {
                opacity: 1;
            }

            .choices[data-type*="select-one"]::after {
                display: none;
            }

            .choices__inner {
                border: 2px solid #000;
                background-color: transparent;
                border-radius: 9999px !important;
                font-size: 1rem;
                font-weight: 600;
                padding: 0.25rem 0.5rem !important;
                min-height: 1px !important;
                min-width: 150px !important;
            }

            .choices__list--single {
                padding-block: 0 !important;
            }

            .choices__list--dropdown {
                border-radius: 10px !important;
                border: 2px solid #000 !important;
                margin-block: 0.5rem !important;
                background-color: #F6F1EB;

                .choices__item {
                    &.is-highlighted {
                        background-color: #FFF !important;
                    }

                    &:hover {
                        background-color: #FFF !important;
                    }
                }
            }

            &::after {
                content: '';
                border-bottom: 2px solid #000;
                border-right: 2px solid #000;
                transform: rotate(45deg) translateY(-100%);
                position: absolute;
                top: 50%;
                right: 1rem;
                width: 8px;
                height: 8px;
            }
        }

        input[type="number"] {
            background-color: transparent;
            border: 0;
            text-align: center;
            width: 15px;
            appearance: none;
            font-weight: 600;
        }

        input[type="number"]::-webkit-outer-spin-button,
        input[type="number"]::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .unit-module__filter-input {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .unit-module__slider-wrapper {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: -5px;

            span {
                font-weight: 400;
                font-size: 12px;
                margin-bottom: -5px;
                width: 40px;

                &:first-child {
                    text-align: right;
                }

                &:last-child {
                    margin-left: 16px;
                }
            }

            .noUi-target {
                min-width: 60px;
                height: 2px;

                .noUi-connects {
                    height: 2px;

                    .noUi-connect {
                        background-color: #000;
                    }
                }

                .noUi-handle:after, .noUi-handle:before {
                    display: none;
                }

                .noUi-handle {
                    background-color: #F6F1EB;
                    border: 2px solid #000;
                    border-radius: 100%;
                    width: 15px;
                    height: 15px;
                    box-shadow: none;
                }

                &.noUi-horizontal .noUi-handle {
                    right: -15px;
                }
            }
        }
    }
}

.filters-panel {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: opacity 0.25s;

    &.open {
        opacity: 1;
        pointer-events: auto;

        .filters-panel__panel {
            transform: translateX(0);
        }
    }

    .filters-panel__panel {
        position: absolute;
        top: 0;
        right: 0;
        background-color: #FFF;
        max-width: 350px;
        width: 100%;
        height: 100%;
        transform: translateX(100%);
        transition: transform 0.25s;
        padding: 1rem;
        color: #000;

        > p {
            margin: 0;
            font-weight: 600;
            margin-bottom: 1.5rem;
        }

        > button {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background-color: transparent;
            border: 0;
            cursor: pointer;
            padding: 0;
        }

        .unit-module__filters {
            flex-direction: column;
            align-items: flex-start;
            margin: 0;
            gap: 1rem;

            .unit-module__filter {
                width: 100%;
                display: flex;

                &.main-filter {
                    @media (min-width: 1024px) {
                        display: none;
                    }
                }

                p {
                    margin: 0;
                }

                .unit-module__filter-input {
                    margin-left: auto;
                }

                .unit-module__filter-select {
                    width: 100%;
                }
            }
        }

        .unit-module__more-filter {
            display: none;
        }
    }
}

@keyframes l20-1{
   0%    {clip-path: polygon(50% 50%,0       0,  50%   0%,  50%    0%, 50%    0%, 50%    0%, 50%    0% )}
   12.5% {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100%   0%, 100%   0%, 100%   0% )}
   25%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 100% 100%, 100% 100% )}
   50%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
   62.5% {clip-path: polygon(50% 50%,100%    0, 100%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
   75%   {clip-path: polygon(50% 50%,100% 100%, 100% 100%,  100% 100%, 100% 100%, 50%  100%, 0%   100% )}
   100%  {clip-path: polygon(50% 50%,50%  100%,  50% 100%,   50% 100%,  50% 100%, 50%  100%, 0%   100% )}
}
@keyframes l20-2{ 
  0%    {transform:scaleY(1)  rotate(0deg)}
  49.99%{transform:scaleY(1)  rotate(135deg)}
  50%   {transform:scaleY(-1) rotate(0deg)}
  100%  {transform:scaleY(-1) rotate(-135deg)}
}

.simplebar-track.simplebar-vertical {
    width: 8px !important;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        background-color: #B1AC87;
        width: 1px;
        height: 100%;
    }
}

.simplebar-scrollbar::before {
    background-color: #B1AC87 !important;
    opacity: 1 !important;
    border-radius: 0 !important;
}