/*
 * finder.css: the home page's land finder (index.html, src/finder.js). Colours, fonts and sizes come from
 * styles/tokens.css ("The home page's land finder" block and the colours at the top).
 *
 * On a computer: the bar along the top, the list on the left (it scrolls by itself), the map filling the rest.
 * On a phone (below 56rem): the map stays at the top of the screen (--finder-map-phone) and the page scrolls the list
 * under it, so the listing lit up on the map is always the card being read.
 * The look: a survey plan's. A faint grid behind the list, the pink flag as the one loud colour, and the bubble over
 * the map hanging from a stake driven into the land, like the flags surveyors put at a plot's corners.
 */

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--sheet); }
body.finder-page {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--sheet);
  -webkit-font-smoothing: antialiased;
}
.finder-page :where(h1, h2, p, ol) { margin: 0; }
.finder-page a { color: inherit; }
.finder-page :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--space-4); top: -4rem; z-index: 20; padding: var(--space-2) var(--space-4); border-radius: 999px; background: var(--ink); color: var(--sheet) !important; }
.skip-link:focus { top: var(--space-2); }

/* ------------------------------------------------------------------ The bar */
.finder-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: var(--finder-bar-height);
  padding: 0 var(--space-5);
  padding-top: env(safe-area-inset-top, 0px);
  box-sizing: content-box;
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
}
.finder-brand { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; text-decoration: none; }
.finder-search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 0 1 22rem;
  height: 2.5rem;
  padding: 0 var(--space-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sheet-raised);
}
.finder-search:focus-within { border-color: var(--ink); }
.finder-search svg { width: 1.1rem; height: 1.1rem; flex: none; fill: none; stroke: var(--ink-muted); stroke-width: 2; stroke-linecap: round; }
.finder-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: inherit; outline: none; }
.finder-search input::-webkit-search-cancel-button { cursor: pointer; }
.finder-nav { display: flex; gap: var(--space-5); margin-left: auto; }
.finder-nav a { font-size: var(--text-sm); font-weight: 600; text-decoration: none; color: var(--ink-muted); }
.finder-nav a:hover, .finder-nav a[aria-current="page"] { color: var(--ink); }
.finder-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--flag); }
.finder-signin, .finder-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 var(--space-4);
  border-radius: 999px;
  background: var(--ink);
  color: var(--sheet) !important;
  font-size: var(--text-sm);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.finder-pill { background: var(--sheet-raised); color: var(--ink) !important; border: 1px solid var(--line); cursor: pointer; transition: background-color var(--duration) var(--ease); }
.finder-pill:hover { background: var(--sheet-sunk); }
.finder-pill--flag { background: var(--accent); color: var(--accent-text) !important; border-color: transparent; }
.finder-pill--flag:hover { background: var(--accent-hover); }

/* ------------------------------------------------------------------ The page: the list and the map */
.finder {
  display: grid;
  grid-template-columns: var(--finder-list-width) 1fr;
  height: calc(100svh - var(--finder-bar-height) - env(safe-area-inset-top, 0px));
}
.finder-list {
  grid-column: 1;
  grid-row: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-5);
  border-right: 1px solid var(--line);
  /* A survey plan's faint grid. */
  background:
    linear-gradient(var(--finder-grid) 1px, transparent 1px) 0 0 / 2rem 2rem,
    linear-gradient(90deg, var(--finder-grid) 1px, transparent 1px) 0 0 / 2rem 2rem,
    var(--sheet);
}
.finder-map { grid-column: 2; grid-row: 1; position: relative; overflow: hidden; background: var(--map-void); }
.finder-map .map { position: absolute; inset: 0; }

.finder-head__title { font-family: var(--font-display); font-size: clamp(1.6rem, 2.3vw, 2.15rem); line-height: var(--leading-tight); letter-spacing: -0.025em; }
.finder-head__lead { margin-top: var(--space-2); color: var(--ink-muted); }
/* An agency's page (/a/<slug>): its card in place of the title; one agency, so no agency filter and no pitch to agencies. */
.finder.is-agency .finder-head, .finder.is-agency .finder-pitch, .finder.is-agency .finder-field:has(select[name="agency"]) { display: none; }
.finder-agency__back { display: inline-flex; align-items: center; gap: var(--space-1); margin-bottom: var(--space-3); padding: 6px var(--space-3) 6px var(--space-2); border: 1px solid var(--line); border-radius: 999px; background: var(--sheet); color: var(--ink); font-size: var(--text-sm); font-weight: 650; text-decoration: none; }
.finder-agency__back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.finder-agency__back:hover { border-color: var(--ink-muted); }
.finder-agency__head { display: flex; gap: var(--space-3); align-items: center; }
.finder-agency__logo { width: 3.5rem; height: 3.5rem; object-fit: contain; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--sheet); }
.finder-agency__eyebrow { font-size: var(--text-xs); font-weight: 650; color: var(--ink-muted); }
.finder-agency__name { font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: var(--leading-tight); letter-spacing: -0.025em; }
.finder-agency__about { margin-top: var(--space-3); color: var(--ink-muted); }
.finder-agency__about p + p { margin-top: var(--space-2); }
.finder-agency__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.finder-agency__cui, .finder-agency__missing { margin-top: var(--space-2); font-size: var(--text-xs); color: var(--ink-muted); }
.finder-agency__missing { font-size: var(--text-base); color: var(--ink); font-weight: 650; }

/* ------------------------------------------------------------------ Filters */
.finder-filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.finder-chips { display: contents; }
.finder-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.1rem;
  padding: 0 var(--space-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sheet-raised);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.finder-chip::-webkit-details-marker { display: none; }
.finder-chip:hover { background: var(--sheet-sunk); }
.finder-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--sheet); }
.finder-more { flex-basis: 100%; }
.finder-more[open] > .finder-chip { background: var(--sheet-sunk); }
.finder-more summary.finder-chip { width: fit-content; }
.finder-chip--filters svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* "Filters" open: groups one under the other (price, area, building land, land use, place and agency). */
.finder-more__form {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sheet);
  background: var(--sheet-raised);
}
.finder-group { display: grid; gap: var(--space-2); min-width: 0; margin: 0; padding: 0 0 var(--space-4); border: 0; border-bottom: 1px solid var(--line); }
.finder-group legend { padding: 0; margin-bottom: var(--space-2); font-family: var(--font-display); font-size: var(--text-base); font-weight: 700; }
.finder-group__sub { margin-top: var(--space-2) !important; font-size: var(--text-xs); font-weight: 650; color: var(--ink-muted); }
.finder-group__hint { font-size: var(--text-xs); color: var(--ink-muted); }
.finder-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.finder-unit { min-width: 0; display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--sheet); }
.finder-unit:focus-within { border-color: var(--ink); }
.finder-unit input { flex: 1; min-width: 0; height: 2.3rem; padding: 0 var(--space-2); border: 0; background: none; font: inherit; color: inherit; outline: none; }
.finder-unit span { padding-right: var(--space-2); font-size: var(--text-xs); color: var(--ink-muted); }
/* The box shows the focus (its border darkens), never the input inside it: the page's focus ring on the input drew a
   second outline inside the rounded box (2026-11-04, the loan calculator and the filters). No up/down arrows on the
   numbers, which crowded the unit (€, %, m²); the keyboard's arrows still step them. */
.finder-page .finder-unit input:focus-visible { outline: none; }
.finder-unit input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.finder-unit input[type="number"]::-webkit-inner-spin-button, .finder-unit input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.finder-check { display: flex; gap: var(--space-2); align-items: center; font-size: var(--text-sm); cursor: pointer; }
.finder-check input { accent-color: var(--flag); width: 1rem; height: 1rem; margin: 0; }
/* One of a few (Any | One plot | Several lots): a segmented control made of radios. */
/* The same segmented control as everywhere (controls.css): a tinted track, the chosen part a white thumb. */
.finder-segment { display: flex; padding: var(--inset-segmented); border-radius: var(--radius-pill); background: var(--fill); }
.finder-segment label { flex: 1; position: relative; }
.finder-segment input { position: absolute; opacity: 0; pointer-events: none; }
.finder-segment span { display: block; padding: var(--space-2) var(--space-1); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 600; text-align: center; color: var(--ink-muted); cursor: pointer; }
.finder-segment input:checked + span { background: var(--thumb); color: var(--ink); box-shadow: var(--shadow-thumb); }
.finder-segment input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: -2px; }
.finder-uses { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-3); }
.finder-field { display: grid; gap: var(--space-1); font-size: var(--text-xs); font-weight: 650; color: var(--ink-muted); }
.finder-field select { font-weight: 400; } /* a select like every other (controls.css) */
.finder-more__foot { position: sticky; bottom: calc(-1 * var(--space-5)); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin: 0 calc(-1 * var(--space-4)) calc(-1 * var(--space-4)); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-sheet) var(--radius-sheet); background: var(--sheet-raised); }

/* The filters set, under the chips: each a chip with a cross that takes it off. */
.finder-active { display: flex; flex-wrap: wrap; gap: var(--space-2); flex-basis: 100%; margin: 0; padding: 0; list-style: none; }
.finder-active__chip { border: 0; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-1); min-height: 1.9rem; padding: 0 var(--space-1) 0 var(--space-3); border-radius: 999px; background: var(--label-accent-bg); color: var(--label-accent-text); font-size: var(--text-xs); font-weight: 650; }
.finder-active__x { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; font-size: 1rem; line-height: 1; }
.finder-active__chip:hover .finder-active__x { background: color-mix(in srgb, currentColor 14%, transparent); }

/* The search: "Ask" inside it (Claude reads the sentence, when on), and what the page read from it, under it. */
.finder-search { position: relative; }
.finder-ask { display: inline-flex; align-items: center; gap: var(--space-1); flex: none; height: 1.9rem; padding: 0 var(--space-3); border: 0; border-radius: 999px; background: var(--ink); color: var(--sheet); font: inherit; font-size: var(--text-xs); font-weight: 650; cursor: pointer; }
.finder-ask svg { width: 0.95rem; height: 0.95rem; fill: currentColor; stroke: none; }
.finder-ask[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.finder-understood {
  position: absolute;
  z-index: 30;
  top: calc(100% + var(--space-2));
  left: 0;
  width: max(100%, 22rem);
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-sheet);
  background: var(--sheet-raised);
  box-shadow: var(--shadow-sheet);
  cursor: default;
}
.finder-understood__title { font-size: var(--text-xs); font-weight: 650; color: var(--ink-muted); }
.finder-understood__list { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.finder-understood__chip { padding: 2px var(--space-2); border-radius: 999px; background: var(--sheet-sunk); font-size: var(--text-xs); font-weight: 650; color: var(--ink); }
.finder-understood__chip--unknown { background: none; border: 1px dashed var(--line); color: var(--ink-muted); }
.finder-understood__hint { font-size: var(--text-xs); color: var(--ink-muted); }
.finder-link { justify-self: start; } /* a text button (controls.css) */

.finder-count { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin: var(--space-5) 0 var(--space-3); font-size: var(--text-sm); font-weight: 600; }
.finder-sort select { height: 2.1rem; padding: 0 var(--space-2); border: 1px solid var(--line); border-radius: 999px; background: var(--sheet-raised); font: inherit; font-size: var(--text-sm); color: inherit; }

/* ------------------------------------------------------------------ The cards */
.finder-cards { display: grid; gap: var(--space-4); padding: 0; list-style: none; }
.finder-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-tile);
  background: var(--sheet-raised);
  transition: box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.finder-card.is-focused { border-color: var(--ink); box-shadow: var(--shadow-card); }
.finder-card.is-focused::before {
  /* The pink flag at the card's side: this is the one lit up on the map. */
  content: "";
  position: absolute;
  left: -1px;
  top: var(--space-5);
  bottom: var(--space-5);
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--flag);
}
.finder-card__link { display: grid; grid-template-columns: 44% 1fr; gap: var(--space-4); padding: var(--inset-tile); text-decoration: none; }
.finder-card__photo {
  position: relative;
  aspect-ratio: var(--finder-photo-ratio);
  overflow: hidden;
  border-radius: var(--radius-shot);
  background:
    linear-gradient(var(--finder-grid) 1px, transparent 1px) 0 0 / 1rem 1rem,
    linear-gradient(90deg, var(--finder-grid) 1px, transparent 1px) 0 0 / 1rem 1rem,
    var(--sheet-sunk);
}
.finder-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 400ms var(--ease); }
.finder-card.has-photo .finder-card__photo img { opacity: 1; }
.finder-card.is-loading .finder-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.5) 50%, transparent 70%) 0 0 / 200% 100%;
  animation: finder-shimmer 1.2s linear infinite;
}
@keyframes finder-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .finder-card.is-loading .finder-card__photo::after { animation: none; } }
.finder-card__badge {
  position: absolute;
  left: var(--space-2);
  top: var(--space-2);
  padding: 2px var(--space-2);
  border-radius: 999px;
  background: var(--label-accent-bg);
  color: var(--label-accent-text);
  font-size: var(--text-xs);
  font-weight: 700;
}
/* A home's card: what it is, on its photo (bottom left), over the circle around where it is. */
.finder-card__kind {
  position: absolute;
  left: var(--space-2);
  bottom: var(--space-2);
  padding: 2px var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--sheet-raised);
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: 700;
  box-shadow: var(--shadow-control);
}
.finder.is-compact .finder-card__kind { display: none; }
/* Land | Homes and buildings (PROPERTIES=on): the choice above the chips, one kind of listing at a time. */
.finder-type { flex-basis: 100%; margin-bottom: var(--space-1); } /* a row of its own, never squeezed beside the chips */
.finder-type button { flex: 1; min-width: 0; padding: var(--space-2) var(--space-3); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 600; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finder-type button[aria-checked="true"] { background: var(--thumb); color: var(--ink); box-shadow: var(--shadow-thumb); }
.finder-type button:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.finder-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: var(--space-1) var(--space-6) var(--space-1) 0; }
.finder-card__price { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.finder-card__sqm { font-size: var(--text-xs); font-weight: 600; color: var(--ink-muted); }
.finder-card__title { margin-top: var(--space-2); font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.finder-card__place { font-size: var(--text-sm); color: var(--ink-muted); }
.finder-card__facts { margin-top: auto; padding-top: var(--space-2); font-size: var(--text-sm); }
.finder-card__agency { font-size: var(--text-xs); color: var(--ink-muted); }
.finder-card__locate {
  position: absolute;
  right: var(--space-3);
  top: var(--space-3);
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--sheet);
  color: var(--ink);
  cursor: pointer;
}
.finder-card__locate:hover { background: var(--ink); color: var(--sheet); }
.finder-card__locate svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; }

.finder-empty { padding: var(--space-6) var(--space-4); border: 1px dashed var(--line); border-radius: var(--radius-tile); text-align: center; color: var(--ink-muted); }
.finder-empty__title { font-family: var(--font-display); font-size: var(--text-lg); color: var(--ink); }
.finder-empty .finder-link { margin-top: var(--space-3); }

.finder-pitch { margin-top: var(--space-6); padding: var(--space-5); border-radius: var(--radius-tile); background: var(--ink); color: var(--sheet); }
.finder-pitch h2 { font-family: var(--font-display); font-size: var(--text-title); line-height: var(--leading-tight); letter-spacing: -0.02em; }
.finder-pitch p { margin-top: var(--space-2); opacity: 0.85; }
.finder-pitch__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.finder-note { margin-top: var(--space-4); font-size: var(--text-xs); color: var(--ink-muted); }
.finder-list .legal-foot { margin-top: var(--space-4); }

/* ------------------------------------------------------------------ Over the map */
.finder-glass {
  background: color-mix(in srgb, var(--sheet) var(--glass-opacity), transparent);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  box-shadow: var(--glass-rim), var(--glass-shadow);
}
@media (prefers-reduced-transparency: reduce) { .finder-glass { background: var(--sheet); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.finder-map__tools { position: absolute; left: var(--edge); top: var(--edge); z-index: 2; display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.finder-follow { border-color: transparent; }
.finder-follow input { accent-color: var(--flag); }
.finder-map__dial { position: absolute; right: var(--edge); bottom: calc(var(--edge) + 1.5rem); z-index: 2; display: grid; gap: var(--space-2); justify-items: center; }
.finder-map__dial .compass { position: static; }
.finder-map__dial .compass, .finder-map__dial .dial-button { width: 3rem; height: 3rem; }
.finder-status { position: absolute; left: 50%; top: var(--edge); z-index: 3; transform: translateX(-50%); max-width: calc(100% - 2 * var(--edge)); padding: var(--space-2) var(--space-4); border-radius: 999px; background: var(--ink); color: var(--sheet); font-size: var(--text-sm); font-weight: 600; }
.finder-status[data-kind="error"] { background: var(--warn); }
body:not(.is-ready) .finder-map__dial, body:not(.is-ready) .finder-map__tools { visibility: hidden; }

/* The bubble: a point (0 x 0) that src/finder.js moves onto the listing's middle; the card hangs above it on a stake
   driven into the land, with the flag's pink point in the ground. */
.finder-bubble { position: absolute; left: 0; top: 0; z-index: 2; width: 0; height: 0; text-decoration: none; will-change: transform; }
.finder-bubble__card {
  position: absolute;
  bottom: var(--finder-stake);
  left: calc(var(--finder-bubble-width) / -2);
  width: var(--finder-bubble-width);
  overflow: hidden;
  border-radius: var(--radius-sheet);
  background: var(--sheet-raised);
  box-shadow: var(--glass-shadow);
}
.finder-bubble__photo { display: block; width: 100%; height: auto; aspect-ratio: var(--finder-photo-ratio); object-fit: cover; background: var(--sheet-sunk); }
.finder-bubble__text { display: block; padding: var(--space-2) var(--space-3); }
.finder-bubble__price { display: block; font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.2; }
.finder-bubble__meta { display: block; font-size: var(--text-xs); color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finder-bubble::before, .finder-bubble::after { content: ""; position: absolute; pointer-events: none; }
.finder-bubble::before { bottom: 0; left: -1px; width: 2px; height: var(--finder-stake); background: var(--ink); }
.finder-bubble::after { left: -6px; top: -6px; width: 12px; height: 12px; border: 2.5px solid var(--sheet-raised); border-radius: 50%; background: var(--flag); box-shadow: var(--shadow-control); }
.finder-bubble.is-off { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .finder-bubble:not([hidden]) .finder-bubble__card { animation: finder-rise 240ms var(--ease) both; }
}
@keyframes finder-rise { from { opacity: 0; transform: translateY(6px); } }

/* ------------------------------------------------------------------ Phones and narrow windows */
@media (max-width: 70rem) {
  .finder-nav a:not([aria-current]) { display: none; }
}
/* ------------------------------------------------------------------ One listing, opened in place (src/listing-detail.js)
   The map stays (one flow, not a new page): it widens into a band across the top and the panel glides down under it
   (a view transition, where the browser has them); the page then scrolls like a page. Back the other way. */
.finder-detail { position: relative; }
.finder.is-leaving .finder-browse { animation: finder-in-left var(--duration-sheet) var(--ease-sheet) both; }
@keyframes finder-in-right { from { opacity: 0; transform: translateX(2.5rem); } to { opacity: 1; transform: none; } }
@keyframes finder-in-left { from { opacity: 0; transform: translateX(-2.5rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .finder.is-entering .finder-detail, .finder.is-leaving .finder-browse { animation: none; } }
/* Coming in, the open listing's sections rise one after another. */
.finder.is-entering .fd > * { animation: finder-rise var(--duration-sheet) var(--ease-sheet) both; }
.finder.is-entering .fd > :nth-child(2) { animation-delay: 40ms; }
.finder.is-entering .fd > :nth-child(3) { animation-delay: 80ms; }
.finder.is-entering .fd > :nth-child(n + 4) { animation-delay: 120ms; }
@keyframes finder-rise { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .finder.is-entering .fd > * { animation: none; } }

.fd-back {
  position: sticky;
  top: calc(-1 * var(--space-5));
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin: calc(-1 * var(--space-5)) calc(-1 * var(--space-5)) var(--space-3);
  padding: var(--space-3) var(--space-5);
  width: calc(100% + 2 * var(--space-5));
  border: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--sheet) var(--glass-opacity), transparent);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  font: inherit;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.fd-back svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fd-back:hover { color: var(--flag); }
.fd-back:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

.fd-loading { display: grid; gap: var(--space-3); margin: var(--space-4) 0; }
.fd-shimmer { display: block; height: 1.6rem; border-radius: var(--radius-control); background: linear-gradient(90deg, var(--sheet-sunk) 25%, var(--sheet-raised) 50%, var(--sheet-sunk) 75%) 0 0 / 200% 100%; animation: fd-shimmer 1.2s linear infinite; }
.fd-shimmer--short { width: 55%; }
@keyframes fd-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .fd-shimmer { animation: none; } }

.fd-head { display: grid; gap: var(--space-1); margin-bottom: var(--space-5); }
.fd-head p { margin: 0; }
.fd-head__title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: var(--leading-tight); letter-spacing: -0.025em; overflow-wrap: anywhere; }
.fd-head__place { color: var(--ink-muted); }
.fd-head__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); margin-top: var(--space-2) !important; }
.fd-head__sqm { font-size: var(--text-sm); font-weight: 600; color: var(--ink-muted); }
.fd-head__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.fd-head .listing-badge { justify-self: start; }
/* "Checked against the land-book extract": every lot read by us from its extract (publicListing's checkedAt). */
.fd-check { display: flex; align-items: flex-start; gap: var(--space-2); margin-top: var(--space-1) !important; font-size: var(--text-sm); color: var(--ink-muted); max-width: calc(100% - var(--peek-right, 0px)); }
.fd-check svg { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: var(--badge-ok-bg); stroke: var(--ok); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.fd-check strong { color: var(--ok); font-weight: 650; }
/* In the bubble the price and "Contact the agency" stand right of the title, sliding to their place as it is scrolled
   up (src/finder.js setPeek, --slide 0 to 1); the title keeps clear of them. */
.fd-head__title, .fd-head__place { max-width: calc(100% - var(--peek-right, 0px)); }
.fd-head__price, .fd-head__actions {
  justify-self: start;
  transform: translate(calc(var(--dx, 0px) * (1 - var(--slide, 1))), calc(var(--dy, 0px) * (1 - var(--slide, 1))));
}

/* In the panel the sections sit closer, and the tiles two by two. */
.fd .lp-section + .lp-section { margin-top: var(--space-6); }
.fd .lp-section__title { font-size: var(--text-title); }
.fd .lp-glance { grid-template-columns: 1fr 1fr; }
.fd .lp-tile { padding: var(--space-4); }
.fd .lp-tile__figure { font-size: 2.6rem; }
.fd .lp-tile__figure--small { font-size: 1.45rem; }
.fd .lp-tile--area, .fd .lp-tile--shape { grid-column: 1 / -1; }
.fd .lp-text { font-size: var(--text-base); }
.fd .lp-more { grid-template-columns: 1fr; }
.fd .lp-agency { position: static; scroll-margin-top: 4rem; }
.fd .lp-lot { cursor: default; transition: border-color var(--duration) var(--ease); }
.fd .lp-lot:hover { border-color: var(--ink); }
.fd--missing > * + * { margin-top: var(--space-4); }
@media (max-width: 24rem) { .fd .lp-glance { grid-template-columns: 1fr; } }

/* Around the land: the nearest road, then a row per sort of place (a symbol in its kind's colour). */
.fd-lead { margin: 0 0 var(--space-3); font-size: var(--text-sm); color: var(--ink-muted); }
.fd-lead:empty { display: none; }
.fd-roads { display: grid; gap: var(--space-2); margin: 0 0 var(--space-4); padding: 0; list-style: none; }
.fd-roads li { padding: var(--space-3) var(--space-4); border-left: 4px solid var(--road-line, var(--ink)); border-radius: 0 var(--radius-control) var(--radius-control) 0; background: var(--sheet-raised); font-weight: 600; }
.fd-nearby { display: grid; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius-sheet); background: var(--sheet-raised); overflow: hidden; }
.fd-nearby li + li { border-top: 1px solid var(--line); }
.fd-nearby__row { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-3); align-items: center; width: 100%; padding: var(--space-3) var(--space-4); border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.fd-nearby__row:hover:not(:disabled) { background: var(--sheet-sunk); }
.fd-nearby__row:disabled { cursor: default; opacity: 0.65; }
.fd-nearby__row:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.fd-nearby__icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; }
.fd-nearby__icon svg { width: 1.1rem; height: 1.1rem; fill: #fff; }
.fd-nearby__text { display: grid; min-width: 0; }
.fd-nearby__what { font-size: var(--text-xs); color: var(--ink-muted); }
.fd-nearby__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-nearby__distance { font-size: var(--text-sm); font-weight: 650; font-variant-numeric: tabular-nums; }

/* With a listing open the bubble and the follow chip have nothing to do. */
.finder.is-detail .finder-bubble, .finder.is-detail .finder-follow { display: none; }
.finder:not(.is-detail) [data-action="orbit"] { display: none; }

@media (max-width: 56rem) {
  .finder-bar { gap: var(--space-2); padding: 0 var(--space-4); }
  .finder-brand span { display: none; }
  .finder-search { flex: 1 1 0; min-width: 0; padding: 0 var(--space-2); }
  .finder-search svg { display: none; }
  .finder-signin { padding: 0 var(--space-3); }
  .finder-bar .segmented--small .control { padding: 0 6px; }
  .finder-nav { display: none; }
  .finder { display: block; height: auto; }
  .finder-card__link { grid-template-columns: 1fr; gap: var(--space-3); }
  .finder-card__body { padding: 0 var(--space-2) var(--space-2); }
  .finder-card__locate { top: calc(var(--inset-tile) + var(--space-2)); right: calc(var(--inset-tile) + var(--space-2)); }
  .finder-understood { position: fixed; top: calc(var(--finder-bar-height) + env(safe-area-inset-top, 0px) + var(--space-1)); left: var(--space-4); right: var(--space-4); width: auto; }
  .finder-map__dial { bottom: calc(var(--edge) + 1.2rem); }
  .finder-follow { display: none; } /* on by default; a phone's map is too small for the chip */
  :root { --finder-bubble-width: 11rem; --finder-stake: 1.5rem; }
}

/* ------------------------------------------------------------------ The search and the lookup: one panel, two shapes
   On a computer the map fills the page and never changes size. The list floats over its left side (the search); a
   listing opened turns that same panel into a sheet over the bottom of the map (the lookup), which scrolls up over the
   map to be read; Back turns it into the list again. The change is one view transition: the panel's shape glides from
   one to the other while the list fades out and the listing fades in (where the browser has view transitions; at once
   otherwise, and with reduced motion). On a phone the map stays at the top and the page scrolls under it. */
.finder-bar { view-transition-name: finder-bar; }
.finder:not(.is-detail) .finder-list { view-transition-name: finder-panel; }
::view-transition-group(finder-panel) {
  animation-duration: var(--duration-sheet);
  animation-timing-function: var(--ease-sheet);
  overflow: clip;
  border-radius: var(--radius-bubble);
}
/* The pictures of the old and new panel are cut by the moving shape, never stretched. */
::view-transition-old(finder-panel), ::view-transition-new(finder-panel) { height: 100%; object-fit: none; object-position: left top; }
::view-transition-old(finder-panel) { animation: finder-vt-out 160ms var(--ease) both; }
::view-transition-new(finder-panel) { animation: finder-vt-in 320ms var(--ease) 120ms both; }
@keyframes finder-vt-out { to { opacity: 0; } }
@keyframes finder-vt-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* The lookup's sheet: its glass (#fd-frame) under its contents (.fd-inner), shaped by --sheet-open (0: a bubble with a
   gap all round; 1: filled out to the edges, top corners as the sheet's, bottom square, solid) and --sheet-height (the
   glass ends there, the gap above the screen's bottom, until it has filled out; src/finder.js shapeSheet). */
.finder.is-detail .finder-detail { --o: var(--sheet-open, 0); --inset: calc((1 - var(--o)) * var(--sheet-gap)); }
.fd-frame {
  position: absolute;
  z-index: 0;
  top: 0;
  left: calc(var(--sheet-bleed, 0px) * -1 + var(--inset));
  right: calc(var(--sheet-bleed, 0px) * -1 + var(--inset));
  height: var(--sheet-height, 100%);
  border-radius:
    calc(var(--radius-sheet) + (1 - var(--o)) * (var(--radius-bubble) - var(--radius-sheet)))
    calc(var(--radius-sheet) + (1 - var(--o)) * (var(--radius-bubble) - var(--radius-sheet)))
    calc((1 - var(--o)) * var(--radius-bubble)) calc((1 - var(--o)) * var(--radius-bubble));
  background: color-mix(in srgb, var(--sheet) calc(var(--glass-opacity-panel) + var(--o) * (100% - var(--glass-opacity-panel))), transparent);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  box-shadow: var(--glass-rim), var(--glass-shadow);
  view-transition-name: finder-panel;
}
.fd-inner { position: relative; z-index: 1; clip-path: inset(0 0 calc(100% - var(--sheet-height, 100%)) 0); }
@media (prefers-reduced-transparency: reduce) { .fd-frame { background: var(--sheet); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* "Back to the list": a pill that stays in view while the listing scrolls. */
.finder.is-detail .fd-back {
  width: auto;
  margin: 0 0 var(--space-4);
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-control);
}

@media (min-width: 56.01rem) {
  .finder { display: block; position: relative; }
  .finder-map { position: absolute; inset: 0; }
  .finder-list {
    position: absolute;
    z-index: 6;
    top: var(--finder-float);
    bottom: var(--finder-float);
    left: var(--finder-float);
    width: var(--finder-list-width);
    border: 1px solid var(--line);
    border-radius: var(--radius-sheet);
    box-shadow: var(--shadow-sheet);
  }
  /* The list's scroll bar: thin and round, inside the panel's rounded corners. */
  .finder:not(.is-detail) .finder-list::-webkit-scrollbar { width: 12px; }
  .finder:not(.is-detail) .finder-list::-webkit-scrollbar-track { margin-block: var(--radius-sheet); background: none; }
  .finder:not(.is-detail) .finder-list::-webkit-scrollbar-thumb { border: 4px solid transparent; border-radius: 999px; background: color-mix(in srgb, var(--ink) 22%, transparent) padding-box; }
  .finder:not(.is-detail) .finder-list::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--ink) 38%, transparent); }
  @supports not selector(::-webkit-scrollbar) { .finder:not(.is-detail) .finder-list { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 25%, transparent) transparent; } }
  .finder:not(.is-detail) .finder-map__tools { left: calc(2 * var(--finder-float) + var(--finder-list-width)); }
  .finder:not(.is-detail) .finder-status { left: calc(50% + (var(--finder-float) + var(--finder-list-width)) / 2); }

  /* The lookup: the whole map's width, starting part way down; the space above it lets the map be used. */
  .finder.is-detail .finder-list {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
    pointer-events: none;
    scrollbar-width: none;
  }
  .finder.is-detail .finder-list::-webkit-scrollbar { display: none; }
  .finder.is-detail .finder-detail, .finder.is-detail .legal-foot {
    pointer-events: auto;
    padding-inline: max(calc(var(--site-gutter) + var(--sheet-gap)), (100% - var(--site-width)) / 2);
  }
  .finder.is-detail .finder-detail {
    /* The map above, the bubble showing the listing's head (a margin: a padding on the scroller would hold the sticky Back lower). */
    margin-top: calc(100svh - var(--finder-bar-height) - var(--sheet-peek) - var(--sheet-gap));
    min-height: calc(var(--sheet-peek) + var(--sheet-gap));
    padding-bottom: var(--space-6);
  }
  .finder.is-detail .fd-inner { padding-top: var(--space-4); }
  .finder.is-detail .fd-frame { left: var(--inset); right: var(--inset); }
  .finder.is-detail .legal-foot { margin: 0; padding-bottom: var(--space-5); background: var(--sheet); }
  .finder.is-detail .fd-back { top: var(--space-3); }
  .finder:not(.is-detail) .finder-map { --credits-left: calc(2 * var(--finder-float) + var(--finder-list-width)); }
  .finder.is-detail .finder-map { --credits-bottom: calc(var(--sheet-peek) + var(--sheet-gap) + var(--space-2)); }
  .finder.is-detail .finder-map__dial { bottom: calc(var(--sheet-peek) + var(--sheet-gap) + var(--edge)); }

  /* An agency's page: the panel floats on the map's right, the map's buttons move to its left. */
  .finder.is-agency:not(.is-detail) .finder-list { left: auto; right: var(--finder-float); }
  .finder.is-agency:not(.is-detail) .finder-map__tools { left: var(--edge); }
  .finder.is-agency:not(.is-detail) .finder-map { --credits-left: var(--edge); }
  .finder.is-agency:not(.is-detail) .finder-map__dial { right: calc(2 * var(--finder-float) + var(--finder-list-width)); }
  .finder.is-agency:not(.is-detail) .finder-status { left: calc(50% - (var(--finder-float) + var(--finder-list-width)) / 2); }

  .finder.is-detail .fd { display: grid; grid-template-columns: minmax(0, 1fr) var(--listing-side); column-gap: var(--space-6); align-items: start; }
  .finder.is-detail .fd > * { grid-column: 1; }
  .finder.is-detail .fd > #agency-card { grid-column: 2; grid-row: 2 / span 12; position: sticky; top: calc(var(--space-3) + 3.25rem); margin-top: 0; }
  .finder.is-detail .fd .lp-section + .lp-section { margin-top: clamp(2.5rem, 5vw, 4rem); }
  .finder.is-detail .fd .lp-section__title { font-size: var(--site-text-h2); }
  .finder.is-detail .fd-head__title { font-size: clamp(1.8rem, 3vw, 2.6rem); }
  .finder.is-detail .fd .lp-glance { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
  .finder.is-detail .fd .lp-tile { padding: var(--space-5); }
  .finder.is-detail .fd .lp-tile__figure { font-size: var(--text-figure); }
  .finder.is-detail .fd .lp-tile__figure--small { font-size: var(--text-title); }
  .finder.is-detail .fd .lp-tile--area { grid-column: auto; }
  .finder.is-detail .fd .lp-tile--shape { grid-column: span 2; }
  .finder.is-detail .fd .lp-text { font-size: var(--text-lg); }
  .finder.is-detail .fd .lp-more { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
}

/* A phone: the map grows into a band at the top, the listing under it, the page scrolls. */
/* An agency's page: one quiet line of figures, "Checked by Privim" beside "Listed by", the company folded. */
.finder-agency__checked { display: inline-flex; align-items: center; gap: 4px; margin-left: var(--space-2); color: var(--ok); }
.finder-agency__checked::before { content: ""; width: 0.55em; height: 0.3em; border: solid currentColor; border-width: 0 0 2px 2px; transform: translateY(-0.12em) rotate(-45deg); }
.finder-agency__since { margin-top: var(--space-2); font-size: var(--text-xs); color: var(--ink-muted); }
.finder-agency__company { margin-top: var(--space-3); font-size: var(--text-sm); }
.finder-agency__company summary { cursor: pointer; font-weight: 650; color: var(--ink-muted); }
.finder-agency__checked-note { margin-top: var(--space-2); color: var(--ink-muted); }
.finder-agency__company dl { display: grid; gap: var(--space-1); margin-top: var(--space-2); }
.finder-agency__company dl > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: var(--space-2); }
.finder-agency__company dt { color: var(--ink-muted); }

/* ------------------------------------------------------------------ Liquid glass (2026-11-04)
   The owner: "very glassy, like Apple Music". Everything over the map is a clear pane of glass (--liquid-* in
   tokens.css): the bar along the top (on a computer the map runs under it), its links and EN / RO as glass capsules
   at the top right, the list floating on a computer's map, the map's buttons. Every capsule and button has round
   ends (--radius-pill). Solid where the visitor asked for less transparency. */
.finder-glass, .finder-bar {
  background: var(--liquid-sheen), color-mix(in srgb, var(--sheet) var(--liquid-opacity), transparent);
  -webkit-backdrop-filter: blur(var(--liquid-blur)) saturate(var(--liquid-saturate));
  backdrop-filter: blur(var(--liquid-blur)) saturate(var(--liquid-saturate));
  box-shadow: var(--liquid-rim), var(--liquid-shadow);
}
.finder-glass { border-color: rgb(255 255 255 / 0.5); }
.finder-bar { background: color-mix(in srgb, var(--sheet) var(--liquid-opacity-panel), transparent); border-bottom-color: rgb(255 255 255 / 0.45); box-shadow: 0 1px 0 rgb(16 34 43 / 0.06); }
.finder-bar .finder-search { background: color-mix(in srgb, var(--sheet-raised) 70%, transparent); border-color: rgb(16 34 43 / 0.08); box-shadow: inset 0 1px 2px rgb(16 34 43 / 0.06); }
/* The links and EN / RO: capsules of glass inside the glass bar, the one open dark like a pressed segment. */
.finder-nav, .finder-bar .segmented {
  gap: 2px;
  padding: var(--inset-segmented);
  border: 1px solid rgb(255 255 255 / 0.55);
  border-radius: var(--radius-pill);
  background: var(--liquid-sheen), color-mix(in srgb, var(--sheet-raised) 55%, transparent);
  box-shadow: var(--liquid-rim), 0 1px 3px rgb(16 34 43 / 0.08);
}
.finder-nav a { display: inline-flex; align-items: center; min-height: 1.9rem; padding: 0 var(--space-3); border-radius: var(--radius-pill); transition: background var(--duration) var(--ease), color var(--duration) var(--ease); }
.finder-nav a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.finder-nav a[aria-current="page"] { box-shadow: none; background: var(--ink); color: var(--sheet); }
.finder-signin { min-height: calc(1.9rem + 2 * var(--inset-segmented) + 2px); box-shadow: 0 1px 3px rgb(16 34 43 / 0.15); }
@media (max-width: 70rem) { .finder-nav:has(a:not([aria-current])) { gap: 0; } }
@media (prefers-reduced-transparency: reduce) {
  .finder-glass, .finder-bar, .finder-nav, .finder-bar .segmented { background: var(--sheet); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* A computer: the map runs under the glass bar; the list is a pane of glass. */
@media (min-width: 56.01rem) {
  .finder { height: 100svh; margin-top: calc(-1 * (var(--finder-bar-height) + env(safe-area-inset-top, 0px))); }
  .finder-map__tools { top: calc(var(--finder-bar-height) + var(--edge)); }
  .finder-status { top: calc(var(--finder-bar-height) + var(--edge)); }
  .finder:not(.is-detail) .finder-list {
    top: calc(var(--finder-bar-height) + var(--finder-float));
    border-color: rgb(255 255 255 / 0.5);
    background:
      linear-gradient(var(--finder-grid) 1px, transparent 1px) 0 0 / 2rem 2rem,
      linear-gradient(90deg, var(--finder-grid) 1px, transparent 1px) 0 0 / 2rem 2rem,
      var(--liquid-sheen),
      color-mix(in srgb, var(--sheet) var(--liquid-opacity-panel), transparent);
    -webkit-backdrop-filter: blur(var(--liquid-blur)) saturate(var(--liquid-saturate));
    backdrop-filter: blur(var(--liquid-blur)) saturate(var(--liquid-saturate));
    box-shadow: var(--liquid-rim), var(--liquid-shadow);
  }
  .finder.is-detail .finder-detail { margin-top: calc(100svh - var(--sheet-peek) - var(--sheet-gap)); }
  .finder.is-detail .fd-back { top: calc(var(--finder-bar-height) + var(--space-3)); }
  .finder.is-detail .fd > #agency-card { top: calc(var(--finder-bar-height) + var(--space-3) + 3.25rem); }
  @media (prefers-reduced-transparency: reduce) { .finder:not(.is-detail) .finder-list { background: var(--sheet); -webkit-backdrop-filter: none; backdrop-filter: none; } }
}

/* ------------------------------------------------------------------ The list smaller, or closed (2026-11-04)
   The owner: "a little x that just closes the listings", "the listings can be compacted", and the search on the map
   alone. Compact: a small square photo beside the price and title, the title's words and the pitch folded away.
   Closed: the map alone under the search bar, "List · N" at its bottom bringing the list back. */
.finder-panel-tools { float: right; display: flex; gap: var(--space-2); margin: calc(-1 * var(--space-2)) calc(-1 * var(--space-2)) var(--space-2) var(--space-3); position: relative; z-index: 1; }
.finder-round {
  display: inline-grid; place-items: center;
  width: 2.25rem; height: 2.25rem; padding: 0;
  border: 1px solid rgb(16 34 43 / 0.08); border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--sheet-raised) 70%, transparent);
  color: var(--ink); cursor: pointer;
  transition: background var(--duration) var(--ease);
}
.finder-round:hover { background: var(--sheet-sunk); }
.finder-round[aria-pressed="true"] { background: var(--ink); color: var(--sheet); }
.finder-round svg, .finder-show-list svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.finder.is-agency .finder-panel-tools { display: none; }

.finder.is-compact .finder-head__lead, .finder.is-compact .finder-pitch, .finder.is-compact .finder-note { display: none; }
.finder.is-compact .finder-head__title { font-size: var(--text-title); }
.finder.is-compact .finder-card__link { grid-template-columns: 4.5rem 1fr; gap: var(--space-3); align-items: center; }
.finder.is-compact .finder-card__photo { aspect-ratio: 1; }
.finder.is-compact .finder-card__body { padding: 0; gap: 0; }
.finder.is-compact .finder-card__facts, .finder.is-compact .finder-card__agency, .finder.is-compact .finder-card__sqm, .finder.is-compact .finder-card__badge { display: none; }
.finder.is-compact .finder-card__locate { top: 50%; transform: translateY(-50%); }

.finder.is-list-closed:not(.is-detail) .finder-list { display: none; }
.finder-show-list { position: absolute; z-index: 6; left: 50%; bottom: calc(var(--edge) + 2.4rem); transform: translateX(-50%); gap: var(--space-2); font-weight: 650; }
.finder.is-detail .finder-show-list { display: none; }
@media (min-width: 56.01rem) {
  .finder.is-list-closed:not(.is-detail) .finder-map__tools { left: var(--finder-float); }
  .finder.is-list-closed:not(.is-detail) .finder-status { left: 50%; }
}
@media (max-width: 56rem) {
  .finder.is-compact .finder-card__link { grid-template-columns: 4.5rem 1fr; }
  .finder.is-compact .finder-card__body { padding: 0; }
}

/* ------------------------------------------------------------------ A tower of flats: "View residence" (2026-11-04)
   The demo's made-up tower. Its entry is a card at the end of the list; open, the list and the map's own buttons step
   aside and the page works like a lift: a glass card on the right (the level, the flat on it, its price, "Enter"),
   a Back chip at the top left, and inside the flat a row of rooms at the bottom with a caption above it. */
.finder-residence {
  display: grid; gap: 2px; width: 100%; margin-top: var(--space-4); padding: var(--space-4);
  border: 1px solid var(--line); border-radius: var(--radius-card); text-align: left; cursor: pointer;
  background: linear-gradient(160deg, color-mix(in srgb, var(--residence-glass-lit) 22%, var(--sheet-raised)), var(--sheet-raised));
  color: var(--ink); font: inherit;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.finder-residence[hidden] { display: none; }
.finder-residence:hover { transform: translateY(-1px); box-shadow: var(--liquid-shadow); }
.finder-residence__kicker { font-size: var(--text-small); color: var(--ink-soft); }
.finder-residence__name { font-family: var(--font-display); font-size: var(--text-title); }
.finder-residence__place { color: var(--ink-soft); }
.finder-residence__go { margin-top: var(--space-2); color: var(--flag); font-weight: 600; }

.residence { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.residence[hidden] { display: none; }
.residence > * { pointer-events: auto; }
.residence__top { position: absolute; top: calc(var(--finder-bar-height) + var(--space-3)); left: var(--space-3); display: flex; gap: var(--space-2); }
.residence__back, .residence__exit { display: inline-flex; align-items: center; gap: var(--space-2); }
.residence[data-step="tower"] .residence__exit { display: none; }
.residence__exit svg { width: 0.9rem; height: 0.9rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
/* The building's name, small and spaced, at the top middle (the renders' "SAMAR"). */
.residence__brand { position: absolute; top: calc(var(--finder-bar-height) + var(--space-4)); left: 50%; translate: -50% 0; margin: 0;
  font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.35em; text-transform: uppercase; color: #fff;
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.45); pointer-events: none !important; }
.residence__kicker { margin: 0; color: var(--ink-soft); font-size: var(--text-small); }
.residence__room-list { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--space-2) 0; }
.residence__room-list .control { border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 6px 12px; background: color-mix(in srgb, var(--sheet-raised) 70%, transparent); cursor: pointer; font: inherit; color: var(--ink); }
.residence__room-list .control:hover { background: var(--sheet-sunk); }
.residence__back svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.residence__card {
  position: absolute; right: var(--space-4); top: 50%; transform: translateY(-50%);
  width: min(20rem, calc(100% - 2 * var(--space-4))); padding: var(--space-5);
  border-radius: var(--radius-card); display: grid; gap: var(--space-2);
}
.residence__card[hidden] { display: none; }
.residence__name { margin: 0; color: var(--ink-soft); font-size: var(--text-small); }
.residence__title { margin: 0; font-family: var(--font-display); font-size: var(--text-title); }
.residence__lead { margin: 0; color: var(--ink-soft); }
.residence__floor { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-3); margin: var(--space-3) 0; }
.residence__floor .finder-round { width: 2.75rem; height: 2.75rem; }
.residence__level { display: grid; justify-items: center; line-height: 1; }
.residence__level small { color: var(--ink-soft); font-size: var(--text-small); margin-bottom: 4px; }
.residence__level strong { font-family: var(--font-display); font-size: 3rem; font-variant-numeric: tabular-nums; }
.residence__unit { margin: 0; font-weight: 600; }
.residence__price { margin: 0; color: var(--ink-soft); }
.residence__enter { justify-content: center; margin-top: var(--space-2); min-height: 2.75rem; }
.residence__note { margin: 0; font-size: var(--text-small); color: var(--ink-soft); }
.residence__rooms {
  position: absolute; left: 50%; bottom: var(--space-5); transform: translateX(-50%);
  display: flex; gap: 4px; padding: 4px; border-radius: var(--radius-pill); max-width: calc(100% - 2 * var(--space-3)); overflow-x: auto;
}
.residence__rooms[hidden], .residence__caption[hidden] { display: none; }
.residence__rooms .control { border: 0; border-radius: var(--radius-pill); padding: var(--space-2) var(--space-4); background: transparent; white-space: nowrap; cursor: pointer; font: inherit; color: var(--ink); }
.residence__rooms .control.is-active, .residence__rooms .control[aria-pressed="true"] { background: var(--ink); color: var(--sheet); }
.residence__caption {
  position: absolute; left: 50%; bottom: calc(var(--space-5) + 3.5rem); transform: translateX(-50%);
  margin: 0; padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); display: flex; gap: var(--space-3); align-items: baseline; white-space: nowrap;
}
.residence__caption small { color: var(--ink-soft); }

/* Open: the list, its bubble and the map's own tools step aside (the map styles stay). */
.finder.is-residence .finder-list, .finder.is-residence .finder-bubble, .finder.is-residence .finder-show-list,
.finder.is-residence .finder-status, .finder.is-residence .finder-follow, .finder.is-residence .finder-map__dial,
.finder.is-residence .finder-map__tools { display: none !important; }
/* The building view's cards come in softly. */
.residence__card:not([hidden]), .residence__rooms:not([hidden]), .residence__caption:not([hidden]) { animation: residence-in var(--duration-sheet, 0.4s) var(--ease-sheet, ease) both; }
@keyframes residence-in { from { opacity: 0; translate: 0 8px; } }
.residence__level strong { transition: opacity 0.15s; }
@media (prefers-reduced-motion: reduce) { .residence__card, .residence__rooms, .residence__caption { animation: none !important; } }
@media (min-width: 56.01rem) { .finder.is-residence .finder-map { grid-column: 1 / -1; } }
@media (max-width: 56rem) {
  .finder.is-residence .finder-map { height: calc(100svh - var(--finder-bar-height) - env(safe-area-inset-top, 0px)); }
  .residence__card { top: auto; bottom: var(--space-3); right: var(--space-3); left: var(--space-3); width: auto; transform: none; padding: var(--space-4); }
  .residence__lead, .residence__note { display: none; }
  .residence__level strong { font-size: 2.25rem; }
}
@media (max-width: 56rem) { .residence__top { top: var(--space-3); } .residence__brand { display: none; } }

/* "3D | Film" at the top right, and the film (2026-11-04): pre-made clips filling the map, cropped to cover it (the
   stage keeps the clips' shape, so a hotspot's % of the frame stays on its spot), with the places to go on the picture
   and in a bar at the bottom. No dragging: the film covers the map. While a clip plays, the choices step aside. */
.residence__mode { position: absolute; top: calc(var(--finder-bar-height) + var(--space-3)); right: var(--space-3); }
.residence__mode[hidden] { display: none; }
.residence-film { position: absolute; inset: 0; overflow: hidden; container-type: size; background: var(--residence-film-backdrop); }
.residence-film[hidden] { display: none; }
.residence-film__stage {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: max(100cqw, 100cqh * var(--film-ratio, 16 / 9)); aspect-ratio: var(--film-ratio, 16 / 9);
}
.residence-film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.residence-film__video.is-front { opacity: 1; z-index: 1; }
.residence-film.is-fading .residence-film__video { transition: opacity 0.45s var(--ease); }
.residence-film__spots { position: absolute; inset: 0; z-index: 2; }
.residence-film__spot {
  position: absolute; translate: -50% -50%; display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 6px 12px 6px 8px; border: 0; border-radius: var(--radius-pill); cursor: pointer; font: inherit; font-size: var(--text-small);
  color: var(--ink); white-space: nowrap; animation: film-in 0.35s var(--ease) both;
}
@keyframes film-in { from { opacity: 0; } }
.residence-film__dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--residence-film-spot); box-shadow: 0 0 0 0 var(--residence-film-spot); animation: film-pulse 2.2s ease-out infinite; }
@keyframes film-pulse { 70% { box-shadow: 0 0 0 0.6rem transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.residence-film__bar { z-index: 3; }
.residence-film__bar[hidden] { display: none; }
.residence-film__caption { z-index: 3; }
.residence-film.is-moving .residence-film__bar, .residence-film.is-moving .residence-film__caption { opacity: 0.55; pointer-events: none; }
.residence-film__status { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 3; margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-card); }
.residence-film__status[hidden] { display: none; }
/* In the film the 3D version's cards and the building's name step aside (the film has its own caption and bar). */
.residence[data-mode="film"] .residence__card, .residence[data-mode="film"] #residence-rooms, .residence[data-mode="film"] #residence-caption,
.residence[data-mode="film"] .residence__brand { display: none !important; }
.residence__top, .residence__mode { z-index: 4; }
@media (prefers-reduced-motion: reduce) { .residence-film__dot, .residence-film__spot { animation: none !important; } }
@media (max-width: 56rem) {
  .residence__mode { top: calc(var(--space-3) + 3rem); }
  .residence-film__spot { font-size: var(--text-xs); }
}

/* ------------------------------------------------------------------ A phone: the map, and the panel as a sheet over it
   (2026-11-04, the owner: "only a little line appears down; pulled a little, with some resistance, only the title; then
   the whole listings"). The map fills the screen under the search bar; the list, and a listing opened, are one sheet of
   glass with three heights (src/bottom-sheet.js): tucked (the grabber line only), the title, the whole panel up to the
   search bar. Glass low down, solid as it rises (--solid), like the client's presentation. */
.finder-grabber { display: none; }
@media (max-width: 56rem) {
  .finder-map { position: fixed; z-index: 1; top: calc(var(--finder-bar-height) + env(safe-area-inset-top, 0px)); left: 0; right: 0; bottom: 0; height: auto; border: 0; }
  .finder-list {
    position: fixed; z-index: 6; left: 0; right: 0;
    top: var(--sheet-top, 50svh);
    height: calc(100svh - var(--sheet-top, 50svh));
    overflow-y: auto; overscroll-behavior: contain;
    padding: 0 var(--space-4) calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
    border: 0; border-radius: var(--radius-bubble) var(--radius-bubble) 0 0;
    background: var(--liquid-sheen), color-mix(in srgb, var(--sheet) calc(var(--liquid-opacity-panel) + var(--solid, 0) * (100% - var(--liquid-opacity-panel))), transparent);
    -webkit-backdrop-filter: blur(var(--liquid-blur)) saturate(var(--liquid-saturate));
    backdrop-filter: blur(var(--liquid-blur)) saturate(var(--liquid-saturate));
    box-shadow: var(--liquid-rim), 0 -6px 30px rgb(16 34 43 / 0.14);
    will-change: transform;
    view-transition-name: none;
  }
  .finder-list.is-solid { background: var(--sheet); -webkit-backdrop-filter: none; backdrop-filter: none; }
  /* The grabber: a short line in a strip the finger can catch, pinned to the sheet's top as it scrolls. */
  .finder-grabber { display: block; position: sticky; z-index: 3; top: 0; height: 22px; margin: 0 calc(-1 * var(--space-4)); cursor: grab; }
  .finder-grabber::before { content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--ink) 22%, transparent); }
  /* The list's buttons: compact stays; closing is the tuck now. */
  .finder-panel-tools [data-action="close-list"], .finder-show-list { display: none !important; }
  .finder.is-list-closed:not(.is-detail) .finder-list { display: block; }
  /* A listing in the sheet: no bubble of its own (the sheet is its glass), its price under its title. */
  .finder.is-detail .finder-list { padding-top: 0; }
  .finder.is-detail .fd-frame { display: none; }
  .finder.is-detail .finder-detail { --o: 1; --inset: 0px; --slide: 1 !important; padding: 0; min-height: 0; }
  .finder.is-detail .fd-head { --peek-right: 0px !important; }
  .fd-back { top: 22px; margin: 0 calc(-1 * var(--space-4)) var(--space-2); padding: var(--space-2) var(--space-4); width: calc(100% + 2 * var(--space-4)); }
  .finder-list .legal-foot { margin: var(--space-5) calc(-1 * var(--space-4)) 0; padding: var(--space-4); }
  /* The map's buttons and credits stay above the sheet's lowest height. */
  .finder-map__dial { bottom: calc(var(--sheet-cover, 40px) + var(--edge)); }
  .finder-map { --credits-bottom: calc(var(--sheet-cover, 40px) + var(--space-2)); }
}
@media (max-width: 56rem) and (prefers-reduced-transparency: reduce) { .finder-list { background: var(--sheet); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* A card's agent in charge (2026-11-04): a small round photo before the agency's line. */
.finder-card__agency { display: flex; align-items: center; gap: 0.35rem; }
.finder-card__agent { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: var(--agent-face); flex: none; }
.finder-card__agent[hidden] { display: none; }

/* ------------------------------------------------------------------ Getting around over the map (2026-11-04)
   The owner: "the distance of transport mode at the top of the screen, you can pop it out and hide it, only after you
   have clicked a property". A capsule of liquid glass among the map's tools at the top (src/transit-bar.js): small, a
   pill (the icon and what is drawn); open, the ways and minutes and the lines near; its cross hides it. Only with a
   listing open. */
.finder-transit {
  display: grid; gap: var(--space-2);
  max-width: min(40rem, calc(100vw - 2 * var(--edge)));
  padding: var(--inset-segmented);
  border: 1px solid rgb(255 255 255 / 0.5); border-radius: var(--radius-pill);
}
.finder-transit[data-shape="open"] { padding: var(--space-2); border-radius: var(--radius-bubble); }
.finder:not(.is-detail) .finder-transit { display: none; }
.finder-transit__top { display: flex; align-items: center; gap: var(--space-1); }
.finder-transit__pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 1.9rem; padding: 0 var(--space-3) 0 var(--space-2);
  border: 0; border-radius: var(--radius-pill); background: none;
  color: var(--ink); font: inherit; font-size: var(--text-sm); font-weight: 650; white-space: nowrap; cursor: pointer;
  transition: background var(--duration) var(--ease);
}
.finder-transit__pill:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.finder-transit__icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: var(--reach-line); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.finder-transit__chevron { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform var(--duration) var(--ease); }
.finder-transit[data-shape="open"] .finder-transit__chevron { transform: rotate(180deg); }
.finder-transit__close {
  display: inline-grid; place-items: center; flex: none;
  width: 1.9rem; height: 1.9rem; margin-left: auto; padding: 0;
  border: 0; border-radius: var(--radius-pill); background: none; color: var(--ink-muted); cursor: pointer;
}
.finder-transit__close:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.finder-transit__close svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.finder-transit__body { display: grid; gap: var(--space-2); padding: 0 var(--space-1) var(--space-1); }
.finder-transit__controls { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.finder-transit .segmented {
  gap: 2px; padding: var(--inset-segmented);
  border: 1px solid rgb(255 255 255 / 0.55); border-radius: var(--radius-pill);
  background: var(--liquid-sheen), color-mix(in srgb, var(--sheet-raised) 55%, transparent);
  box-shadow: var(--liquid-rim), 0 1px 3px rgb(16 34 43 / 0.08);
}
.finder-transit .segmented .control { border-radius: var(--radius-pill); }
.finder-transit__status { margin: 0; font-size: var(--text-xs); color: var(--ink-muted); }
.finder-transit__lines { display: grid; gap: var(--space-1); }
.finder-transit__lines-title { font-size: var(--text-xs); font-weight: 650; color: var(--ink-muted); }
.finder-transit__legend {
  display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3);
  max-height: 4.6rem; overflow-y: auto; margin: 0; padding: 0; list-style: none;
  font-size: var(--text-xs); font-weight: 600;
}
.finder-transit__legend li { display: inline-flex; align-items: center; gap: 0.35rem; }
.finder-transit__swatch { width: 1rem; height: 0.32rem; border-radius: var(--radius-pill); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.9); }
@media (prefers-reduced-transparency: reduce) { .finder-transit .segmented { background: var(--sheet-raised); } }
/* A phone: the tools across the top of the map, the bar open on a row of its own, its buttons a little tighter. */
@media (max-width: 56rem) {
  .finder.is-detail .finder-map__tools { right: var(--edge); }
  .finder-transit[data-shape="open"] { flex-basis: 100%; }
  .finder-transit .segmented--small .control { padding: 0 7px; }
  /* The lines in one row that scrolls sideways: a box scrolling down looked cut off on a phone. */
  .finder-transit__legend { flex-wrap: nowrap; max-height: none; overflow-x: auto; overflow-y: hidden; padding-bottom: 2px; scrollbar-width: none; }
  .finder-transit__legend li { flex: none; }
}
