/* BSK Mobile Shell 0.9.0 (the filter rules date from 0.7.0): phone search for the home search card and for the results page (Properties).
   Phones only (below 721px). Every rule starts with body.bsk-m-app, so it wins over the listing plugin's rules
   and changes nothing on a desktop page. The first rules only keep the phone pieces hidden on desktop.

   Filters screen: the Filters button opens a full-screen column for the search it belongs to: the card on the home
   page (.bskpl-hs-form) or the search bar on the results page (.bskpl-searchbar). Both get .bsk-m-sheet-open, and
   their fields become one column in zameen.com's order: Purpose, City, Location, Property type (tabs, then a strip),
   Price range, Area, Bedrooms, Bathrooms, then on the results page Keyword and More filters, then a bottom bar with
   Reset and "Show N Ads". The rows use display: contents, so the plugin's own fields move into that column without
   any change to the plugin. :is(.bskpl-hs-form, .bskpl-searchbar) means "either of those two searches". */

/* Desktop: the phone pieces stay hidden. The bar is transparent to the layout, so the plugin's rows draw as before. */
.bsk-m-filter-btn,
.bsk-m-sheet-head,
.bsk-m-chips,
.bsk-m-dd-head,
.bsk-m-sec,
.bsk-m-opts,
.bsk-m-strip,
.bsk-m-reset,
.bsk-m-filter-count[hidden] { display: none; }
.bsk-m-bar { display: contents; }

@media (max-width: 720px) {
  /* ---- Closed, home card: title, tabs, and the bottom row with Filters and Search ---- */
  /* Title and tabs: app font; silver at rest, green when touched or selected */
  body.bsk-m-app .bskpl-hs .bskpl-hs-title {
    font-family: var(--bsk-m-font);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 14px;
    text-wrap: balance;
  }
  body.bsk-m-app .bskpl-hs .bskpl-hs-tabs { gap: 8px; }
  body.bsk-m-app .bskpl-hs .bskpl-hs-tab {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--bsk-m-silver);
    color: var(--bsk-m-ink);
    font-family: var(--bsk-m-font);
    font-size: 15px;
    font-weight: 700;
    -webkit-tap-highlight-color: transparent;
  }
  body.bsk-m-app .bskpl-hs .bskpl-hs-tab:active,
  body.bsk-m-app .bskpl-hs .bskpl-hs-tab.on,
  body.bsk-m-app .bskpl-hs .bskpl-hs-tab:has(input:checked) {
    background: var(--bsk-m-green);
    border-color: var(--bsk-m-green);
    color: #fff;
  }
  body.bsk-m-app .bskpl-hs .bskpl-hs-tab.is-soon {
    background: rgba(236, 233, 223, .55);
    border-style: dashed;
    color: var(--bsk-m-muted);
  }
  /* Projects is a link tab; the plugin paints link tabs white, which is unreadable on silver */
  body.bsk-m-app .bskpl-hs .bskpl-hs-hero .bskpl-hs-tab.is-link { color: var(--bsk-m-ink); }

  /* City, Location and Property type stack one under another, so no choice is cut off ("All locations") */
  body.bsk-m-app .bskpl-hs .bskpl-hs-row-top { grid-template-columns: minmax(0, 1fr); }

  /* Closed: the bottom row shows only the Filters and Search buttons */
  body.bsk-m-app .bskpl-hs .bskpl-hs-row-bottom {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 10px;
    align-items: stretch;
  }
  body.bsk-m-app .bskpl-hs .bskpl-hs-row-bottom .bskpl-f-area,
  body.bsk-m-app .bskpl-hs .bskpl-hs-row-bottom .bskpl-f-beds,
  body.bsk-m-app .bskpl-hs .bskpl-hs-row-bottom .bskpl-f-price { display: none; }
  body.bsk-m-app .bskpl-hs .bskpl-hs-row-bottom .bskpl-hs-go { grid-column: auto; }
  body.bsk-m-app .bskpl-hs .bskpl-hs-go .bskpl-btn { min-height: 52px; font-size: 16px; font-weight: 900; }

  /* Filters button: silver at rest, green when touched or open. Made on the card; the results page uses its own button */
  body.bsk-m-app .bsk-m-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--bsk-m-silver);
    color: var(--bsk-m-ink);
    font-family: var(--bsk-m-font);
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  body.bsk-m-app .bsk-m-filter-btn svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--bsk-m-khaki); }
  body.bsk-m-app .bsk-m-filter-btn:active,
  body.bsk-m-app .bsk-m-filter-btn[aria-expanded="true"] { background: var(--bsk-m-green); color: #fff; }
  body.bsk-m-app .bsk-m-filter-btn:active svg,
  body.bsk-m-app .bsk-m-filter-btn[aria-expanded="true"] svg { color: #fff; }

  /* The count on a Filters button (card or results page): green, white figure */
  body.bsk-m-app .bsk-m-filter-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--bsk-m-green);
    color: #fff;
    font-size: 13px;
    line-height: 22px;
    text-align: center;
  }
  body.bsk-m-app .bsk-m-filter-btn:active .bsk-m-filter-count,
  body.bsk-m-app .bsk-m-filter-btn[aria-expanded="true"] .bsk-m-filter-count { background: #fff; color: var(--bsk-m-green); }
  body.bsk-m-app .bsk-m-filter-count[hidden] { display: none; }

  /* ---- Open: the Filters screen covers the page. The card and the results search bar share these rules ---- */
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-hs-hero,
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-chips,
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-filter-btn,
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-f-type { display: none; }

  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open :is(.bskpl-hs-fields, .bskpl-fields) {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 96;
    display: flex;
    flex-direction: column;
    /* 0.9.0: the plugin's .bskpl-fields sets align-items: end, which pushed every field to the right edge */
    align-items: stretch;
    justify-items: stretch;
    gap: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    color: var(--bsk-m-ink);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-hs-row { display: contents; }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-f-city { order: 3; }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-f-loc { order: 4; }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-f-price { display: block; order: 6; }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-f-area { display: block; order: 7; }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-f-beds:not([hidden]) { display: block; order: 8; }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-f-baths:not([hidden]) { display: block; order: 9; }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-f-kw { order: 10; }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-more { order: 11; align-self: stretch; grid-column: auto; position: static; }
  body.bsk-m-app .bskpl-f[hidden] { display: none !important; }

  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-sheet-head {
    display: grid;
    grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
    align-items: center;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 4;
    order: 1;
    min-height: 64px;
    margin: 0 -16px;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px;
    background: #fff;
    border-bottom: 1px solid var(--bsk-m-line);
  }
  body.bsk-m-app .bsk-m-sheet-title {
    font-family: var(--bsk-m-font);
    font-size: 18px;
    font-weight: 800;
    color: #000;
    justify-self: center;
    text-align: center;
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-sec-purpose { display: flex; order: 2; }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-sec-type { display: flex; order: 5; }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-sec {
    width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: 10px;
    padding: 18px 0;
    border-bottom: 1px solid #e3e7e1;
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-sec-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--bsk-m-font);
    font-size: 16px;
    font-weight: 800;
    color: #000;
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-f-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-family: var(--bsk-m-font);
    font-size: 15px;
    font-weight: 800;
    color: #000;
    text-transform: none;
    letter-spacing: 0;
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open :is(.bskpl-f-beds, .bskpl-f-baths) .bskpl-dd { display: none; }

  /* Choice buttons: Buy, Rent and All, the property type tabs, the strip under them, and the bedroom and bathroom chips */
  body.bsk-m-app .bsk-m-opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #9aa3ad;
    border-radius: 8px;
    background: #fff;
    color: #000;
    font-family: var(--bsk-m-font);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  body.bsk-m-app .bsk-m-strip .bsk-m-opt,
  body.bsk-m-app .bsk-m-opts-beds .bsk-m-opt { border-radius: 999px; }
  body.bsk-m-app .bsk-m-opt:active,
  body.bsk-m-app .bsk-m-opt[aria-pressed="true"] {
    background: var(--bsk-m-green);
    border-color: var(--bsk-m-green);
    color: #fff;
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-opts-two {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-opts-three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-opts-two .bsk-m-opt,
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-opts-three .bsk-m-opt { width: 100%; padding: 0 8px; }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-opts-beds { margin-top: 8px; }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 -16px;
    padding: 2px 16px 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-strip::-webkit-scrollbar { display: none; }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-strip[hidden] { display: none; }

  /* Bottom bar: Reset and Show N Ads, always in view. On the results page the plugin's Search button sits inside it */
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-bar {
    display: flex;
    align-items: stretch;
    gap: 10px;
    position: sticky;
    bottom: 0;
    z-index: 3;
    order: 20;
    margin: auto -16px 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--bsk-m-line);
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 104px;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #9aa3ad;
    border-radius: 8px;
    background: #fff;
    color: #000;
    font-family: var(--bsk-m-font);
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-reset:active {
    background: var(--bsk-m-green);
    border-color: var(--bsk-m-green);
    color: #fff;
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-bar :is(.bskpl-hs-go, .bskpl-go) {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0;
    grid-column: auto;
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-bar :is(.bskpl-btn, .bskpl-btn-go) {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-bar .bskpl-textlink { display: none; }

  /* Results page only: More filters opens inside the screen, and Keyword gets a full-width box */
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-more summary {
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    border: 1px dashed #b8c4b8;
    border-radius: 8px;
    font-family: var(--bsk-m-font);
    font-size: 16px;
    font-weight: 900;
    color: var(--bsk-m-green);
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-more .bskpl-checks {
    position: static;
    z-index: auto;
    top: auto;
    left: auto;
    right: auto;
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: grid;
    gap: 2px;
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-more .bskpl-checks label {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    font-family: var(--bsk-m-font);
    font-size: 16px;
    font-weight: 700;
    color: var(--bsk-m-ink);
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-more .bskpl-checks input[type="checkbox"] {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: var(--bsk-m-green);
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-f-kw input[type="search"] {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #cdd3dc;
    border-radius: 8px;
    background: #fff;
    color: var(--bsk-m-ink);
    font-family: var(--bsk-m-font);
    font-size: 16px;
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-f-kw input[type="search"]:focus {
    outline: 2px solid var(--bsk-m-green);
    outline-offset: 0;
    border-color: var(--bsk-m-green);
  }

  /* Results page: the plugin's own Filters and Search buttons get the card's height (the plugin uses 42 px) */
  body.bsk-m-app .bskpl-mobile-toggle,
  body.bsk-m-app .bskpl-mobile-go { min-height: 52px; }

  /* The page's own top bar, side menu, bottom bar and promo strip stay out of the way while a list or the screen is open */
  html.bsk-m-sheet-lock,
  html.bsk-m-sheet-lock body { overflow: hidden; }
  html.bsk-m-sheet-lock .bsk-m-top,
  html.bsk-m-sheet-lock .bsk-m-bottom,
  html.bsk-m-sheet-lock .bsk-m-promo { display: none !important; }

  /* Close buttons: silver at rest, green when touched */
  body.bsk-m-app .bsk-m-sheet-close,
  body.bsk-m-app .bsk-m-dd-close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 8px;
    background: var(--bsk-m-silver);
    color: var(--bsk-m-khaki);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  body.bsk-m-app .bsk-m-sheet-close svg,
  body.bsk-m-app .bsk-m-dd-close svg { width: 22px; height: 22px; }
  body.bsk-m-app .bsk-m-sheet-close:active,
  body.bsk-m-app .bsk-m-dd-close:active { background: var(--bsk-m-green); color: #fff; }
  /* A tap or a script focus shows no ring; keyboard users still get one */
  body.bsk-m-app .bsk-m-sheet-close:focus,
  body.bsk-m-app .bsk-m-dd-close:focus,
  body.bsk-m-app .bsk-m-filter-btn:focus { outline: none; }
  body.bsk-m-app .bsk-m-sheet-close:focus-visible,
  body.bsk-m-app .bsk-m-dd-close:focus-visible,
  body.bsk-m-app .bsk-m-filter-btn:focus-visible { outline: 2px solid var(--bsk-m-green); outline-offset: 2px; }

  /* Chips: the filters chosen so far on the card; tap one to remove it */
  body.bsk-m-app .bsk-m-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  body.bsk-m-app .bsk-m-chips[hidden] { display: none; }
  body.bsk-m-app .bsk-m-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 38px;
    padding: 0 8px 0 14px;
    border: 0;
    border-radius: 19px;
    background: var(--bsk-m-silver);
    color: var(--bsk-m-ink);
    font-family: var(--bsk-m-font);
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  body.bsk-m-app .bsk-m-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.bsk-m-app .bsk-m-chip svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--bsk-m-khaki); }
  body.bsk-m-app .bsk-m-chip:active { background: var(--bsk-m-green); color: #fff; }
  body.bsk-m-app .bsk-m-chip:active svg { color: #fff; }

  /* Full-screen lists for City, Location, Property type and the other pickers */
  body.bsk-m-app .bskpl-dd.bsk-m-dd-open .bskpl-dd-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 97;
    max-height: none;
    margin: 0;
    padding: 72px 8px calc(16px + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.bsk-m-app .bsk-m-dd-head { display: none; }
  body.bsk-m-app .bskpl-dd.bsk-m-dd-open .bsk-m-dd-head {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 98;
    height: 64px;
    box-sizing: border-box;
    padding: 8px max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px));
    background: #fff;
    border-bottom: 1px solid var(--bsk-m-line);
  }
  body.bsk-m-app .bsk-m-dd-search {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--bsk-m-line);
    border-radius: 8px;
    background: #fff;
    color: var(--bsk-m-ink);
    font-family: var(--bsk-m-font);
    font-size: 16px;
  }
  body.bsk-m-app .bsk-m-dd-search:focus { outline: 2px solid var(--bsk-m-green); outline-offset: 0; border-color: var(--bsk-m-green); }
  body.bsk-m-app .bskpl-dd-opt { min-height: 48px; padding: 12px; font-size: 16px; }
  body.bsk-m-app .bskpl-dd-opt[hidden] { display: none !important; }
  body.bsk-m-app .bskpl-dd-opt:active { background: var(--bsk-m-green); color: #fff; }

  /* ---- 0.9.0: the Filters screen in zameen.com's style. White fields with black text, green when touched or chosen,
     and a green line icon before each section and field. Every rule sits inside this query, so the desktop is unchanged. ---- */

  /* Each field is a row with a hairline under it. A row's icon comes from --bsk-m-ic, which the rows inherit. */
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-f {
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid #e3e7e1;
    --bsk-m-ic: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0,0,24,24'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12,21s-7-6.2-7-11.5a7,7,0,0,1,14,0C19,14.8,12,21,12,21z'/%3E%3Ccircle%20cx='12'%20cy='9.5'%20r='2.5'/%3E%3C/svg%3E");
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-sec-purpose {
    --bsk-m-ic: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0,0,24,24'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='8'%20cy='15'%20r='4'/%3E%3Cpath%20d='M10.85,12.15L19,4M18,5l3,3M15,8l2,2'/%3E%3C/svg%3E");
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-sec-type {
    --bsk-m-ic: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0,0,24,24'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3,11l9-7,9,7'/%3E%3Cpath%20d='M5,10v10h14V10'/%3E%3Cpath%20d='M10,20v-5h4v5'/%3E%3C/svg%3E");
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-f-price {
    --bsk-m-ic: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0,0,24,24'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='2'%20y='6'%20width='20'%20height='12'%20rx='2'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='2.5'/%3E%3Cpath%20d='M6,10v4M18,10v4'/%3E%3C/svg%3E");
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-f-area {
    --bsk-m-ic: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0,0,24,24'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3,17L17,3l4,4L7,21z'/%3E%3Cpath%20d='M7,13l2,2M10,10l2,2M13,7l2,2'/%3E%3C/svg%3E");
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-f-beds {
    --bsk-m-ic: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0,0,24,24'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3,18V6M3,14h18v4M21,14v-3a3,3,0,0,0-3-3h-7v6'/%3E%3Ccircle%20cx='7'%20cy='11'%20r='1.5'/%3E%3C/svg%3E");
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-f-baths {
    --bsk-m-ic: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0,0,24,24'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M4,12h16v3a4,4,0,0,1-4,4H8a4,4,0,0,1-4-4z'/%3E%3Cpath%20d='M6,12V6a2,2,0,0,1,4,0M7,19l-1,2M17,19l1,2'/%3E%3C/svg%3E");
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-f-kw {
    --bsk-m-ic: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0,0,24,24'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='11'%20cy='11'%20r='7'/%3E%3Cpath%20d='M21,21l-5.2-5.2'/%3E%3C/svg%3E");
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open :is(.bsk-m-sec-title, .bskpl-f-label)::before {
    content: "";
    display: block;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    background: var(--bsk-m-green);
    -webkit-mask: var(--bsk-m-ic) center / contain no-repeat;
    mask: var(--bsk-m-ic) center / contain no-repeat;
  }

  /* Header: a back arrow on the left (it closes the screen), the title in the middle, Done on the right */
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-sheet-close {
    justify-self: start;
    width: 44px;
    height: 44px;
    background: transparent;
    color: #000;
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-sheet-close:active {
    background: var(--bsk-m-green);
    color: #fff;
  }
  body.bsk-m-app .bsk-m-sheet-done {
    justify-self: end;
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--bsk-m-green);
    font-family: var(--bsk-m-font);
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  body.bsk-m-app .bsk-m-sheet-done:active { background: var(--bsk-m-green); color: #fff; }
  body.bsk-m-app .bsk-m-sheet-title:focus { outline: none; }

  /* Buy, Rent and All: one segmented control, the chosen part green */
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-sec-purpose .bsk-m-opts {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid #9aa3ad;
    border-radius: 8px;
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-sec-purpose .bsk-m-opt {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 0;
    font-size: 17px;
    font-weight: 800;
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bsk-m-sec-purpose .bsk-m-opt + .bsk-m-opt { border-left: 1px solid #9aa3ad; }

  /* Dropdown buttons (City, Location, Price, Area): white with black text; green when chosen or touched */
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-dd-btn {
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #9aa3ad;
    border-radius: 8px;
    background: #fff;
    color: #000;
    font-size: 16px;
    font-weight: 600;
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-dd-chev { color: #000; }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-dd.is-empty .bskpl-dd-val { color: #5f6b63; }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-dd.is-set .bskpl-dd-btn,
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-dd-btn:active {
    background: var(--bsk-m-green);
    border-color: var(--bsk-m-green);
    color: #fff;
  }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-dd.is-set .bskpl-dd-val,
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-dd .bskpl-dd-btn:active .bskpl-dd-val { color: #fff; }
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-dd.is-set .bskpl-dd-chev,
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-dd-btn:active .bskpl-dd-chev { color: #fff; }

  /* Number and keyword boxes: white, black text, 48 px tall (16 px text, so iPhone does not zoom in) */
  body.bsk-m-app :is(.bskpl-hs-form, .bskpl-searchbar).bsk-m-sheet-open .bskpl-f :is(input[type="number"], input[type="search"]):not(.bsk-m-dd-search) {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid #9aa3ad;
    border-radius: 8px;
    background: #fff;
    color: #000;
    font-family: var(--bsk-m-font);
    font-size: 16px;
  }
}
