.filters {
    padding-top: 178px;
    padding-bottom: 50px;
}

.filters h1 {
    font-size: 66px;
    font-weight: 400;
}

@media (max-width: 1024px) {
    .filters {
        padding: 30px 0;
    }
    .filters h1 {
        font-size: 54px;
    }
}

@media (max-width: 767px) {
    .filters {
        padding: 10px 0;
    }
    .filters h1 {
        font-size: 44px;
    }
}

.filters .first-row {
    display: grid;
    grid-template-columns: 1fr 1fr 210px;
    align-items: end;
    margin: 32px 0 37px;
    gap: 48px;
}

.filters .first-row .search-block,
.filters .first-row .region-select-block {
    position: relative;
}

.filters .first-row .search-block img,
.filters .first-row .region-select-block img {
    position: absolute;
    width: 24px;
    height: auto;
    display: flex;
    left: 0;
    bottom: 20px;
    pointer-events: none;
}

.filters input {
    border-radius: 0 !important;
}

.filters .first-row .search-block input {
    background: none;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    width: 100%;
    padding: 5px 10px 23px 40px;
    font-size: 14px;
}

.filters input {
    color: var(--primary-text-color);
    height: 44px;
}

.filters input:focus-visible {
    outline: 0;
}

.filters input::placeholder {
    color: var(--muted-text-color);
    font-weight: 400;
    font-family: Geologica;
    opacity: 1;
}

.filters .main-btn {
    border: 0;
    width: 100%;
    height: max-content;
    justify-content: center;
}

/* SELECT */

body .choices__inner {
    background: none !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
    padding: 5px 10px 23px 40px !important;
    border-radius: 0;
}
.choices__list--single {
    padding: 0 !important;
    border: 0 !important;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
    background-color: var(--body-bg) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background-color: rgba(255, 255, 255, 0.4) !important;
}

.additional-filters input,
.additional-filters .choices__inner {
    padding-left: 0px !important;
}

.filters .additional-filters .choices__inner {
    padding-bottom: 17px !important;
    min-height: auto;
}

.filters .choices__placeholder {
    opacity: 1;
    color: var(--muted-text-color);
    font-weight: 400;
}

.filters .choices__list--multiple .choices__item {
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-text-color);
    border-radius: 3px;
    backdrop-filter: blur(20px);
    border: 0;
    font-size: 13px;
    padding: 6px 14px 6px 10px;
}

body .choices[data-type*="select-multiple"] .choices__button,
body .choices[data-type*="text"] .choices__button {
    border: 0;
    background-size: 6px;
    opacity: 0.5;
}

.filters .extra-select-wrapper .choices__inner {
    padding-bottom: 9px !important;
}

/* RANGE */

.filters .additional-filters .noUi-target {
    height: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 0;
    box-shadow: none;
}

.filters .additional-filters .noUi-connect {
    background: var(--secondary-text-color);
}

.filters .additional-filters .noUi-handle {
    height: 18px;
    width: 18px;
    border: 0;
    background: var(--secondary-text-color);
    box-shadow: none;
    border-radius: 100%;
    top: -8px;
}

.filters .inputs span {
    position: absolute;
    right: 0;
    bottom: 18px;
    color: var(--muted-text-color);
    font-size: 14px;
}

.filters .inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.filters .inputs > div {
    position: relative;
}

.filters .additional-filters .noUi-handle:after,
.filters .additional-filters .noUi-handle:before {
    display: none;
}

.filters .rooms-wrapper .label-wrapper {
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.filters .additional-filters label {
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 100%;
    margin-bottom: 10px;
    display: block;
}

.filters .additional-filters input {
    background: none;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    width: 100%;
    padding: 5px 10px 17px 40px;
    font-size: 14px;
}

.filters .additional-filters input[type="number"] {
    padding-right: 30px;
}

.filters .additional-filters {
    display: grid;
    grid-template-columns: 1fr 0.45fr 1fr 1.3fr;
    align-items: end;
    gap: 48px;
}

.filters .additional-filters .choices__inner input {
    display: none;
}

.filters .clear-filters {
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--secondary-text-color);
    padding: 0;
}

.filters .rooms-wrapper-mobile {
    margin-top: 13px;
    margin-bottom: 13px;
}

.filters .rooms-wrapper-mobile > div {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.filters .rooms-wrapper-mobile .mobile-room-item {
    background: none;
    padding: 12px 12px;
    width: 100%;
    font-size: 14px;
    text-align: center;
    display: block;
    text-decoration: none;
    color: var(--muted-text-color);
    transition: all 0.2s ease-in;
    border-radius: 30px;
    cursor: pointer;
    border: 0;
    background-color: rgba(255, 255, 255, 0.1);
}

.filters .rooms-wrapper-mobile .mobile-room-item.active {
    background-color: #ffffff;
    color: #111111;
}

.filters .clear-filters {
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
}

.filters .clear-filters span {
    font-size: 12px;
}

.filters .clear-filters-wrapper {
    display: flex;
    margin-top: 22px;
    justify-content: end;
}

.filters .choices__list--multiple {
    display: flex;
    flex-wrap: wrap;
    min-height: 29px;
}

.filters form .choices::after,
body .objects .objects-head .choices::after {
    content: "";
    position: absolute;
    pointer-events: none;
    background-image: url(../img/CaretDown.png);
    width: 12px;
    height: 12px;
    background-size: cover;
    border: 0;
    top: 21%;
    margin-top: 0 !important;
    transition: all 0.3s;
    right: 11.5px;
}

.filters form .choices.is-open::after,
body .objects .objects-head .choices.is-open::after {
    transform: rotate(-180deg);
}

@media (min-width: 1024px) {
    .mobile {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .desktop {
        display: none !important;
    }

    .filters .first-row {
        grid-template-columns: 1fr;
        margin: 22px 0 32px;
        gap: 19px;
    }

    .filters .first-row .filter-btn {
        background: none;
        border: 0;
        display: flex;
        align-items: center;
        gap: 15px;
        color: var(--secondary-text-color);
        font-size: 14px;
        cursor: pointer;
    }

    .additional-filters-wrapper {
        position: fixed;
        width: calc(100vw);
        top: 0;
        left: 100vw;
        background: var(--body-bg);
        height: 100vh;
        padding: 116px 21px 30px;
        transition: left 0.3s;
    }

    .show-mobile-filters .additional-filters-wrapper {
        left: 0;
        overflow: auto;
    }

    body.show-mobile-filters {
        height: 100vh;
        overflow: hidden;
    }

    .filters .additional-filters-wrapper .mobile-head {
        display: flex;
        justify-content: space-between;
    }

    .filters .additional-filters-wrapper .mobile-head h2 {
        font-size: 44px;
        font-weight: 400;
    }

    .filters .additional-filters {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .filters .slider {
        margin-bottom: 15px;
    }

    .filters .additional-filters label {
        margin-bottom: 22px;
    }

    .extra-select-wrapper-mobile {
        margin-top: 13px;
    }

    .filters .extra-select-wrapper-mobile .list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .filters .main-btn {
        margin-top: 26px;
    }

    .show-mobile-filters header .open-menu {
        display: none;
    }

    .show-mobile-filters header .close-menu {
        display: flex !important;
    }

    .filters .extra-select-wrapper-mobile .list .item {
        padding: 5px 6px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
        backdrop-filter: blur(100px);
        font-size: 14px;
        color: white;
        cursor: pointer;
    }

    .filters .extra-select-wrapper-mobile .list .item.active {
        background-color: white;
        color: black;
    }
}

/* objects */
.objects {
    padding: 0 0 140px;
}

.objects-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}

.objects h3 {
    font-size: 28px;
    font-weight: 400;
}

.objects-filters {
    display: flex;
    align-items: center;
}

.objects .objects-head .choices__inner {
    padding-bottom: 20px !important;
}

.objects-filters button {
    background: none;
    border: 0;
    padding: 12px 36px;
    font-size: 14px;
    display: block;
    text-decoration: none;
    color: var(--muted-text-color);
    transition: all 0.2s ease-in;
    border-radius: 30px;
}

.objects-filters button.active {
    background-color: #ffffff;
    color: #111111;
}

.objects-head .choices {
    min-width: 160px;
}

.objects-head .choices__inner {
    padding-left: 0 !important;
}

.objects .list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: 20px;
    row-gap: 83px;
    margin-top: 33px;
}

.objects .list a {
    transition: all var(--transition-duration) var(--transition-easing);
    opacity: 1;
    user-select: none;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .objects .list a:hover {
        transform: translateY(-20px);
    }

    .objects .list a:hover h4 {
        color: var(--secondary-text-color);
    }
}

.objects .list a.partial {
    opacity: 0.2;
}

.objects .list a img {
    aspect-ratio: 360 / 370;
    width: 100%;
    overflow: hidden;
    object-fit: cover;
    display: flex;
}

.objects .list a h4 {
    font-size: 28px;
    font-weight: 400;
    margin-top: 35px;
    transition: color var(--transition-duration) var(--transition-easing);
}

.objects .list a p {
    margin-top: 17px;
    font-size: 16px;
    line-height: 130%;
    color: var(--muted-text-color);
}

.objects .list a .tags {
    display: flex;
    gap: 15px;
    row-gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.objects .list a .tags .tag {
    padding: 6px 9px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    font-size: 13px;
}

.objects .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 65px;
    margin-top: 104px;
}

.objects .pagination > div {
    display: flex;
    align-items: center;
    gap: 30px;
}

.objects .pagination svg {
    display: flex;
}

.objects .pagination svg path {
    stroke: #ffffff;
    stroke-opacity: 0.3;
}

.objects .pagination a,
.objects .pagination span {
    text-decoration: none;
    color: var(--muted-text-color);
    font-size: 13px;
    font-weight: 500;
}

.objects .pagination a.active {
    color: var(--primary-text-color);
}

@media (max-width: 1024px) {
    .objects {
        padding: 0 0 80px;
    }
    .objects .list {
        grid-template-columns: 1fr 1fr 1fr;
        row-gap: 50px;
    }

    .objects .pagination {
        margin-top: 62px;
    }
}

@media (max-width: 767px) {
    .objects h3 {
        font-size: 22px;
    }
    .objects-filters button {
        padding: 12px;
    }

    .objects-filters {
        justify-content: space-between;
    }

    .objects .list {
        grid-template-columns: 1fr 1fr;
        column-gap: 14px;
        row-gap: 41px;
    }

    .objects .list a img {
        aspect-ratio: 360 / 393;
    }

    .objects .list a h4 {
        font-size: 16px;
        margin-top: 11px;
        line-height: 24px;
    }

    .objects .list a p {
        margin-top: 14px;
        font-size: 13px;
        line-height: 20px;
    }

    .objects .list a .tags {
        margin-top: 15px;
    }

    .objects .pagination {
        gap: 30px;
        justify-content: space-between;
    }

    .objects .pagination > div {
        gap: 10px;
        flex: 1;
        justify-content: space-between;
    }
}
