/* ============================================================
   Directory archives, the newer filter panels (Directory → Categories → Filter panel):
   "Cards & tiles" (.cdf-ff-cards), "Icon rail" (.cdf-ff-rail), "Tabs & sentence" (.cdf-ff-tabs).
   Loaded after pages.css and archive-filters.css, only on an archive that uses one of them.
   Drawn as the designs in docs/filter-sidebars: the controls inside the panels (tick boxes, chips, boxes, switches)
   are set here for the panels alone, so the classic list and the rest of the site keep theirs.
   Every class is prefixed cdf-ff-.
   ============================================================ */

/* ---------------------------------------------------------------- the controls inside every panel */
.layout:has(> .cdf-ff-cards), .layout:has(> .cdf-ff-tabs) { grid-template-columns: 320px minmax(0, 1fr); }
.cdf-ff-panel { color: var(--ink); }
/* the panels' own buttons take the panel's type, not the theme's button look */
.cdf-ff-ritem, .cdf-ff-flyx, .cdf-ff-cardhead, .cdf-ff-tablist button, .cdf-ff-near, .cdf-ff-presets button, .cdf-ff-step, .cdf-ff-reset, .cdf-ff-tok, .cdf-ff-bignear, .cdf-ff-nearin { font: inherit; color: inherit; text-transform: none; letter-spacing: inherit; padding: 0; }

.cdf-ff-panel .check { display: flex; align-items: center; gap: 11px; padding: 7px 0; cursor: pointer; font-size: 14.5px; font-weight: 500; }
.cdf-ff-panel .check input { appearance: none; -webkit-appearance: none; width: 19px; height: 19px; margin: 0; border: 1.7px solid var(--line-strong); border-radius: 6px; flex-shrink: 0; transition: .15s; position: relative; cursor: pointer; background: var(--tc-filter-panels-ffffff,#fff); }
.cdf-ff-panel .check input:checked { background: var(--coral); border-color: var(--coral); }
.cdf-ff-panel .check input:checked::after { content: ""; position: absolute; left: 5.5px; top: 2px; width: 5px; height: 9px; border: solid var(--tc-filter-panels-ffffff,#fff); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cdf-ff-panel .check .cnt { margin-left: auto; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cdf-ff-panel .check:hover { color: var(--coral); }

.cdf-ff-panel .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cdf-ff-panel .chip-sel { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--pill); border: 1.5px solid var(--line-strong); background: var(--tc-filter-panels-ffffff,#fff); font-size: 13.5px; font-weight: 600; cursor: pointer; user-select: none; transition: background .15s, border-color .15s, color .15s, transform .1s; }
.cdf-ff-panel .chip-sel .cnt { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.cdf-ff-panel .chip-sel:hover { border-color: var(--coral); color: var(--coral); }
.cdf-ff-panel .chip-sel:active { transform: scale(.97); }
.cdf-ff-panel .chip-sel.on { background: var(--coral-soft); border-color: var(--coral); color: var(--coral-deep); }
.cdf-ff-panel .chip-sel.on .cnt { color: var(--coral-deep); opacity: .8; }

.cdf-ff-panel .price-inputs { display: flex; align-items: center; gap: 10px; }
.cdf-ff-panel .pin { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; gap: 8px; background: var(--sand); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-weight: 600; transition: border-color .15s, background .15s; }
.cdf-ff-panel .pin:focus-within { border-color: var(--coral); background: var(--tc-filter-panels-ffffff,#fff); }
.cdf-ff-panel .pin > span { color: var(--muted); }
.cdf-ff-panel .pin > svg { width: 16px; height: 16px; color: var(--coral); flex-shrink: 0; }
.cdf-ff-panel .pin input { width: 100%; min-width: 0; padding: 0; border: none; background: none; outline: none; box-shadow: none; font: inherit; font-weight: 600; font-size: 15px; line-height: 1.6; color: inherit; }
.cdf-ff-panel .pin input::placeholder { color: var(--muted); font-weight: 500; }
.cdf-ff-panel .price-inputs .dash { color: var(--muted); }
.cdf-ff-panel input[type=number] { -moz-appearance: textfield; }
.cdf-ff-panel input[type=number]::-webkit-outer-spin-button, .cdf-ff-panel input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cdf-ff-panel .cdf-ff-bigpin { padding: 12px 14px; border-radius: 12px; }

.cdf-ff-panel .btn { text-transform: none; line-height: 1.6; }
.cdf-ff-panel .btn-primary { border: 0; }
.cdf-ff-saverow .btn, .cdf-ff-save-tabs .btn { padding: 9px 16px; font-size: 14px; }

.cdf-ff-radius { width: 100%; margin: 0; accent-color: var(--coral); }
.cdf-ff-radius:disabled { opacity: .45; }

/* the find box archive.js puts over a long list */
.cdf-ff-panel .cdf-ff-find { gap: 8px; margin-bottom: 4px; padding: 9px 12px; border-radius: 10px; }
.cdf-ff-panel .cdf-ff-find svg { width: 16px; height: 16px; color: var(--coral); }
.cdf-ff-panel .cdf-ff-find input { font-size: 15px; font-weight: 600; }
.cdf-ff-panel .cdf-ff-find input::placeholder { color: var(--muted); font-weight: 500; }

/* on / off switch */
.cdf-ff-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.cdf-ff-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cdf-ff-switch i { position: absolute; inset: 0; border-radius: var(--pill); background: var(--line-strong); transition: background .2s; }
.cdf-ff-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--tc-filter-panels-ffffff,#fff); box-shadow: 0 1px 3px var(--tc-filter-panels-00000033,rgba(0,0,0,.2)); transition: transform .2s; }
.cdf-ff-switch input:checked + i { background: var(--coral); }
.cdf-ff-switch input:checked + i::after { transform: translateX(18px); }
.cdf-ff-switch input:focus-visible + i { outline: 2px solid var(--coral); outline-offset: 2px; }

/* tiles (an odd last one spans the row) */
.cdf-ff-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cdf-ff-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 12px 10px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; user-select: none; }
.cdf-ff-tile input { position: absolute; opacity: 0; pointer-events: none; }
.cdf-ff-tile b { font-size: 13.5px; line-height: 1.2; }
.cdf-ff-tile .cnt { font-size: 12px; font-weight: 700; color: var(--muted); }
.cdf-ff-tile::after { content: ""; position: absolute; top: 9px; right: 9px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--tc-filter-panels-ffffff,#fff) center / 11px no-repeat; transition: .15s; }
.cdf-ff-tile:hover { border-color: var(--coral); }
.cdf-ff-tile:active { transform: scale(.98); }
.cdf-ff-tile:has(input:checked) { border-color: var(--coral); background: var(--coral-soft); }
.cdf-ff-tile:has(input:checked)::after { border-color: var(--coral); background-color: var(--coral); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17l9-10'/%3E%3C/svg%3E"); }
.cdf-ff-tile:has(input:focus-visible) { outline: 2px solid var(--coral); outline-offset: 2px; }
.cdf-ff-tile:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; }
.cdf-ff-tile:last-child:nth-child(odd) .cnt { margin-left: auto; margin-right: 26px; }
.cdf-ff-tile:last-child:nth-child(odd)::after { top: 50%; margin-top: -9px; }

/* an amenity's own picture (a boat type) */
.cdf-ff-tile .cdf-ff-oi { width: 30px; height: 30px; margin-bottom: 6px; color: var(--navy-soft); transition: color .15s; }
.cdf-ff-tile:has(input:checked) .cdf-ff-oi { color: var(--coral); }
.cdf-ff-tile:last-child:nth-child(odd) .cdf-ff-oi { width: 24px; height: 24px; margin: 0; }
.cdf-ff-panel .check .cdf-ff-oi { width: 24px; height: 24px; flex-shrink: 0; color: var(--navy-soft); }
.cdf-ff-panel .check:has(input:checked) .cdf-ff-oi { color: var(--coral); }
.cdf-ff-bar .cdf-ff-oi { width: 22px; height: 22px; flex-shrink: 0; color: var(--navy-soft); }
.cdf-ff-bar:has(input:checked) .cdf-ff-oi { color: var(--coral-deep); }

/* one row of buttons */
.cdf-ff-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: 4px; padding: 4px; background: var(--sand-2); border-radius: 14px; }
.cdf-ff-segopt { position: relative; display: flex; flex-direction: column; align-items: center; padding: 8px 2px 6px; border-radius: 10px; text-align: center; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.cdf-ff-segopt input { position: absolute; opacity: 0; pointer-events: none; }
.cdf-ff-segopt b { font-size: 15px; line-height: 1.2; }
.cdf-ff-segopt .cnt { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.cdf-ff-segopt:hover { color: var(--coral); }
.cdf-ff-segopt:has(input:checked) { background: var(--tc-filter-panels-ffffff,#fff); color: var(--coral-deep); box-shadow: var(--shadow-sm), inset 0 0 0 1.5px var(--coral); }
.cdf-ff-segopt:has(input:focus-visible) { outline: 2px solid var(--coral); outline-offset: 1px; }

/* option cards with a round tick */
.cdf-ff-opts { display: flex; flex-direction: column; gap: 8px; }
.cdf-ff-opt { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: .15s; }
.cdf-ff-opt input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; flex-shrink: 0; border: 1.7px solid var(--line-strong); border-radius: 50%; position: relative; transition: .15s; background: var(--tc-filter-panels-ffffff,#fff); cursor: pointer; }
.cdf-ff-opt input:checked { border: 6px solid var(--coral); }
.cdf-ff-opt span:not(.cnt) { display: flex; flex-direction: column; line-height: 1.3; }
.cdf-ff-opt b { font-size: 14px; }
.cdf-ff-opt .cnt { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cdf-ff-opt:hover { border-color: var(--coral); }
.cdf-ff-opt:has(input:checked) { border-color: var(--coral); background: var(--coral-soft); }

/* rows with a bar of how many */
.cdf-ff-bars { display: flex; flex-direction: column; gap: 6px; }
.cdf-ff-bar { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); cursor: pointer; overflow: hidden; isolation: isolate; transition: border-color .15s; }
.cdf-ff-bar input { position: absolute; opacity: 0; pointer-events: none; }
.cdf-ff-bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--sand-2); z-index: -1; transition: width .35s ease, background .15s; }
.cdf-ff-bar b { font-size: 14px; }
.cdf-ff-bar .cnt { margin-left: auto; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.cdf-ff-bar:hover { border-color: var(--coral); }
.cdf-ff-bar:has(input:checked) { border-color: var(--coral); }
.cdf-ff-bar:has(input:checked)::before { background: var(--coral-soft-2); }
.cdf-ff-bar:has(input:checked) .cnt { color: var(--coral-deep); }
.cdf-ff-bar:has(input:focus-visible) { outline: 2px solid var(--coral); outline-offset: 2px; }

/* price: bars of how the prices spread, ready budgets */
.cdf-ff-hist { display: flex; align-items: flex-end; gap: 2px; height: 46px; margin: 0 6px -6px; }
.cdf-ff-hist i { flex: 1; height: var(--h, 4%); min-height: 2px; border-radius: 3px 3px 0 0; background: var(--coral-soft-2); transition: height .25s, background .2s; }
.cdf-ff-hist i.cdf-ff-in { background: var(--coral); opacity: .8; }
.cdf-ff-presets { display: flex; gap: 6px; margin-top: 12px; }
.cdf-ff-presets button { flex: 1; padding: 7px 4px; border-radius: 10px; border: 1.5px solid var(--line); background: none; font-size: 12.5px; font-weight: 700; color: var(--body); cursor: pointer; transition: .15s; white-space: nowrap; }
.cdf-ff-presets button:hover { border-color: var(--coral); color: var(--coral); }
.cdf-ff-presets button.cdf-ff-on { background: var(--coral-soft); border-color: var(--coral); color: var(--coral-deep); }

/* save search */
.cdf-ff-savemsg { margin: 8px 0 0; font-size: 13px; font-weight: 600; }

/* the administrator's own filters inside the newer panels */
.cdf-ff-customs .fgroup { padding: 0; border: 0; margin-top: 18px; }
.cdf-ff-customs .fgroup > .cdf-filter-label { margin-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cdf-ff-customs .fgroup:first-child { margin-top: 0; }

/* ---------------------------------------------------------------- 1 · Cards & tiles */
.filters.cdf-ff-cards { display: block; background: none; border: 0; box-shadow: none; border-radius: 0; padding: 2px 6px 0 2px; margin: -2px -6px 0 -2px; overscroll-behavior: contain; scrollbar-width: thin; }
.cdf-ff-cards form { display: flex; flex-direction: column; gap: 12px; }
.cdf-ff-card { background: var(--tc-filter-panels-ffffff,#fff); border: 1px solid var(--line); border-radius: calc(var(--r) + 2px); box-shadow: var(--shadow-sm); padding: 16px 18px; }

.cdf-ff-cards .fhead.cdf-ff-card { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 14px 16px 14px 18px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--coral-soft), var(--tc-filter-panels-ffffff,#fff) 140%); }
.cdf-ff-cards .fhead .cdf-filter-title { display: flex; align-items: center; gap: 9px; margin: 0 auto 0 0; font-size: 17px; font-weight: 800; }
.cdf-ff-cards .fhead .cdf-filter-title svg { width: 18px; height: 18px; color: var(--coral); }
.cdf-ff-cards .fhead .clear { padding: 6px 11px; border-radius: var(--pill); font-size: 13px; font-weight: 700; color: var(--coral); }
.cdf-ff-cards .fhead .clear:hover { background: var(--tc-filter-panels-ffffff,#fff); }

.cdf-ff-panel .fhead .cdf-ff-close { color: var(--ink); }
.cdf-ff-panel .fhead .cdf-ff-close svg { width: 18px; height: 18px; color: currentColor; }
.cdf-ff-cardhead { width: 100%; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.cdf-ff-cardtitle { margin-right: auto; font-size: 15px; font-weight: 800; letter-spacing: -.005em; }
.cdf-ff-sum { max-width: 58%; padding: 2px 9px; border-radius: var(--pill); background: var(--coral-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--coral-deep); }
.cdf-ff-sum:empty { display: none; }
.cdf-ff-cardhead::after { content: ""; width: 7px; height: 7px; flex-shrink: 0; margin: 0 4px 3px 0; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.cdf-ff-cardhead:hover .cdf-ff-cardtitle { color: var(--coral); }
.cdf-ff-cardhead:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; border-radius: 6px; }
.cdf-ff-cardbody { margin-top: 14px; }
.cdf-ff-card.cdf-ff-shut .cdf-ff-cardbody { display: none; }
.cdf-ff-card.cdf-ff-shut .cdf-ff-cardhead::after { transform: rotate(-45deg); margin-bottom: 0; }
.cdf-ff-cards .cdf-ff-sub { margin: 16px 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* the one-tap switches */
.cdf-ff-quickcard { padding: 12px 14px 12px 12px; background: var(--navy); border-color: var(--navy); color: var(--tc-filter-panels-ffffff,#fff); }
.cdf-ff-switchrow { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.cdf-ff-switchrow + .cdf-ff-switchrow { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--tc-filter-panels-ffffff1a,rgba(255,255,255,.1)); }
.cdf-ff-qi { width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--tc-filter-panels-ffffff1a,rgba(255,255,255,.1)); color: var(--tc-filter-panels-ffb3a6,#FFB3A6); }
.cdf-ff-qi svg { width: 19px; height: 19px; }
.cdf-ff-swtxt { display: flex; flex-direction: column; margin-right: auto; min-width: 0; line-height: 1.25; }
.cdf-ff-swtxt b { font-size: 15px; }
.cdf-ff-swtxt small { font-size: 12.5px; color: var(--tc-filter-panels-ffffffa8,rgba(255,255,255,.66)); }
.cdf-ff-swtxt .cnt { margin-left: 4px; padding: 1px 7px; border-radius: var(--pill); background: var(--tc-filter-panels-ffffff1f,rgba(255,255,255,.12)); color: var(--tc-filter-panels-ffffff,#fff); font-weight: 700; }
.cdf-ff-quickcard .cdf-ff-switch i { background: var(--tc-filter-panels-ffffff38,rgba(255,255,255,.22)); }
.cdf-ff-quickcard .cdf-ff-switch input:checked + i { background: var(--coral); }

/* where: the distance behind a switch */
.cdf-ff-locrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 6px; }
.cdf-ff-radon { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.cdf-ff-radon b { color: var(--coral-deep); }
.cdf-ff-near { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: var(--pill); background: var(--sand-2); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.cdf-ff-near svg { width: 15px; height: 15px; color: var(--coral); }
.cdf-ff-near:hover { background: var(--coral-soft); color: var(--coral-deep); }

/* save search */
.cdf-ff-savecard { background: transparent; border: 1.5px dashed var(--line-strong); box-shadow: none; }
.cdf-ff-savetop { display: flex; gap: 12px; align-items: flex-start; }
.cdf-ff-bell { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral); }
.cdf-ff-bell svg { width: 18px; height: 18px; }
.cdf-ff-savetop > span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.cdf-ff-savetop b { font-size: 14.5px; }
.cdf-ff-savetop small { font-size: 12.5px; color: var(--muted); }
.cdf-ff-saverow { display: flex; gap: 8px; margin-top: 12px; }
.cdf-ff-saverow .pin { background: var(--tc-filter-panels-ffffff,#fff); }
.cdf-ff-save-cards > .cdf-ff-savego { width: 100%; margin-top: 12px; }

.cdf-ff-cards .cdf-ff-customs { display: flex; flex-direction: column; gap: 12px; }
.cdf-ff-cards .cdf-ff-customs .fgroup { margin: 0; padding: 16px 18px; background: var(--tc-filter-panels-ffffff,#fff); border: 1px solid var(--line); border-radius: calc(var(--r) + 2px); box-shadow: var(--shadow-sm); }

.cdf-ff-cards .filters-foot { position: sticky; bottom: 0; z-index: 3; padding: 14px 0 16px; margin-top: -4px; border: 0; background: linear-gradient(180deg, var(--tc-filter-panels-faf6f000,rgba(250,246,240,0)), var(--sand) 34%); }
.cdf-ff-cards .filters-foot .btn { width: 100%; padding-block: 15px; font-size: 16px; }

/* ---------------------------------------------------------------- 2 · Icon rail */
.layout:has(> .cdf-ff-rail) { grid-template-columns: 88px minmax(0, 1fr); gap: 28px; }
.layout:has(> .cdf-ff-rail) .filter-toggle { display: none !important; }
.filters.cdf-ff-rail { z-index: 25; overflow: visible; max-height: none; background: none; border: 0; box-shadow: none; border-radius: 0; }

.cdf-ff-railbar { display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 10px 8px; background: var(--tc-filter-panels-ffffff,#fff); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-sm); }
/* on a short window the rail never runs below it: it scrolls on its own, so its last icons are always in reach */
@media (min-width: 981px) {
  .cdf-ff-railbar { max-height: calc(100vh - var(--header-h) - 36px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .cdf-ff-railbar::-webkit-scrollbar { display: none; }
  .cdf-ff-railbar > * { flex-shrink: 0; }
}
.cdf-ff-railtop { position: relative; align-self: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--tc-filter-panels-ffffff,#fff); flex-shrink: 0; }
.cdf-ff-railtop svg { width: 20px; height: 20px; }
.cdf-ff-railn { position: absolute; top: -4px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--pill); display: grid; place-items: center; background: var(--coral); color: var(--tc-filter-panels-ffffff,#fff); font-size: 11.5px; font-weight: 800; border: 2px solid var(--tc-filter-panels-ffffff,#fff); }

.cdf-ff-ritem { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 8px; border: 0; border-radius: 16px; background: none; color: var(--body); font-size: 11.5px; font-weight: 700; letter-spacing: .01em; line-height: 1.6; cursor: pointer; transition: background .15s, color .15s; }
.cdf-ff-ritem > svg { width: 22px; height: 22px; flex-shrink: 0; }
.cdf-ff-rl { max-width: 100%; text-align: center; overflow-wrap: anywhere; }
.cdf-ff-ritem:hover { background: var(--sand-2); color: var(--coral-deep); }
.cdf-ff-ritem:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.cdf-ff-ritem[aria-expanded="true"] { background: var(--coral-soft); color: var(--coral-deep); }
.cdf-ff-rdot { position: absolute; top: 4px; right: 12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--pill); display: grid; place-items: center; background: var(--coral); color: var(--tc-filter-panels-ffffff,#fff); font-size: 11px; font-weight: 800; }
.cdf-ff-rdot:empty { display: none; }
.cdf-ff-rsep { height: 1px; margin: 5px 8px; background: var(--line); flex-shrink: 0; }
.cdf-ff-rquick input { position: absolute; opacity: 0; pointer-events: none; }
.cdf-ff-rquick:has(input:checked) { background: var(--coral); color: var(--tc-filter-panels-ffffff,#fff); box-shadow: var(--shadow-coral); }
.cdf-ff-rquick:has(input:focus-visible) { outline: 2px solid var(--coral); outline-offset: 2px; }
.cdf-ff-ralert { color: var(--coral-deep); }
.cdf-ff-rclear { color: var(--coral); margin-top: 2px; text-decoration: none; }

/* the panel beside it */
.cdf-ff-fly {
  position: absolute; left: calc(100% + 14px); top: 0; width: 380px; max-height: calc(100vh - var(--header-h) - 36px);
  display: flex; flex-direction: column; background: var(--tc-filter-panels-ffffff,#fff); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateX(-10px); transition: opacity .2s, transform .2s, visibility .2s;
}
.cdf-ff-fly.cdf-ff-open { opacity: 1; visibility: visible; transform: none; }
.cdf-ff-flyhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 6px; }
.cdf-ff-kicker { margin: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
.cdf-ff-flytitle { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.1; letter-spacing: -.015em; color: var(--ink); }
.cdf-ff-flyx { width: 36px; height: 36px; flex-shrink: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--sand-2); cursor: pointer; }
.cdf-ff-flyx svg { width: 16px; height: 16px; }
.cdf-ff-flyx:hover { background: var(--coral-soft); color: var(--coral-deep); }
.cdf-ff-panes { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 22px 20px; }
.cdf-ff-pane:not([hidden]) { display: block; animation: cdf-ff-in .2s ease; }
@keyframes cdf-ff-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.cdf-ff-hint { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.cdf-ff-hint.cdf-ff-after { margin: 12px 0 0; }
.cdf-ff-rail .cdf-ff-sub { margin: 18px 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.cdf-ff-lines .check { padding: 11px 2px; border-bottom: 1px dashed var(--line); }
.cdf-ff-lines .check:last-of-type { border-bottom: 0; }
.cdf-ff-bigchips { gap: 8px; }
.cdf-ff-bigchips .chip-sel { padding: 10px 16px; font-size: 14.5px; }

.cdf-ff-bignear { width: 100%; display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: none; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.cdf-ff-bignear:hover { border-color: var(--coral); background: var(--coral-soft); }
.cdf-ff-bignear-i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral); flex-shrink: 0; }
.cdf-ff-bignear-i svg { width: 18px; height: 18px; }
.cdf-ff-bignear > span:last-child { display: flex; flex-direction: column; line-height: 1.3; font-size: 14.5px; }
.cdf-ff-bignear small { color: var(--muted); font-size: 12.5px; }
.cdf-ff-panel.cdf-ff-rail .cdf-ff-bigpin { border-radius: 14px; }
.cdf-ff-radiusbox { margin-top: 6px; }
.cdf-ff-radiusbox .check b { color: var(--coral-deep); }
.cdf-ff-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); font-weight: 600; }

.cdf-ff-bigprice { margin: 4px 0 14px; font-family: var(--serif); font-size: 32px; line-height: 1.1; letter-spacing: -.01em; color: var(--ink); }
.cdf-ff-hint.cdf-ff-median { margin: 12px 0 0; }
.cdf-ff-median b { color: var(--ink); }

.cdf-ff-savedwhat { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.cdf-ff-savedwhat span { padding: 4px 10px; border-radius: var(--pill); background: var(--sand-2); font-size: 12.5px; font-weight: 700; }
.cdf-ff-savedwhat em { font-size: 13px; color: var(--muted); }
.cdf-ff-save-rail .cdf-ff-savego, .cdf-ff-save-tabs .cdf-ff-savego { width: 100%; margin-top: 10px; }

.cdf-ff-rail .filters-foot.cdf-ff-flyfoot { position: static; display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--line); border-radius: 0 0 24px 24px; background: var(--tc-filter-panels-ffffff,#fff); }
.cdf-ff-flyfoot .btn { flex: 1; width: auto; }
.cdf-ff-reset { border: 0; background: none; padding: 0; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cdf-ff-reset:hover { color: var(--coral); }

/* on wide screens the list behind only dims while a panel is open */
@media (min-width: 981px) {
  .drawer-back.cdf-ff-dim { z-index: 90; background: var(--tc-filter-panels-faf6f08c,rgba(250,246,240,.55)); backdrop-filter: blur(1.5px); }
}

/* ---------------------------------------------------------------- 3 · Tabs & sentence */
.filters.cdf-ff-tabs { display: flex; flex-direction: column; overflow: hidden; background: var(--tc-filter-panels-ffffff,#fff); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); }
.cdf-ff-tabs form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cdf-ff-tabs .fhead.cdf-ff-tabhead { display: block; position: relative; padding: 18px 20px 20px; border: 0; background: var(--navy); color: var(--tc-filter-panels-ffffff,#fff); overflow: hidden; }
.cdf-ff-tabhead::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, var(--tc-filter-panels-e5503a59,rgba(229,80,58,.35)), transparent 70%); pointer-events: none; }
.cdf-ff-tabheadrow { display: flex; align-items: center; gap: 10px; }
.cdf-ff-tabs .fhead .cdf-filter-title { margin: 0 auto 0 0; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tc-filter-panels-ffffff99,rgba(255,255,255,.6)); }
.cdf-ff-tabs .fhead .clear { position: relative; z-index: 1; padding: 4px 10px; border-radius: var(--pill); background: var(--tc-filter-panels-ffffff1a,rgba(255,255,255,.1)); color: var(--tc-filter-panels-ffffff,#fff); font-size: 12.5px; font-weight: 700; }
.cdf-ff-tabs .fhead .clear:hover { background: var(--coral); }
.cdf-ff-tabs .fhead .cdf-ff-close { width: 34px; height: 34px; background: var(--tc-filter-panels-ffffff1f,rgba(255,255,255,.12)); color: var(--tc-filter-panels-ffffff,#fff); }
.cdf-ff-sentence { position: relative; z-index: 1; margin: 10px 0 0; font-family: var(--serif); font-size: 23px; line-height: 1.3; letter-spacing: -.01em; }
.cdf-ff-n b { font-style: italic; font-weight: inherit; color: var(--tc-filter-panels-ffb3a6,#FFB3A6); }
.cdf-ff-sentence .cdf-ff-muted { color: var(--tc-filter-panels-ffffff9e,rgba(255,255,255,.62)); }
.cdf-ff-tok { display: inline; padding: 0 1px; border: 0; border-bottom: 1.5px dashed var(--tc-filter-panels-ffffff73,rgba(255,255,255,.45)); background: none; color: var(--tc-filter-panels-ffffff,#fff); cursor: pointer; transition: color .15s, border-color .15s; }
.cdf-ff-tok:hover { color: var(--tc-filter-panels-ffb3a6,#FFB3A6); border-color: var(--tc-filter-panels-ffb3a6,#FFB3A6); }

.cdf-ff-tabsearch { padding: 14px 16px 6px; }
.cdf-ff-tabsearch .pin { padding: 11px 14px; border-radius: 14px; }
.cdf-ff-tablist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: 8px 16px 0; padding: 4px; background: var(--sand-2); border-radius: 14px; }
.cdf-ff-tablist button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 8px 2px; border: 0; border-radius: 10px; background: none; font-size: 13.5px; font-weight: 700; color: var(--body); cursor: pointer; transition: background .15s, color .15s; }
.cdf-ff-tablist button:hover { color: var(--coral-deep); }
.cdf-ff-tablist button[aria-selected="true"] { background: var(--tc-filter-panels-ffffff,#fff); color: var(--ink); box-shadow: var(--shadow-sm); }
.cdf-ff-tablist i { min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--pill); display: grid; place-items: center; background: var(--coral); color: var(--tc-filter-panels-ffffff,#fff); font-size: 10.5px; font-style: normal; font-weight: 800; }
.cdf-ff-tabpanels { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 18px; scrollbar-width: thin; }
.cdf-ff-tabpanel { animation: cdf-ff-tabin .22s ease; }
@keyframes cdf-ff-tabin { from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: none; } }
.cdf-ff-block { margin-top: 20px; }
.cdf-ff-tabpanel > .cdf-ff-block:first-child { margin-top: 0; }
.cdf-ff-tabs .cdf-ff-sub { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.cdf-ff-tabs .cdf-ff-sub ~ .cdf-ff-sub, .cdf-ff-tabs .cdf-ff-list + .cdf-ff-sub { margin-top: 20px; }
.cdf-ff-subr { font-size: 12.5px; letter-spacing: 0; text-transform: none; font-weight: 700; color: var(--coral-deep); }
.cdf-ff-help { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.cdf-ff-save-tabs .cdf-ff-help { margin: 0; }

/* basics: the one-tap switches as rows, a stepper for a size */
.cdf-ff-qrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--sand); border: 1px solid var(--line); cursor: pointer; }
.cdf-ff-qrow + .cdf-ff-qrow { margin-top: 8px; }
.cdf-ff-qrow-t { display: flex; flex-direction: column; margin-right: auto; line-height: 1.3; }
.cdf-ff-qrow-t b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; }
.cdf-ff-qrow-t b svg { width: 16px; height: 16px; color: var(--coral); }
.cdf-ff-qrow-t small { font-size: 12.5px; color: var(--muted); }
.cdf-ff-qrow-t .cnt { font-weight: 700; color: var(--ink); }
.cdf-ff-qrow:has(input:checked) { background: var(--coral-soft); border-color: var(--coral); }
.cdf-ff-qrow ~ .cdf-ff-block { margin-top: 20px; }

.cdf-ff-stepper { display: flex; align-items: center; gap: 10px; padding: 6px; border: 1.5px solid var(--line); border-radius: 16px; }
.cdf-ff-step { width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 12px; display: grid; place-items: center; background: var(--sand-2); cursor: pointer; transition: background .15s, color .15s; }
.cdf-ff-step svg { width: 18px; height: 18px; }
.cdf-ff-step:hover:not(:disabled) { background: var(--coral); color: var(--tc-filter-panels-ffffff,#fff); }
.cdf-ff-step:disabled { opacity: .35; cursor: default; }
.cdf-ff-stepval { flex: 1; text-align: center; line-height: 1.15; }
.cdf-ff-stepval b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.cdf-ff-stepval small { font-size: 12px; font-weight: 700; color: var(--muted); }

/* one choice of a few, dark when chosen */
.cdf-ff-seg-navy { grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); }
.cdf-ff-seg-navy .cdf-ff-segopt b { font-size: 13.5px; }
.cdf-ff-seg-navy .cdf-ff-segopt:hover { color: var(--coral-deep); }
.cdf-ff-seg-navy .cdf-ff-segopt:has(input:checked) { background: var(--navy); color: var(--tc-filter-panels-ffffff,#fff); box-shadow: none; }
.cdf-ff-seg-navy .cdf-ff-segopt:has(input:checked) .cnt { color: var(--tc-filter-panels-ffffffb3,rgba(255,255,255,.7)); }

/* where: the island, "Near me" in the box, the areas as dots */
.cdf-ff-island { margin: -4px -4px 12px; border-radius: 16px; background: linear-gradient(180deg, var(--tc-filter-panels-e6f0f2,#E6F0F2), var(--tc-filter-panels-d7e7ea,#D7E7EA)); overflow: hidden; }
.cdf-ff-island svg { display: block; width: 100%; height: auto; }
.cdf-ff-land { fill: var(--sand); stroke: var(--line-strong); stroke-width: 1.2; stroke-linejoin: round; }
.cdf-ff-town { fill: var(--muted); font: 600 7.5px var(--sans); }
.cdf-ff-port { cursor: pointer; outline: none; }
.cdf-ff-dot { fill: var(--tc-filter-panels-ffffff,#fff); stroke: var(--navy-soft); stroke-width: 2; transition: fill .15s, stroke .15s; }
.cdf-ff-port text { font: 800 8.5px var(--sans); fill: var(--ink); }
.cdf-ff-port .cdf-ff-c { font-weight: 700; fill: var(--muted); font-size: 7.5px; }
.cdf-ff-port:hover .cdf-ff-dot, .cdf-ff-port:focus-visible .cdf-ff-dot { stroke: var(--coral); }
.cdf-ff-port.cdf-ff-on .cdf-ff-dot { fill: var(--coral); stroke: var(--coral-deep); }
.cdf-ff-port.cdf-ff-on text { fill: var(--coral-deep); }
.cdf-ff-reach { fill: var(--tc-filter-panels-e5503a1f,rgba(229,80,58,.12)); stroke: var(--coral); stroke-width: 1; stroke-dasharray: 3 3; }
.cdf-ff-me { fill: var(--coral); stroke: var(--tc-filter-panels-ffffff,#fff); stroke-width: 2; }

.cdf-ff-panel .cdf-ff-loc-tabs .pin { padding: 10px 6px 10px 12px; border-radius: 12px; }
.cdf-ff-nearin { width: 30px; height: 30px; flex-shrink: 0; border: 0; border-radius: 8px; display: grid; place-items: center; background: none; color: var(--coral); cursor: pointer; }
.cdf-ff-nearin svg { width: 17px; height: 17px; }
.cdf-ff-nearin:hover { background: var(--coral-soft); }
.cdf-ff-dist { margin-top: 8px; }
.cdf-ff-dist .check b { color: var(--coral-deep); }
.cdf-ff-ports { display: grid; gap: 4px; margin-top: 10px; }
.cdf-ff-panel .cdf-ff-ports .check { gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.cdf-ff-panel .cdf-ff-ports .check::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--navy-soft); flex-shrink: 0; transition: .15s; }
.cdf-ff-panel .cdf-ff-ports .check input { position: absolute; opacity: 0; pointer-events: none; }
.cdf-ff-panel .cdf-ff-ports .check:hover { background: var(--sand); color: inherit; }
.cdf-ff-panel .cdf-ff-ports .check:has(input:checked) { color: var(--coral-deep); background: var(--coral-soft); }
.cdf-ff-panel .cdf-ff-ports .check:has(input:checked)::before { background: var(--coral); border-color: var(--coral-deep); }
.cdf-ff-ports .cdf-ff-toggle, .cdf-ff-ports .cdf-ff-find { margin-left: 10px; margin-right: 10px; }

/* more */
.cdf-ff-save-tabs .pin { margin-top: 10px; background: var(--sand); }

.cdf-ff-tabs .filters-foot { padding: 14px 16px 16px; border-top: 1px solid var(--line); background: var(--tc-filter-panels-ffffff,#fff); }
.cdf-ff-tabs .filters-foot .btn { width: 100%; }

/* ---------------------------------------------------------------- phones and tablets */
@media (max-width: 980px) {
  /* 1 · a drawer from the right, cards on sand */
  .filters.cdf-ff-cards { width: min(400px, 94vw); padding: 0 14px; margin: 0; max-height: none; background: var(--sand); box-shadow: var(--shadow-lg); transform: translateX(105%); }
  .filters.cdf-ff-cards.open { transform: none; }
  .cdf-ff-cards .fhead.cdf-ff-card { position: sticky; top: 0; z-index: 4; margin: 0 -14px; border-radius: 0; border-width: 0 0 1px; box-shadow: none; padding: 14px 16px; }
  .cdf-ff-cards .filters-foot { margin: 0 -14px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: var(--tc-filter-panels-ffffff,#fff); border-top: 1px solid var(--line); }

  /* 2 · a row of pills under the header; each opens a sheet from the bottom */
  .layout:has(> .cdf-ff-rail) { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .filters.cdf-ff-rail {
    position: sticky; top: var(--header-h); right: auto; height: auto; width: auto; max-height: none; transform: none; transition: none;
    z-index: 45; margin: 0 calc(var(--gutter) * -1); padding: 10px 0; background: var(--sand); box-shadow: 0 8px 12px -10px var(--tc-filter-panels-102a3b40,rgba(16,42,59,.25));
  }
  /* no transform/filter on the bar: the sheet inside is fixed to the window, and the bar's layer is lifted while it is open */
  .filters.cdf-ff-rail.cdf-ff-flying { z-index: 10000000000; }
  /* the row runs to the screen's edges and fades where more pills wait (archive-panels.js sets data-cdf-more) */
  .cdf-ff-railbar {
    flex-direction: row; align-items: center; gap: 6px; padding: 2px var(--gutter); overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); background: none; border: 0; border-radius: 0; box-shadow: none; scrollbar-width: none;
    --cdf-ff-fade-l: 0px; --cdf-ff-fade-r: 0px;
    -webkit-mask-image: linear-gradient(90deg, transparent, var(--tc-filter-panels-000000,#000) var(--cdf-ff-fade-l), var(--tc-filter-panels-000000,#000) calc(100% - var(--cdf-ff-fade-r)), transparent);
    mask-image: linear-gradient(90deg, transparent, var(--tc-filter-panels-000000,#000) var(--cdf-ff-fade-l), var(--tc-filter-panels-000000,#000) calc(100% - var(--cdf-ff-fade-r)), transparent);
  }
  .cdf-ff-railbar::-webkit-scrollbar { display: none; }
  .cdf-ff-railbar[data-cdf-more~="left"] { --cdf-ff-fade-l: 36px; }
  .cdf-ff-railbar[data-cdf-more~="right"] { --cdf-ff-fade-r: 48px; }
  .cdf-ff-railbar > * { scroll-snap-align: start; }
  .cdf-ff-railtop, .cdf-ff-rsep { display: none; }
  .cdf-ff-ritem { flex-direction: row; flex-shrink: 0; gap: 7px; padding: 8px 14px; border-radius: var(--pill); background: var(--tc-filter-panels-ffffff,#fff); border: 1px solid var(--line); font-size: 13.5px; white-space: nowrap; }
  .cdf-ff-ritem > svg { width: 17px; height: 17px; }
  .cdf-ff-rdot { position: static; }
  .cdf-ff-ritem[aria-expanded="true"] { border-color: var(--coral); }
  .cdf-ff-rquick:has(input:checked) { border-color: var(--coral); }
  .cdf-ff-fly {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto !important; width: auto; max-height: 86vh; z-index: 2;
    border-radius: 24px 24px 0 0; opacity: 1; transform: translateY(100%); transition: transform .3s cubic-bezier(.4,0,.2,1), visibility .3s;
  }
  .cdf-ff-fly::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-strong); }
  .cdf-ff-fly.cdf-ff-open { transform: none; }
  .cdf-ff-flyhead { padding-top: 24px; }
  .cdf-ff-rail .filters-foot.cdf-ff-flyfoot { border-radius: 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }

  /* 3 · a sheet from the bottom */
  .filters.cdf-ff-tabs { top: auto; bottom: 0; left: 0; right: 0; width: 100%; height: 92vh; max-height: 92vh; border-radius: 24px 24px 0 0; transform: translateY(102%); transition: transform .32s cubic-bezier(.4,0,.2,1); }
  .filters.cdf-ff-tabs.open { transform: none; }
  .cdf-ff-tabs .fhead.cdf-ff-tabhead { position: relative; top: auto; padding: 22px 20px 20px; }
  .cdf-ff-tabhead::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--tc-filter-panels-ffffff4d,rgba(255,255,255,.3)); }
  .cdf-ff-sentence { font-size: 21px; }
  .cdf-ff-tabs .filters-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}

/* phones: the rail has no "Filters" button in the toolbar, so sort and grid/list share one row */
@media (max-width: 720px) {
  .layout:has(> .cdf-ff-rail) .toolbar .tools { grid-template-columns: minmax(0, 1fr) auto; }
  .layout:has(> .cdf-ff-rail) .toolbar .viewtoggle { grid-column: auto; justify-self: end; }
  .layout:has(> .cdf-ff-rail) .toolbar .viewtoggle button { width: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .cdf-ff-fly, .cdf-ff-tabpanel, .cdf-ff-pane, .filters.cdf-ff-tabs, .filters.cdf-ff-cards { transition: none; animation: none; }
}

/* Each rail filter opens in the native top layer, independent of the sticky rail. */
dialog.cdf-ff-fly{position:fixed;inset:0!important;margin:auto;box-sizing:border-box;width:min(620px,calc(100% - 40px));height:fit-content;max-width:none;max-height:calc(100vh - 64px);max-height:min(760px,calc(100dvh - 64px));padding:0;overflow:hidden;transform:none!important;opacity:1;visibility:visible;border-radius:var(--r-lg,24px);color:var(--navy);font:inherit}
dialog.cdf-ff-fly:not([open]){display:none}
dialog.cdf-ff-fly[open]{display:flex}
dialog.cdf-ff-fly::backdrop{background:var(--tc-filter-panels-0f2a3b7a,rgba(15,42,59,.48))}
dialog.cdf-ff-fly .cdf-ff-flyhead{padding:26px 28px 20px;border-bottom:1px solid var(--line);flex-shrink:0;align-items:center}
dialog.cdf-ff-fly .cdf-ff-kicker{display:none}
dialog.cdf-ff-fly .cdf-ff-flytitle{font-size:32px}
dialog.cdf-ff-fly .cdf-ff-flyx{width:44px;height:44px}
dialog.cdf-ff-fly .cdf-ff-panes{padding:24px 28px;min-height:180px;scrollbar-width:thin;scrollbar-color:var(--line-strong) var(--paper)}
.cdf-ff-rail dialog.cdf-ff-fly .filters-foot{padding:18px 28px;flex-shrink:0}
dialog.cdf-ff-fly :focus-visible{outline:2px solid var(--coral-deep);outline-offset:3px}
dialog.cdf-ff-fly .cdf-ff-pane[data-cdf-pane-body="search"] .pin{display:grid;grid-template-columns:20px minmax(0,1fr);gap:8px}
dialog.cdf-ff-fly .cdf-ff-pane[data-cdf-pane-body="search"] .pin input{grid-column:2;width:100%;min-width:0;border:0;outline:0;box-shadow:none;padding:0;background:transparent}
dialog.cdf-ff-fly .cdf-ff-pane[data-cdf-pane-body="search"] .pin:focus-within{border-color:var(--coral-deep);box-shadow:0 0 0 2px var(--coral-soft)}
dialog.cdf-ff-fly .cdf-ff-pane[data-cdf-pane-body="search"] .cdf-suggest{position:static;grid-column:1/-1;max-height:260px;box-shadow:none;margin-top:12px;box-sizing:border-box}
@media(max-width:980px){.filters.cdf-ff-rail.cdf-ff-flying{z-index:45}dialog.cdf-ff-fly{width:calc(100% - 24px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);border-radius:var(--r-lg,24px)}dialog.cdf-ff-fly::before{display:none}dialog.cdf-ff-fly .cdf-ff-flyhead{padding:20px}dialog.cdf-ff-fly .cdf-ff-panes{padding:20px;min-height:180px}.cdf-ff-rail dialog.cdf-ff-fly .filters-foot{padding:16px 20px calc(16px + env(safe-area-inset-bottom))}dialog.cdf-ff-fly .cdf-ff-flytitle{font-size:28px}}
