

.tfb-filters-wrap {
    border: 1px solid var(--tfb-border);
    border-radius: 6px;
    margin-top: 0px;
    padding: 0px;
}

.tfb-filters-header {
    color: var(--tfb-navy);
    font-weight: 700;
    font-size: 1.2rem;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--tfb-border);
    margin-bottom: 4px;
}

.tfb-filter-item {
    border-bottom: 1px solid var(--tfb-border);
}

.tfb-filter-toggle {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tfb-navy);
    cursor: pointer;
    text-transform:capitalize;
}

.tfb-filter-toggle button span{
     text-transform:capitalize !important;
}
.tfb-filter-toggle .chevron {
    transition: transform 0.2s ease;
    color: var(--tfb-navy);
}

.tfb-filter-item.open .tfb-filter-toggle .chevron {
    transform: rotate(180deg);
}

.tfb-filter-panel {
    display: none;
    padding: 0 0 16px 4px;
    flex-direction: column;
    gap: 10px;
}

.tfb-filter-item.open .tfb-filter-panel {
    display: flex;
}

.tfb-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #222;
    cursor: pointer;
}

.tfb-filter-option .count {
    color: #888;
    font-size: 0.85rem;
}

.tfb-filter-footer {
    padding-top: 14px;
}

.tfb-filter-footer a {
    color: #3366cc;
    text-decoration: underline;
    font-size: 0.95rem;
}

.tfb-results {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.tfb-results.loading {
    opacity: 0.5;
}

.tfb-result-card {
    border: 1px solid var(--tfb-border);
    border-radius: 6px;
    padding: 12px;
}

.tfb-result-card h3 {
    font-size: 1rem;
    margin: 8px 0 4px;
}

.tfb-result-meta {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.tfb-no-results {
    grid-column: 1 / -1;
    color: #888;
}

/* Applied to an external Elementor Loop Grid element while it refetches. */
.tfb-loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
/* =========================================================
   TRAILER FILTER - HARD CODED DESIGN
   ========================================================= */

/* Main filter box */
html body .tfb-filter-form {
    width: 100% !important;
    max-width: 478px !important;
    box-sizing: border-box !important;

    margin: 0 !important;
    padding: 14px 20px 18px !important;

    background: #ffffff !important;
    border: 1px solid #c4cbd3 !important;
    border-radius: 8px !important;

    font-family: Arial, Helvetica, sans-serif !important;

    display: flex !important;
    flex-direction: column !important;
}


/* =========================================================
   FILTERS TITLE
   Creates the "Filters" heading without changing HTML
   ========================================================= */

html body .tfb-filter-form::before {
    content: "Filters" !important;

    display: block !important;

    padding: 6px 0 17px !important;

    color: #003b73 !important;

    font-size: 21px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;

    border-bottom: 1px solid #c4cbd3 !important;
}


/* =========================================================
   FILTER ITEM
   ========================================================= */

html body .tfb-filter-form .tfb-filter-item {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
}


/* =========================================================
   FILTER BUTTON
   ========================================================= */

html body .tfb-filter-form .tfb-filter-toggle {
    width: 100% !important;
    min-height: 62px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    background: transparent !important;

    border: 0 !important;
    border-bottom: 1px solid #c4cbd3 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    color: #003b73 !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;

    text-align: left !important;
    cursor: pointer !important;

    appearance: none !important;
    -webkit-appearance: none !important;
}


/* Button text */
html body .tfb-filter-form .tfb-filter-toggle span {
    color: #003b73 !important;

    font-size: 20px !important;
    font-weight: 600 !important;
text-transform:capitalize !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   CHEVRON
   ========================================================= */

html body .tfb-filter-form .tfb-filter-toggle .chevron {
    width: 16px !important;
    height: 16px !important;

    min-width: 16px !important;

    margin-left: 15px !important;

    color: #003b73 !important;

    flex-shrink: 0 !important;

    transition: transform 0.25s ease !important;
}


/* Rotate when accordion is open */
html body .tfb-filter-form .tfb-filter-item.active
.tfb-filter-toggle .chevron,
html body .tfb-filter-form .tfb-filter-toggle[aria-expanded="true"]
.chevron {
    transform: rotate(180deg) !important;
}


/* =========================================================
   FILTER PANELS
   ========================================================= */

html body .tfb-filter-form .tfb-filter-panel {
    width: 100% !important;

    margin: 0 !important;
    padding: 12px 0 15px !important;

    background: #ffffff !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    box-sizing: border-box !important;
}


/* =========================================================
   FILTER OPTIONS
   ========================================================= */

html body .tfb-filter-form .tfb-filter-option {
    width: 100% !important;

    display: flex !important;
    align-items: center !important;

    margin: 0 !important;
    padding: 4px 0 !important;

    color: #003b73 !important;

    font-size: 16px !important;
    line-height: 1.4 !important;

    background: transparent !important;

    border: 0 !important;
}


/* Checkbox */
html body .tfb-filter-form .tfb-filter-option input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;

    margin: 0 10px 0 0 !important;

    accent-color: #003b73 !important;

    flex-shrink: 0 !important;
}


/* Count */
html body .tfb-filter-form .tfb-filter-option .count {
    margin-left: 5px !important;

    color: #687583 !important;

    font-size: 14px !important;
}


/* =========================================================
   FILTER ORDER
   Your HTML has Brand first, but screenshot needs:
   
   Trailer Category
   Brand
   Frame
   Hitch Type
   Inventory Status
   Number of Axles
   Tilt Bed
   ========================================================= */

html body .tfb-filter-form .tfb-filter-item:nth-child(1) {
    order: 2 !important;
}

html body .tfb-filter-form .tfb-filter-item:nth-child(2) {
    order: 3 !important;
}

html body .tfb-filter-form .tfb-filter-item:nth-child(3) {
    order: 4 !important;
}

html body .tfb-filter-form .tfb-filter-item:nth-child(4) {
    order: 5 !important;
}

html body .tfb-filter-form .tfb-filter-item:nth-child(5) {
    order: 6 !important;
}

html body .tfb-filter-form .tfb-filter-item:nth-child(6) {
    order: 7 !important;
}

html body .tfb-filter-form .tfb-filter-item:nth-child(7) {
    order: 1 !important;
}




/* =========================================================
   REMOVE THEME HOVER / FOCUS STYLES
   ========================================================= */

html body .tfb-filter-form .tfb-filter-toggle:hover,
html body .tfb-filter-form .tfb-filter-toggle:focus,
html body .tfb-filter-form .tfb-filter-toggle:active {
    color: #003b73 !important;

    background: transparent !important;

    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #c4cbd3 !important;

    box-shadow: none !important;
    outline: none !important;
}


/* =========================================================
   SEARCH FIELD
   ========================================================= */

/* Search heading */
html body .tfb-filter-form ~ *,
html body .tfb-filter-form {
    box-sizing: border-box !important;
}


/* Use these selectors on the actual search wrapper */
html body input[type="search"],
html body input[placeholder*="Type Here"],
html body input[placeholder*="Type here"] {
    box-sizing: border-box !important;

    width: 100% !important;
    height: 50px !important;

    padding: 0 14px !important;

    background: #ffffff !important;

    border: 1px solid #222222 !important;
    border-radius: 12px !important;

    color: #222222 !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;

    box-shadow: none !important;
    outline: none !important;
}


html body input[type="search"]::placeholder,
html body input[placeholder*="Type Here"]::placeholder,
html body input[placeholder*="Type here"]::placeholder {
    color: #8b8b8b !important;
    opacity: 1 !important;
}