/* ═══════════════════════════════════════════════════════
   EazzyFind — Premium Filter Panel Shared Styles
   Include in layouts/app.blade.php <head_styles> push
   ═══════════════════════════════════════════════════════ */
 
/* ── Filter panel shell ────────────────────────────────── */
.ef-filter-panel {
    background: #fff;
    border: 1.5px solid var(--ef-border);
    border-radius: 16px;
    overflow: hidden;
}
 
.ef-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .875rem 1.125rem;
    border-bottom: 1px solid var(--ef-border);
    background: var(--ef-surface);
}
 
.ef-filter-header h6 {
    font-size: .82rem;
    font-weight: 800;
    font-family: 'Jost', sans-serif;
    color: var(--ef-text);
    margin: 0;
    letter-spacing: .02em;
    text-transform: uppercase;
}
 
/* ── Filter section ────────────────────────────────────── */
.ef-filter-section {
    padding: 1rem 1.125rem;
    border-bottom: 1px solid var(--ef-border);
}
.ef-filter-section:last-child { border-bottom: none; }
 
.ef-filter-section-title {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ef-muted);
    margin-bottom: .6rem;
}
 
/* ── Active filter chips ───────────────────────────────── */
.ef-active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: .75rem 1.125rem;
    border-bottom: 1px solid var(--ef-border);
}
.ef-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--ef-blue);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 99px;
    text-decoration: none;
    transition: background .15s;
}
.ef-active-chip:hover { background: #0a2f72; color: #fff; }
.ef-active-chip i { font-size: .6rem; opacity: .8; }
 
/* ── Pill toggle group (Job Type, Work Mode) ───────────── */
.ef-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ef-pill-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: .3rem .75rem;
    border-radius: 99px;
    border: 1.5px solid var(--ef-border);
    background: #fff;
    font-size: .78rem;
    font-weight: 600;
    color: var(--ef-muted);
    cursor: pointer;
    transition: all .15s;
    user-select: none;
    position: relative;
}
.ef-pill-toggle input[type="radio"],
.ef-pill-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.ef-pill-toggle:hover {
    border-color: var(--ef-blue);
    color: var(--ef-blue);
    background: var(--ef-blue-pale);
}
.ef-pill-toggle.is-active {
    background: var(--ef-blue);
    border-color: var(--ef-blue);
    color: #fff;
}
.ef-pill-toggle.is-active:hover {
    background: #0a2f72;
    border-color: #0a2f72;
    color: #fff;
}
 
/* ── Experience level cards ────────────────────────────── */
.ef-level-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.ef-level-card {
    position: relative;
    cursor: pointer;
    user-select: none;
}
.ef-level-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.ef-level-card-inner {
    padding: .5rem .6rem;
    border: 1.5px solid var(--ef-border);
    border-radius: 10px;
    background: #fff;
    text-align: center;
    transition: all .15s;
}
.ef-level-card-inner .level-icon {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 3px;
    line-height: 1;
}
.ef-level-card-inner .level-label {
    font-size: .7rem;
    font-weight: 700;
    color: var(--ef-muted);
    line-height: 1.2;
}
.ef-level-card:hover .ef-level-card-inner {
    border-color: var(--ef-blue);
    background: var(--ef-blue-pale);
}
.ef-level-card:hover .level-label { color: var(--ef-blue); }
.ef-level-card.is-active .ef-level-card-inner {
    border-color: var(--ef-blue);
    background: var(--ef-blue);
}
.ef-level-card.is-active .level-label { color: #fff; }
.ef-level-card.is-active .level-icon { filter: brightness(10); }
 
/* ── Rating stars picker ───────────────────────────────── */
.ef-star-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ef-star-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: .4rem .6rem;
    border: 1.5px solid var(--ef-border);
    border-radius: 9px;
    cursor: pointer;
    transition: all .15s;
    user-select: none;
    position: relative;
}
.ef-star-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.ef-star-option .stars { color: #F59E0B; font-size: .75rem; letter-spacing: 1px; }
.ef-star-option .rating-label { font-size: .75rem; font-weight: 600; color: var(--ef-muted); }
.ef-star-option:hover { border-color: #F59E0B; background: #FFFBEB; }
.ef-star-option.is-active { border-color: #F59E0B; background: #FEF3C7; }
.ef-star-option.is-active .rating-label { color: #92400E; }
 
/* ── Toggle switch row ─────────────────────────────────── */
.ef-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .45rem 0;
    cursor: pointer;
    user-select: none;
}
.ef-toggle-row + .ef-toggle-row {
    border-top: 1px solid var(--ef-border);
}
.ef-toggle-label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--ef-text);
    display: flex;
    align-items: center;
    gap: 7px;
}
.ef-toggle-label i { color: var(--ef-muted); font-size: .85rem; }
/* Use BS5 form-switch but styled */
.ef-toggle-row .form-check-input {
    width: 2.2rem;
    height: 1.1rem;
    margin: 0;
    cursor: pointer;
    background-color: var(--ef-border);
    border-color: var(--ef-border);
    transition: background-color .2s;
}
.ef-toggle-row .form-check-input:checked {
    background-color: var(--ef-blue);
    border-color: var(--ef-blue);
}
 
/* ── Category list ─────────────────────────────────────── */
.ef-cat-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--ef-border) transparent;
}
.ef-cat-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .4rem .5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background .12s;
    user-select: none;
    position: relative;
}
.ef-cat-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.ef-cat-option-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--ef-text);
    flex-grow: 1;
}
.ef-cat-option:hover { background: var(--ef-surface); }
.ef-cat-option.is-active { background: var(--ef-blue-pale); }
.ef-cat-option.is-active .ef-cat-option-inner { color: var(--ef-blue); font-weight: 700; }
.ef-cat-check {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--ef-border);
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .6rem;
    transition: all .12s;
}
.ef-cat-option.is-active .ef-cat-check {
    background: var(--ef-blue);
    border-color: var(--ef-blue);
    color: #fff;
}
 
/* ── Salary range ──────────────────────────────────────── */
.ef-salary-track {
    position: relative;
    height: 4px;
    background: var(--ef-border);
    border-radius: 99px;
    margin: 1.25rem .25rem .5rem;
}
.ef-salary-fill {
    position: absolute;
    height: 100%;
    background: var(--ef-blue);
    border-radius: 99px;
    pointer-events: none;
}
.ef-salary-range {
    position: absolute;
    width: 100%;
    top: -8px;
    height: 20px;
    opacity: 0;
    cursor: pointer;
}
.ef-salary-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid var(--ef-blue);
    box-shadow: 0 1px 6px rgba(0,0,0,.12);
    pointer-events: none;
    transition: transform .1s;
}
.ef-salary-labels {
    display: flex;
    justify-content: space-between;
    margin-top: .5rem;
    font-size: .72rem;
    color: var(--ef-muted);
    font-weight: 600;
}
 
/* ── Price range grid (listing filter) ────────────────── */
.ef-price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}
.ef-price-card {
    position: relative;
    cursor: pointer;
    user-select: none;
}
.ef-price-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.ef-price-card-inner {
    padding: .4rem .3rem;
    border: 1.5px solid var(--ef-border);
    border-radius: 9px;
    background: #fff;
    text-align: center;
    transition: all .15s;
}
.ef-price-card-inner .price-sym {
    font-size: .9rem;
    font-weight: 800;
    color: var(--ef-text);
    display: block;
    line-height: 1;
}
.ef-price-card-inner .price-lbl {
    font-size: .65rem;
    color: var(--ef-muted);
    font-weight: 600;
    margin-top: 2px;
}
.ef-price-card:hover .ef-price-card-inner { border-color: var(--ef-orange); background: var(--ef-orange-pale); }
.ef-price-card.is-active .ef-price-card-inner { border-color: var(--ef-orange); background: var(--ef-orange); }
.ef-price-card.is-active .price-sym,
.ef-price-card.is-active .price-lbl { color: #fff; }
 
/* ── Clear all button ──────────────────────────────────── */
.ef-filter-clear {
    display: block;
    width: 100%;
    padding: .6rem;
    margin-top: .5rem;
    background: transparent;
    border: 1.5px solid var(--ef-border);
    border-radius: 9px;
    font-family: 'Jost', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    color: var(--ef-muted);
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
    text-align: center;
}
.ef-filter-clear:hover { border-color: #DC2626; color: #DC2626; background: #FEF2F2; }