.mpf-mobile-filters__toggle,
.mpf-mobile-filters__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9d9d9;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 16px;
    line-height: 1.2;
    cursor: pointer;
    border: none !important;
    padding: 0 !important;
    font-size: 14px !important;
    color: #000 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    text-align: left !important;
    min-height: 0 !important;
}

.mpf-mobile-filters__toggle:hover, .mpf-mobile-filters__toggle:focus, .mpf-mobile-filters__close:hover, .mpf-mobile-filters__close:focus {
    background-color: #fff!important;
}

.mpf-mobile-filters__toggle {
    display: none !important;
    gap: 10px;
    min-height: 44px;
    padding: 10px 18px;
    margin-bottom: 16px;
}

.mpf-mobile-filters__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.mpf-mobile-filters__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 9998;
}

.mpf-mobile-filters__panel {
    width: 100%;
}

.mpf-mobile-filters__header {
    display: none;
}

.mpf-mobile-filters__title {
    font-size: 18px;
    font-weight: 600;
}

.mpf-mobile-filters__close {
    width: 40px;
    height: 40px;
    padding: 0;
}

.mpf-filters-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mpf-filter-group {
    width: 100%;
}

.mpf-global-reset-btn{
    border: none!important;
    padding: 0!important;
    font-size: 14px!important;
    color: #7a7a7a!important;
    text-decoration: underline!important;
    text-align: left!important;
}

.mpf-filter-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #d9d9d9;
    background: transparent;
}

.mpf-filter-toggle {
    cursor: pointer;
    text-align: left;
}

.mpf-filter-label {
    font-size: 16px;
    line-height: 1.3;
}

.mpf-option {
    border-bottom: 0!important;
}

.mpf-filter-chevron {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    border-left: 0;
    border-top: 0;
    box-sizing: border-box;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.mpf-filter-group.is-expanded .mpf-filter-chevron {
    transform: rotate(-135deg);
}

.mpf-filter-group-static .mpf-filter-header {
    padding-bottom: 25px;
    border-bottom: 0;
}

.mpf-filter-body {
    padding: 12px 0 4px;
}

.mpf-filter-group-accordion.is-collapsed .mpf-filter-body[hidden] {
    display: none;
}

.mpf-filter-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.mpf-filter-title:empty {
    display: none;
}

#mpf-price-filter,
#mpf-length-filter,
#mpf-guest-cabins-filter {
    margin: 0 5px;
}

#mpf-price-filter .noUi-target,
#mpf-length-filter .noUi-target,
#mpf-guest-cabins-filter .noUi-target {
    height: 2px;
    border: 0;
    border-radius: 999px;
    background: rgba(155, 25, 25, 0.18);
    box-shadow: none;
}

#mpf-price-filter .noUi-connect,
#mpf-length-filter .noUi-connect,
#mpf-guest-cabins-filter .noUi-connect {
    background: #9b1919;
}

#mpf-price-filter .noUi-handle,
#mpf-length-filter .noUi-handle,
#mpf-guest-cabins-filter .noUi-handle {
    width: 14px !important;
    height: 14px !important;
    right: -7px !important;
    top: -6px !important;
    border: 0;
    border-radius: 50%;
    background: #9b1919;
    box-shadow: none;
    cursor: pointer;
}

#mpf-price-filter .noUi-handle::before,
#mpf-price-filter .noUi-handle::after,
#mpf-length-filter .noUi-handle::before,
#mpf-length-filter .noUi-handle::after,
#mpf-guest-cabins-filter .noUi-handle::before,
#mpf-guest-cabins-filter .noUi-handle::after {
    display: none;
}


.noUi-tooltip{
    font-size: 14px!important;
    padding: 0px 5px!important;
    border-radius: 8px!important;
}

#mpf-price-filter .noUi-handle-lower .noUi-tooltip,
#mpf-length-filter .noUi-handle-lower .noUi-tooltip,
#mpf-guest-cabins-filter .noUi-handle-lower .noUi-tooltip {
    left: 0;
    right: auto;
    transform: translate(0, 0);
}

#mpf-price-filter .noUi-handle-upper .noUi-tooltip,
#mpf-length-filter .noUi-handle-upper .noUi-tooltip,
#mpf-guest-cabins-filter .noUi-handle-upper .noUi-tooltip {
    left: auto;
    right: 0;
    transform: translate(0, 0);
}

body.mpf-mobile-filters-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .mpf-mobile-filters__toggle {
        display: inline-flex !important;
        margin-top: 15px;
    }

    .mpf-mobile-filters__backdrop[hidden] {
        display: none;
    }

    .mpf-mobile-filters.is-open .mpf-mobile-filters__backdrop {
        opacity: 1;
    }

    .mpf-mobile-filters__panel {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(360px, 88vw);
        padding: 20px 16px 28px;
        background: #fff;
        overflow-y: auto;
        box-shadow: -12px 0 30px rgba(0, 0, 0, 0.14);
        transform: translateX(100%);
        transition: transform 0.25s ease;
        z-index: 9999;
    }

    .mpf-mobile-filters.is-open .mpf-mobile-filters__panel {
        transform: translateX(0);
    }

    .mpf-mobile-filters__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
}