.flex {
    display: flex;
    justify-content: space-between;
}

.sale-page section {
    margin-top: 50px;
    position: relative;
}
.sidebar {
    width: 269px;
    background-color: #1a1a1a;
    color: #fff;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    float: left;
}

.sidebar .search {
    margin-bottom: 20px;
    color: #fff;
    height: 30px;
    font-size: 14px;
    line-height: 24px;
    background: none;
    border: 0;
    padding: 0;
    padding-bottom: 10px;
    border-radius: 0;
    border-bottom: 1px solid #F1F3F533;
}

.sidebar .reference {
    position: relative;
    margin-right: 13px;
}

.sidebar .reference:after{
    content:"";
    display: block;
    width: 20px;
    height: 20px;
    background-image: url(../index.html);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    right: 0;
    top: 0;
}

.sidebar .filter-list {
    max-height: 436px;
    overflow-y: scroll;
    overflow-x: hidden;
    padding-right: 10px;
}

.sidebar .filter-list .name {
    padding: 11px 24px;
    margin-bottom: 16px;
    color: #fff;
    text-align: left;
    background: none;
    border: 1px solid #4A50569E;
    font-size: 14px;
    line-height: 24px;
    border-radius: 100px;
    width: 100%;
    display: block;
    cursor: pointer;
}

.sidebar .filter-list .options {
    display: none;
    margin-top: -4px;
}

.sidebar .alert {
    background: #fff;
    border: 1px solid #4A505633;
    height: 40px;
    font-size: 14px;
    line-height: 24px;
    color: #4A5056;
    border-radius: 0;
    width: 100%;
    display: block;
    margin-top: 10px;
    position: relative;
    padding-left: 20px;
}

.sidebar .alert:after{
    content:"";
    display: block;
    width: 20px;
    height: 20px;
    background-image: url(../index.html);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    left: 23px;
    top: 9px;
}

.form-group {
    display: block;
    margin-bottom: 15px;
    padding-left: 22px;
}

.form-group input[type="checkbox"] {
    padding: 0;
    height: initial;
    width: initial;
    margin-bottom: 0;
    display: none;
    cursor: pointer;
}

.form-group label {
    position: relative;
    cursor: pointer;
    display: block;
    line-height: 26px;
    padding-left: 40px;
}

.form-group label:before {
    content:'';
    -webkit-appearance: none;
    background-color: transparent;
    border: 1px solid #F1F3F5;
    display: inline-block;
    position: absolute;
    vertical-align: middle;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    opacity: 0.4;
    left: 0;
}

.form-group input:checked + label:before {
    background: #F1F3F5;
    opacity: 1;
}

.form-group input:checked + label:after {
    content: '';
    display: block;
    position: absolute;
    top: 4px;
    left: 10px;
    width: 5px;
    height: 13px;
    border: solid #4A5056;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
}

.sidebar .slider-wrapper {
    position: relative;
    height: 100px;
    margin-left: 30px;
    margin-right: 7px;
}
.sidebar .tooltip {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: #222529;
    padding: 0 10px;
    border-radius: 2px;
    display: none;
    font-size: 14px;
    line-height: 24px;
    width: 85px;
}

.sidebar ::-webkit-scrollbar {
    display: block;
    width: 3px;
}
.sidebar ::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}
    
.sidebar ::-webkit-scrollbar-thumb {
    background-color: #F1F3F5;
    border-right: none;
    border-left: none;
    border-radius: 10px;
}

.sidebar ::-webkit-scrollbar-track-piece:end {
    background: #4A505666;
    margin-bottom: 100px; 
}

.sidebar ::-webkit-scrollbar-track-piece:start {
    background: #4A505666;
}

.sidebar .filter-item {
    position: relative;
}

.sidebar .filter-item::before {
    content: '';
    position: absolute;
    top: 23px;
    right: 27px;
    width: 13px;
    height: 1px;
    background-color: #F1F3F5;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
    -webkit-transform: scaleY(1);
    -ms-transform: scaleY(1);
    transform: scaleY(1);
    cursor: pointer;
    border-radius: 12px;
}

.sidebar .filter-item::after {
    content: '';
    position: absolute;
    top: 23px;
    right: 27px;
    width: 13px;
    height: 1px;
    background-color: #F1F3F5;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
    cursor: pointer;
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
    border-radius: 12px;
}

.sidebar .filter-item.active::before {
    -webkit-transform: scaleY(0);
    -ms-transform: scaleY(0);
    transform: scaleY(0);
}

.sidebar .filter-item.active::after {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
}

.contents .section-contents {
    position: relative;
}

.contents .listing-cards {
  /*
    width: calc(100% - 269px);
    padding-left: 104px;
  */
    margin-bottom: 0;
}

.contents .load-more {
    display: flex;
    justify-content: center;
    margin: 102px auto 0 auto;
}

.contents .load-more button {
    padding: 10px 20px;
    border: none;
    background-color: #333;
    color: #fff;
    cursor: pointer;
}

.container-full-width {
    width: 100%;
}

.contents .btn-loadmore {
    display: block;
    margin: auto;
    width: fit-content;
    cursor: pointer;
    text-decoration: none;
}

.contents .listing-cards .card-item {
    /* display: none; */ 
}

.contents .listing-cards .card-item.active {
    display: block;
}

.contents .listing-cards .card-item:nth-child(odd) {
    margin-left: 0;
}

.contents .listing-cards .card-item {
    width: calc(50% - 10px);
}

.contents .listing-cards .card-item:nth-child(even) {
    margin-right: 0;
}

.sidebar .ui-widget.ui-widget-content {
    height: 1px;
    border: 0;
    background: #4A505666;
    overflow: visible;
}

.sidebar .ui-slider .ui-slider-range {
    background-color: #F1F3F5;
}

.sidebar .ui-slider .ui-slider-handle {
    border-radius: 50%;
    top: -7px;
    width: 15px;
    height: 15px;
    border: 0;
}

.sidebar .ui-slider .ui-slider-handle.ui-state-active {
    background-color: #F1F3F5;
}

.sidebar .max-price {
    display: block;
    text-align: right;
    margin-bottom: 10px;
}

.sidebar-toggle {
    display: none;
    border-radius: 100px;
    padding: 12px 32px;
    height: 48px;
    position: relative;
    background-color: #191B1C;
    color: #F1F3F5;
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 40px;
}

.sidebar-toggle:after{
    content:"";
    display: block;
    width: 20px;
    height: 20px;
    background-image: url(../index.html);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    right: 32px;
    top: 14px;
}

section.overlay .listing-cards{
    opacity: 0.2;
    pointer-events: none;
}

.filter-item .option-group {
    margin-bottom: 14px;
}

.contents .swiper-slide {
    position: relative;
    height:0;
    overflow: hidden;
    padding-bottom: 56.37%;
}

.contents .swiper-slide img {
    position: absolute;
    object-fit: cover;
    min-height: 100%;
    min-width: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 1399px) and (min-width: 992px){
    .card-price.has-unit {
        line-height: 1.4;
    }

    .card-price.has-unit span {
        display: block;
    }
}

@media (max-width: 499px) {
    .card-price.has-unit {
        line-height: 1.4;
    }

    .card-price.has-unit span {
        display: block;
    }
}

@media (max-width: 1440px) and (min-width: 768px) {
    .contents .listing-cards {
        padding-left: 39.6px;
    }

    .sidebar .search {
        margin-bottom: 24px;
    }

    .sidebar .alert {
        margin-top: 8px;
    }

    .contents .load-more {
        margin-top: 61px;
    }

    .contents .load-more {
        width: calc(100% - 311px);
    }
}

@media (max-width: 1440px) {
    .sidebar .reference {
        margin-right: 0;
    }
}

@media (max-width: 991px) {
    .contents .listing-cards .card-item {
        width: 100%;
        margin-right: 0;
    }
}

@media (max-width: 767px) {
    .sidebar .slider-wrapper {
        margin-right: 1px;
    }

    .sidebar {
        float: none;
        position: absolute;
        z-index: 2;
        top: 70px;
        display: none;
        width: auto;
        left: 36px;
        right: 36px;
    }

    .contents .listing-cards {
        padding-left: 0;
        width: 100%;
    }

    .contents .load-more {
        margin-top: 61px;
    }

    .sidebar-toggle {
        display: block;
    }

    .sale-page section {
        margin-top: 80px;
    }

    .contents .listing-cards .card-item {
        width: 100%;
    }

    .sale-page section.contents {
        margin-top: 79px;
    }

    .contents .load-more {
        width: 100%;
    }

    .contents .swiper-slide {
        padding-bottom: 58.11%;
    }
}
