/* Shared filter pattern (Dec 2, 2026): top category chips + count line + floating blue Filter pill with an
   active-count badge that opens a bottom sheet holding every other filter. Same look as Street Cars (.sc-*).
   Built by lf-filter.js from each page's existing controls (the real elements are MOVED into the sheet, so
   every page's own handlers, URL/hash state and saved settings keep working). Prefix .lf-fx / .sc-. */
:root { --sc-ink: #fff4fb; --sc-dim: #b9a9cf; --sc-card: #17102b; --sc-card2: #1f1538; --sc-line: rgba(255,255,255,.09); --sc-blue: #2f7bff; --sc-mint: #22e3d3; }

/* category chips (same as .sc-chip) */
.lf-fx .controls .type-chips { display: flex; flex-wrap: nowrap; gap: 7px; margin-top: 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0 0 2px; }
.lf-fx .controls .type-chips::-webkit-scrollbar { display: none; }
.lf-fx .controls .type-chips > button, .lf-fx .controls .type-chips > a { flex: 0 0 auto; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line, rgba(255,255,255,.12)); background: var(--sc-card); color: var(--sc-dim); font: 600 .82rem/1 var(--font, system-ui); cursor: pointer; white-space: nowrap; box-shadow: none; text-shadow: none; transform: none; }
.lf-fx .controls .type-chips > .is-on, .lf-fx .controls .type-chips > [aria-selected="true"], .lf-fx .controls .type-chips > [aria-pressed="true"] { background: rgba(47,123,255,.2); border-color: var(--sc-blue); color: #cfe0ff; }
.lf-fx .controls .type-chips > button .n, .lf-fx .controls .type-chips > button small, .lf-fx .controls .type-chips > button span { opacity: .75; font-weight: 600; }
.lf-fx .lf-count, .lf-fx .controls .status.lf-count { margin: 6px 2px 0; padding: 0; font-size: .78rem; line-height: 1.35; color: var(--sc-dim); letter-spacing: .02em; text-align: left; }
.lf-fx .lf-count.lf-mirror { display: none; }
body.lf-m .lf-count.lf-mirror { display: block; }

/* floating Filter pill */
.lf-fab { position: fixed; right: 14px; bottom: calc(var(--lf-fab-b, calc(var(--lf-tab, 0px) + 16px)) + env(safe-area-inset-bottom, 0px)); z-index: 1250; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #3b8cff, #2468e8); color: #fff; font: 700 1rem/1 var(--font, system-ui); letter-spacing: .02em; box-shadow: 0 10px 26px rgba(36,104,232,.5), 0 2px 6px rgba(0,0,0,.5); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: bottom .2s ease; }
.lf-fab svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.lf-fab-n[hidden] { display: none; }
.lf-fab-n { font: 700 .74rem/1 var(--font, system-ui); font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #fff; color: #1a4fc2; }
body.has-sheet .lf-fab, body.lf-modal-open .lf-fab { display: none; }
@media (min-width: 769px) { .lf-fab { right: 28px; bottom: 24px; z-index: 60; } }

/* sheet (same as .sc-sheet) */
.lf-fsheet[hidden] { display: none; }
.lf-fsheet { position: fixed; inset: 0; z-index: 1450; }
.lf-fsheet .sc-sheet-bd { position: absolute; inset: 0; background: rgba(5,2,12,.62); }
.lf-fsheet .sc-sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: min(86dvh, 720px); display: flex; flex-direction: column; background: #170f2a; border-radius: 22px 22px 0 0; border-top: 2px solid transparent; border-image: var(--sunset) 1; box-shadow: 0 -16px 50px rgba(0,0,0,.6); padding-bottom: env(safe-area-inset-bottom, 0px); max-width: 640px; margin: 0 auto; }
.lf-fsheet .sc-sheet-grab { display: flex; justify-content: center; padding: 8px 0 0; }
.lf-fsheet .sc-sheet-grab span { width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); }
.lf-fsheet .sc-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 4px; }
.lf-fsheet .sc-sheet-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.5rem; letter-spacing: .03em; text-transform: uppercase; color: var(--sc-ink); }
.lf-fsheet .sc-sheet-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 1.5rem; cursor: pointer; }
.lf-fsheet .sc-sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 16px 8px; }
.lf-fsheet .sc-sheet-body h3 { margin: 14px 0 8px; font: 700 .68rem/1 var(--font, system-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--sc-dim); }
.lf-fsheet .sc-sheet-foot { display: flex; gap: 10px; padding: 12px 16px 14px; border-top: 1px solid var(--sc-line); }
.lf-fsheet .sc-btn { flex: 1; min-height: 50px; border: 0; border-radius: 14px; background: linear-gradient(180deg, #3b8cff, #2468e8); color: #fff; font: 700 1rem/1 var(--font, system-ui); cursor: pointer; }
.lf-fsheet .sc-btn-ghost { min-height: 50px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--line, rgba(255,255,255,.12)); background: transparent; color: #e6daf5; font: 700 .95rem/1 var(--font, system-ui); cursor: pointer; }
.lf-fsheet .sc-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.lf-fsheet .sc-opt { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line, rgba(255,255,255,.12)); background: var(--sc-card); color: #dfd3ee; font: 600 .86rem/1 var(--font, system-ui); cursor: pointer; }
.lf-fsheet .sc-opt.is-on { background: rgba(47,123,255,.22); border-color: var(--sc-blue); color: #fff; }

/* moved controls, restyled inside the sheet */
.lf-fsheet .lf-fgrp { margin: 0; }
.lf-fsheet .lf-fgrp > label, .lf-fsheet .lf-fgrp > .area-pick { display: block; margin: 0; width: 100%; }
.lf-fsheet .lf-fgrp .sr, .lf-fsheet .lf-fgrp .lbl { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lf-fsheet select { display: block; width: 100% !important; max-width: none !important; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line, rgba(255,255,255,.12)); background-color: var(--sc-card2); color: var(--sc-ink); font: 600 .95rem/1.2 var(--font, system-ui); }
.lf-fsheet select:focus { outline: none; border-color: var(--sc-mint); box-shadow: 0 0 0 3px rgba(34,227,211,.15); }
.lf-fsheet .lf-checks { display: flex; flex-direction: column; gap: 8px; }
.lf-fsheet .lf-checks > label, .lf-fsheet .lf-checks > .lf-prog { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; margin: 0; border-radius: 14px; border: 1px solid var(--line, rgba(255,255,255,.12)); background: var(--sc-card); color: var(--sc-ink); font: 600 .92rem/1.2 var(--font, system-ui); cursor: pointer; width: 100%; box-sizing: border-box; }
.lf-fsheet .lf-checks > label:has(input:checked) { border-color: var(--sc-blue); background: rgba(47,123,255,.18); }
.lf-fsheet .lf-checks input[type=checkbox] { width: 22px; height: 22px; flex: 0 0 22px; accent-color: #2f7bff; margin: 0; }
.lf-fsheet .lf-checks > .lf-prog { flex-wrap: wrap; padding: 10px 14px; cursor: default; gap: 8px 12px; }
.lf-fsheet .lf-prog .lf-prog-hide { min-height: 40px; padding: 0; border: 0; background: none; display: inline-flex; align-items: center; gap: 8px; }
.lf-fsheet .lf-prog-note { flex-basis: 100%; font-size: .74rem; font-weight: 500; color: var(--sc-dim); }
.lf-fsheet #more-toggle { display: none !important; }
.lf-fsheet .lf-fbtn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border-radius: 14px; border: 1px solid var(--line, rgba(255,255,255,.12)); background: var(--sc-card); color: var(--sc-ink); font: 600 .92rem/1 var(--font, system-ui); cursor: pointer; }
.lf-fsheet .sm-view { margin: 0 !important; width: 100%; display: flex; }
.lf-fsheet .sm-view button { flex: 1; }

@media (min-width: 769px) { .lf-fsheet .sc-sheet-panel { border-radius: 22px; bottom: 50%; transform: translateY(50%); max-height: 80dvh; } }
@media (prefers-reduced-motion: no-preference) { .lf-fsheet .sc-sheet-panel { animation: sc-up .22s ease-out; } @keyframes sc-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } } }
@media (min-width: 769px) and (prefers-reduced-motion: no-preference) { .lf-fsheet .sc-sheet-panel { animation: none; } }
@media (prefers-reduced-motion: reduce) { .lf-fab { transition: none; } }

.lf-fab[hidden] { display: none; }
.lf-fsheet .sm-sel > span { display: none; }
.lf-fsheet .sm-sel { display: block; width: 100%; }

/* Street Cars / Mod Shop links sit right after "All" in the Cars chip row */
.lf-fx .type-chips a.lf-chip-link{display:inline-flex;align-items:center;text-decoration:none;white-space:nowrap;flex:0 0 auto;background:rgba(127,180,255,.12);border:1px solid rgba(127,180,255,.5);color:#bcd8ff;font-weight:700}
