﻿
.list-anchor {
    display: block;
    height: 12px;
}

.results .listing-header-block {
    margin-bottom: 24px;
    height: auto;
    font-size: 16px;
}

.results .listing-header-block.with-background {
    background-position: center top;
    background-color: #0000002b;
    background-repeat: no-repeat;
}

.results .listing-header-block .content {
    padding: 48px 24px;
}

.results .listing-header-block.with-background .content {
    background-image: -webkit-gradient(linear,left top,left bottom,color-stop(10%,transparent),color-stop(50%,transparent),to(#000));
    background-image: -o-linear-gradient(linear,left top,left bottom,color-stop(10%,transparent),color-stop(50%,transparent),to(#000));
    background-image: linear-gradient(linear,left top,left bottom,color-stop(10%,transparent),color-stop(50%,transparent),to(#000));
}



.results .results-params {
    font-style: italic;
    background-image: url(/images/icons/arrow-black-down.svg);
    background-repeat: no-repeat;
    background-position: right 1px bottom 5px;
    padding-right: 18px;
    background-size: 10px;
    cursor: pointer;
}

.results .results-total {
    color: #6b6b6b;
    margin: 4px 0 0;
}

.results .results-options {
    margin: 2% 0;
    display: flex;
    height: 49px;
}

.results .results-options .options-show {
    background-color: #FFF;
    width: 100%;
}

.results .results-options .options-show {
    display: flex;
    align-items: center;
}

.results .results-options .options-show .toolbar-filter {
    display: none;
    padding: 24px;
    background-image: url(/images/icons/filter.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.results .results-options .options-show .options-operation {
    display: flex;
    padding: 0 16px;
    width: 100%;
}


.results .options-show .options-operation a {
    padding-right: 14px;
    color: #a5a3a5;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.results .options-show .options-operation a.active,
.results .options-show .options-operation a:hover {
    color: #1b1b1b;
}

.results .options-show .options-operation a.active {
    cursor: default;
    text-decoration: none;
}


.results .results-options .results-views {
    display: flex;
}

.results .results-options .results-views a {
    color: #a5a3a5;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    background-color: #FFF;
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 20px;
    line-height: 49px;
    height: 49px;
    text-indent: 38px;
    margin-left: 3px;
    padding-top: 2px;
    padding-right: 8px;
    min-width: 40px;
}

.results .results-options .results-views .options-tableview {
    background-image: url(/images/icons/squares.svg);
}

.results .results-options .results-views .options-tableview.active {
    background-image: url(/images/icons/squares-w.svg);
}

.results .results-options .results-views .options-listview {
    background-image: url(/images/icons/list.svg);
}

.results .results-options .results-views .options-listview.active {
    background-image: url(/images/icons/list-w.svg);
}

.results .results-options .results-views .options-tableview.active,
.results .results-options .results-views .options-listview.active {
    background-color: #1b1b1b;
    cursor: default;
    text-decoration: none;
    color: #FFF;
}




/* MAIN SEARCH */

.results .search-block {
    display: flex;
    align-items: center;
    justify-content: center;
}

.results .search-results-container {
    margin-left: 16px;
}

.results .main-search {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    margin: 0 auto;
    background-color: white;
    border-radius: 16px;
    padding: 8px;
}

.results .main-search input {
    border: none;
    margin-left: 4px;
    background-color: white;
}

.results .main-search input:focus {
    outline: none;
}


/* SORT OPTIONS */

.results .search-block .options-sort {
    display: flex;
    align-items: center;
    margin-left: 8px;
    position: relative;
}

.results .search-block .options-sort .sortby {
    background-image: url(/images/icons/sort.svg);
    background-repeat: no-repeat;
    background-position: center center;
    display: inline-block;
    text-indent: -9999px;
    background-size: 21px;
    margin: 0;
    padding: 0;
    border-left: 3px solid #f1f1f1;
    width: 50px;
    height: 34px;
}

.results .search-block .options-sort .sortoptions {
    position: absolute;
    background-color: #fff;
    top: 40px;
    right: 0;
    padding: 0;
    margin: 0;
    z-index: 2;
    width: 220px;
}

.sortoptions:not(.active) {
    display: none;
}

.results .search-block .sortoptions a {
    display: block;
    text-align: left;
    width: 100%;
    margin: 0;
    padding: 16px 0 12px 0;
    text-indent: 14px;
    max-width: none !important;
    border-bottom: 1px solid #f1f1f1;
}


/* LIST HEADER FILTER */
.list-header-filter {
    height: 54px;
    width: 100%;
    display: flex;
    position: relative;
    padding: 10px 0;
    box-sizing: border-box;
    margin: 0 auto;
}

.list-header-filter .btn-right {
    position: absolute;
    right: 0;
}

.list-header-filter .btn-left,
.list-header-filter .btn-right {
    height: 34px;
    z-index: 10;
}

.list-header-filter .buttons-container {
    position: relative;
    width: 100%;
    display: flex;
}

.list-header-filter .buttons-inner {
    display: flex;
    left: 40px;
    right: 46px;
    scroll-behavior: smooth;
}

.list-header-filter .filter-item {
    text-transform: initial;
    display: inline-flex;
    height: 34px;
    color: #151515;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-style: normal;
    border-radius: 100px;
    font-weight: 300;
    font-size: 12px;
    line-height: 22px;
    padding: 5px 24px;
    margin-left: 0;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    background: none;
}

.list-header-filter .filter-item:not(.btn-left):not(.btn-right):not(.active) {
    border: 1px solid #e0e0e0;
    background-color: #fff;
    background: #f5f5f5;
}

.list-header-filter .btn-left.filter-item,
.list-header-filter .btn-right.filter-item {
    padding: 5px 14px;
}

.list-header-filter .filter-item:hover {
    background-color: #f1f1f1;
    text-decoration: none;
}

.list-header-filter .filter-item:not(:last-child) {
    margin-right: 8px;
}

.list-header-filter .filter-item.active {
    color: #272727;
    border: 2px solid #272727;
    font-weight: 600;
    border: 1px solid #272727;
    font-weight: 400;
}

.list-header-filter .filter-item span + img {
    margin-left: 4px;
}

.list-header-filter .filter-item img {
    display: block;
    width: 14px;
    height: 14px;
}


#price-filter-container:not(.active) {
    display: none;
}

#price-filter-container {
    position: absolute;
    top: 50px;
    left: 0px;
    width: 400px;
    max-width: 100%;
    padding: 24px;
    background: white;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05), 0 1px 5px rgba(0,0,0,0.1);
}

#price-filter-container .inputs-container {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
}

#price-filter-container .inputs-container input {
    width: 40%;
}

#price-filter-container .inputs-container button {
    height: 36px;
}

#price-filter-container .ui-slider {
    border: 1px solid #1b1b1b;
    height: 0.3em;
    background: #1b1b1b;
    margin-bottom: 36px;
}

#price-filter-container .ui-slider .ui-slider-range {
    background: #1b1b1b;
}

#price-filter-container .ui-slider .ui-slider-handle {
    top: -0.6em;
    width: 1.4em;
    height: 1.4em;
    border: 3px solid #1b1b1b;
    background: white;
    border-radius: 50%;
    color: #1b1b1b;
}


#property-type-filter-container:not(.active),
#room-filter-container:not(.active),
#style-filter-container:not(.active),
#status-filter-container:not(.active) {
    display: none;
}

#room-filter-container,
#property-type-filter-container,
#style-filter-container,
#status-filter-container {
    position: absolute;
    top: 50px;
    left: 0px;
    max-width: 100%;
    padding: 24px;
    background: white;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05), 0 1px 5px rgba(0,0,0,0.1);
}

#room-filter-container .inputs-container {
    display: flex;
    margin-bottom: 12px;
}

#room-filter-container .inputs-container button {
    min-width: 60px;
    margin: 0 0 0 auto;
}

#room-filter-container .inputs-container button.active {
    background-color: #1b1b1b;
    color: #FFF;
}

#property-type-filter-container .inputs-container {
    display: flex;
    flex-direction: column;
}

#property-type-filter-container .inputs-container .subitems {
    padding-left: 24px;
}


#property-type-filter-container .inputs-container .subitems:not(.active) {
    display: none;
}
