/* One filter pattern for phone listings and phone pages.
   Small screens get a bar that follows you down the page and a bottom sheet of filters. */
.fs-bar, .fs-head, .fs-foot, .fs-backdrop { display: none; }
.fs-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; }
.fs-chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 5px 12px; border: 1px solid #c9dccb; border-radius: 999px; background: #eef6ef; color: var(--navy); font-size: 13px; font-weight: 600; text-decoration: none; }
.fs-chips a span { font-size: 11px; opacity: .65; }
.fs-chips a:hover { border-color: var(--navy); }
.fs-chips .fs-chips-clear { background: none; border-color: transparent; text-decoration: underline; }
.prices-checked.is-compact { margin: 0 0 12px; font-size: 12px; }
.listing-summary { margin: 28px 0 0; }

@media (max-width: 960px) {
  /* Listing pages: pull the heading up now the filter column is a pop-up */
  .site-design main:has(> .layout.fs-on) { padding-top: 12px; }
  .site-design main:has(> .layout.fs-on) > .crumbs { margin-bottom: 8px; }
  .fs-on.layout { row-gap: 0; }
  .fs-on .filters-toggle, .fs-on .results-bar .sort { display: none !important; }
  .fs-on .fs-bar { display: flex; align-items: center; gap: 8px; position: sticky; top: calc(var(--header-scroll-padding, 16px) - 16px); z-index: 30; margin: 0 0 12px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fffffff2; box-shadow: 0 6px 18px #193b321f; backdrop-filter: blur(6px); }
  .fs-open { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
  .fs-open::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 3h9M14 3h1M1 8h3M8 8h7M1 13h7M12 13h3' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='3' r='2' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Ccircle cx='6' cy='8' r='2' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Ccircle cx='10' cy='13' r='2' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 3h9M14 3h1M1 8h3M8 8h7M1 13h7M12 13h3' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='3' r='2' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Ccircle cx='6' cy='8' r='2' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Ccircle cx='10' cy='13' r='2' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
  .fs-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #fff; color: var(--navy); font-size: 12px; }
  .fs-sort { flex: 1; min-width: 0; margin: 0; }
  .fs-sort select { width: 100%; min-height: 40px; margin: 0; font-size: 14px; }
  .fs-total { flex: none; color: var(--muted); font-size: 13px; white-space: nowrap; }

  /* The filter form becomes a bottom sheet */
  .js .fs-on .fs-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0 16px; border: 0; border-radius: 20px 20px 0 0; background: #fff; box-shadow: 0 -12px 40px #0000003d; transform: translateY(105%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
  .js .fs-on .fs-sheet.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
  .js .fs-on .filters form.fs-sheet { display: block; }
  .js .fs-on .filters { min-height: 0; }
  .fs-on .fs-sheet > h2, .fs-on .fs-sheet .filter-fields > h2, .fs-on .fs-sheet .filter-actions, .fs-on .fs-sheet > .count { display: none; }
  .fs-on .fs-head, .fs-on .fs-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; z-index: 2; margin: 0 -16px; padding: 12px 16px; background: #fff; grid-column: 1 / -1; }
  .fs-on .fs-head { top: 0; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--navy); }
  .fs-on .fs-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line); }
  .fs-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f0f2ec; color: var(--navy); font-size: 16px; cursor: pointer; }
  .fs-on .fs-foot { bottom: 0; margin-top: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .fs-clear { font-weight: 600; white-space: nowrap; }
  .fs-show { flex: 1; max-width: 260px; min-height: 46px; margin: 0 !important; width: auto !important; }
  .fs-show[aria-busy="true"] { opacity: .7; }
  .fs-on .filter-fields { padding-top: 12px; }
  .fs-on .phone-deal-filters.fs-sheet { gap: 12px; padding-top: 0; }
  .fs-backdrop { position: fixed; inset: 0; z-index: 1000; background: #0e1f1a80; }
  .fs-backdrop:not([hidden]) { display: block; }
  body.fs-locked { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .js .fs-on .fs-sheet, .js .fs-on .fs-sheet.is-open { transition: none; }
}
