/* =============================================
   AMAZZINGFILTER - Estilos custom
   ============================================= */

/* --- Buscador rapido --- */
.af-quick-search {
    margin-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
}
.af-quick-search:before,
.af-quick-search:after {
    right: 1.4em;
    top: 1em;
}
.qsInput {
    border: 1px solid #E4E7EC;
    border-radius: 8px;
    height: 46px;
    line-height: 46px;
    background: #fff;
    font-size: 14px;
    padding-left: 10px;
    padding-right: 30px;
}
body .qsInput:focus,
.qsInput.has-value {
    background: #FAFAFA;
    border: 1px solid #AAB2BD;
    outline: none;
    z-index: inherit;
}

/* --- Contenedor principal --- */
#amazzing_filter {
    border-radius: 8px;
}
#af_form {
    border-radius: 8px;
}
#amazzing_filter .btn {
    font-size: 16px;
    font-weight: 400;
}

/* --- Filtros --- */
.af_filter {
    border-radius: 8px;
}
.af_subtitle {
    font-size: 15px;
    font-weight: 200;
    line-height: 24px;
}
.af_filter label {
    font-size: 15px;
    font-weight: 200;
    line-height: 24px;
    align-items: center;
}
.af_filter.expandable .af_filter_content {
    margin-top: 0;
}
.foldered .af-toggle-child:after {
    display: none;
}

/* --- Selected filters --- */
.selected-filters-label {
    display: none;
}
.selectedFilters {
    border-radius: 8px;
    margin-bottom: 4px;
}
.selectedFilters .clearAll {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.selectedFilters .cf:last-of-type {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    margin-bottom: 3px;
}
.selectedFilters .cf {
    color: #074d43;
    background-color: #eafcf4;
    border-radius: 8px;
    border: 1px solid #3b996d;
    font-size: 14px;
    margin: 3px;
    display: none;
}
.selectedFilters.inline .clearAll {
    padding: 7px 20px 8px 20px;
    border: 1px solid #4B5563;
    background-color: #F3F4F6;
    color: #374151;
    font-weight: 500;
}
.selectedFilters .clearAll {
    background-color: #667085;
    border-radius: 8px;
    border: 1px solid white;
}
.selectedFilters .clearAll a {
    color: #374151;
}
.selectedFilters .clearAll a::before {
    content: '\00d7';
    font-family: Tahoma;
    font-size: 1em;
    line-height: 1;
    margin-right: 6px;
    color: #374151;
}

/* --- Slider --- */
.af-slider .back-bar {
    height: 2px;
}
.af-slider .pointer {
    top: -7px;
    background-color: #268458;
    border-color: #268458;
}
.af-slider .clickable-dummy {
    background-color: #EAECF0;
}
.af-slider .selected-bar {
    background: #268458;
    z-index: 9;
}
.af-slider .slider_value {
    border-radius: 8px;
}

/* --- Compact / Mobile form --- */
#af_form.mobile .af_filter {
    border-radius: 0;
}
.has-compact-filter #amazzing_filter .compact-toggle {
    font-size: 15px;
    font-weight: 600 !important;
    text-transform: capitalize;
    letter-spacing: 1px;
    padding-left: 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
.compact-toggle.type-1 .compact-toggle-icon {
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 18px;
    margin-right: 0;
}
.has-compact-filter .af.block .block_content {
    padding: 10px 22px 150px 15px;
}

/* =============================================
   DESKTOP (min-width: 991px)
   ============================================= */
@media screen and (min-width: 991px) {
    #amazzing_filter form {
        background-color: #FFF;
        padding: 0;
    }
    .af_subtitle {
        font-size: 15px;
        font-weight: 500;
        padding: 10px 16px;
        background: #eaecf099;
        border-radius: 8px;
    }
    .af_filter {
        margin-bottom: 0;
        padding-bottom: 0;
        border: 0;
    }
    .af_filter_content {
        padding: 8px 0;
    }
    .af_filter_content ul {
        padding: 0;
    }
    .af_filter_content ul li {
        padding: 5px 11px;
        margin-left: 5px;
        margin-right: 5px;
    }
    .af_filter_content ul li:hover {
        background-color: #eaecf040;
        border-radius: 8px;
    }
    .af_filter label {
        font-size: 14px;
        font-weight: 200;
        line-height: 21px;
        margin-bottom: 3px;
    }
    .af_subtitle.toggle-content:before {
        right: 16px;
    }
    .af_filter .toggle-cut-off {
        position: relative;
        text-align: left;
        font-size: 14px;
        font-weight: 200;
        line-height: 21px;
        padding: 0 16px 8px 16px;
        color: var(--color_font);
    }
    .af_filter .toggle-cut-off span {
        padding: 0 !important;
        font-size: 14px;
        font-weight: 200;
        line-height: 21px;
        color: var(--color_font);
        cursor: pointer;
    }
    .af_filter .toggle-cut-off span i {
        font-size: 10px;
        vertical-align: middle;
    }
    .af-slider {
        display: grid;
        margin: 0;
        padding: 12px 12px 0 12px;
    }
    .af-quick-search {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* =============================================
   MOBILE (max-width: 991px)
   ============================================= */
@media screen and (max-width: 991px) {
    .af_filter {
        border-radius: 0;
        border: 0;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    .af_filter_content.afcontentmobile {
        display: none;
    }
    #af_form .af_subtitle_heading.afmobile > i {
        margin-left: auto;
    }
    #af_form .af_subtitle_heading.afmobile {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        padding: 11px !important;
        border: 1px solid #EAECF0;
        background-color: #FFF;
        border-radius: 8px;
        margin-bottom: 10px;
    }
    .af_subtitle.toggle-content:before {
        display: none;
    }
    #af_form .af_filter_content.afcontentmobile .header_content .afreturnmobile > i {
        margin-right: 8px;
    }
    #af_form .af_subtitle_heading.afmobile .content_min_filter {
        width: 100%;
        margin-top: 4px;
        margin-bottom: 0;
        font-size: 12px;
        font-weight: 200;
        color: #268458;
    }
    .content_min_filter span:not(:last-child)::after {
        content: ", ";
    }
    #amazzing_filter .af_subtitle_heading .af_subtitle {
        margin: 0 !important;
        padding: 0 !important;
        font-weight: 400;
    }
    #af_form .af_filter_content.afcontentmobile .header_content {
        padding-bottom: 9px !important;
        padding-top: 9px;
        padding-left: 15px;
        border-radius: 8px;
        margin-bottom: 10px !important;
        background-color: #074d43;
        color: white;
        display: table;
        width: 100%;
    }
    .af_filter label {
        margin-bottom: 2px;
        line-height: 40px;
        border: 1px solid #EAECF0;
        border-radius: 8px;
        padding-left: 10px;
    }
    .selectedFilters .clearAll {
        border: 1px solid #4B5563;
        background-color: #F3F4F6;
    }
    .selectedFilters .cf {
        display: none;
    }
    .has-compact-filter #amazzing_filter .btn-holder {
        border-radius: 8px;
    }
    .has-compact-filter #amazzing_filter.animation-ready {
        width: 90%;
    }
    #amazzing_filter .af-slider {
        padding: 16px;
    }
    #amazzing_filter .cut:not(.qs-hidden):not(.no-matches) {
        display: list-item;
    }
    #amazzing_filter .toggle-cut-off {
        display: none;
    }
    #amazzing_filter .af_filter_content.afcontentmobile > ul {
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .af-quick-search {
        padding-left: 0;
        padding-right: 0;
    }
}
