/* The filter sheet (filters D rebuild, P4b / P5: docs/plans/filters-d-rebuild-plan-2026-09-24.md), design D of the canvas "Filters
   Airbnb Redesign" (Final row, version 10). #escortify-filter-sheet is the element Fancybox 6.1.4 shows (it marks it .f-html,
   its slide .has-html). Sizes: up to 768 px the phone sheet, 769-1023 px a centred dialog, from 1024 px the desktop dialog with
   the rail. */

#escortify-filter-sheet {
    --fs-sheet: #FFFFFF; --fs-text: #222222; --fs-sub: #6A6A6A; --fs-line: #EBEBEB; --fs-chipb: #DDDDDD; --fs-selbg: #F7F7F7;
    --fs-field: #FFFFFF; --fs-fieldb: #B0B0B0; --fs-cta: #E0245E; --fs-ctatext: #FFFFFF; --fs-baroff: #DDDDDD; --fs-knob: #FFFFFF;
    --fs-knobb: #B0B0B0; --fs-stepbg: #F2F2F2; --fs-card: #FFFFFF; --fs-cardsh: 0 6px 20px rgba(0, 0, 0, 0.08);
    --fs-searchsh: 0 4px 16px rgba(0, 0, 0, 0.10); --fs-sheetsh: 0 8px 28px rgba(0, 0, 0, 0.28); --fs-dis: #B0B0B0;
    --fs-font: "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --fs-font2: "National 2", "Söhne", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html[data-theme="dark"] #escortify-filter-sheet {
    --fs-sheet: #171717; --fs-text: #F2F2F2; --fs-sub: #A3A3A3; --fs-line: rgba(255, 255, 255, 0.10); --fs-chipb: rgba(255, 255, 255, 0.18);
    --fs-selbg: rgba(255, 255, 255, 0.07); --fs-field: #1C1C1C; --fs-fieldb: rgba(255, 255, 255, 0.24); --fs-baroff: rgba(255, 255, 255, 0.16);
    --fs-knob: #F2F2F2; --fs-knobb: rgba(255, 255, 255, 0); --fs-stepbg: rgba(255, 255, 255, 0.08); --fs-card: #1C1C1C;
    --fs-cardsh: 0 0 0 1px rgba(255, 255, 255, 0.08); --fs-searchsh: 0 0 0 1px rgba(255, 255, 255, 0.10);
    --fs-sheetsh: 0 0 0 1px rgba(255, 255, 255, 0.10), 0 24px 60px rgba(0, 0, 0, 0.6); --fs-dis: #6B6B6B;
}
.fancybox__dialog:has(#escortify-filter-sheet)::backdrop { background: rgba(0, 0, 0, 0.42); }   /* Fancybox 6 shows a native dialog: its scrim */
html[data-theme="dark"] .fancybox__dialog:has(#escortify-filter-sheet)::backdrop { background: rgba(0, 0, 0, 0.62); }

/* ---------- the sheet box ---------- */
.fancybox__slide #escortify-filter-sheet.f-html {
    position: relative;
    max-width: 680px;
    overflow: hidden;
    border-radius: 24px;
    width: 100%;
    height: min(860px, calc(100dvh - 48px));
    margin: auto;
    padding: 0;
    background: var(--fs-sheet);
    box-shadow: var(--fs-sheetsh);
    color: var(--fs-text);
    font-family: var(--fs-font);
    font-weight: 400;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
#escortify-filter-sheet *, #escortify-filter-sheet *::before, #escortify-filter-sheet *::after { box-sizing: border-box; }
#escortify-filter-sheet [hidden] { display: none !important; }
#escortify-filter-sheet svg { width: 24px; height: 24px; flex-shrink: 0; }
#escortify-filter-sheet button { font: inherit; color: inherit; }
#escortify-filter-sheet h2, #escortify-filter-sheet h3 { font-family: var(--fs-font); }
/* a site-wide rule gives buttons width: 100% (it lists button with textarea and the item sidebar fields): the sheet sizes its own */
#escortify-filter-sheet .esc-fs-tag, #escortify-filter-sheet .esc-fs__show, #escortify-filter-sheet .esc-fs__clear,
#escortify-filter-sheet .esc-fs-chip--btn, #escortify-filter-sheet .esc-fs-more { width: auto; }
#escortify-filter-sheet input[type="checkbox"], #escortify-filter-sheet input[type="radio"] {
    position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
#escortify-filter-sheet :focus-visible { outline: 2px solid var(--fs-text); outline-offset: 2px; }

.esc-fs { display: flex; flex-direction: column; flex: 1; min-height: 0; margin: 0; }

/* title bar, search bar, tabs */
.esc-fs__bar { flex-shrink: 0; height: 64px; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; padding: 0 12px;
    border-bottom: 1px solid var(--fs-line); }
.esc-fs__title { text-align: center; font-size: 16px; font-weight: 500; }
.esc-fs__close { justify-self: end; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center; }
.esc-fs__close svg { width: 18px; height: 18px; }
.esc-fs__close:hover { background: var(--fs-selbg); }
.esc-fs__search { flex-shrink: 0; padding: 14px 24px 6px; }
.esc-fs-searchbar { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 20px; border-radius: 999px; background: var(--fs-field);
    box-shadow: var(--fs-searchsh); font-size: 15px; color: var(--fs-text); cursor: text; }
.esc-fs-searchbar svg { width: 18px; height: 18px; }
#escortify-filter-sheet .esc-fs-searchbar input:focus-visible, #escortify-filter-sheet .esc-fs-subsearch input:focus-visible { outline: none; }
.esc-fs-searchbar:focus-within { box-shadow: inset 0 0 0 2px var(--fs-text), var(--fs-searchsh); }
.esc-fs-subsearch:focus-within { box-shadow: inset 0 0 0 2px var(--fs-text); }
.esc-fs-searchbar input, .esc-fs-subsearch input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; font: inherit;
    color: var(--fs-text); padding: 0; margin: 0; height: 100%; -webkit-appearance: none; appearance: none; }
.esc-fs-searchbar input::placeholder, .esc-fs-subsearch input::placeholder { color: var(--fs-sub); opacity: 1; }
.esc-fs-searchbar input::-webkit-search-cancel-button, .esc-fs-subsearch input::-webkit-search-cancel-button { -webkit-appearance: none; }
.esc-fs__tabs { flex-shrink: 0; display: flex; gap: 22px; overflow-x: auto; padding: 0 24px; border-bottom: 1px solid var(--fs-line);
    scrollbar-width: none; }
.esc-fs__tabs::-webkit-scrollbar { display: none; }
.esc-fs__tabs a { flex-shrink: 0; padding: 14px 0 12px; font-size: 14px; font-weight: 500; color: var(--fs-sub); text-decoration: none;
    border-bottom: 2px solid transparent; white-space: nowrap; }
.esc-fs__tabs a.is-active { color: var(--fs-text); border-bottom-color: var(--fs-text); }

/* body: the rail (desktop) and the scroller */
.esc-fs__main { display: flex; flex: 1; min-height: 0; }
.esc-fs__rail { display: none; }
.esc-fs__body { position: relative; flex: 1; min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px;
    -webkit-overflow-scrolling: touch; }
.esc-fs__picks { position: sticky; top: 0; z-index: 2; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; margin: 0 -24px; padding-left: 24px;
    padding-right: 24px; background: var(--fs-sheet); scrollbar-width: none; }
.esc-fs__picks::-webkit-scrollbar { display: none; }
.esc-fs-tag { flex-shrink: 0; height: 36px; padding: 0 10px 0 14px; border-radius: 999px; border: 0; background: var(--fs-text); color: var(--fs-sheet) !important;
    font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.esc-fs-tag svg { width: 14px; height: 14px; }

/* sections */
.esc-fs-sec { padding: 32px 0; display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--fs-line); scroll-margin-top: 12px; }
.esc-fs-sec:first-of-type { border-top: 0; padding-top: 24px; }
.esc-fs-h2 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 20px; line-height: 1.25; font-weight: 500; letter-spacing: -0.01em;
    color: var(--fs-text); }
.esc-fs-h2 svg { width: 26px; height: 26px; }
.esc-fs-group { display: flex; flex-direction: column; gap: 14px; padding: 6px 0 10px; }
.esc-fs-group__head { display: flex; align-items: center; gap: 10px; }
.esc-fs-group__head--sub { padding-top: 8px; }
.esc-fs-group__head h3, .esc-fs-pop__head h3 { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: normal; color: var(--fs-text); }
.esc-fs-group__head svg { width: 22px; height: 22px; }
.esc-fs-note { margin: 0; font-family: var(--fs-font2); font-size: 14px; line-height: 1.4; color: var(--fs-sub); }

/* folds (Appearance, Languages, Nationality, Meeting with) */
.esc-fs-sec--fold { padding: 24px 0; }
.esc-fs-fold { width: 100%; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
    font-size: 20px; line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; }
.esc-fs-fold__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.esc-fs-fold__sum { font-family: var(--fs-font2); font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--fs-sub); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; }
.esc-fs-fold__chev svg { width: 20px; height: 20px; transition: transform 0.2s ease; }
.esc-fs-fold[aria-expanded="true"] .esc-fs-fold__chev svg { transform: rotate(180deg); }
.esc-fs-fold__body { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; }

/* cards (Top picks, Touring, Location) */
.esc-fs-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.esc-fs-cards--one { grid-template-columns: minmax(0, 1fr); }
/* Top picks and Touring (owner 2026-09-25): 2 x 2 x 2 cards with the 3D icon, the title and the one-line explanation centred;
   the icons are the sheet's own 132 px set (images/filter-3d/sheet/), sharp at 44 px on 3x screens */
.esc-fs-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px;
    padding: 16px 12px; border-radius: 16px; cursor: pointer; background: var(--fs-card); box-shadow: inset 0 0 0 1px var(--fs-chipb);
    color: var(--fs-text); text-align: center; min-width: 0; transition: box-shadow 0.15s ease; }
.esc-fs-card img { width: 44px; height: 44px; margin: 0; }
.esc-fs-card__t { font-size: 15px; font-weight: 500; line-height: 1.25; text-wrap: balance; }
.esc-fs-card__s { margin-top: -5px; font-family: var(--fs-font2); font-size: 13px; line-height: 1.35; color: var(--fs-sub); text-wrap: balance; }
@media (hover: hover) { .esc-fs-card:hover { box-shadow: inset 0 0 0 1px var(--fs-text); } }
.esc-fs-card:has(input:checked) { box-shadow: inset 0 0 0 2px var(--fs-text); background: var(--fs-selbg); }
.esc-fs-mode { position: relative; display: flex; flex-direction: column; align-items: flex-start; border-radius: 16px; cursor: pointer;
    background: var(--fs-card); box-shadow: inset 0 0 0 1px var(--fs-chipb); color: var(--fs-text); }
.esc-fs-mode__t { font-size: 15px; font-weight: 500; }
.esc-fs-mode:has(input:checked) { box-shadow: inset 0 0 0 2px var(--fs-text); background: var(--fs-selbg); }
.esc-fs-card:has(input:focus-visible), .esc-fs-mode:has(input:focus-visible), .esc-fs-chip:has(input:focus-visible),
.esc-fs-seg label:has(input:focus-visible), .esc-fs-scale label:has(input:focus-visible), .esc-fs-subrow:has(input:focus-visible) {
    outline: 2px solid var(--fs-text); outline-offset: 2px; }
.esc-fs-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.esc-fs-mode { gap: 12px; padding: 16px; min-height: 0; }
.esc-fs-mode__s { margin-top: -10px; font-size: 13px; color: var(--fs-sub); }

/* segmented switches (session length, advertiser) */
.esc-fs-seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--fs-stepbg); align-self: flex-start; }
.esc-fs-seg label { position: relative; cursor: pointer; }
.esc-fs-seg span { display: block; height: 40px; line-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--fs-sub); }
.esc-fs-seg label:has(input:checked) span { background: var(--fs-sheet); color: var(--fs-text); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }

/* chips */
.esc-fs-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.esc-fs-chip { position: relative; height: 48px; padding: 0 18px; border-radius: 999px; border: 0; box-shadow: inset 0 0 0 1px var(--fs-chipb);
    background: transparent; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--fs-text); cursor: pointer; white-space: nowrap; }
.esc-fs-chip:has(input:checked), .esc-fs-chip--btn.is-on { box-shadow: inset 0 0 0 2px var(--fs-text); background: var(--fs-selbg); }
.esc-fs-chip__dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.esc-fs-more { align-self: flex-start; background: none; border: 0; padding: 4px 0; cursor: pointer; font-size: 15px; font-weight: 500;
    text-decoration: underline; text-underline-offset: 3px; }

/* breast size: one A-F scale */
.esc-fs-scale { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--fs-chipb); }
.esc-fs-scale label { position: relative; cursor: pointer; }
.esc-fs-scale span { display: flex; align-items: center; justify-content: center; height: 48px; font-size: 15px; border-left: 1px solid var(--fs-chipb); }
.esc-fs-scale label:first-child span { border-left: 0; }
.esc-fs-scale label:has(input:checked) span { background: var(--fs-text); color: var(--fs-sheet); }

/* sliders and the price histogram */
.esc-fs-hist { display: flex; align-items: flex-end; gap: 2px; height: 76px; padding: 0 16px; cursor: pointer; }
.esc-fs-hist span { flex: 1; min-height: 3px; border-radius: 2px 2px 0 0; background: var(--fs-baroff); }
.esc-fs-hist span.is-on { background: var(--fs-cta); }
.esc-fs-range { display: flex; flex-direction: column; }
.esc-fs-range__track { position: relative; height: 32px; margin: 0 16px; }
.esc-fs-range__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--fs-baroff); }
.esc-fs-range__fill { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: var(--fs-cta); }
.esc-fs-range input[type="range"] { position: absolute; left: -16px; width: calc(100% + 32px); top: 0; height: 32px; margin: 0; padding: 0; background: none;
    -webkit-appearance: none; appearance: none; pointer-events: none; }
.esc-fs-range input[type="range"]::-webkit-slider-runnable-track { background: none; border: 0; height: 32px; }
.esc-fs-range input[type="range"]::-moz-range-track { background: none; border: 0; height: 32px; }
.esc-fs-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 32px; height: 32px;
    border-radius: 50%; background: var(--fs-knob); border: 1px solid var(--fs-knobb); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22); cursor: grab; }
.esc-fs-range input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 32px; height: 32px; border-radius: 50%; background: var(--fs-knob);
    border: 1px solid var(--fs-knobb); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22); cursor: grab; }
.esc-fs-range input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--fs-text); outline-offset: 2px; }
.esc-fs-range__vals { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
/* the boxes are inputs (typed bounds, owner 2026-09-25); 16 px so iOS does not zoom on focus; the site styles inputs globally */
#escortify-filter-sheet .esc-fs-field { box-sizing: border-box; width: 96px; min-width: 0; height: 48px; margin: 0; padding: 0 12px; border: 0; border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--fs-fieldb); background: var(--fs-field); color: var(--fs-text); font: inherit; font-size: 16px; line-height: 48px;
    text-align: center; -webkit-appearance: none; appearance: none; cursor: text; }
#escortify-filter-sheet .esc-fs-field:focus, #escortify-filter-sheet .esc-fs-field:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--fs-text); }
.esc-fs-range__mid { font-family: var(--fs-font2); font-size: 13px; color: var(--fs-sub); text-align: center; }

/* suburbs */
.esc-fs-pop { display: flex; flex-direction: column; gap: 12px; }
.esc-fs-pop__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.esc-fs-pop__note { font-family: var(--fs-font2); font-size: 13px; color: var(--fs-sub); }
.esc-fs-subsearch { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--fs-fieldb);
    background: var(--fs-field); color: var(--fs-sub); font-size: 15px; cursor: text; }
.esc-fs-subsearch svg { width: 18px; height: 18px; }
.esc-fs-subbox { border-radius: 16px; box-shadow: inset 0 0 0 1px var(--fs-line); padding: 4px 16px; }
.esc-fs-sublist { max-height: 288px; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.esc-fs-subrow { position: relative; display: flex; align-items: center; gap: 14px; min-height: 48px; cursor: pointer; font-size: 15px; color: var(--fs-text); }
.esc-fs-box { width: 24px; height: 24px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--fs-fieldb); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; }
.esc-fs-box svg { width: 16px; height: 16px; visibility: hidden; color: var(--fs-sheet); }
.esc-fs-subrow:has(input:checked) .esc-fs-box { background: var(--fs-text); box-shadow: none; }
.esc-fs-subrow:has(input:checked) .esc-fs-box svg { visibility: visible; }

/* footer */
.esc-fs__foot { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--fs-line); background: var(--fs-sheet); }
.esc-fs__clear { background: none; border: 0; padding: 8px 4px; font-size: 16px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px;
    cursor: pointer; color: var(--fs-text); }
.esc-fs__clear.is-empty { color: var(--fs-dis); }
.esc-fs__show { height: 48px; padding: 0 24px; white-space: nowrap; border: 0; border-radius: 12px; background: var(--fs-cta); color: var(--fs-ctatext) !important; font-size: 16px;
    font-weight: 500; cursor: pointer; transition: filter 0.15s ease, transform 0.1s ease; }
.esc-fs__show:hover { filter: brightness(0.94); }
.esc-fs__show:active { transform: scale(0.98); }

/* ---------- phone: D's sheet from 28 px below the top ---------- */
@media (max-width: 768px) {
    .fancybox__slide.has-html:has(> #escortify-filter-sheet) { padding: 0; }   /* the sheet spans the phone's width */
    .fancybox__slide #escortify-filter-sheet.f-html { width: 100vw; max-width: 100vw; height: calc(100dvh - 28px); max-height: calc(100dvh - 28px);
        margin: 28px 0 0; border-radius: 24px 24px 0 0; }
    .esc-fs-h2, .esc-fs-fold { font-size: 20px; }
}
@media (max-width: 380px) {
    .esc-fs__body, .esc-fs__search { padding-left: 16px; padding-right: 16px; }
    .esc-fs__tabs { padding: 0 16px; }
    .esc-fs__picks { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
    .esc-fs-modes { gap: 8px; }
    .esc-fs-cards { gap: 8px; }
    .esc-fs-card { padding: 14px 8px; }
    #escortify-filter-sheet .esc-fs-field { width: 88px; padding: 0 8px; }
    .esc-fs-mode { padding: 12px; }
    .esc-fs-sublist { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- desktop: D's 940 px dialog with the rail ---------- */
@media (min-width: 1024px) {
    .fancybox__slide #escortify-filter-sheet.f-html { max-width: 940px; border-radius: 32px; height: min(900px, calc(100dvh - 80px)); }
    .esc-fs__bar { padding: 0 20px; }
    .esc-fs__search { padding: 16px 32px; border-bottom: 1px solid var(--fs-line); }
    .esc-fs__tabs { display: none; }
    .esc-fs__rail { display: flex; flex-direction: column; gap: 4px; width: 260px; flex-shrink: 0; padding: 20px 16px; border-right: 1px solid var(--fs-line);
        overflow-y: auto; }
    .esc-fs__rail a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; color: var(--fs-text); text-decoration: none; }
    .esc-fs__rail a > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .esc-fs__rail a > span > span:first-child { font-size: 15px; font-weight: 500; }
    .esc-fs__railv { font-family: var(--fs-font2); font-size: 13px; color: var(--fs-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
    .esc-fs__rail a.is-active, .esc-fs__rail a:hover { background: var(--fs-selbg); }
    .esc-fs__body { padding: 0 36px; }
    .esc-fs__picks { margin: 0 -36px; padding-left: 36px; padding-right: 36px; }
    .esc-fs-h2, .esc-fs-fold { font-size: 22px; }
    .esc-fs__foot { padding: 16px 32px; }
}
