/* FILTER SEARCH */

.black-overlay {
    visibility: hidden;
    opacity: 0;
    -webkit-transition: all 0.2s;
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99998;
}

#filter-box {
    position: fixed;
    top: 96px;
    left: 0;
    width: 100%;
    height: 55px;
    z-index: 8;
    background-color: #fff;
    /* box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 5px 0px; */
    /* box-shadow: 0 0 20px rgba(89, 102, 122, 0.1); */
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    transition: 0.5s;
}
body.scroll-down #filter-box {
    z-index: 8;
    top: -200px;
}

#filter-box .filter-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    overflow: auto;
}

#filter-box .filter-list {
    min-width: var(--main-width);
    height: 100%;
    margin: 0 auto;
    padding: 10px 0;
    display: flex;
    align-items: center;
}
#filter-box .filter-item {
    width: auto;
    height: 35px;
    white-space: nowrap;
    background-color: #fff;
    border: 1px solid #bababa;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
    padding: 0 10px;
    color: #555;
    cursor: pointer;
    font-size: 0.9rem;
}

#filter-box .filter-item:hover {
    color: var(--black-color);
    border-color: var(--black-color);
}

#filter-box .filter-item.active {
    font-weight: bold;
    color: var(--tch-main-color);
    border-color: var(--tch-main-color);
    box-shadow: 0 0 0 1px var(--tch-main-color);
}
#filter-box .filter-item .filter-text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}
#filter-box .filter-item svg {
    width: 14px;
    height: 14px;
    margin-right: 7px;
}

#filter-box .filter-item.clear-filter {
    border-color: #fff;
}

.filter__popup {
    display: none;
    /* transform: translateY(200%); */
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 70px;
    /* z-index: 1000; */
    z-index: 99999;
    background-color: #fff;
    overflow: hidden;
    width: 650px;
    max-height: 700px;
    margin: 0 auto;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: 0.5s;
}

body.show-filter-popup,
body.show-filter-popup .black-overlay {
    visibility: visible !important;
    opacity: 1 !important;
    overflow: hidden;
}

body.filter__popup {
    position: static;
    width: auto;
    overflow: auto;
}

.filter__popup.show {
    display: block;
}

.filter__popup .header {
    height: 50px;
    text-transform: uppercase;
    font-weight: bold;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #ddd;
    padding: 0 40px;
    box-shadow: rgb(88 102 126 / 8%) 0px 0px 30px, rgb(88 102 126 / 12%) 0px 1px 2px;
}
.filter__popup .header .header-label {
    font-size: 1.1rem;
    font-weight: 600;
}
.filter__popup .header .popup-close {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 40px;
    height: 40px;
    background: url(../images/i-arrow-down.svg) center no-repeat;
    background-size: 30px;
    text-indent: -999999px;
    cursor: pointer;
    transform: rotate(90deg);
}

.filter__popup .header .popup-close:hover {
    background-color: #f1f1f1;
    border-radius: 12px;
}

.filter__popup .body {
    width: 100%;
    height: calc(100% - 50px);
    padding: 25px 40px;
}

.filter__popup.filter-popup-city .body {
    height: calc(100% - 50px) !important;
    overflow: hidden !important;
}

.filter__popup.has-footer .body {
    height: calc(100% - 50px - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 50px;
}

.filter__popup.has-footer .body::-webkit-scrollbar {
    width: 10px;
}

.filter__popup.has-footer .body::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.filter__popup.has-footer .body::-webkit-scrollbar-thumb {
    background: #bababa;
}

.filter__popup.has-footer .body::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.filter__popup .filter-search-key {
    width: 100%;
    margin-bottom: 10px;
}

.filter__popup .filter-search-key input.search-key-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #aaa;
    background: #fff;
    border-radius: 5px;
    font-size: 1.2rem;
}

.filter__popup .filter-search-key input.search-key-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 1px #007bff;
    background-color: #fff;
}

.filter__popup .list-options {
    height: calc(100% - 50px);
    overflow: auto;
    max-height: 100%;
    margin-left: -40px;
    margin-right: -40px;
    padding: 10px 40px;
}

.filter__popup .list-options::-webkit-scrollbar {
    width: 9px;
}

.filter__popup .list-options::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.filter__popup .list-options::-webkit-scrollbar-thumb {
    background: #bababa;
}

.filter__popup .list-options::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.filter__popup .list-options ul>li {
    padding: 10px 10px 10px 25px;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    position: relative;
    cursor: pointer;
}

.filter__popup .list-options ul>li:last-of-type {
    border-bottom: 0;
}

.filter__popup .list-options ul>li:hover {
    color: var(--tch-main-color);
}

.filter__popup .list-options ul>li.selected {
    color: var(--tch-main-color);
}

.filter__popup .list-options ul>li:before {
    background: url(../images/i-checkbox.svg) center no-repeat;
    background-size: contain;
    width: 15px;
    height: 15px;
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -8px;
    display: block;
    content: "";
    opacity: .45;
}

.filter__popup .list-options ul>li.selected:before {
    background: url(../images/i-checkbox-checked.svg) center no-repeat;
    background-size: contain;
    opacity: 1;
}

.filter__popup .list-options ul>li:after {
    background: url(../images/i-arrow-down-blue.svg) center no-repeat;
    background-size: contain;
    transform: rotate(270deg);
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    right: 0;
    margin-top: -10px;
    display: block;
    content: "";
}

.filter__popup .list-options.district ul>li:after {
    display: none;
}

.filter__popup .footer {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, .1);
}

.filter__popup .filter-btn-submit {
    width: auto;
    height: 45px;
    border: 1px solid var(--red-color);
    background-color: var(--red-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    border-radius: 10px;
    padding: 0 20px;
    margin-left: 10px;
}

.filter__popup .filter-btn-cancel {
    width: auto;
    height: 45px;
    background-color: #fff;
    border: 1px solid;
    color: #3d3b40;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    border-radius: 10px;
    padding: 0 20px;
}

.filter__popup .filter-btn-reset {
    cursor: pointer;
}

.filter__popup .filter-option-checkbox {
    display: flex;
    flex-wrap: wrap;
}

.filter__popup .filter-option-checkbox>li {
    width: 33%;
    margin-right: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 0;
}
.filter__popup .filter-option-checkbox>li .icon {
    margin-right: 10px;
    opacity: .3;
}

.filter__popup .filter-option-checkbox>li.active,
.filter__popup .filter-option-checkbox>li.selected {
    color: var(--tch-main-color2);
    font-weight: bold;
}

.filter__popup .filter-option-checkbox>li.active .icon.checkbox,
.filter__popup .filter-option-checkbox>li.selected .icon.checkbox {
    background: url(../images/i-checkbox-checked.svg) center no-repeat;
    background-size: contain;
    opacity: 1;
}

.filter__popup .vue-slider-process {
    background-color: var(--tch-main-color2);
}

.filter__popup .vue-slider-dot {
    width: 20px !important;
    height: 20px !important;
}

.filter__popup .vue-slider-dot-handle {
    background-color: var(--tch-main-color2);
    box-shadow: none;
}

.filter__popup .vue-slider-dot-tooltip-inner {
    background-color: var(--tch-main-color2);
    border-color: var(--tch-main-color2);
}
.filter__popup .vue-slider-marks .vue-slider-mark:first-child {
    left: 0;
    right: initial;
}
.filter__popup .vue-slider-marks .vue-slider-mark:last-child .vue-slider-mark-label {
    left: initial;
    right: 0;
    transform: translateX(0);
}
.filter__popup .filter-block {
    margin-top: 10px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #dddee5;
}

.filter__popup .filter-block:last-of-type {
    margin-bottom: 0;
    border-bottom: 0;
}

.filter__popup .filter-block-title {
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.filter__popup .filter-block .select2-container {
    width: 100% !important;
}
.filter__popup .v-select .vs__selected-options {
    align-items: center;
}
.filter__popup .v-select .vs__selected-options input[type=search],
.filter__popup .v-select .vs__selected-options input[type=search]:focus {
    margin: 0;
    font-size: 1.1rem;
}
.filter__popup .v-select.single .selected-tag {
    margin: 0 5px;
    padding: 5px 10px;
    background-color: var(--tch-main-color2);
    color: #fff;
    font-size: 1.1rem;
    border-radius: 10px;
}
.filter__popup .v-select .dropdown-toggle {
    height: 50px;
    border: 1px solid #959199;
    padding: 0;
    border-radius: 15px;
}
.filter__popup .v-select.dropdown .dropdown-menu {
    font-size: 1.1rem;
    padding: 10px 0 30px;
    margin: 0;
    border-top: 1px solid;
}
.filter__popup .v-select.dropdown .dropdown-menu>li {
    font-size: 1.1rem;
    padding: 0;
    margin: 0;
}
.filter__popup .v-select.dropdown .dropdown-menu>li>a {
    display: block;
    padding: 7px 20px;
}
.filter__popup .v-select .open-indicator {
    width: 15px;
}
.filter__popup .v-select .open-indicator:before {
    width: 9px;
    height: 9px;
    border-width: 2px 2px 0 0;
    border-color: var(--tch-main-color2);
}
.filter__popup .v-select .dropdown-toggle .clear {
    font-size: 20px;
    font-weight: normal;
    margin-right: 10px;
    color: red;
}
/* END FILTER SEARCH */


.ui-draggable,
.ui-droppable {
    background-position: top;
}

.ui-slider .ui-slider-handle {
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
}

.ui-slider-horizontal .ui-slider-handle {
    top: -0.6em;
    margin-left: -1em;
}

.bds-ranger .custom-list-ranger li {
    padding: 5px 15px;
    background-color: #fff;
    border-radius: 5px;
    margin: 5px;
    display: inline-block;
    border: 1px solid #e5e3e8;
    cursor: pointer;
}

.bds-ranger .custom-list-ranger li:hover,
.bds-ranger .custom-list-ranger li.selected {
    border-color: #007bff;
    box-shadow: 0 0 0 1px #007bff;
}

.bds-ranger .vue-slider {
    height: 3px !important;
}

.bds-ranger .vue-slider-rail {
    background-color: #eee;
}
.filter__popup.dashboard__popup__post__filter {
    top: 50px;
    bottom: 50px;
}
