﻿
/*
[----------------------------------]
[--------- PROPERTY LIST FILTER ---]
[----------------------------------]
*/

.property-list-filter {
    width: 300px;
    min-width: 300px;
}

.filter {
    padding: 20px;
    background-color: #FFF;
    z-index: 10;
    overflow-y: auto;
}

.close-toolbar {
    background-color: #1b1b1b;
    color: #FFF;
    margin: 0 -20px;
    padding: 14px;
    display: none;
    height: 50px;
}

.close-toolbar a {
    font-size: 18px;
    float: right;
    color: #FFF;
}

.filter p {
    font-style: italic;
    margin-bottom: 8px;
}

.filter p.section {
    line-height: 16px;
    margin-bottom: 0;
    margin-top: 24px;
}

.filter .filterblock.operation-type a {
    width: 100%;
    display: flex;
    box-sizing: border-box;
    border: 1px solid #1b1b1b;
    border-radius: 4px;
    padding: .5rem;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 14px;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    font-weight: 700;
    appearance: none;
    -webkit-appearance: none;
    height: 2.5rem;
    line-height: inherit;
    text-align: center;
}

.filter .filterblock a:first-child {
    margin-right: 4%;
}

.filter .filterblock.operation-type a.active {
    background-color: #1b1b1b;
    color: white;
}


.filter input[type="number"], .filter input[type="text"] {
    border: 1px solid #1b1b1b;
    height: 32px;
    width: 100%;
    text-indent: 8px;
    outline: none;
    vertical-align: middle;
}



.filter .filterblock:not(:first-child) {
    margin-top: 16px;
}

.filter .filter-select {
    border: 1px solid #1b1b1b;
    border-radius: 4px;
    height: 36px;
    padding: 0px 8px;
    line-height: 36px;
    background-image: url(/images/icons/arrow-black-down.svg);
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
    cursor: pointer;
    position: relative;
}

.filter .filter-select.min.active,
.filter .filter-select.max.active {
    border: 0;
}

.filter .filter-select span.label {
    display: inline-block;
    max-width: 80%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.filter .filter-select.property-type-filter {
    margin-bottom: 12px;
}

.filter .filter-select:hover,
.filter .filter-numbers span:hover {
    background-color: #f1f1f1;
}

p.collapsible {
    cursor: pointer;
}

.filter .filter-numbers.hidden,
.filter .filter-minmax.hidden {
    display: none;
}

.filter .filter-select .selected {
    float: right;
    font-style: italic;
}

.filter .filter-minmax {
    display: flex;
    justify-content: space-between;
}

.filter .filter-minmax .filter-select {
    width: 50%;
}

.filter .filter-minmax .filter-select:first-child {
    margin-right: 4%;
}

.filter .filter-select.active .advsel {
    display: block;
}

.advsel-container {
    position: relative;
    margin: 0 -9px;
}

.advsel {
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    z-index: 9;
    display: none;
    width: 100%;
    background-color: #FFFFFF;
    border: 1px solid #1b1b1b;
    border-radius: 4px;
    padding: 2px;
}

.advsel ul {
    margin: 0;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.advsel ul li {
    list-style-type: none;
    background-color: #FFFFFF;
    padding-left: 8px;
}

.advsel ul li:hover {
    background-color: #f1f1f1;
}


.filter .filter-select input {
    display: none;
    position: absolute;
    height: 36px;
    border-radius: 4px;
    left: 0;
    top: 0;
}

.filter .filter-select.active input {
    display: block;
    border:2px solid #1b1b1b;
}


.advsel .advsel-input button[type="button"] {
    width: 100%;
}

.filter .filter-numbers {
    display: flex;
    flex-direction: row;
}

.filter .filter-numbers span {
    border: 1px solid #1b1b1b;
    border-radius: 4px;
    height: 32px;
    margin-bottom: 10px;
    line-height: 32px;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    padding: 0px 16px;
    margin-right: 12px;
}

.filter .filter-numbers span.active {
    background-color: #1b1b1b;
    color: #FFF;
}

.filter .filter-checks {
    margin-bottom: 24px;
}

.filter .filter-checks.highlighted {
    border-top: 2px solid rgb(192,0,0);
    margin-top: 24px
}


.filter .filter-checks span {
    display: block;
    margin-bottom: 6px;
    padding-left: 20px;
    background-image: url(/images/icons/checkbox.svg);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 15px;
    cursor: pointer;
}

.filter .filter-check.checked span {
    background-image: url(/images/icons/checkbox-checked.svg);
}

.filter .filter-check.disabled span {
    background-image: url(/images/icons/checkbox-disabled.svg);
    opacity: 0.4;
    text-decoration: line-through;
}

.filter .filter-checks span.checked {
    color: inherit;
}

.filter .filter-checks .subitems {
    margin-left: 12px;
}

.filter .filter-checks .subitems.checked .subitems {
    display: block !important;
}

.filter .filter-checks .subitems:not(.checked) {
    display: none;
}

.filter .filter-check.begin-group {
    padding-top: 12px;
    margin-top: 12px;
    border-top: 2px solid red;
}


.filter .clear-filter {
    display: block;
    text-align: center;
}

.filter .filter-buttons .submit-filter {
    display: none;
}
