/* The results page (N103, functions/views/_opportunities.js): the list on the start side, the
   sticky rounded map on the end side from 950px (58 / 42); below that the list, and the map
   full screen behind the dark Map/List pill. The map's pins and controls, and the filter
   sheet's controls (the old filter panel's .f-* markup, functions/views/_searchsheet.js).
   Logical properties only: the whole page mirrors from <html dir>. Colours are tokens. */

.srp { --srp-top: calc(var(--nav-h) + var(--space-5)); position: relative; display: grid; grid-template-columns: minmax(0, 1fr);
       padding-block: var(--space-4) var(--space-8); }
.srp-list { min-width: 0; padding-inline: var(--gut); }
.srp-map { display: none; }
.srp-map-in { position: relative; }
/* The map keeps its own (light) colours in both themes: inside it the page's tokens read the
   fixed --map-* ones, so the controls, the pins, the pin's card and the peek bar look the same in
   dark mode as in light (update/DESIGN_SYSTEM.md "Map pin"). */
.srp-map-in, .srp-layerpop {
  --paper: var(--map-pin); --surface: var(--map-pin); --surface-2: var(--map-ground); --ink: var(--map-pin-ink); --ink-2: var(--map-pin-ink-2);
  --ink-3: var(--map-pin-ink-3); --line: var(--map-line); --line-2: var(--map-line-2); --jade: var(--map-pin-on); --jade-2: var(--map-pin-on-2);
  --jade-wash: var(--map-pin-wash); --on-jade: var(--map-pin-on-ink); --ink-strong: var(--map-pin-on); --on-ink-strong: var(--map-pin-on-ink);
  --sh-1: var(--map-sh-1); --sh-2: var(--map-sh-2); --sh-3: var(--map-sh-3);
  color-scheme: light; color: var(--map-pin-ink);
}

/* ---------- the bar: Filters, the mode, Price, Type (the rest is in the dialog) ---------- */
/* the mode's menu (the pill's popover): the sort menu's rows, the current one ticked */
.srp-modepop { inline-size: min(300px, calc(100vw - 32px)); display: grid; gap: var(--space-3); }
.srp-modes { display: grid; gap: 2px; }
.srp-modes .srp-mode.on { font-weight: 600; }
.srp-modes .srp-mode.on .srp-tick { visibility: visible; }
.srp-modechip .srp-sortv { max-inline-size: none; }
.srp-bar { display: flex; align-items: center; gap: var(--space-3); padding-block: var(--space-2) var(--space-1); }
/* the pills scroll sideways inside .hs (style.css "chips", app.js): an edge fade and round arrows
   from 744px say there is more, so a pill past the sort is never just cut off */
.srp-chipsbox { flex: 1 1 auto; min-width: 0; }
.srp-chips { display: flex; align-items: center; gap: var(--space-2); min-width: 0; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.srp-chips::-webkit-scrollbar { display: none; }
.srp-chips .chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-block-size: 40px; padding: 0 var(--space-4); border-radius: var(--r-pill);
                   border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; }
.srp-chips .chip:hover { border-color: var(--ink); color: var(--ink); }
.srp-chips .chip.on { background: var(--surface-2); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.srp-chips .chip svg { width: 16px; height: 16px; flex: none; }
.srp-chips .chip .chev { width: 12px; height: 12px; }
.srp-chips .chip[aria-expanded="true"] .chev { transform: rotate(180deg); }
.srp-chips .count { display: inline-grid; place-items: center; min-inline-size: 20px; block-size: 20px; padding-inline: 6px; border-radius: var(--r-pill);
                    background: var(--ink-strong); color: var(--on-ink-strong); font-size: 12px; font-weight: 600; }
/* the Filters chip: its count takes the icon's place, in a slot of the same 20px, so the chip keeps
   its width when a filter or a quick toggle is added (every chip after it slid 26px on the click) */
.srp-chips .srp-fbtn > svg { margin-inline: 2px; }
.srp-fbtn:has(> .count) > svg { display: none; }
.srp-div { flex: none; inline-size: 1px; block-size: 24px; background: var(--line-2); }
/* "Show 56 units" / "Show 3 units" / "No units match": the count changes with every tick in the sheet
   and the popovers; a floor that holds the usual labels keeps the button's edge where it is */
.srp-show { min-inline-size: 12.5em; }
.srp-sort { position: relative; flex: none; margin: 0; }
.srp-sort > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-block-size: 40px; padding: 0 var(--space-4);
  border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; }
.srp-sort > summary::-webkit-details-marker { display: none; }
.srp-sort > summary:hover, .srp-sort[open] > summary { border-color: var(--ink); }
.srp-sort > summary .chev { width: 12px; height: 12px; }
.srp-sort[open] > summary .chev { transform: rotate(180deg); }
.srp-sortk { color: var(--ink-2); }
/* the orders' names in one cell, only the current one seen: the pill is as wide as the longest (like
   a native select), so picking another order moves neither it nor Save; a long one ends in "…" */
.srp-sortv { display: inline-grid; max-inline-size: 7em; }
.srp-sortv > span { grid-area: 1 / 1; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srp-sortv > span:not(.on) { visibility: hidden; }
/* the menu: the .pop look, anchored under the pill at its end */
.srp-sortmenu { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0; inline-size: max-content; min-inline-size: 240px;
                max-inline-size: calc(100vw - 32px); padding: var(--space-2); display: grid; gap: 2px; }
.srp-sort:not([open]) .srp-sortmenu { display: none; }
.srp-sorti { display: flex; align-items: center; gap: var(--space-3); min-block-size: 44px; padding: 0 var(--space-3); border-radius: var(--r); font-size: 15px; color: var(--ink); }
.srp-sorti:hover, .srp-sorti:focus-visible { background: var(--surface-2); }
.srp-tick { width: 16px; height: 16px; flex: none; visibility: hidden; }
.srp-sorti[aria-checked="true"] { font-weight: 600; }
.srp-sorti[aria-checked="true"] .srp-tick { visibility: visible; }
.srp-save { flex: none; min-block-size: 40px; padding: 0 var(--space-4); border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.srp-save:hover { border-color: var(--ink); }
.srp-save:disabled { opacity: .6; cursor: default; }
.srp-said { margin-block: calc(-1 * var(--space-3)) var(--space-4); color: var(--jade); }
.hsearch-pill.is-busy { opacity: .6; }
.srp-sort select { min-block-size: 40px; inline-size: auto; max-inline-size: 220px; padding-block: 6px; border-radius: var(--r-pill); font-size: 14px; }

/* ---------- the heading line and the cards ---------- */
/* how many on the start side; the order and Save, quiet text buttons, on the end side. The heading
   keeps to one line (a long one ends in "…"), so the cards never move when it changes. */
.srp-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-block: var(--space-4) var(--space-5); min-block-size: 40px; }
.srp-h { flex: 1 1 auto; min-inline-size: 0; margin: 0; font-size: clamp(18px, 2vw, 22px); font-weight: 600; line-height: 1.3;
         overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srp-acts { flex: none; display: flex; align-items: center; gap: var(--space-1); }
.srp-acts .srp-sort > summary { border-color: transparent; padding-inline: var(--space-3); color: var(--ink); }
.srp-acts .srp-sort > summary:hover, .srp-acts .srp-sort[open] > summary { border-color: transparent; background: var(--surface-2); }
.srp-save { display: inline-flex; align-items: center; gap: 6px; }
.srp-save svg { width: 18px; height: 18px; flex: none; }
.srp-acts .srp-save { border-color: transparent; padding-inline: var(--space-3); }
.srp-acts .srp-save:hover { border-color: transparent; background: var(--surface-2); }
/* its three words in one cell, the one in force seen: Save keeps one width while it saves */
.srp-savet { display: inline-grid; }
.srp-savet > span { grid-area: 1 / 1; visibility: hidden; }
.srp-save[data-state="idle"] [data-s="idle"], .srp-save[data-state="saving"] [data-s="saving"], .srp-save[data-state="saved"] [data-s="saved"] { visibility: visible; }
.srp-save[data-state="saved"] { color: var(--jade); }
.srp-cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--space-7) var(--space-5); }
.srp-cards.is-busy { opacity: .45; transition: opacity .15s var(--ease); }
.srp-more-wrap { display: flex; justify-content: center; margin-block-start: var(--space-6); }
.srp-more-wrap[hidden] { display: none; }
.srp-more.is-busy { opacity: .5; pointer-events: none; }
/* the next pages open below the button, so it never moves; the error sits under it */
.srp-more-wrap { flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.srp-more-msg { flex-basis: 100%; text-align: center; font-size: var(--fs-sm, .875rem); }
.srp-more-msg[hidden] { display: none; }
.srp-empty { margin-block: var(--space-5); border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--ink-2); }
.srp-empty-h { font-size: 18px; font-weight: 700; color: var(--ink); }
.srp-empty-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
/* a search that failed: said above the list with "Try again" (search.js); the list, the bar and
   the address stay as they were */
.srp-err { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); margin-block: var(--space-3);
           padding-block: var(--space-2); padding-inline: var(--space-4) var(--space-2); border: 1px solid color-mix(in srgb, var(--clay) 40%, var(--line));
           border-radius: var(--r-lg); background: var(--clay-wash); color: var(--ink); font-weight: 600; }
.srp-err[hidden] { display: none; }

/* ---------- the map ---------- */
.srp-canvas { position: absolute; inset: 0; background: var(--surface-2); }
.srp-nojs { position: absolute; inset: auto var(--space-4) var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--r); background: var(--surface); color: var(--ink-2); box-shadow: var(--sh-1); }
.srp-map .leaflet-container { font: inherit; background: var(--map-ground); }
.srp-map .leaflet-control-attribution { font-size: 11px; background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--ink-2); }
.srp-map .leaflet-control-attribution a { color: inherit; }
/* "Search as I move the map" at the top centre; "Search this area" (dark) when it is off */
.srp-ms { position: absolute; inset-block-start: var(--space-4); inset-inline: 0; z-index: 500; display: grid; justify-items: center; gap: var(--space-2); pointer-events: none; }
.srp-ms[hidden], .srp-ms [hidden] { display: none !important; }
.srp-ms > * { pointer-events: auto; }
.srp-auto, .srp-here, .srp-clearbox, .srp-status { display: inline-flex; align-items: center; gap: var(--space-2); min-block-size: 40px; padding: 0 var(--space-4);
  border-radius: var(--r-pill); box-shadow: var(--sh-2); font-size: 14px; font-weight: 600; line-height: 1.2; }
.srp-auto { background: var(--map-pin); color: var(--map-pin-ink); cursor: pointer; }
.srp-auto:hover { color: var(--map-pin-on); }
.srp-auto input { margin: 0; }
.srp-here, .srp-clearbox { border: 0; background: var(--map-pin-on); color: var(--map-pin-on-ink); cursor: pointer; }
.srp-here:hover, .srp-clearbox:hover { background: var(--map-pin-on-2); }
.srp-clearbox svg { width: 12px; height: 12px; }
/* "Zoom in to see each unit": a small chip on one line under the switch (cut with … where a
   phone is too narrow; the whole sentence is its title) */
.srp-status { display: block; min-block-size: 0; padding: 4px 10px; background: var(--surface); color: var(--ink-2); box-shadow: var(--sh-1);
  font-size: 12px; font-weight: 500; line-height: 16px; max-inline-size: calc(100% - 120px); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srp-status.is-err { color: var(--clay); white-space: normal; }
/* the controls: round 40px buttons on the inline end */
.srp-tools { position: absolute; inset-block-start: var(--space-4); inset-inline-end: var(--space-4); z-index: 500; display: grid; gap: var(--space-2); }
.srp-tools[hidden] { display: none; }
/* the column is as wide as its widest button (Price map): the empty space beside the round buttons is the map's, not the column's */
.srp-tools { pointer-events: none; }
.srp-tools > * { pointer-events: auto; }
.srp-tool { inline-size: 40px; block-size: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--map-pin); color: var(--map-pin-ink);
            box-shadow: var(--sh-2); font-size: 22px; line-height: 1; cursor: pointer; }
.srp-tool:hover { background: var(--map-pin-wash); color: var(--map-pin-on); }
.srp-tool svg { width: 20px; height: 20px; }
.srp-tool[aria-pressed="true"], .srp-tool[aria-expanded="true"] { background: var(--map-pin-on); color: var(--map-pin-on-ink); }
#srp-zout { margin-block-end: var(--space-2); }
.srp-drawhint { position: absolute; inset-block-end: var(--space-5); inset-inline: var(--space-4); z-index: 500; margin: 0 auto; max-inline-size: 420px;
                padding: var(--space-2) var(--space-4); border-radius: var(--r-pill); background: var(--map-pin-on); color: var(--map-pin-on-ink); font-size: 13px; text-align: center; box-shadow: var(--sh-2); }
.srp-drawhint[hidden] { display: none; }
.srp-layerpop { position: absolute; inset-block-start: var(--space-4); inset-inline-end: 64px; z-index: 600; }
/* a phone: the panel is a sheet at the bottom (style.css .pop), over the list's handle; the
   floating buttons and the Map/List pill step aside while it is open (search-map.js setLayers) */
@media (max-width: 743px) {
  .srp-layerpop { z-index: 1100; }   /* over Leaflet's own controls (1000) and the list's handle */
  html.srp-layers-open .wa, html.srp-layers-open .as-bubble, html.srp-layers-open .srp-toggle { display: none !important; }
}
/* no text selection from a drag: it would scroll the page when the pointer nears the window's edge */
.map-drawpad { position: absolute; inset: 0; z-index: 450; cursor: crosshair; touch-action: none; -webkit-user-select: none; user-select: none; }
.map-box { stroke: var(--map-pin-on); fill: var(--map-pin-on); }

/* a price pin: a small white pill with a short price (Airbnb-size), dark when hovered or chosen,
   grey once seen; every unit its own pill at every zoom, overlapping its neighbours if it must
   (search-map.js layoutPins: no dots, no counts) */
/* left/top 0 (physical): with no inset, an RTL page hung the pill off the left of its zero-width
   marker, so every Arabic pin sat one pill-width left of its place and its card's tip */
.mp-wrap { background: none; border: 0; }
.mp { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 4px; block-size: 24px; padding: 0 8px;
      border-radius: var(--r-pill); background: var(--map-pin); color: var(--map-pin-ink); box-shadow: 0 0 0 1px var(--map-line-2), var(--map-sh-1); white-space: nowrap; cursor: pointer;
      font-size: 13px; font-weight: 700; line-height: 1; transition: transform .12s var(--ease); }
.mp-l { font-weight: 700; }
.mp.is-seen { background: var(--map-pin-seen); color: var(--map-pin-ink-2); }
/* hovered (or its card hovered): white with a jade ring and jade text; chosen: jade with white text */
.mp.is-hl, .leaflet-marker-icon:focus-visible .mp { background: var(--map-pin); color: var(--map-pin-on); box-shadow: 0 0 0 2px var(--map-pin-on), var(--map-sh-2); transform: translate(-50%, -50%) scale(1.08); }
.mp.is-sel { background: var(--map-pin-on); color: var(--map-pin-on-ink); box-shadow: var(--map-sh-2); transform: translate(-50%, -50%) scale(1.08); }
.mp-area.is-sel .mp-n { color: inherit; }
.mp.is-feat:not(.is-hl):not(.is-sel)::before { content: ""; inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--gold); }
/* a badge another one holds: not drawn, not in the Tab order (its holder speaks for it) */
.mp.is-member { visibility: hidden; pointer-events: none; }
/* a place further out (an area summary, never one unit): two lines, the place with a location
   mark, then "7 units · average EGP 2.35M"; larger and squarer than a price pill */
.mp-area { flex-direction: column; align-items: flex-start; gap: 2px; block-size: auto; padding: 6px 12px; border-radius: var(--r-lg); line-height: 1.2; box-shadow: var(--map-sh-2); }
.mp-area .mp-l { display: inline-flex; align-items: center; gap: 4px; }
.mp-area .mp-l::before { content: ""; flex: none; inline-size: 10px; block-size: 12px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M5 0a4.5 4.5 0 0 0-4.5 4.5C.5 7.6 5 12 5 12s4.5-4.4 4.5-7.5A4.5 4.5 0 0 0 5 0zm0 6.2a1.7 1.7 0 1 1 0-3.4 1.7 1.7 0 0 1 0 3.4z'/%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 10 12'%3E%3Cpath d='M5 0a4.5 4.5 0 0 0-4.5 4.5C.5 7.6 5 12 5 12s4.5-4.4 4.5-7.5A4.5 4.5 0 0 0 5 0zm0 6.2a1.7 1.7 0 1 1 0-3.4 1.7 1.7 0 0 1 0 3.4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.mp-area .mp-n { font-size: 12px; font-weight: 500; color: var(--map-pin-ink-2); }
.mp-area.is-hl .mp-n { color: var(--map-pin-ink-2); }
/* the district colouring (Layers): shapes OSM has none for are dashed */
.srp-map path.mr-approx { stroke-dasharray: 4 3; }
/* the pin's card: a popup on a wide map */
.srp-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: var(--r-lg); box-shadow: var(--sh-3); background: var(--surface); color: var(--ink); overflow: hidden; }
.srp-popup .leaflet-popup-content { margin: 0; inline-size: 280px !important; }
.srp-popup.is-many .leaflet-popup-content { inline-size: 320px !important; }
.srp-popup .leaflet-popup-tip { background: var(--surface); }
.srp-map .leaflet-container .srp-popup a.leaflet-popup-close-button { z-index: 3; inset-block-start: 8px; inset-inline-end: 8px; inset-inline-start: auto; inline-size: 30px; block-size: 30px;
  display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--ink); font: 600 18px/1 var(--font); box-shadow: var(--sh-1); }
/* a pin hovered on the map lights its list card in the pin's jade, as the card lights the pin */
#results .u.is-hl .u-media { box-shadow: 0 0 0 2px var(--map-pin-on); }
.srp-pop .u { gap: 0; }
.srp-popup .srp-pop p, .srp-pincard p { margin: 0; }
.srp-map .leaflet-container .srp-pop a, .srp-map .leaflet-container .srp-pop a:hover { color: inherit; }
.srp-pop .u-specs, .srp-pop .cbar { display: none; }
.srp-pop .u-media { border-radius: 0; aspect-ratio: 16 / 10; }
.srp-pop .u-body { padding: var(--space-3) var(--space-4) var(--space-4); }
.srp-pop .u-fav { inset-inline-end: 44px; }
.srp-pop .cbar { display: none; }
/* …and a card at the bottom on a phone */
.srp-pincard { position: absolute; inset-inline: var(--space-3); inset-block-end: calc(var(--space-3) + 64px); z-index: 700; padding: var(--space-3);
               background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-3); }
.srp-pincard[hidden] { display: none; }
.srp-pincard .u { flex-direction: row; gap: var(--space-3); align-items: stretch; }
.srp-pincard .u-media { flex: 0 0 120px; aspect-ratio: auto; min-block-size: 120px; }
.srp-pincard .u-badges, .srp-pincard .u-dots, .srp-pincard .cbar, .srp-pincard .u-specs { display: none; }
.srp-pincard .u-fav { inset-block-start: 0; inset-inline-end: auto; inset-inline-start: 0; }
.srp-pincard .u-body { padding-inline-end: 36px; align-content: center; }
/* a card this narrow (a phone's pin card, a popup's list): the name keeps its room and "Documents
   verified" goes under it when both do not fit (it left the name one letter and "…" at 390px) */
.srp-pincard .u-l1, .srp-pops-l .u-l1 { flex-wrap: wrap; }
/* pins on one spot: their cards as a list under how many they are (a popup on a wide map, the
   sheet on a phone), each a row like the phone's pin card */
.srp-pops-h { margin: 0; padding: var(--space-3) var(--space-4); padding-inline-end: 52px; font-weight: 700; border-block-end: 1px solid var(--line); }
.srp-pincard.is-many { padding: 0; }
.srp-pincard.is-many .srp-pops-h { padding-inline-end: 48px; }
.srp-pops-l { max-block-size: min(52vh, 420px); overflow-y: auto; overscroll-behavior: contain; }
.srp-pops-l .u { flex-direction: row; gap: var(--space-3); align-items: stretch; border-block-end: 1px solid var(--line); }
.srp-pops-l .u:last-child { border-block-end: 0; }
.srp-pop .srp-pops-l .u-media, .srp-pincard .srp-pops-l .u-media { flex: 0 0 88px; aspect-ratio: auto; min-block-size: 96px; border-radius: 0; }
.srp-pops-l .u-badges, .srp-pops-l .u-dots, .srp-pops-l .cbar, .srp-pops-l .u-specs { display: none; }
.srp-pop .srp-pops-l .u-body, .srp-pincard .srp-pops-l .u-body { padding: var(--space-3); padding-inline-start: 0; align-content: center; }
.srp-pop .srp-pops-l .u-fav, .srp-pincard .srp-pops-l .u-fav { inset-block-start: 4px; inset-inline-start: 4px; inset-inline-end: auto; }
.srp-pincard-x { position: absolute; inset-block-start: var(--space-2); inset-inline-end: var(--space-2); z-index: 3; inline-size: 32px; block-size: 32px;
                 display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); cursor: pointer; }
.srp-pincard-x svg { width: 14px; height: 14px; }
/* the list as a sheet over the map on a phone: its handle, "24 units" */
.srp-peek { display: none; }
.srp-chips a.srp-mapchip { display: none; }   /* a phone's or tablet's way to the map (search.js): see the 949px block below */
.srp-chips a.srp-mapchip svg { inline-size: 18px; block-size: 18px; flex: none; }

/* ---------- the Map / List pill (phones) ---------- */
.srp-toggle { position: fixed; inset-inline-start: 50%; inset-block-end: calc(var(--space-6) + env(safe-area-inset-bottom)); z-index: 800; display: none;
              align-items: center; gap: var(--space-2); min-block-size: 48px; padding: 0 var(--space-5); border: 0; border-radius: var(--r-pill);
              background: var(--ink-strong); color: var(--on-ink-strong); box-shadow: var(--sh-2); font-size: 14px; font-weight: 600; cursor: pointer;
              translate: -50% 0; white-space: nowrap; }
[dir="rtl"] .srp-toggle { translate: 50% 0; }
/* over the map it keeps the map's fixed dark, in both themes */
.srp[data-view="map"] .srp-toggle { background: var(--map-pin-ink); color: var(--map-pin); box-shadow: var(--map-sh-2); }
.srp-toggle svg { width: 18px; height: 18px; }
/* "Map" and "List" in one cell, one seen: the pill keeps its width when it switches */
.srp-toggle-t { display: inline-grid; }
.srp-toggle-t > span { grid-area: 1 / 1; text-align: center; }
.srp-toggle-t > span:not(.on) { visibility: hidden; }
.srp-ico { line-height: 0; }
.srp-ico[hidden] { display: none; }
.srp-pop-open .srp-toggle, .srp-modal .srp-toggle, .hs-open .srp-toggle { display: none !important; }
/* a sheet or a phone popover covers the page: the floating buttons wait under it */
.srp-modal .wa, .srp-modal .as-bubble, .srp-pop-open .wa, .srp-pop-open .as-bubble { display: none; }
.in-app .srp-toggle { inset-block-end: calc(76px + env(safe-area-inset-bottom)); }

@media (max-width: 949px) {
  /* a row that scrolls runs to the screen's edge, so the cut-off chip says there is more */
  .srp-chips { margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
  .srp.in-view .srp-toggle, .srp[data-view="map"] .srp-toggle { display: inline-flex; }
  .srp-chips a.srp-mapchip { display: inline-flex; }
  .srp[data-view="map"] .srp-map { display: block; position: fixed; inset: 0; z-index: 400; background: var(--map-ground); }
  /* the map view starts under the site's header, which stays in reach (UIJ-036; search.js mapRoom
     sets where the header ends) */
  .srp[data-view="map"] .srp-map { inset-block-start: var(--srp-map-top, var(--nav-h)); }
  /* Leaflet's attribution above the list's handle, not on it */
  .srp[data-view="map"] .leaflet-bottom { bottom: var(--srp-peek-h, 58px); }
  /* a failed search over the map, where the list is not seen: above the Map/List pill */
  html.srp-map-open .srp-err:not([hidden]) { position: fixed; inset-inline: var(--space-4); inset-block-end: calc(136px + env(safe-area-inset-bottom)); z-index: 850; margin: 0; box-shadow: var(--sh-2); }
  /* the floating buttons over the map, clear of the list's handle and the attribution: on the
     Map/List pill's line, at the sides; away while a pin's card is up */
  html.srp-map-open .wa, html.srp-map-open .as-bubble { inset-block-end: calc(76px + env(safe-area-inset-bottom)); z-index: 410; }
  html.srp-map-open:has(.srp-pincard:not([hidden])) .wa, html.srp-map-open:has(.srp-pincard:not([hidden])) .as-bubble { display: none; }
  .srp[data-view="map"] .srp-map-in { position: absolute; inset: 0; }
  .srp[data-view="map"] .srp-peek { position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 600; display: grid; justify-items: center; gap: 6px;
    padding: var(--space-2) var(--space-4) max(var(--space-4), env(safe-area-inset-bottom)); border: 0; border-radius: var(--r-xl) var(--r-xl) 0 0;
    background: var(--surface); color: var(--ink); box-shadow: var(--sh-3); font-size: 14px; font-weight: 600; cursor: pointer; }
  /* the same place over the list and over the map (where it clears the list's handle at the bottom) */
  .srp-toggle { inset-block-end: calc(76px + env(safe-area-inset-bottom)); }
  .srp-grip { inline-size: 36px; block-size: 4px; border-radius: 2px; background: var(--line-2); }
  html.srp-map-open { overflow: hidden; }
  .srp[data-view="map"]:has(.srp-pincard:not([hidden])) .srp-toggle { display: none; }
  .srp[data-view="map"] .srp-ms { inset-inline: var(--space-4) 72px; justify-items: start; }
  .srp[data-view="map"] .srp-status { max-inline-size: 100%; }
  /* the site's header (and its menu, which opens down over the map) above the map view: the
     map is a fixed layer at 400, the header's own 90 left its menu under it (a tap on ☰ did
     nothing you could see) */
  html.srp-map-open:not(.hs-open) .nav { z-index: 820; }
  .srp-auto, .srp-here, .srp-clearbox { font-size: 13px; padding-inline: var(--space-3); }
}
@media (min-width: 950px) {
  .srp { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); padding-block-start: var(--space-2); }
  .srp-list { padding-inline-end: var(--space-5); }
  .srp-map { display: block; padding-inline-end: var(--gut); }
  .srp-map-in { position: sticky; inset-block-start: var(--srp-top); block-size: calc(100vh - var(--srp-top) - var(--space-5)); border-radius: var(--r-lg); overflow: hidden; }
  .srp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1440px) { .srp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .srp-cards { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  /* the heading's line on a phone: "Sort" and Save say it with an arrow and an icon */
  .srp-head { margin-block: var(--space-3) var(--space-4); }
  .srp-acts .srp-sortk, .srp-acts .srp-savet { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .srp-acts .srp-sort > summary, .srp-acts .srp-save { padding-inline: var(--space-2); }
}

/* ---------- the filter sheet's controls (functions/views/_searchsheet.js) ---------- */
.sheet .f-g { border: 0; border-block-end: 1px solid var(--line); border-radius: 0; background: none; }
.sheet .f-g:last-child { border-block-end: 0; }
.sheet .f-g > summary { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-5) 0; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.sheet .f-g > summary::-webkit-details-marker { display: none; }
.sheet .f-g > summary::after { content: ""; inline-size: 8px; block-size: 8px; margin-inline-start: auto; border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.sheet .f-g[open] > summary::after { transform: rotate(-135deg); }
.f-gt { margin-inline-end: auto; }
.f-gc { display: inline-grid; place-items: center; min-inline-size: 22px; block-size: 22px; padding-inline: 6px; border-radius: var(--r-pill); background: var(--ink-strong); color: var(--on-ink-strong); font-size: 12px; font-weight: 600; }
.f-b { display: grid; gap: var(--space-3); padding-block-end: var(--space-5); }
.f-scroll { max-block-size: 300px; overflow-y: auto; overscroll-behavior: contain; }
.f-sub-l { font-size: 14px; font-weight: 600; color: var(--ink); margin-block-start: var(--space-1); }
.f-hint { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.f-hint-top { margin: 0; }
.f-none { padding: var(--space-2); }
.f-opt { display: flex; align-items: center; gap: var(--check-gap); min-block-size: 44px; padding: 4px var(--space-2); border-radius: var(--r-xs); cursor: pointer; }
.f-opt:hover { background: var(--surface-2); }
.f-opt input { flex: none; }
.f-opt-t { flex: 1; min-width: 0; display: grid; }
.f-opt-l { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.f-opt-note { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.f-opt.is-zero .f-opt-l, .f-pill.is-zero > span { color: var(--ink-3); }
.f-n { flex: none; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.f-city + .f-city { margin-block-start: var(--space-2); border-block-start: 1px solid var(--line); padding-block-start: var(--space-2); }
.f-city-h { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 6px var(--space-2); border-radius: var(--r-xs); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.f-city-h:hover { background: var(--surface-2); color: var(--ink); }
.f-city-a { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.f-nest { margin-inline-start: 28px; padding-inline-start: var(--space-2); border-inline-start: 2px solid var(--line); }
.f-dev:not(:has(input:checked)) > .f-nest { display: none; }
.f-pills-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.f-pill { position: relative; display: inline-flex; }
.f-pill input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; opacity: 0; margin: 0; cursor: pointer; }
.f-pill > span { display: inline-flex; align-items: center; gap: 7px; min-block-size: 40px; padding: 0 var(--space-4); border-radius: var(--r-pill);
                 border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--ink); background: var(--surface); }
.f-pill:hover > span { border-color: var(--ink); }
.f-pill input:checked + span { background: var(--surface-2); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.f-pill input:focus-visible + span { outline: 2.5px solid var(--jade); outline-offset: 2px; }
.f-num-l { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-block-end: var(--space-1); }
.f-num-in { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.f-num-in:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.f-num-in input { flex: 1; min-width: 0; min-block-size: 44px; padding: 8px 12px; border: 0; background: transparent; direction: ltr; text-align: start; font-variant-numeric: tabular-nums; font-size: 15px; }
[dir="rtl"] .f-num-in input { text-align: end; }
.f-num-in input:focus { outline: 0; box-shadow: none; }
.f-num-u { display: grid; place-items: center; padding-inline: var(--space-3); font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border-inline-start: 1px solid var(--line); white-space: nowrap; }
.f-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.f-find { position: relative; display: flex; align-items: center; }
.f-find svg { position: absolute; inset-inline-start: 12px; width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.f-find input { inline-size: 100%; min-block-size: 44px; padding-inline: 36px 12px; border-radius: var(--r-pill); font-size: 14px; }
@media (max-width: 600px) { .f-two { grid-template-columns: 1fr; } }
@media (max-width: 743px) { .srp-sortmenu { position: fixed; z-index: 150; } }

/* ---------- the filter dialog (owner 2026-10-25, Airbnb's): open sections under thin rules ---------- */
.sheet .f-s { padding-block: var(--space-6); border-block-end: 1px solid var(--line); }
.sheet .f-s-seg { padding-block-start: var(--space-5); }
.f-st { margin: 0 0 var(--space-4); font-size: 20px; font-weight: 600; line-height: 1.3; }
.f-sn { margin: calc(-1 * var(--space-3)) 0 var(--space-4); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.f-s > .f-b { padding: 0; gap: var(--space-4); }
/* what matters most: two columns of ticks on a wide dialog */
.f-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-1) var(--space-5); }
/* the rest: one row each that opens */
.f-more > .f-g:last-child { border-block-end: 0; }
.sheet .f-more .f-g > summary { padding-block: var(--space-5); font-size: 17px; }
/* the chevron points down, and up when open, in both directions (physical sides: with the logical
   ones it pointed sideways in Arabic) */
.sheet .f-g > summary::after { border: 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.sheet .f-g[open] > summary::after { transform: translateY(2px) rotate(-135deg); }

/* the segmented control: the kinds of listing, one on (links: the page of that kind) */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); }
.seg-i { display: grid; place-items: center; min-block-size: 48px; padding: var(--space-2) var(--space-3); border-radius: calc(var(--r-lg) - 4px); font-size: 15px; font-weight: 500;
         color: var(--ink); text-align: center; line-height: 1.25; }
.seg-i:hover { background: var(--surface-2); color: var(--ink); }
.seg-i.on { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--ink); }

/* the price range (functions/views/_pricerange.js): the bars, the two round handles on one track, the boxes */
.pr { display: grid; gap: 0; }
.pr-hist { display: flex; align-items: flex-end; gap: 2px; block-size: 72px; padding-inline: 14px; }
.pr-hist i { flex: 1; min-block-size: 4px; border-radius: 2px 2px 0 0; background: var(--line-2); }
.pr-hist i.on { background: var(--jade); }
.pr-sl { position: relative; block-size: 28px; margin-block-start: -14px; visibility: hidden; }
.pr.is-live .pr-sl { visibility: visible; }
.pr-track { position: absolute; inset-inline: 14px; inset-block-start: 13px; block-size: 2px; background: var(--line-2); }
.pr-fill { position: absolute; inset-block: 0; inset-inline: 0; background: var(--jade); }
.pr-r { position: absolute; inset: 0; inline-size: 100%; block-size: 28px; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; -webkit-appearance: none; appearance: none; pointer-events: none; }
.pr-r:focus { outline: 0; box-shadow: none; }
.pr-r::-webkit-slider-runnable-track { block-size: 28px; background: none; border: 0; }
.pr-r::-moz-range-track { block-size: 28px; background: none; border: 0; }
.pr-r::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; inline-size: 28px; block-size: 28px; border-radius: 50%; margin-block-start: 0;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-2); cursor: grab; }
.pr-r::-moz-range-thumb { pointer-events: auto; inline-size: 28px; block-size: 28px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-2); cursor: grab; }
.pr-r:focus-visible::-webkit-slider-thumb { outline: 2.5px solid var(--jade); outline-offset: 2px; }
.pr-r:focus-visible::-moz-range-thumb { outline: 2.5px solid var(--jade); outline-offset: 2px; }
.pr-r:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.06); }
.pr-two { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: var(--space-3); margin-block-start: var(--space-4); }
.pr-dash { padding-block-end: 14px; color: var(--ink-3); }
.pr-box { display: grid; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.pr-in { display: flex; align-items: center; gap: var(--space-2); min-block-size: 52px; padding-inline: var(--space-4); border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); }
.pr-in:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pr-in input { flex: 1; min-inline-size: 0; min-block-size: 0; padding: 0; border: 0; box-shadow: none; background: transparent; font-size: 15px; color: var(--ink);
               direction: ltr; text-align: start; font-variant-numeric: tabular-nums; }
[dir="rtl"] .pr-in input { text-align: end; }
.pr-in input:focus { outline: 0; box-shadow: none; }
.pr-u { flex: none; font-size: 12.5px; color: var(--ink-3); }
.pr-lu { display: none; }
/* a phone: the boxes are narrow, the currency goes up beside the label */
@media (max-width: 599px) { .pr-in { padding-inline: var(--space-3); } .pr-u { display: none; } .pr-lu { display: inline; } }

/* the rooms steppers: the label on the start side, − the number + on the end side */
.stp { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-block-size: 48px; }
.stp-l { font-size: 16px; color: var(--ink); }
.stp-c { display: flex; align-items: center; gap: var(--space-3); }
.stp-b { inline-size: 36px; block-size: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface);
         color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.stp-b:hover { border-color: var(--ink); }
.stp-b[aria-disabled="true"] { color: var(--ink-3); border-color: var(--line); cursor: not-allowed; }
.stp-b[aria-disabled="true"]:hover { border-color: var(--line); }
/* the number (or "Any"), a fixed width, with "+" after a number */
.stp-v { position: relative; display: inline-flex; align-items: center; justify-content: center; inline-size: 5.5em; }
.stp-v input { inline-size: 100%; min-block-size: 36px; padding: 0 1em 0 0; border: 0; box-shadow: none; background: transparent; text-align: center; font-size: 15px;
               color: var(--ink); direction: ltr; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.stp-v input::placeholder { color: var(--ink); opacity: 1; }
.stp-v input::-webkit-outer-spin-button, .stp-v input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stp-v input:placeholder-shown { padding: 0; }
.stp-v input:focus-visible { outline: 2.5px solid var(--jade); outline-offset: 2px; border-radius: var(--r-xs); }
.stp-plus { position: absolute; inset-inline-end: calc(50% - 1.4em); font-size: 15px; color: var(--ink); visibility: hidden; direction: ltr; }
.stp-v input:not(:placeholder-shown) + .stp-plus { visibility: visible; }
.f-s .f-sub-l { margin-block-start: var(--space-3); font-size: 16px; font-weight: 500; }
.srp-modechip .srp-sortv > span { text-align: center; }
@media (max-width: 599px) { .seg-i { font-size: 14px; padding-inline: var(--space-2); } }

/* ---------- the Price map layer (search-map.js, "Price map"): a pill under the round tools, the legend at the bottom centre, the card above it ----------
   Everything is absolute, so a click moves nothing. The polygons sit in their own pane under the pins; a colour change fades in 200 ms. */
.srp-tools { justify-items: end; }
.srp-heatbtn { display: inline-flex; align-items: center; gap: var(--space-2); min-block-size: 40px; padding: 0 var(--space-4); border: 0; border-radius: var(--r-pill);
               background: var(--map-pin); color: var(--map-pin-ink); box-shadow: var(--sh-2); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; white-space: nowrap; }
.srp-heatbtn svg { inline-size: 18px; block-size: 18px; flex: none; }
.srp-heatbtn:hover { background: var(--map-pin-wash); color: var(--map-pin-on); }
.srp-heatbtn[aria-pressed="true"] { background: var(--map-pin-on); color: var(--map-pin-on-ink); }
.srp-map path.heat-poly:focus, .srp-map path.heat-poly:focus-visible { outline: none; }   /* focus is the shape's own stroke (search-map.js), never the browser's bounding box */
.srp-map path.heat-poly { transition: fill 200ms linear, fill-opacity 200ms linear; cursor: pointer; }
.heat-tip { padding: 4px 8px; border: 0; border-radius: var(--r); background: var(--map-pin); color: var(--map-pin-ink); box-shadow: var(--map-sh-2); font-size: 13px; font-weight: 600; }
.heat-tip::before { display: none; }
.heat-tip .ht { display: grid; gap: 1px; justify-items: start; }
.heat-tip .ht-v { font-size: 14px; font-weight: 700; }
.heat-tip .ht-n { font-size: 12px; font-weight: 500; color: var(--map-pin-ink-2); }
.srp-map path.heat-off { pointer-events: none; }
.srp-heatleg .hl-i { pointer-events: auto; display: inline-flex; }
.srp-heatleg { --heat-bottom: var(--space-4); position: absolute; inset-inline: 0; inset-block-end: var(--heat-bottom); margin-inline: auto; z-index: 450; inline-size: max-content; max-inline-size: calc(100% - 2 * var(--space-3));
               box-sizing: border-box; display: grid; gap: 4px; justify-items: center; padding: var(--space-2) var(--space-3); border-radius: var(--r-lg); background: color-mix(in srgb, var(--map-pin) 94%, transparent);
               color: var(--map-pin-ink); box-shadow: var(--map-sh-2); pointer-events: none; font-size: 12px; line-height: 16px; }
.srp-heatleg[hidden] { display: none; }
.hl-row { display: flex; align-items: center; gap: var(--space-2); }
.hl-n { min-inline-size: 7ch; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.hl-min { text-align: end; } .hl-max { text-align: start; }
.hl-bar { display: flex; inline-size: 112px; block-size: 10px; flex: none; border-radius: 5px; overflow: hidden; }
.hl-bar > span { flex: 1; }
.srp-heatleg.is-none .hl-bar { opacity: .35; }
.hl-cap { color: var(--map-pin-ink-2); font-weight: 500; text-align: center; }
.srp-heatcard { position: absolute; inset-inline: var(--space-3); inset-block-end: calc(var(--space-4) + 68px); z-index: 700; box-sizing: border-box; max-inline-size: 380px; margin-inline: 0 auto;
                padding: var(--space-3) var(--space-4); padding-inline-end: 52px; background: var(--surface); color: var(--ink); border-radius: var(--r-xl); box-shadow: var(--sh-3); }
.srp-heatcard[hidden] { display: none; }
.srp-heatcard p { margin: 0; }
.hc-body { display: grid; gap: 4px; justify-items: start; }
.hc-t { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hc-v { font-size: 20px; font-weight: 700; line-height: 1.25; }
.hc-r { display: flex; align-items: center; gap: var(--space-2); font-size: 13px; color: var(--ink-2); }
.hc-body { justify-items: stretch; }
.hc-go { margin-block-start: var(--space-2); min-block-size: 40px; font-size: 14px; display: flex; justify-content: center; inline-size: 100%; box-sizing: border-box; }
.srp-heatcard .info-pop { z-index: 2000; }
@media (max-width: 949px) {
  /* over the Map/List pill (76px up, 48 high) so neither covers the other */
  .srp[data-view="map"] .srp-heatleg { --heat-bottom: calc(76px + 48px + var(--space-2) + env(safe-area-inset-bottom)); }
  .srp[data-view="map"] .srp-heatcard { inset-block-end: calc(76px + 48px + var(--space-2) + 52px + env(safe-area-inset-bottom)); max-inline-size: 420px; margin-inline: 0 auto; }
  /* a phone: the card is two short rows (the name; the figure, its (i), the market link), so the map under it stays usable.
     The small line is inside the (i). A clicked place adds one row with its two actions side by side. */
  .srp-heatcard { padding: var(--space-2) var(--space-3); }
  .srp-heatcard .hc-body { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-2); row-gap: 0; }
  .srp-heatcard .hc-t { flex: 0 0 100%; box-sizing: border-box; padding-inline-end: 40px; min-block-size: 32px; display: flex; align-items: center; font-size: 13px; }
  .srp-heatcard .hc-v { font-size: 17px; }
  .srp-heatcard .hc-r.has-i .hc-note { display: none; }
  .srp-heatcard .hc-r:not(.has-i) { flex: 0 0 100%; order: 1; }
  .srp-heatcard .hc-go { margin-block-start: 0; }
  .srp-heatcard .hc-v { flex: none; white-space: nowrap; } .srp-heatcard .hc-r.has-i { flex: none; }
  /* the link takes what is left of the row and breaks inside it (a long label on a narrow phone), never onto a third row */
  .srp-heatcard .hc-body:not(.has-place) .hc-go { flex: 1 1 0; min-inline-size: 0; inline-size: auto; min-block-size: 40px; padding-inline: 0; border-color: transparent; justify-content: flex-end; text-align: end; white-space: normal; line-height: 1.2; text-decoration: underline; text-underline-offset: 3px; }
  .srp-heatcard .hc-body.has-place::after { content: ""; flex: 0 0 100%; order: 2; block-size: var(--space-2); }
  .srp-heatcard .hc-body.has-place .hc-go { order: 3; flex: 1 1 0; inline-size: auto; min-inline-size: 0; padding-inline: var(--space-2); font-size: 13px; line-height: 1.2; text-align: center; }
  .srp-heatcard .hc-body.has-place { padding-block-end: var(--space-1, 4px); }
}
.srp-map .leaflet-container .leaflet-heat-pane svg { max-inline-size: none !important; max-block-size: none !important; }   /* as Leaflet does for its own panes: the site's svg { max-width: 100% } cut this one to its zero-width pane */

/* the hover: a swatch with the figure, the name, the grade; and the mark on the legend (absolute: nothing shifts) */
.heat-tip .ht-top { display: inline-flex; align-items: center; gap: 6px; }
.heat-tip .ht-sw { inline-size: 10px; block-size: 10px; border-radius: 3px; flex: none; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .25); }
.heat-tip .ht-g { font-style: normal; }
.hl-bar { position: relative; overflow: visible; }
.hl-bar > span:not(.hl-mark) { flex: 1; }
.hl-bar > span:first-child { border-start-start-radius: 5px; border-end-start-radius: 5px; }
.hl-bar > span:nth-last-child(2) { border-start-end-radius: 5px; border-end-end-radius: 5px; }
.hl-mark { position: absolute; inset-block-start: -4px; inline-size: 0; block-size: 0; margin-inline-start: -4px; border-inline: 4px solid transparent; border-block-start: 6px solid var(--map-pin-ink); pointer-events: none; }
.hl-mark[hidden] { display: none; }

/* v4: the removable place chip, top-left of the map (below "Search as I move" on a phone); the searched place's thin outline */
.srp-chip { position: absolute; inset-block-start: var(--space-4); inset-inline-start: var(--space-4); z-index: 500; display: inline-flex; align-items: center; gap: var(--space-2); max-inline-size: min(60%, 260px); min-block-size: 40px; padding: 0 var(--space-3) 0 var(--space-4); border: 0; border-radius: var(--r-pill); background: var(--map-pin); color: var(--map-pin-ink); box-shadow: var(--sh-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.srp-chip[hidden] { display: none; }
.srp-chip:hover { background: var(--map-pin-wash); color: var(--map-pin-on); }
.srp-chip-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srp-chip svg { inline-size: 14px; block-size: 14px; flex: none; }
.hc-units { margin-block-start: var(--space-2); }
@media (max-width: 949px) { .srp-heatcard .hc-units { margin-block-start: 0; } }
@media (max-width: 949px) { .srp[data-view="map"] .srp-chip { inset-block-start: calc(var(--space-4) + 40px + var(--space-2)); } }

/* A calm map on a phone (owner 2026-11-16: "too busy, crowded with functionalities"; Airbnb's phone map is the map, the
   results sheet and little else). On a phone the map shows only what a person acts on:
     - no "Search as I move" switch: the phone map always searches as it moves (search-map.js);
     - no "Zoom in to see each unit" hint: the place badges say how many units they hold;
     - no + and −: a finger pinches (a mouse on a narrow window keeps them, pointer: fine);
     - "Price map" is a round button like the others, its name for screen readers and on hover;
     - no chat and WhatsApp bubbles over the map: both stay on the list and every other page. */
@media (max-width: 949px) {
  .srp-ms .srp-auto, .srp-ms .srp-status.is-hint { display: none; }
  html.srp-map-open .wa, html.srp-map-open .as-bubble { display: none; }
  .srp-heatbtn { inline-size: 40px; min-block-size: 40px; block-size: 40px; padding: 0; justify-content: center; border-radius: 50%; }
  .srp-heatbtn span { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 949px) and (pointer: coarse) {
  #srp-zin, #srp-zout { display: none; }
}
