.real-estate, .real-estate-container, .real-estate-header, .real-estate-cards-list {
    width: 100%;
}

.real-estate-container {
    display: flex;
    flex-direction: column;
    gap: 35px;
    padding-bottom: 104px;
    padding-top: 36px;
}

.real-estate-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.real-estate-header .select .select__header, .real-estate-header .select .select__body {
    min-width: 280px;
}

.real-estate-header-buttons-list {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.real-estate-header-buttons-list-element {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 50%;
    border: 1px solid rgb(221, 220, 219);
    transition: 0.2s ease-in-out all;
}

.real-estate-header-buttons-list-element:hover {
    border: 1px solid rgb(131, 131, 131);
    transition: 0.2s ease-in-out all;
}

.real-estate-cards-list-item-header-auction {
    font-size: 12px;
    font-weight: 600;
    color: #141414;
    border: 1px solid #141414;
    border-radius: 10px;
    line-height: 1.5;
    padding: 0px 3px;
}

.button-switch-active {
    border: 1px solid rgb(131, 131, 131);
    transition: 0.2s ease-in-out all;
}

.real-estate-cards-list-column-table {
    display: none; /*grid*/
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
    padding: 0 25px;
    align-items: center;
    color: #8c94a8;;
    font-size: 14px;
    height: 48px;
    line-height: 24px;
}

.real-estate-cards-list-column-table .real-estate-cards-list-column-table-element:nth-child(1), .real-estate-cards-list-item-column .real-estate-cards-list-item-column-el:nth-child(1) {
    grid-column: 1/2;
    justify-self: start;
}

.real-estate-cards-list-column-table .real-estate-cards-list-column-table-element:nth-child(2), .real-estate-cards-list-item-column .real-estate-cards-list-item-column-el:nth-child(2) {
    grid-column: 2/3;
}

.real-estate-cards-list-column-table .real-estate-cards-list-column-table-element:nth-child(3), .real-estate-cards-list-item-column .real-estate-cards-list-item-column-el:nth-child(3) {
    grid-column: 3/6;
}

.real-estate-cards-list-column-table .real-estate-cards-list-column-table-element:nth-child(4), .real-estate-cards-list-item-column .real-estate-cards-list-item-column-el:nth-child(4) {
    grid-column: 6/7;
}

.real-estate-cards-list-column-table .real-estate-cards-list-column-table-element:nth-child(5), .real-estate-cards-list-item-column .real-estate-cards-list-item-column-el:nth-child(5) {
    grid-column: 7/8;
}

.real-estate-cards-list-column-table .real-estate-cards-list-column-table-element:nth-child(6), .real-estate-cards-list-item-column .real-estate-cards-list-item-column-el:nth-child(6) {
    grid-column: 8/10;
}

.real-estate-cards-list-column-table .real-estate-cards-list-column-table-element:nth-child(7), .real-estate-cards-list-item-column .real-estate-cards-list-item-column-el:nth-child(7) {
    grid-column: 10/12;
}

.real-estate-cards-list-column-table .real-estate-cards-list-column-table-element:nth-child(8), .real-estate-cards-list-item-column .real-estate-cards-list-item-column-el:nth-child(8) {
    grid-column: 12/13;
    justify-self: flex-end;
    margin-right: 20px;
}

.real-estate-cards-list__container {
    margin-bottom: 25px;
}

.real-estate-cards-list-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.real-estate-cards-list-item-row, .real-estate-cards-list-item-column {
    padding: 24px;
    border: 1px solid rgb(221, 220, 219);
    border-radius: 20px;
    transition: 0.2s ease-in-out all;
}

.real-estate-cards-list-item-row:hover, .real-estate-cards-list-item-column:hover {
    border: 1px solid rgb(131, 131, 131);
    transition: 0.2s ease-in-out all;
}



.real-estate-cards-list-item-row .real-estate-cards-list-item-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 48px;
}

.real-estate-cards-list-item-row:hover  .real-estate-cards-list-item-header-address-wrapper-hidden {
    display: block;
    transition: 0.3s ease-in-out all;
}

.real-estate-cards-list-item-row .real-estate-cards-list-item-header-address-wrapper-visible, .real-estate-cards-list-item-row .real-estate-cards-list-item-header-address-wrapper-hidden {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
    transition: 0.3s ease-in-out all;
}

.real-estate-cards-list-item-row .real-estate-cards-list-item-header-address {
    font-size: 12px;
    font-weight: 500;
    line-height: 12px;
    color: rgb(20, 20, 20);
}

.real-estate-cards-list-item-row .real-estate-cards-list-item-header-address-additional,  .real-estate-cards-list-item-row .real-estate-cards-list-item-header-address-wrapper-hidden-text{
    font-size: 12px;
    line-height: 12px;
    color: #8c94a8;
    font-weight: 400;
}

.real-estate-cards-list-item-row .real-estate-cards-list-item-header-address-wrapper-hidden {
    display: none;
    transition: 0.3s ease-in-out all;
}


.real-estate-cards-list-item-row .real-estate-cards-list-item-header-button {
    background: transparent;
}

.real-estate-cards-list-item-row .real-estate-cards-list-item-slider-img {
    width: 100%;
    max-height: 225px;
    min-height: 225px;
}

.real-estate-cards-list-item-column .real-estate-cards-list-item-slider-img {
    max-height: 150px;
    height: 100%;
    max-width: 100%;
}

.real-estate-cards-list-item-info-container {
    display: flex;
    flex-direction: column;

}

.real-estate-cards-list-item-info-price {
    font-size: 20px;
    font-weight: 600;
    color: rgb(20, 20, 20);
    letter-spacing: .015em;
    line-height: 1.2;
}

.real-estate-cards-list-item-info-mortgage {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .015em;
    line-height: 12px;
    margin-top: 4px;
    text-overflow: ellipsis;
}

.real-estate-cards-list-item-row .real-estate-cards-list-item-info-specification {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 12px;
    color: rgb(20, 20, 20);
    letter-spacing: .015em;
    line-height: 12px;
}

.real-estate-cards-list-item-tag-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 12px;
}

.real-estate-cards-list-item-tag-list-item {
    height: fit-content;
    align-items: center;
    background-color: #f4f6fb;
    border-radius: 12px;
    color: #282d3c;
    display: flex;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: -.005em;
    line-height: 12px;
    overflow: hidden;
    padding: 6px 12px;
    pointer-events: all;
    -webkit-user-select: none;
    user-select: none;
}

.real-estate-cards-list-column {
    display: none; /*flex*/
    flex-direction: column;
    gap: 10px;
}

.real-estate-cards-list-item-column {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 25px;
    align-items: center;
}

.real-estate-cards-list-item-column .real-estate-cards-list-item-slider {
    width: 80%;
}

.real-estate-cards-list-item-column-el {
    font-family: 'Montserrat', sans-serif;
    color: #141414;
    font-size: 16px;
}

.real-estate-cards-list-item-column-roominess .real-estate-cards-list-item-info-specification-item {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -.015em;
    line-height: 24px;
    white-space: nowrap;
    margin-bottom: 4px;
}

.real-estate-cards-list-item-column-roominess .real-estate-cards-list-item-header-address {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -.005em;
    line-height: 12px;
}

.real-estate-button-more {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    width: 300px;
    border: 1px solid rgb(221, 220, 219);
    background-color: transparent;
    border-radius: 20px;
    height: 48px;
    margin: auto;
}

@media (max-width: 1225px) {
    .real-estate-cards-list-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .real-estate-cards-list-column-table {
        display: none;
    }

    .real-estate-cards-list-item-column {
        grid-template-rows: repeat(3, 1fr);
    }

    .real-estate-cards-list-item-column .real-estate-cards-list-item-slider-img {
        height: 150px;
    }

    .real-estate-cards-list-item-column .real-estate-cards-list-item-column-el:nth-child(1) {
        grid-column: 7 / 13;
        grid-row: 1 / 4;
        display: flex;
        width: 100%;
        justify-content: end;
    }

    .real-estate-cards-list-item-column-roominess .real-estate-cards-list-item-info-specification-item {
        font-size: 18px;
    }

    .real-estate-cards-list-item-column .real-estate-cards-list-item-column-el:nth-child(2) {
        grid-column: 1/6;
    }

    .real-estate-cards-list-item-column .real-estate-cards-list-item-column-el:nth-child(3) {
        grid-column: 1/6;
        align-self: start;
    }

    .real-estate-cards-list-item-column .real-estate-cards-list-item-column-el:nth-child(4) {
        display: none;
    }

    .real-estate-cards-list-item-column .real-estate-cards-list-item-column-el:nth-child(5) {
        display: none;
    }

    .real-estate-cards-list-item-column .real-estate-cards-list-item-column-el:nth-child(6) {
        display: none;
    }

    .real-estate-cards-list-item-column .real-estate-cards-list-item-column-el:nth-child(7) {
        grid-column: 1/6;
        grid-row: 1/2;
    }

    .real-estate-cards-list-item-column .real-estate-cards-list-item-column-el:nth-child(8) {
        display: none;
    }
}

@media (max-width: 992px) {
    .real-estate-cards-list-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #properties-sort {
        width: 100%;
        grid-column: 1/13;
        max-width: 100% !important;
    }
    
    .real-estate-header {
        display: none;
    }
    .real-estate-cards-list-row {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 576px) {
    #properties-sort {
        grid-column: 1/4;
    }

    .real-estate-header .select .select__header, .real-estate-header .select .select__body {
        min-width: 180px;
    }

    .real-estate-cards-list-item-column {
        grid-template-columns: repeat(3, 1fr);
    }

    .real-estate-cards-list-item-column .real-estate-cards-list-item-slider-img {
        width: 100px;
    }

    .real-estate-cards-list-item-column .real-estate-cards-list-item-column-el:nth-child(1) {
        grid-column: 3 / 4;
    }

    .real-estate-cards-list-item-column .real-estate-cards-list-item-column-el:nth-child(2) {
        grid-column: 1/3;
    }

    .real-estate-cards-list-item-column .real-estate-cards-list-item-column-el:nth-child(3) {
        grid-column: 1/3;
    }

    .real-estate-cards-list-item-column .real-estate-cards-list-item-column-el:nth-child(7) {
        grid-column: 1/3;
    }
}


.zhk-cards-list {
    margin-top: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.select-properties-filter {
    max-width: 280px;
}