/* FacetWP Success Stories Filters */

.success-stories-filters {
    padding: 30px 20px;
    background: #F6F6F7;
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.filter-item {
    flex: 1;
    min-width: 200px;
}

.filter-item-reset {
    width: 100px;
    min-width: 100px;
    height: 100%;
    align-self: center;
    margin-top: 37px;
}

.filter-item-reset button {
    height: 50px;
    width: 100%;
    border: none;
    transition: 0.2s ease-in-out;    
    background: #a98a5b;
    color: #fff;
    cursor: pointer;
}

.filter-item-reset button:hover {
    color: #a98a5b;
    background: #fff;
    border: solid 1px #a98a5b;
}

.filter-item label {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.filter-item label svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* Dropdown Styles */
.facetwp-facet {
    width: 100%;
    margin-bottom: 0 !important;
}

.facetwp-type-dropdown select,
.facetwp-type-fselect .fs-label-wrap,
.facetwp-dropdown {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.facetwp-type-fselect .fs-wrap {
    width: 100%;
}

.facetwp-type-fselect .fs-label-wrap .fs-arrow {
    display: none;
}

.facetwp-type-dropdown select:hover,
.facetwp-dropdown:hover {
    border-color: #999;
}

.facetwp-type-dropdown select:focus,
.facetwp-dropdown:focus {
    outline: none;
    border-color: #8b0304;
    box-shadow: 0 0 0 3px rgba(139, 3, 4, 0.1);
}

/* Radio Button Styles */
.facetwp-type-radio {
    display: flex;
    gap: 20px;
}

.facetwp-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.facetwp-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #8b0304;
}

.facetwp-radio:hover {
    color: #8b0304;
}

/* Filter Icons */
.filter-icon-market {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.filter-icon-solution {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.filter-icon-material {
    fill: currentColor;
}

.filter-icon-category {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Responsive */
@media (max-width: 991px) {
    .filters-row {
        flex-direction: column;
    }
    
    .filter-item {
        width: 100%;
    }

    .filter-item-reset {
        margin-top: 0;
        align-self: flex-end;
    }    
}

@media (max-width: 767px) {
    .facetwp-type-radio {
        flex-direction: column;
        gap: 10px;
    }
}

/* Loading State */
.facetwp-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* FacetWP Template */
.facetwp-template {
    min-height: 300px;
}

/* Count badges (optional enhancement) */
.facetwp-counter {
    display: inline-block;
    margin-left: 5px;
    font-size: 12px;
    color: #666;
}