/* VPS Filter Styles */
.vps-filter {
    width: 100%;
    color: #000C2A;
}

.filter__inner {
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    border-radius: 16px;
    min-height: 850px;
}

.filter_side {
    flex: 0 0 300px;
    padding: 24px 0 24px 0px;
    border-right: 1px solid #E6E6E6;
}

.filter_side-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    position: sticky;
    top: 50px;
    z-index: 2;
    padding-right: 16px;
    padding-left: 24px;
    background-color: #fff;
}

.filter_side-header-title h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.filter-clear-button {
    background: none;
    color: #568DFC;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.filter_side-fields {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 94px;
    z-index: 1;
    padding-right: 16px;
    padding-left: 24px;
    overflow-y: auto;
}

.filter_side-fields::-webkit-scrollbar {
    width: 4px;
}

.filter_side-fields::-webkit-scrollbar-track {
    background: transparent;
}

.filter_side-fields::-webkit-scrollbar-thumb {}

.filter_side-fields::-webkit-scrollbar-thumb:hover {
    background-color: #777;
}

.filter_side-fields::-webkit-scrollbar-button {
    display: none;
}

.filter_side-fields::-webkit-scrollbar-corner {
    background: transparent;
}

.vps-filter-field {

}

.vps-filter-field-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 12px 0;
    border-bottom: 1px solid #000C2A1A;
    transition: opacity 0.2s;
}

.vps-filter-field-label:hover {
    opacity: 0.8;
}

.vps-filter-field-label label {
    font-weight: 600;
    font-size: 17px;
    color: #333;
    margin: 0;
    flex: 1;
}

.vps-filter-field:not(.vps-filter-field-collapsed) .vps-filter-field-label label {
    color: #0169FF;
}

.vps-filter-field-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: url('../imgs/chevron-active.svg') no-repeat center center;
    background-size: unset;
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.vps-filter-field-chevron .vps-filter-chevron-icon {
    width: 14px;
    height: 8px;
    display: block;
    
    
    transition: transform 0.3s ease;
}

.vps-filter-field.vps-filter-field-collapsed .vps-filter-field-chevron {
    background: url('../imgs/chevron.svg') no-repeat center center;
    transform: rotate(0deg);
}

.vps-filter-field-content {
    overflow-y: auto;
    overflow-x: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 178px;
    opacity: 1;
    scrollbar-width: thin;
    scrollbar-color: #999 transparent;
}

.vps-filter-field-content-range {
    overflow: visible;
}

.vps-filter-field.vps-filter-field-collapsed .vps-filter-field-wrapper {
    border-bottom: none;
    padding: 0;
    margin: 0;
}

.vps-filter-field.vps-filter-field-collapsed .vps-filter-field-content {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.vps-filter-field-content::-webkit-scrollbar {
    width: 4px;
}

.vps-filter-field-content::-webkit-scrollbar-track {
    background: transparent;
}

.vps-filter-field-content::-webkit-scrollbar-thumb {
    background-color: #999;
    border-radius: 2px;
}

.vps-filter-field-content::-webkit-scrollbar-thumb:hover {
    background-color: #777;
}

.vps-filter-field-content::-webkit-scrollbar-button {
    display: none;
}

.vps-filter-field-wrapper {
    padding: 8px 0;
    border-bottom: 1px solid #000C2A1A;
    transition: padding 0.3s ease, border-bottom 0.3s ease;
}

.vps-filter-field-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vps-filter-checkbox-item {
    
}

.vps-filter-checkbox-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.vps-filter-checkbox-label {
    font-size: 17px;
    color: #081B4B;
    user-select: none;
    line-height: 1.5;
}

.vps-filter-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.vps-filter-checkbox-item .custom-checkbox {
    width: 24px;
    height: 24px;
    background: url('../imgs/option.svg') no-repeat center center;
}

.vps-filter-checkbox-item input[type="checkbox"]:checked + .custom-checkbox {
    background-image: url('../imgs/option-active.svg');
}

.vps-filter-range-wrapper {
    padding: 10px 0;
}

.vps-filter-range-value {
    margin-bottom: 10px;
    font-size: 14px;
    color: #4D5B7C;
}

.vps-filter-range-display {
    
}

.vps-filter-range-slider {
    width: 100%;
    height: 6px;
    margin: 15px 0;
    position: relative;
    background-color: #ECEDF0;
    border: none!important;
}

.vps-filter-range-slider .ui-slider-handle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #267FFF;
    cursor: pointer;
    top: -7px;
    margin-left: -10px;
    transition: background 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.vps-filter-range-slider .ui-slider-handle:hover,
.vps-filter-range-slider .ui-slider-handle:focus {
    background: #005a87;
    outline: none;
}

.vps-filter-range-slider .ui-slider-handle.ui-state-active {
    background: #005a87;
}

.vps-filter-range-slider .ui-slider-range {
    background: #0169FF;
    height: 6px;
    border-radius: 3px;
}

.vps-filter-range-slider .ui-slider-track {
    background: #e0e0e0;
    height: 6px;
    border-radius: 3px;
    border: none;
}

.vps-filter-range-value-input {
    display: none;
}

.filter__result {
    flex: 1;
    min-width: 300px;
}

.filter__result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 24px 16px 15px 24px;
    border-bottom: 1px solid #ddd;
    gap: 16px;
}

.filter__result-orders {
    display: flex;
    gap: 16px;
    align-items: center;
}

.vps-filter-order-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vps-filter-order-label {
    font-weight: 500;
    white-space: nowrap;
}

.vps-filter-custom-select {
    position: relative;
    min-width: 140px;
}

.vps-filter-custom-select-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #F9FAFE;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.vps-filter-custom-select-selected:hover {
    background: #E0E1E4;
}

.vps-filter-custom-select-active .vps-filter-custom-select-selected {
    background: #E0E1E4;
}

.vps-filter-custom-select-text {
    color: #081B4B;
    flex: 1;
}

.vps-filter-custom-select-arrow {
    display: flex;
    align-items: center;
    margin-left: 8px;
    transition: transform 0.2s;
}

.vps-filter-custom-select-active .vps-filter-custom-select-arrow {
    transform: rotate(180deg);
}

.vps-filter-custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #E0E1E4;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.vps-filter-custom-select-active .vps-filter-custom-select-options {
    display: block;
}

.vps-filter-custom-select-option {
    padding: 10px 12px;
    font-size: 14px;
    color: #4D5B7C;
    cursor: pointer;
    transition: background 0.2s;
}

.vps-filter-custom-select-option:hover {
    background: #F5F5F7;
}

.vps-filter-custom-select-option:first-child {
    border-radius: 8px 8px 0 0;
}

.vps-filter-custom-select-option:last-child {
    border-radius: 0 0 8px 8px;
}

.vps-filter-order-input {
    display: none;
}

.filter__result-selected {
    font-size: 14px;
    color: #666;
    overflow: hidden;
}

.vps-filter-selected-filters {
    display: flex;
    gap: 8px;
}

.filter__item-selected {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 6px;
    font-size: 14px;
    color: #4D5B7C;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
    flex-shrink: 0;
}

.filter__item-selected:hover {
    background: #e0e0e0;
}

.filter__item-selected .close {
    position: relative;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.filter__item-selected .close::before,
.filter__item-selected .close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1.5px;
    background: #666;
    transform-origin: center;
}

.filter__item-selected .close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.filter__item-selected .close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.filter__item-selected:hover .close::before,
.filter__item-selected:hover .close::after {
    background: #333;
}

.vps-filter-count {
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 600;
    padding-left: 16px;
}

.vps-filter-count-number {
    font-weight: 600;
    color: #333;
}

.vps-filter-posts {
    position: relative;
}

.vps-filter-posts-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.vps-filter-posts-content {
    transition: opacity 0.3s;
}

.vps-filter-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 16px;
}

.vps-filter-posts-list .vps-filter-post-item:last-child {
    margin-bottom: 30px;
}

.vps-filter-post-item {
    position: relative;
    background: #F9FAFE;
    border: 1px solid #E2E3EA;
    border-radius: 20px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    padding: 24px;
}

.vps-filter-post-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vps-filter-post-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.vps-filter-post-thumbnail {
    width: 214px;
    height: 40px;
    overflow: hidden;
    background: #fff;
}

.vps-filter-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vps-filter-post-header {
    display: flex;
    justify-content: space-between;
}

.vps-filter-post-header-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vps-filter-post-header-main .groups {
    display: flex;
    gap: 32px;
    align-items: center;
}

.vps-filter-post-header-actions {
    display: flex;
    gap: 16px;
    padding-bottom: 90px;
}

.vps-filter-post-position {
    font-size: 24px;
    font-weight: 600;
    color: #006650;
    background-color: #B5FFF1;
    border-radius: 8px;
    border: 1px solid #A5E8DD;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vps-filter-post-rating-compare {
    width: 40px;
    height: 40px;
    background: url('../imgs/compare.svg') no-repeat center center;
    background-size: 18px auto;
    cursor: pointer;
    border-radius: 50%;
    border: 1px solid #D6DCEA;
    transition: opacity 0.3s;
    background-color: #fff;
}

.vps-filter-post-rating-compare:hover {
    opacity: 0.8;
}

.vps-filter-post-rating-compare:active {
    opacity: 0.6;
}

.vps-filter-post-rating-favorite {
    width: 40px;
    height: 40px;
    background: url('../imgs/favourite.svg') no-repeat center center;
    background-size: 20px auto;
    cursor: pointer;
    border-radius: 50%;
    border: 1px solid #D6DCEA;
    transition: opacity 0.3s;
    background-color: #fff;
}

.vps-filter-post-content {
    
}

.vps-filter-post-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    color: #000C2A;
}

.vps-filter-post-title a {
    text-decoration: none;
    line-height: 1;
    display: block;
    transition: color 0.3s;
}

.vps-filter-post-title a:hover {
    color: #0073aa;
}

.vps-filter-post-location {
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #4D5B7C;
}

.vps-filter-post-location::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('../imgs/globe-02.svg') no-repeat center center;
    background-size: contain;
}

.vps-filter-post-link a {
    color: #568DFC;
    font-size: 18px;
    font-style: italic;
    user-select: none;
}

.vps-filter-post-content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.vps-filter-post-characteristics {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}

.vps-filter-post-characteristics .column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
}

.vps-filter-post-characteristics-item {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    line-height: 1.2;
}

.vps-filter-post-characteristics-item-label {
    color: #4D5B7C;
    text-wrap: nowrap;
    width: 140px;
    flex-shrink: 0;
}

.vps-filter-post-characteristics-item-value {
    font-weight: 600;
    text-wrap: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-align: left;
    flex-grow: 1;
    cursor: default;
    user-select: none;
}

.vps-filter-post-characteristics .column-left .vps-filter-post-characteristics-item-label {
    
}

.vps-filter-post-characteristics .column-left .vps-filter-post-characteristics-item-value {
    max-width: 312px;
}

.vps-filter-post-rating {
    flex-basis: 254px;
    flex-grow: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: -75px;
}

.vps-filter-post-rating-total {
    border-radius: 8px;
    background-color: #C6C9E0;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    border: 1px solid #C6C9E0;
}

.rating-total-label {
    color: #4D5B7C;
}

.rating-total-value {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-total-value::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../imgs/star.svg') no-repeat center center;
    background-size: contain;
}

.vps-filter-post-rating-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid #E2E3EA;
    border-radius: 8px;
    background-color: #fff;
}

.vps-filter-post-rating-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    line-height: 1.2;
}

.rating-list-item-label {
    color: #4D5B7C;
}

.rating-list-item-value {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.rating-list-item-value:not(a)::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url('../imgs/star.svg') no-repeat center center;
    background-size: contain;
}

a.rating-list-item-value {
    color: #568DFC;
    gap: 3px;
    border-bottom: 1px solid #568DFC;
}

a.rating-list-item-value::after {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    background: url('../imgs/arrow-link.svg') no-repeat center center;
    background-size: contain;
}

.vps-filter-post-footer {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.vps-filter-post-footer-price .price-value {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
}

.price-value-period {
    font-size: 18px;
    font-weight: 400;
}

.vps-filter-post-footer-button {
    display: flex;
    gap: 24px;
    flex: 1;
    justify-content: flex-end;
}

.vps-filter-post-footer-button-link {
    max-width: 260px;
    flex-shrink: 0;
    flex-basis: 260px;
}

.cap_btn_open_modal_listing.btn__default {
    flex-shrink: 0;
    flex-basis: auto;
}

.btn__arrow.vps-filter-post-footer-button-link::after {
    background-image: url('../imgs/arrow-up-right.svg');
}

.vps-filter-no-posts,
.vps-filter-error {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.vps-filter-error {
    color: #dc3545;
}

.vps-filter-post-characteristics-show-more {
    display: none;
}

@media (max-width: 1280px) {
    .vps-filter-post-content {
        flex-direction: column;
    }

    .vps-filter-post-characteristics {
        width: 100%;
        grid-template-columns: 60% 1fr;
    }

    .vps-filter-post-rating {
        margin-top: 0;
        flex-basis: auto;
        flex-grow: 1;
        flex-shrink: 1;
        width: 100%;
    }

    .vps-filter-post-header-actions {
        padding-bottom: 0;
    }
}

@media (max-width: 1200px) {
    .filter__result-header {
        flex-direction: column;
    }

    .filter__result-orders {
        width: 100%;
    }

    .filter__result-selected {
        max-width: none;
        width: 100%;
    }

    .vps-filter-selected-filters {
        flex-wrap: wrap;
    }
}

@media (max-width: 991px) {
    .filter_side-header {
        top: 0;
    }

    .filter_side-header-title h3 {
        font-size: 20px;
    }

    .filter-clear-button {
        font-size: 14px;
    }

    .filter__inner {
        flex-direction: column;
    }

    .filter_side {
        flex: 1;
    }

    .vps-filter-post-footer {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .filter__inner {
        flex-direction: column;
    }
    
    .filter_side {
        flex: 1;
    }
    
    .vps-filter-posts-list {
        grid-template-columns: 1fr;
    }

    .vps-filter-post-footer-button {
        flex-direction: column;
        width: 100%;
    }

    .vps-filter-post-footer-button-link {
        flex-basis: auto;
        width: 100%;
        max-width: none;
    }

    .vps-filter-post-characteristics {
        grid-template-columns: 1fr;
    }

    .vps-filter-post-characteristics-item {
        justify-content: flex-start;
    }

    .vps-filter-post-characteristics .column-left .vps-filter-post-characteristics-item-value {
        max-width: none;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-wrap: unset;
        display: -webkit-box;
    }

    .vps-filter-post-characteristics-item-hidden {
        display: none;
    }

    .vps-filter-post-characteristics-show-more-active .vps-filter-post-characteristics-item-hidden {
        display: flex !important;
    }

    .vps-filter-post-characteristics-show-more {
        display: block;
    }

    .vps-filter-post-characteristics-show-more-link {
        padding: 10px;
        color: #0169FF;
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .filter__result-orders {
        flex-direction: column;
        align-items: normal;
        gap: 16px;
    }

    .vps-filter-order-item {
        justify-content: space-between;
    }

    .vps-filter-post-header-main .groups {
        flex-wrap: wrap;
        gap: 16px;
    }
}

@media (max-width: 575px) {
    .filter_side-fields {
        padding-right: 10px;
        padding-left: 10px;
    }

    .filter_side-header {
        padding-right: 10px;
        padding-left: 10px;
    }
    
    .vps-filter-field-label label {
        font-size: 16px;
    }

    .filter_side {
        padding: 12px;
    }

    .filter__inner {
        border-radius: 12px;
    }

    .filter__result-header {
        padding: 0 12px 12px;
    }

    .vps-filter-count {
        font-size: 18px;
        margin-bottom: 16px;
        padding-left: 12px;
    }

    .vps-filter-posts-list {
        padding: 0 12px;
    }

    .vps-filter-post-item {
        padding: 12px;
    }

    .vps-filter-post-thumbnail {
        width: 170px;
        height: 32px;
    }

    .vps-filter-post-header-actions {
        flex-direction: column;
    }

    .vps-filter-post-rating-compare {
        display: none;
    }

    .vps-filter-post-position {
        width: 32px;
        height: 32px;
        font-size: 18px;
        font-weight: 500;
    }

    .vps-filter-post-rating-favorite {
        width: 32px;
        height: 32px;
        font-size: 18px;
        background-size: 16px auto;
    }

    .vps-filter-post-location {
        font-size: 14px;
    }

    .vps-filter-post-location::before {
        width: 16px;
        height: 16px;
    }

    .vps-filter-post-title a {
        font-size: 24px;
    }

    .vps-filter-post-link a {
        font-size: 14px;
    }
}