/* Calls for Service Map */
.cfs-portal { --cfs-border: #d9dde3; --cfs-muted: #5f6b7a; --cfs-accent: #1f3b63; --cfs-accent-2: #2b6cb0; --cfs-ink: #1b1f24;
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--cfs-ink); }
.cfs-portal *, .cfs-portal *::before, .cfs-portal *::after { box-sizing: border-box; }
.cfs-app { container-type: inline-size; container-name: cfs; --cfs-map-h: 680px;
  --cfs-border: #d9dde3; --cfs-muted: #5f6b7a; --cfs-accent: #1f3b63; --cfs-accent-2: #2b6cb0; --cfs-ink: #1b1f24;
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: inherit; margin: 1.5em 0; }
.cfs-app *, .cfs-app *::before, .cfs-app *::after { box-sizing: border-box; }
.cfs-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Text outside the white boxes follows the theme (light or dark). */
.cfs-head, .cfs-search-result, .cfs-foot, .cfs-tabs { --cfs-muted: currentColor; }
.cfs-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25em 1em; margin-bottom: .6em; }
.cfs-title { font-size: 1.35em; margin: 0; }
.cfs-summary { opacity: .85; }
.cfs-summary strong { font-weight: 700; }
.cfs-foot { opacity: .78; font-size: .88em; margin-top: 1.2em; }
.cfs-foot a { color: inherit; text-decoration: underline; }

/* Buttons (explicit colors so themes can't make them unreadable) */
.cfs-app button { font: inherit; cursor: pointer; }
.cfs-btn, .cfs-quick button, .cfs-apply-range { font-size: .92em; padding: 7px 12px; border: 1px solid var(--cfs-border); background: #fff; color: var(--cfs-ink);
  border-radius: 6px; line-height: 1.2; }
.cfs-btn:hover, .cfs-quick button:hover { border-color: var(--cfs-accent); }
.cfs-btn.cfs-primary { background: var(--cfs-accent); border-color: var(--cfs-accent); color: #fff; font-weight: 600; }
.cfs-btn.cfs-primary:hover { background: #16304f; }

/* ---------------- Toolbar: address search + district picker ---------------- */
.cfs-toolbar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-end; padding: 12px; margin-bottom: 8px;
  background: #fff; color: var(--cfs-ink); border: 1px solid var(--cfs-border); border-radius: 10px; }
.cfs-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1 1 520px; min-width: 0; }
.cfs-search-box { position: relative; flex: 1 1 280px; min-width: 0; }
.cfs-search-box svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--cfs-muted); stroke-width: 2; }
.cfs-search-box input { width: 100%; font: inherit; font-size: 1em; padding: 9px 12px 9px 36px; border: 1.5px solid #b8c0cc; border-radius: 8px;
  background: #fff; color: var(--cfs-ink); }
.cfs-search-box input:focus { outline: none; border-color: var(--cfs-accent-2); box-shadow: 0 0 0 3px rgba(43,108,176,.18); }
.cfs-radius { font: inherit; font-size: .95em; padding: 8px 8px; border: 1px solid var(--cfs-border); border-radius: 6px; background: #fff; color: var(--cfs-ink); }
.cfs-dsel-wrap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cfs-dsel-label { font-size: .75em; text-transform: uppercase; letter-spacing: .05em; color: var(--cfs-muted); font-weight: 600; }
.cfs-dsel { display: flex; gap: 0; overflow-x: auto; border: 1px solid var(--cfs-border); border-radius: 8px; max-width: 100%; }
.cfs-dsel button { border: 0; border-right: 1px solid var(--cfs-border); background: #fff; color: var(--cfs-ink); padding: 7px 11px; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; min-width: 46px; line-height: 1.15; white-space: nowrap; }
.cfs-dsel button:last-child { border-right: 0; }
.cfs-dsel button .cfs-n { font-weight: 400; font-size: .78em; margin: 0; padding: 0; color: var(--cfs-muted); }
.cfs-dsel button:hover { background: #eef3f9; }
.cfs-dsel button[aria-pressed="true"] { background: var(--cfs-accent); color: #fff; }
.cfs-dsel button[aria-pressed="true"] .cfs-n { color: rgba(255,255,255,.85); }
.cfs-search-result { min-height: 1.2em; margin: 0 2px 8px; font-size: .95em; }
.cfs-search-result:empty { display: none; }
.cfs-err { color: #c0392b; font-weight: 600; }

/* ---------------- Body: filter panel + map ---------------- */
.cfs-body { display: grid; grid-template-columns: 310px 1fr; border: 1px solid var(--cfs-border); border-radius: 10px; overflow: hidden;
  background: #fff; color: var(--cfs-ink); }
.cfs-panel { border-right: 1px solid var(--cfs-border); max-height: var(--cfs-map-h); overflow-y: auto; background: #fafbfc; }
.cfs-panel-toggle { display: none; }
.cfs-panel-inner { padding: 4px 14px 14px; }
.cfs-sec { padding: 12px 0; border-bottom: 1px solid var(--cfs-border); }
.cfs-sec:last-child { border-bottom: 0; }
.cfs-sec h3 { font-size: .78em; text-transform: uppercase; letter-spacing: .05em; color: var(--cfs-muted); margin: 0 0 .5em;
  display: flex; justify-content: space-between; align-items: center; }
.cfs-allnone { display: flex; gap: 4px; }
.cfs-allnone button { font-size: .95em; text-transform: none; letter-spacing: 0; padding: 2px 8px; border: 1px solid var(--cfs-border); background: #fff;
  color: var(--cfs-accent); border-radius: 4px; }
.cfs-hint { font-size: .82em; color: var(--cfs-muted); margin: -2px 0 8px; }
.cfs-sec > label { display: flex; align-items: center; gap: 8px; margin: 6px 0; cursor: pointer; }
.cfs-quick { display: flex; gap: 4px; margin-bottom: 6px; }
.cfs-quick button { padding: 5px 9px; }
.cfs-periods { max-height: 200px; overflow-y: auto; }
.cfs-custom { margin-top: 6px; }
.cfs-custom summary { cursor: pointer; color: var(--cfs-accent); }
.cfs-custom label { display: flex; justify-content: space-between; align-items: center; margin: 4px 0; }
.cfs-custom input { font: inherit; padding: 4px 6px; border: 1px solid var(--cfs-border); border-radius: 5px; }
.cfs-custom-note { font-size: .9em; padding: 3px 6px; background: #eef3f9; border-radius: 4px; margin-bottom: 4px; }

/* Rows with big click targets */
.cfs-row { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 3px 6px; margin: 0; border-radius: 6px; cursor: pointer; flex: 1; min-width: 0; }
.cfs-row:hover { background: #eef3f9; }
.cfs-row input[type=checkbox] { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--cfs-accent); cursor: pointer; }
.cfs-row-label { flex: 1; min-width: 0; }
.cfs-n { color: var(--cfs-muted); font-size: .86em; margin-left: auto; padding-left: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cfs-cat { border-radius: 8px; }
.cfs-cat + .cfs-cat { margin-top: 2px; }
.cfs-cat-row, .cfs-type-row { display: flex; align-items: center; gap: 2px; }
.cfs-exp { flex: none; width: 28px; height: 28px; border: 0; background: none; color: var(--cfs-muted); font-size: 14px; border-radius: 6px; padding: 0; }
.cfs-exp:hover { background: #e6ebf2; color: var(--cfs-ink); }
.cfs-only { flex: none; border: 1px solid var(--cfs-border); background: #fff; color: var(--cfs-accent); font-size: .75em; padding: 3px 7px; border-radius: 5px;
  opacity: 0; transition: opacity .1s; }
.cfs-cat-row:hover .cfs-only, .cfs-type-row:hover .cfs-only, .cfs-only:focus { opacity: 1; }
@media (hover: none) { .cfs-only { opacity: 1; } }
.cfs-types { display: none; margin: 2px 0 8px 28px; padding-left: 8px; border-left: 2px solid var(--cfs-border); font-size: .93em; }
.cfs-cat.open .cfs-types { display: block; }
.cfs-cat.open > .cfs-cat-row { background: #eef3f9; border-radius: 6px; }
.cfs-sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; border: 1px solid rgba(0,0,0,.15); }

.cfs-mapwrap { position: relative; min-width: 0; }
.cfs-map { height: var(--cfs-map-h); width: 100%; }
.cfs-loading .cfs-map { opacity: .6; }
.cfs-dlabel { background: rgba(255,255,255,.88); border: 1.5px solid var(--cfs-accent); border-radius: 50%; color: var(--cfs-accent);
  font-weight: 700; font-size: 12px; line-height: 19px; text-align: center; }
.cfs-pop { font-size: 13px; color: var(--cfs-ink); }
.cfs-pop-addr { font-weight: 700; }
.cfs-pop-meta { color: var(--cfs-muted); margin-bottom: 4px; }
.cfs-pop ul { list-style: none; margin: 0; padding: 0; }
.cfs-pop li { padding: 4px 0; border-top: 1px solid #eee; }
.cfs-pop li .cfs-sw { margin-right: 5px; vertical-align: -1px; }

/* ---------------- Tabs: calls list / districts ---------------- */
.cfs-tabs { display: flex; gap: 4px; margin-top: 16px; border-bottom: 2px solid rgba(127,127,127,.35); }
.cfs-tab { border: 0; background: none; color: inherit; padding: 10px 16px; font-weight: 600; font-size: 1em; opacity: .7;
  border-bottom: 3px solid transparent; margin-bottom: -2px; }
.cfs-tab[aria-selected="true"] { opacity: 1; border-bottom-color: var(--cfs-accent-2); }
.cfs-tab-n { font-weight: 400; opacity: .8; }
.cfs-pane { background: #fff; color: var(--cfs-ink); border: 1px solid var(--cfs-border); border-top: 0; border-radius: 0 0 10px 10px; padding: 12px; }
.cfs-list-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.cfs-list-filter { flex: 1 1 260px; font: inherit; padding: 7px 10px; border: 1px solid var(--cfs-border); border-radius: 6px; background: #fff; color: var(--cfs-ink); }
.cfs-list-tools label { display: flex; align-items: center; gap: 6px; font-size: .92em; }
.cfs-sort { font: inherit; padding: 6px; border: 1px solid var(--cfs-border); border-radius: 6px; background: #fff; color: var(--cfs-ink); }
.cfs-csv { margin-left: auto; color: var(--cfs-accent); }
.cfs-list { overflow-x: auto; }
.cfs-empty { padding: 20px; text-align: center; }
.cfs-more { display: block; margin: 12px auto 4px; }

.cfs-table { width: 100%; border-collapse: collapse; font-size: .93em; }
.cfs-table th, .cfs-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--cfs-border); vertical-align: middle; }
.cfs-table th { font-size: .78em; text-transform: uppercase; letter-spacing: .04em; color: var(--cfs-muted); position: sticky; top: 0; background: #fff; }
.cfs-table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cfs-table tfoot td { font-weight: 700; border-bottom: 0; }
.cfs-calls td .cfs-sw { margin-right: 6px; vertical-align: -1px; }
.cfs-calls .cfs-when { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cfs-calls tr.cfs-click { cursor: pointer; }
.cfs-calls tr.cfs-click:hover, .cfs-calls tr.cfs-click:focus { background: #eef3f9; outline: none; }
.cfs-calls tr.cfs-nomap { color: var(--cfs-muted); }
.cfs-calls .cfs-only-sm { margin-left: 4px; }
.cfs-calls tr:hover .cfs-only-sm, .cfs-calls tr:focus .cfs-only-sm { opacity: 1; }
.cfs-drow { cursor: pointer; }
.cfs-drow:hover, .cfs-drow:focus { background: #eef3f9; outline: none; }
.cfs-drow.sel { background: #dce7f5; }
.cfs-drow td:first-child { position: relative; white-space: nowrap; }
.cfs-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--w); background: var(--cfs-accent-2); opacity: .6; }
.cfs-sub td { color: var(--cfs-muted); }
.cfs-tops { font-size: .9em; color: var(--cfs-muted); }
.cfs-muted { color: var(--cfs-muted); font-size: .92em; }
.c-lbl { display: none; }
@container cfs (max-width: 760px) { .c-lbl { display: inline; } }

/* ---------------- Narrow containers / phones ---------------- */
@container cfs (max-width: 760px) {
  .cfs-toolbar { padding: 10px; }
  .cfs-search { flex-basis: 100%; }
  .cfs-search-box { flex-basis: 100%; }
  .cfs-dsel-wrap { flex-basis: 100%; }
  .cfs-dsel button { flex: 1 0 auto; }
  .cfs-body { grid-template-columns: 1fr; }
  .cfs-panel { max-height: none; border-right: 0; border-top: 1px solid var(--cfs-border); order: 2; }
  .cfs-mapwrap { order: 1; }
  .cfs-panel-toggle { display: block; width: 100%; border: 0; background: #fafbfc; color: var(--cfs-ink); text-align: left; padding: 12px 14px; font-weight: 600; }
  .cfs-panel-toggle::after { content: " ▾"; }
  .cfs-panel-closed .cfs-panel-inner { display: none; }
  .cfs-panel-closed .cfs-panel-toggle::after { content: " ▸"; }
  .cfs-map { height: min(var(--cfs-map-h), 62vh); }
  .cfs-only { opacity: 1; }
  .cfs-table .cfs-tops, .cfs-dist-table th:last-child { display: none; }
  /* Calls list as stacked cards */
  .cfs-calls thead { display: none; }
  .cfs-calls, .cfs-calls tbody { display: block; }
  .cfs-calls tr { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 10px 6px; border-bottom: 1px solid var(--cfs-border); }
  .cfs-calls td { border: 0; padding: 0; }
  .cfs-calls .cfs-when { grid-column: 1; font-size: .84em; color: var(--cfs-muted); }
  .cfs-calls .c-dist, .cfs-calls .c-km { grid-column: 2; text-align: right; font-size: .84em; color: var(--cfs-muted); }
  .cfs-calls .c-type { grid-column: 1 / -1; font-weight: 600; }
  .cfs-calls .c-loc { grid-column: 1 / -1; }
  .cfs-calls .c-inc { display: none; }
  .cfs-csv { margin-left: 0; }
}

/* width="full" / width="wide" outside the plugin's own full-width page layout */
.cfs-app.cfs-full { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 0 16px; }
.cfs-app.cfs-wide { width: min(1280px, 100vw - 32px); max-width: none; margin-left: calc(50% - min(640px, 50vw - 16px)); }

/* Call-type search + descriptions */
.cfs-type-search-box { margin: 0 0 8px; }
.cfs-type-search { width: 100%; font: inherit; padding: 8px 10px; border: 1.5px solid #b8c0cc; border-radius: 8px; background: #fff; color: var(--cfs-ink); }
.cfs-type-search:focus { outline: none; border-color: var(--cfs-accent-2); box-shadow: 0 0 0 3px rgba(43,108,176,.18); }
.cfs-type-results { margin-bottom: 6px; }
.cfs-tr-head { font-size: .85em; color: var(--cfs-muted); margin: 2px 0 6px; }
.cfs-tr-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.cfs-tr-actions .cfs-btn { padding: 5px 9px; font-size: .85em; }
.cfs-desc { display: block; font-size: .78em; line-height: 1.3; color: var(--cfs-muted); font-weight: 400; margin-top: 1px; }
.cfs-tr-row { align-items: flex-start; padding-top: 6px; padding-bottom: 6px; }
.cfs-tr-row input, .cfs-tr-row .cfs-sw { margin-top: 3px; }
.cfs-type-row .cfs-row { align-items: flex-start; }
.cfs-type-row .cfs-row input { margin-top: 2px; }
.cfs-open-guide { color: var(--cfs-accent); }
.cfs-pop-desc { font-size: 12px; color: var(--cfs-muted); margin: 1px 0 2px; }
/* Guide tab */
.cfs-guide-intro { margin: 0 0 10px; font-size: .93em; }
.cfs-guide-filter { width: 100%; max-width: 420px; font: inherit; padding: 7px 10px; border: 1px solid var(--cfs-border); border-radius: 6px; margin-bottom: 8px; background: #fff; color: var(--cfs-ink); }
.cfs-guide { columns: 2 340px; column-gap: 28px; }
.cfs-g-cat { break-inside: avoid; margin: 0 0 14px; }
.cfs-g-cat h4 { display: flex; align-items: center; gap: 7px; font-size: .95em; margin: 8px 0 4px; }
.cfs-g-cat dl { margin: 0; }
.cfs-g-item { padding: 5px 0; border-bottom: 1px solid var(--cfs-border); break-inside: avoid; }
.cfs-g-item dt { display: flex; align-items: center; gap: 6px; }
.cfs-g-item dt button { border: 0; background: none; padding: 0; font-weight: 700; color: var(--cfs-accent); text-align: left; }
.cfs-g-item dt button:hover { text-decoration: underline; }
.cfs-g-item dd { margin: 2px 0 0; font-size: .9em; }
.cfs-badge { display: inline-block; font-size: .7em; font-weight: 600; padding: 1px 6px; border-radius: 10px; text-transform: uppercase; letter-spacing: .03em; }
.cfs-b-law { background: #e3eefb; color: #1f3b63; }
.cfs-b-likely { background: #fdf0d5; color: #7a5200; }


/* =================== Full-screen map, filter sheet, phone layout =================== */
html.cfs-noscroll, html.cfs-noscroll body { overflow: hidden !important; }
.cfs-dsel-m { display: none; }
.cfs-mbar { display: none; }
.cfs-map-cover { display: none; }
.cfs-fs-btn { position: absolute; top: 10px; right: 10px; z-index: 1000; border: 1px solid rgba(0,0,0,.2); background: #fff; color: var(--cfs-ink);
  border-radius: 6px; padding: 6px 10px; font-size: 13px; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.cfs-fs-btn:hover { background: #f3f6fa; }

/* Full-screen map (lives on <body>) */
.cfs-fs { position: fixed; inset: 0; z-index: 100000; background: #fff; display: flex; flex-direction: column; }
.cfs-fs-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--cfs-border); background: #fff; }
.cfs-fs-bar button { font: inherit; border: 1px solid var(--cfs-border); background: #fff; color: var(--cfs-ink); border-radius: 8px; height: 40px; padding: 0 12px; font-weight: 600; }
.cfs-fs-close { width: 40px; padding: 0 !important; font-size: 18px !important; }
.cfs-fs-filters { background: var(--cfs-accent) !important; color: #fff !important; border-color: var(--cfs-accent) !important; }
.cfs-fs-sum { flex: 1; min-width: 0; font-size: 13px; color: var(--cfs-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfs-fs .cfs-fs-dsel { display: block; max-width: 38%; height: 40px; font: inherit; font-size: 14px; border: 1px solid var(--cfs-border); border-radius: 8px; background: #fff; color: var(--cfs-ink); padding: 0 6px; }
.cfs-fs .cfs-mapwrap { flex: 1; position: relative; min-height: 0; }
.cfs-fs .cfs-map { height: 100% !important; opacity: 1; }
.cfs-fs .cfs-map-cover, .cfs-fs .cfs-fs-btn { display: none !important; }
@media (min-width: 761px) { .cfs-fs .cfs-fs-sum { font-size: 14px; } .cfs-fs .cfs-fs-dsel { max-width: 320px; } }

/* Filter sheet (slides up from the bottom; lives on <body>) */
.cfs-backdrop { position: fixed; inset: 0; z-index: 100001; background: rgba(15,20,30,.45); opacity: 0; transition: opacity .2s; }
.cfs-backdrop.open { opacity: 1; }
.cfs-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100002; max-height: 88vh; max-height: 88dvh; background: #fff; color: var(--cfs-ink);
  border-radius: 16px 16px 0 0; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .25s ease;
  box-shadow: 0 -6px 24px rgba(0,0,0,.2); }
.cfs-sheet.open { transform: none; }
@media (min-width: 761px) { .cfs-sheet { left: auto; right: 16px; bottom: 16px; width: 380px; border-radius: 14px; } }
.cfs-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--cfs-border); font-size: 17px; }
.cfs-sheet-head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: #cfd5dd; }
.cfs-sheet-x { border: 0; background: #eef1f5; color: var(--cfs-ink); width: 36px; height: 36px; border-radius: 50%; font-size: 16px; }
.cfs-sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 16px; overscroll-behavior: contain; }
.cfs-sheet-foot { padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--cfs-border); }
.cfs-sheet-done { width: 100%; height: 48px; font-size: 16px !important; border-radius: 10px !important; }
.cfs-sheet .cfs-panel-inner { padding: 0; display: block !important; }

/* Bigger touch targets wherever filters appear on a phone */
.cfs-portal.cfs-sheet .cfs-row { min-height: 44px; }
.cfs-portal.cfs-sheet .cfs-row input[type=checkbox] { width: 22px; height: 22px; }
.cfs-portal.cfs-sheet .cfs-exp { width: 40px; height: 40px; font-size: 16px; }
.cfs-portal.cfs-sheet .cfs-only { opacity: 1; padding: 6px 10px; font-size: .8em; }
.cfs-portal.cfs-sheet .cfs-type-search { font-size: 16px; padding: 11px 12px; }
.cfs-portal.cfs-sheet .cfs-quick button { padding: 9px 12px; }
.cfs-portal.cfs-sheet .cfs-allnone button { padding: 6px 12px; }

/* ---- Phone layout (class set by script when the map is narrower than 760px) ---- */
.cfs-app.cfs-m .cfs-toolbar { gap: 8px; }
.cfs-app.cfs-m .cfs-search { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; flex-basis: 100%; }
.cfs-app.cfs-m .cfs-search-box { grid-column: 1 / -1; }
.cfs-app.cfs-m .cfs-search-box input, .cfs-app.cfs-m .cfs-radius, .cfs-app.cfs-m .cfs-dsel-m { font-size: 16px; height: 46px; }
.cfs-app.cfs-m .cfs-radius { width: 100%; }
.cfs-app.cfs-m .cfs-search .cfs-btn { height: 46px; padding: 0 14px; font-size: 15px; }
.cfs-app.cfs-m .cfs-clear-search { grid-column: 1 / -1; }
.cfs-app.cfs-m .cfs-dsel { display: none; }
.cfs-app.cfs-m .cfs-dsel-wrap { flex-basis: 100%; }
.cfs-app.cfs-m .cfs-dsel-m { display: block; width: 100%; border: 1px solid #b8c0cc; border-radius: 8px; background: #fff; color: var(--cfs-ink); padding: 0 10px; }
.cfs-app.cfs-m .cfs-body { display: block; border-radius: 10px; }
.cfs-app.cfs-m .cfs-panel { display: none; }
.cfs-app.cfs-m .cfs-map { height: 52vh; min-height: 300px; }
.cfs-app.cfs-m .cfs-fs-btn { display: none; }
.cfs-app.cfs-m .cfs-map-cover { display: flex; position: absolute; inset: 0; z-index: 1000; border: 0; padding: 0; margin: 0;
  background: rgba(255,255,255,.08); align-items: center; justify-content: center; cursor: pointer; }
.cfs-app.cfs-m .cfs-map-cover span { background: var(--cfs-accent); color: #fff; font-weight: 700; font-size: 15px; padding: 11px 18px; border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.cfs-app.cfs-m .cfs-mbar { display: flex; gap: 8px; position: sticky; bottom: 0; z-index: 50; margin: 12px -4px 0; padding: 8px 4px;
  padding-bottom: max(8px, env(safe-area-inset-bottom)); background: #fff; color: var(--cfs-ink); border-top: 1px solid var(--cfs-border);
  box-shadow: 0 -4px 12px rgba(0,0,0,.08); border-radius: 12px 12px 0 0; }
.cfs-app.cfs-m .cfs-mbar button { flex: 1; height: 46px; border: 1px solid var(--cfs-border); background: #fff; color: var(--cfs-ink); border-radius: 10px;
  font-weight: 700; font-size: 15px; position: relative; }
.cfs-app.cfs-m .cfs-mbar .cfs-mbar-filters { background: var(--cfs-accent); color: #fff; border-color: var(--cfs-accent); }
.cfs-mbar-n { font-weight: 400; opacity: .75; font-size: .9em; }
.cfs-badge-dot { position: absolute; top: 8px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: #f59e0b; }
.cfs-app.cfs-m .cfs-tabs { overflow-x: auto; }
.cfs-app.cfs-m .cfs-tab { padding: 12px 12px; white-space: nowrap; font-size: 15px; }
.cfs-app.cfs-m .cfs-list-filter, .cfs-app.cfs-m .cfs-sort, .cfs-app.cfs-m .cfs-guide-filter { font-size: 16px; }
.cfs-app.cfs-m .cfs-calls tr { padding: 12px 6px; }
.cfs-app.cfs-m .cfs-summary { font-size: .9em; }
.leaflet-container .cfs-pop { font-size: 14px; }
.cfs-app.cfs-m .cfs-calls .cfs-only-sm { display: none; }

/* Agency picker */
.cfs-agency-wrap { display: flex; flex-direction: column; gap: 4px; flex: 1 1 100%; }
.cfs-agency { font: inherit; font-size: 1em; padding: 8px 10px; border: 1.5px solid #b8c0cc; border-radius: 8px; background: #fff; color: var(--cfs-ink); max-width: 520px; }
.cfs-app.cfs-m .cfs-agency { font-size: 16px; height: 46px; width: 100%; max-width: none; }

.cfs-app .cfs-partial{display:inline-block;margin-left:.35em;padding:0 .4em;border-radius:3px;font-size:.78em;line-height:1.5;background:#fff3cd;color:#7a5a00;vertical-align:1px;white-space:nowrap}
