/* ==========================================================================
   Real estate, the list (pages/estates.php, assets/js/estates.js). The homepage's dawn map as a page: mist paper,
   brand ink for text, ochre for what is on sale (its pins, the drawn area, the chosen price band), brand green for
   the one action that reaches a person. The filters on one side; on the other the map over the listings. The area a
   visitor draws is hatched in ochre and the rest of the city goes under mist (the page's signature).
   Both builds: the desktop frame (header, footer) and the phones' (app bar, tab bar: .v-m).
   ========================================================================== */
.page-estates, .page-estate {
  --mist: #EFE8E4; --mist-hi: #F6EEE9; --dawn-0: #C9C6DE; --dawn-1: #E7D2D0;
  --r-ink: #1F2230; --r-ink-2: #555A68; --ochre: #C98A1E; --ochre-hi: #B57610; --ochre-ink: #7A4D0B;
  --r-line: rgb(31 34 48 / .12); --card: rgb(253 251 248 / .94);
  --es-shadow: 0 1px 0 rgb(255 255 255 / .75) inset, 0 18px 40px -30px rgb(31 34 48 / .45);
  background: var(--mist-hi); color: var(--r-ink);
}
.es {
  padding: calc(var(--header-h, 76px) + 26px) var(--gutter, 16px) 96px;
  background: linear-gradient(to bottom, var(--dawn-0), var(--dawn-1) 220px, var(--mist) 460px, var(--mist-hi) 860px);
}
.v-m .es { padding: calc(var(--m-bar) + 16px) 16px calc(var(--m-tabs) + 40px); }
.es .sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.es :focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
.es-head, .es-body { max-width: 1440px; margin-inline: auto; }

/* ---------- the head: where you are, what the page does, its figures ---------- */
.es-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; align-items: end;
  grid-template-areas: "crumbs crumbs" "eyebrow eyebrow" "title stats" "lead stats";
}
.es-head .crumbs { grid-area: crumbs; color: var(--r-ink-2); }
.es-eyebrow { grid-area: eyebrow; display: flex; align-items: center; gap: 10px; margin: 22px 0 0; color: var(--ochre-ink); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.es-eyebrow .chap__no { font-family: var(--font-ka); font-size: 22px; font-weight: 300; line-height: 1; color: var(--ochre); }
.es-title { grid-area: title; margin: 8px 0 0; max-width: 17em; font-family: var(--font-display); font-size: clamp(30px, 4vw, 54px); font-weight: 800; line-height: 1.18; text-wrap: balance; }
.es-lead { grid-area: lead; max-width: 44em; margin: 14px 0 0; color: var(--r-ink-2); font-size: 15.5px; line-height: 1.95; }
.es-stats { grid-area: stats; display: flex; margin: 0; padding-bottom: 6px; }
.es-stats div { display: flex; flex-direction: column-reverse; padding: 0 22px; border-inline-start: 1px solid var(--r-line); }
.es-stats div:first-child { border: 0; padding-inline-start: 0; }
.es-stats dt { color: var(--r-ink-2); font-size: 12.5px; white-space: nowrap; }
.es-stats dd { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 800; line-height: 1.3; white-space: nowrap; }

/* ---------- the two columns ---------- */
.es-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 30px; }

/* ---------- the filters ---------- */
.es-filters {
  position: sticky; top: calc(var(--header-h, 76px) + 14px); max-height: calc(100vh - var(--header-h, 76px) - 28px);
  overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgb(31 34 48 / .2) transparent;
  padding: 18px 20px 20px; border-radius: 24px; background: var(--card); box-shadow: var(--es-shadow);
}
.es-filters__top { display: flex; align-items: center; gap: 10px; }
.es-filters__top h2 { flex: 1; margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 800; }
.es-link { padding: 4px 0; border: 0; background: none; color: var(--ochre-ink); font: 700 13px var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.es-x { display: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(31 34 48 / .07); color: var(--r-ink); font-size: 22px; line-height: 1; cursor: pointer; }
.es-filters__show { display: none; }

.es-search { position: relative; display: block; margin-top: 14px; }
.es-search::before {
  content: ""; position: absolute; top: 50%; inset-inline-start: 14px; width: 16px; height: 16px; margin-top: -8px; background: var(--r-ink-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%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 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.es-search input {
  width: 100%; height: 46px; padding: 0 14px; padding-inline-start: 40px; border: 0; border-radius: 14px;
  background: var(--mist-hi); box-shadow: inset 0 0 0 1px var(--r-line); color: var(--r-ink); font: 500 14px var(--font-body);
}
.es-search input::placeholder { color: rgb(85 90 104 / .8); }
.es-search input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ochre); }

.es-f { min-width: 0; margin: 16px 0 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--r-line); }
.es-f legend { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; width: 100%; padding: 0; margin-bottom: 12px; font-size: 14px; font-weight: 800; float: left; }
.es-f legend + * { clear: both; }
.es-f output { color: var(--r-ink-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.es-f input[type="radio"], .es-f input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

/* the deal and the bedrooms: one choice */
.es-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.es-seg span, .es-chips span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--r-line); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s;
}
.es-seg i, .es-chips i { font-style: normal; font-size: 11.5px; opacity: .6; }
.es-seg span:hover, .es-chips span:hover { box-shadow: inset 0 0 0 1px rgb(31 34 48 / .35); }
.es-seg input:checked + span { background: var(--r-ink); color: var(--mist-hi); box-shadow: none; }
.es-seg--n span { min-width: 52px; justify-content: center; }
/* the kinds and the extra features: several */
.es-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.es-chips input:checked + span { background: var(--ochre); color: #fff; box-shadow: none; }
.es-f input:focus-visible + span, .es-owners input:focus-visible + span { outline: 2px solid var(--ochre); outline-offset: 2px; }
.es-more { display: grid; gap: 14px; }
.es-more p { margin: 0 0 7px; color: var(--r-ink-2); font-size: 12.5px; font-weight: 700; }

/* price and size: the listings' spread as bars, the chosen band in ochre, two thumbs on one track */
.es-hist { display: flex; align-items: flex-end; gap: 2px; height: 42px; }
.es-hist i { flex: 1; min-height: 2px; border-radius: 2px 2px 0 0; background: rgb(31 34 48 / .13); transition: background-color .2s; }
.es-hist i.is-in { background: var(--ochre); }
.es-range { --lo: 0%; --hi: 100%; position: relative; height: 26px; margin-top: -1px; }
.es-range::before, .es-range::after { content: ""; position: absolute; top: 12px; height: 2px; border-radius: 2px; }
.es-range::before { inset-inline: 0; background: rgb(31 34 48 / .15); }
.es-range::after { inset-inline-start: var(--lo); inset-inline-end: calc(100% - var(--hi)); background: var(--ochre); }
.es-range input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 26px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.es-range input::-webkit-slider-runnable-track { height: 26px; background: none; }
.es-range input::-moz-range-track { background: none; }
.es-range input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; pointer-events: auto; cursor: grab;
  background: var(--mist-hi); box-shadow: inset 0 0 0 2px var(--ochre), 0 4px 10px -4px rgb(90 50 0 / .6);
}
.es-range input::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; pointer-events: auto; cursor: grab; background: var(--mist-hi); box-shadow: inset 0 0 0 2px var(--ochre), 0 4px 10px -4px rgb(90 50 0 / .6); }
.es-range input:focus-visible { outline: none; }
.es-range input:focus-visible::-webkit-slider-thumb { box-shadow: inset 0 0 0 2px var(--ochre), 0 0 0 4px rgb(201 138 30 / .3); }

/* developers */
.es-owners { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.es-owners label { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 8px; border-radius: 10px; font-size: 13.5px; cursor: pointer; }
.es-owners label:hover { background: rgb(31 34 48 / .05); }
.es-owners span { flex: 1; display: flex; align-items: center; gap: 10px; }
.es-owners span::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px rgb(31 34 48 / .3); transition: background-color .2s, box-shadow .2s; }
.es-owners input:checked + span::before {
  background: var(--ochre) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: none;
}
.es-owners i { color: var(--r-ink-2); font-size: 12px; font-style: normal; }

.es-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border: 0; border-radius: 999px; background: var(--r-ink); color: var(--mist-hi); font: 700 14px var(--font-body); text-decoration: none; cursor: pointer;
}
.es-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.es-btn i { font-style: normal; }
.es-btn--go { background: var(--green, #83CD20); color: #0E1A07; }

/* ---------- the map ---------- */
.es-mapbox {
  position: relative; isolation: isolate; height: clamp(380px, 60vh, 660px); border-radius: 28px; overflow: hidden;
  background: #E8E1DB; box-shadow: 0 30px 60px -42px rgb(31 34 48 / .6), inset 0 0 0 1px var(--r-line);
}
.es-map { position: absolute; inset: 0; z-index: 0; direction: ltr; background: #E8E1DB; font: inherit; }
.es-map .leaflet-tile { filter: grayscale(.92) sepia(.22) contrast(.88) brightness(1.07); }
html:not(.js) .es-mapbox { display: none; }
.es-map .leaflet-control-attribution { background: rgb(246 238 233 / .8); color: var(--r-ink-2); font-size: 10.5px; }
.es-map .leaflet-control-attribution a { color: inherit; }
.es-map .leaflet-bar { border: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 22px -12px rgb(31 34 48 / .55); }
.es-map .leaflet-bar a { width: 38px; height: 38px; line-height: 38px; border-color: var(--r-line); background: rgb(253 251 248 / .94); color: var(--r-ink); font: 600 20px/38px system-ui, sans-serif; }
.es-map .leaflet-bar a:hover { background: #fff; }
.es-map .leaflet-draw-tooltip { display: none; }
.es-map .leaflet-interactive.es-shape { stroke-dasharray: 7 6; }
.es-map.is-drawing { cursor: crosshair; }

/* pins: a home (its price, ochre) or a building of several (ink, its letter, how many, from what price) */
.es-pin-at { background: none; border: 0; }
.es-pin {
  position: absolute; left: 0; bottom: 9px; translate: -50% 0; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 999px; background: var(--ochre); color: #fff; font: 750 13px/1 var(--font-body);
  white-space: nowrap; cursor: pointer; box-shadow: 0 10px 20px -10px rgb(90 50 0 / .75);
  transition: background-color .25s, scale .3s var(--ease-out), opacity .3s;
}
.es-pin::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: inherit; border-top-color: var(--ochre); transition: border-color .25s; }
.es-pin--set { gap: 8px; padding: 5px 12px 5px 5px; background: var(--r-ink); box-shadow: 0 10px 22px -10px rgb(10 10 30 / .7); }
html[dir="rtl"] .es-pin--set { padding: 5px 5px 5px 12px; }
.es-pin--set::after { border-top-color: var(--r-ink); }
.es-pin b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ochre); font: 800 12.5px/1 var(--font-latin); }
.es-pin em { font-style: normal; font-weight: 600; font-size: 12px; color: #F2D9A8; }
.es-pin:hover, .is-hot > .es-pin { scale: 1.08; }
.es-pin:not(.es-pin--set):hover, .is-hot > .es-pin:not(.es-pin--set) { background: var(--ochre-hi); }
.es-pin:not(.es-pin--set):hover::after, .is-hot > .es-pin:not(.es-pin--set)::after { border-top-color: var(--ochre-hi); }
.es-pin-at:focus-visible { outline: none; }
.es-pin-at:focus-visible > .es-pin { outline: 2px solid var(--r-ink); outline-offset: 3px; }
.is-out > .es-pin { opacity: .3; }
.es-pin-at.is-off { display: none; }
.is-tight:not(.is-hot):not(:hover) > .es-pin--set { gap: 0; padding: 4px; }
.is-tight:not(.is-hot):not(:hover) > .es-pin--set > :not(b) { display: none; }
.is-tight:not(.is-hot):not(:hover) > .es-pin:not(.es-pin--set) { padding: 5px 8px; font-size: 12px; }
html[dir="rtl"] .es-pin, html[dir="rtl"] .es-map .leaflet-popup-content { direction: rtl; }
/* the corners of a shape being drawn */
.es-vertex { border-radius: 50%; background: var(--mist-hi); box-shadow: inset 0 0 0 2.5px var(--ochre), 0 2px 6px rgb(90 50 0 / .4); }

/* a pin's card */
.es-map .leaflet-popup-content-wrapper { padding: 0; border-radius: 20px; background: var(--card); color: var(--r-ink); box-shadow: 0 24px 50px -24px rgb(31 34 48 / .65); }
.es-map .leaflet-popup-content { width: 280px !important; margin: 0; font: 13.5px/1.6 var(--font-body); }
.es-map .leaflet-popup-tip { background: var(--card); }
.es-map a.leaflet-popup-close-button { top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgb(253 251 248 / .9); color: var(--r-ink); font: 600 18px/28px system-ui; text-align: center; }
html[dir="rtl"] .es-map a.leaflet-popup-close-button { right: auto; left: 8px; }
.es-map .leaflet-popup-content-wrapper { text-align: start; }
.es-map .es-pop a { color: inherit; }
.es-pop { padding: 8px; }
.es-pop__head { padding: 8px 8px 10px; }
.es-pop__head b { display: block; font-family: var(--font-display); font-size: 15px; }
.es-pop__head span { color: var(--r-ink-2); font-size: 12.5px; }
.es-pop__list { display: grid; gap: 4px; max-height: 260px; margin: 0; padding: 0; overflow: auto; list-style: none; overscroll-behavior: contain; scrollbar-width: thin; }
.es-pop__list a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; padding: 5px; border-radius: 12px; color: inherit; text-decoration: none; }
.es-pop__list a:hover { background: rgb(201 138 30 / .1); }
.es-pop__list img { width: 64px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--mist); }
.es-pop__list b { display: block; font-size: 13px; font-weight: 700; line-height: 1.45; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.es-pop__list span { color: var(--r-ink-2); font-size: 12px; }
.es-pop__list strong { color: var(--ochre-ink); }
.es-pop__one { display: block; color: inherit; text-decoration: none; }
.es-pop__one img { display: block; width: 100%; aspect-ratio: 3 / 2; border-radius: 14px; object-fit: cover; background: var(--mist); }
.es-pop__one div { padding: 10px 6px 4px; }
.es-pop__one b { display: block; font-family: var(--font-display); font-size: 14.5px; line-height: 1.5; }
.es-pop__one span { color: var(--r-ink-2); font-size: 12.5px; }
.es-pop__one strong { display: block; margin-top: 4px; font-size: 15px; }
.es-pop .es-btn { width: 100%; min-height: 40px; margin-top: 8px; font-size: 13px; }

/* the drawing tools, the hint, the drawn area's chip, the phones' filters button */
.es-tools {
  position: absolute; z-index: 800; top: 14px; inset-inline-start: 14px; display: flex; align-items: center; gap: 2px; padding: 5px;
  border-radius: 999px; background: rgb(253 251 248 / .92); box-shadow: 0 10px 26px -14px rgb(31 34 48 / .6);
}
html:not([data-tier="lite"]) .es-tools { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.es-tools__lbl { padding-inline: 10px 6px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.es-tools button {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--r-ink); font: 600 13px var(--font-body); white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s;
}
.es-tools button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.es-tools button svg circle[r="1.6"], .es-tools button svg circle[r="1.4"] { fill: currentColor; stroke: none; }
.es-tools button:hover { background: rgb(31 34 48 / .07); }
.es-tools button[aria-pressed="true"] { background: var(--ochre); color: #fff; }
.es-hint {
  position: absolute; z-index: 800; top: 66px; inset-inline-start: 14px; max-width: 300px; margin: 0; padding: 10px 14px;
  border-radius: 14px; background: var(--r-ink); color: var(--mist-hi); font-size: 13px; line-height: 1.75; box-shadow: 0 12px 26px -14px rgb(10 10 30 / .7);
}
.es-area {
  position: absolute; z-index: 800; bottom: 16px; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 12px;
  padding: 5px; padding-inline-start: 16px; border-radius: 999px; background: var(--r-ink); color: var(--mist-hi);
  font-size: 13.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 14px 30px -14px rgb(10 10 30 / .75);
}
.es-area[hidden], .es-hint[hidden] { display: none; }
.es-area button { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--ochre); color: #fff; font: 700 12.5px var(--font-body); cursor: pointer; }
.es-area button:hover { background: var(--ochre-hi); }

/* ---------- the listings ---------- */
.es-bar { display: flex; align-items: center; gap: 12px 16px; margin: 28px 0 16px; }
.es-count { flex: 1; margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 800; white-space: nowrap; }
.es-bar__filters { display: none; min-height: 40px; padding: 0 14px; font-size: 13.5px; }
.es-bar__filters i:empty { display: none; }
.es-bar__filters i { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ochre); color: #fff; font-size: 11.5px; }
.es-sort { display: flex; align-items: center; gap: 8px; color: var(--r-ink-2); font-size: 13px; }
.es-sort select {
  height: 40px; padding: 0 16px; padding-inline-end: 36px; border: 0; border-radius: 999px; -webkit-appearance: none; appearance: none;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2230' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  box-shadow: inset 0 0 0 1px var(--r-line); color: var(--r-ink); font: 700 13.5px var(--font-body); cursor: pointer;
}
html[dir="rtl"] .es-sort select { background-position: left 12px center; }

.es-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 22px 18px; margin: 0; padding: 0; list-style: none; }
.es-card[hidden] { display: none; }
.es-card a {
  display: flex; flex-direction: column; height: 100%; padding: 8px; border-radius: 22px; background: var(--card); color: inherit; text-decoration: none;
  box-shadow: var(--es-shadow); transition: translate .4s var(--ease-out), box-shadow .3s;
}
.es-card a:hover, .es-card.is-hot a { translate: 0 -3px; box-shadow: 0 1px 0 rgb(255 255 255 / .75) inset, inset 0 0 0 1.5px var(--ochre), 0 26px 44px -30px rgb(31 34 48 / .6); }
.es-card__pic { position: relative; margin: 0; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; background: var(--mist); }
.es-card__pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--ease-out); }
.es-card a:hover img { scale: 1.045; }
.es-deal {
  position: absolute; top: 10px; inset-inline-start: 10px; padding: 5px 10px; border-radius: 999px;
  background: rgb(253 251 248 / .93); color: var(--ochre-ink); font-size: 12px; font-weight: 800; line-height: 1.2;
}
.es-deal--sale { color: var(--r-ink); }
.es-deal--rent { color: #2C5E7A; }
.es-mark {
  position: absolute; top: 10px; inset-inline-end: 10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--r-ink); color: #F2D9A8; font: 800 13px/1 var(--font-latin); box-shadow: 0 0 0 2px rgb(253 251 248 / .9);
}
.es-card__body { display: flex; flex-direction: column; flex: 1; padding: 12px 8px 6px; }
.es-card__eyebrow { margin: 0; overflow: hidden; color: var(--r-ink-2); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.es-card__title {
  display: -webkit-box; margin: 4px 0 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1.55;
}
.es-card__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 10px 0 0; padding: 0; list-style: none; color: var(--r-ink-2); font-size: 13px; }
.es-card__facts li + li::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 9px; border-radius: 50%; background: currentColor; opacity: .45; vertical-align: middle; }
.es-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: auto 0 0; padding-top: 12px; border-top: 1px dashed rgb(31 34 48 / .18); }
.es-card__facts + .es-card__price, .es-card__title + .es-card__price { margin-top: 12px; }
.es-card__price b { font-family: var(--font-display); font-size: 19px; font-weight: 800; }
.es-card__price small { color: var(--r-ink-2); font-size: 12px; }
.es-card__price small:last-child:not(:first-of-type) { margin-inline-start: auto; }
.es-card__price.is-ask { color: var(--ochre-ink); font-size: 14px; font-weight: 700; }

.es-empty { margin-top: 8px; padding: 44px 24px; border: 1.5px dashed rgb(31 34 48 / .22); border-radius: 24px; text-align: center; }
.es-empty[hidden] { display: none; }
.es-empty p { max-width: 34em; margin: 0 auto 18px; color: var(--r-ink-2); line-height: 1.9; }

/* ---------- narrower: the filters become a sheet from the bottom ---------- */
.es-scrim { position: fixed; inset: 0; z-index: 1000; background: rgb(20 22 34 / .45); opacity: 0; pointer-events: none; transition: opacity .3s; }
@media (max-width: 1099px) {
  .es-body { grid-template-columns: minmax(0, 1fr); }
  .es-filters {
    position: fixed; z-index: 1001; inset: auto 0 0; top: auto; max-height: min(86vh, 760px); padding: 18px 18px 0; border-radius: 26px 26px 0 0;
    translate: 0 105%; visibility: hidden; transition: translate .4s var(--ease-out), visibility 0s .4s; box-shadow: 0 -20px 50px -20px rgb(10 10 30 / .5);
  }
  .es.is-sheet .es-filters { translate: 0 0; visibility: visible; transition: translate .4s var(--ease-out); }
  .es.is-sheet .es-scrim { opacity: 1; pointer-events: auto; }
  .es-x { display: grid; place-items: center; }
  .es-filters__show { position: sticky; bottom: 0; display: flex; width: calc(100% + 36px); margin: 18px -18px 0; border-radius: 0; min-height: 58px; padding-bottom: env(safe-area-inset-bottom); background: var(--r-ink); }
  .es-bar { position: sticky; z-index: 30; top: var(--es-stick, var(--header-h, 76px)); margin-inline: calc(-1 * var(--gutter, 16px)); padding: 10px var(--gutter, 16px); background: rgb(246 238 233 / .94); }
  html:not([data-tier="lite"]) .es-bar { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); background: rgb(246 238 233 / .82); }
  .es-bar__filters { display: inline-flex; }
}
@media (max-width: 760px) {
  .es-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "crumbs" "eyebrow" "title" "lead" "stats"; }
  .es-eyebrow { margin-top: 14px; }
  .es-lead { font-size: 14.5px; }
  .es-stats { margin-top: 18px; }
  .es-stats dd { font-size: 24px; }
  .es-body { margin-top: 22px; }
  .es-mapbox { height: 58vh; height: 58svh; min-height: 360px; margin-inline: -6px; border-radius: 22px; }
  .es-tools { top: 10px; inset-inline-start: 10px; }
  .es-tools__lbl { padding-inline: 8px 2px; font-size: 12.5px; }
  .es-tools button { padding: 0 10px; }
  .es-tools button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .es-hint { top: 62px; inset-inline: 10px; max-width: none; }
  .es-area { bottom: 14px; }
  .es-bar { margin-top: 22px; }
  .es-count { font-size: 17px; }
  .es-sort select { height: 40px; padding-inline: 12px 30px; font-size: 13px; }
  .es-sort > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .es-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
.v-m .es { --es-stick: var(--m-bar); }
.v-m .es-bar { margin-inline: -16px; padding-inline: 16px; }
.v-m .es-filters { z-index: 60; }
.v-m .es-scrim { z-index: 59; }

@media (prefers-reduced-motion: reduce) {
  .es *, .es *::before, .es *::after { transition-duration: 0s !important; }
}
.v-m .es-map .leaflet-control-zoom { display: none; }   /* phones pinch to zoom */
.v-m .page-inner.page-estates, .v-m .page-inner.page-estate { background: var(--mist-hi); color: var(--r-ink); }

/* phones: the sticky bar without a blur (redrawn on every scrolled frame) */
.v-m .es-bar { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(246 238 233 / .97); }
