.cf-dropdown {
    position: relative;
}

.cf-dropdown .cf-btn {
    align-items: center;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: var(--landing-dark);
    cursor: pointer;
    display: flex;
    font-size: .9rem;
    font-weight: 600;
    gap: .4rem;
    justify-content: space-between;
    min-height: 44px;
    padding: .375rem .75rem;
    text-align: left;
    transition: border-color .15s;
    user-select: none;
    width: 100%;
}

.cf-dropdown .cf-btn:hover,
.cf-dropdown .cf-btn.open {
    border-color: var(--landing-primary);
}

.cf-dropdown .cf-btn.has-selection {
    border-color: var(--landing-primary);
    color: var(--landing-primary);
}

.cf-btn-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cf-count {
    background: var(--landing-primary);
    border-radius: 999px;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1;
    min-width: 18px;
    padding: 2px 6px;
    text-align: center;
}

.cf-panel {
    background: #fff;
    border: 1px solid var(--landing-border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    display: none;
    left: 0;
    max-height: 260px;
    min-width: 200px;
    overflow-y: auto;
    padding: .5rem 0;
    position: absolute;
    top: calc(100% + 4px);
    z-index: 1050;
}

.cf-panel.open {
    display: block;
}

.cf-panel label {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: .88rem;
    gap: .5rem;
    padding: .35rem .85rem;
    white-space: nowrap;
}

.cf-panel label:hover {
    background: var(--landing-surface);
}

.cf-panel input[type=checkbox],
.cf-panel input[type=radio] {
    accent-color: var(--landing-primary);
    flex-shrink: 0;
}

.cf-search {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-sizing: border-box;
    display: block;
    font-size: .83rem;
    margin: .35rem .6rem .25rem;
    padding: .3rem .55rem;
    width: calc(100% - 1.2rem);
}

.cf-search:focus {
    border-color: var(--landing-primary);
    outline: none;
}

.cf-clear-btn {
    background: none;
    border: none;
    color: var(--landing-muted);
    cursor: pointer;
    display: block;
    font-size: .75rem;
    padding: .1rem .85rem .3rem;
    text-align: left;
    text-decoration: underline;
}

.cf-clear-btn:hover {
    color: var(--landing-primary);
}

.cf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.cf-chip {
    align-items: center;
    background: var(--landing-surface);
    border: 1px solid var(--landing-border);
    border-radius: 999px;
    color: var(--landing-dark);
    display: inline-flex;
    font-size: .78rem;
    font-weight: 600;
    gap: .3rem;
    padding: .2rem .55rem;
}

.cf-chip-remove {
    background: none;
    border: none;
    color: var(--landing-muted);
    cursor: pointer;
    font-size: .85rem;
    line-height: 1;
    margin-left: .1rem;
    padding: 0;
}

.cf-chip-remove:hover {
    color: var(--landing-primary);
}

@media (max-width: 575.98px) {
    .cf-panel {
        left: 0;
        max-height: min(60vh, 360px);
        min-width: 100%;
        right: 0;
        width: 100%;
    }
}
