/*
 * The board's look (ops decision 52 (4), #366): Strada's property board in
 * the designer's stone, charcoal and terracotta (docs/plans/2026-12-02-board-design.md),
 * over the app's `--v-` tokens and Heebo, light or dark as the device is
 * set (data-theme, set by the layout). Linked by layouts/board alone; its
 * classes start `b-` and reach only the board's own parts. A colour is
 * written once, in the two palette blocks below; the bar and footer's band
 * names look tokens; test/assets/board_sheet_test.rb weighs every pair the
 * board puts together. Logical properties only, so one sheet serves both
 * directions.
 */

/* The stone ground, white-paper cards, charcoal words and the terracotta
   accent (7:1 on the ground); the band is the charcoal, its words the paper,
   its accent the clay. */
:root[data-board] {
  --v-ink: #25231f;
  --v-ink-muted: #59544b;
  --v-accent: #823f2e;
  --v-accent-soft: #632d20;
  --v-accent-line: #e5a58e;
  --v-accent-wash: rgba(130, 63, 46, .1);
  --v-accent-on-wash: #632d20;
  --v-on-accent: #fff8f3;
  --v-surface: #fffefa;
  --v-page: #f6f2ea;
  --v-field: #fffefa;
  --v-tray: #f2eadf;
  --v-line: #dcd1c1;
  --v-divider: #dcd1c1;
  --v-frame: #8b7d70;
  --v-shadow: 0 10px 25px rgba(70, 40, 23, .07);
  --b-band: var(--v-ink);
  --b-on-band: var(--v-surface);
  --b-band-muted: var(--v-tray);
  --b-band-accent: var(--v-accent-line);
  --b-wide: 76rem;
  --b-round: 1rem;
  --b-card-round: .8125rem;
  --b-press: 2.75rem;
  --b-press-round: .375rem;
  color-scheme: light;
}

/* Its dark twin: charcoal grounds, warm light words, the clay as the
   accent; the band the page's own deep charcoal, under a hairline. */
:root[data-board][data-theme="dark"] {
  --v-ink: #f1ebe2;
  --v-ink-muted: #c4b9aa;
  --v-accent: #e5a58e;
  --v-accent-soft: #f2c4b2;
  --v-accent-line: #6e3a2b;
  --v-accent-wash: rgba(229, 165, 142, .14);
  --v-accent-on-wash: #f2c4b2;
  --v-on-accent: #25231f;
  --v-surface: #25231f;
  --v-page: #1b1916;
  --v-field: #2b2824;
  --v-tray: #34302a;
  --v-line: #3f3a33;
  --v-divider: #3f3a33;
  --v-frame: #8f8174;
  --v-shadow: 0 10px 25px rgba(0, 0, 0, .35);
  --b-band: var(--v-page);
  --b-on-band: var(--v-ink);
  --b-band-muted: var(--v-ink-muted);
  --b-band-accent: var(--v-accent);
  color-scheme: dark;
}

[data-board] { scroll-padding-block-start: 5rem; }
.b-body { background: var(--v-page); color: var(--v-ink); }
.b-body a { color: var(--v-accent); }
.b-body a:hover { color: var(--v-accent-soft); }

.b-wide { max-inline-size: var(--b-wide); margin-inline: auto; padding-inline: 1rem; }

/* The bar, on the band, staying at the window's top: Strada's logo and the
   board's name at the start; the way back to the search, the visitor's own
   page, the languages and the accessibility press at the end. */
.b-bar { position: sticky; inset-block-start: 0; z-index: 10; background: var(--b-band); color: var(--b-on-band); border-block-end: 1px solid var(--v-line); }
.b-bar-in { max-inline-size: var(--b-wide); margin-inline: auto; padding: .375rem 1rem; min-block-size: 4.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; }
.b-body .b-brand { display: inline-flex; align-items: center; gap: .875rem; min-block-size: var(--b-press); color: var(--b-on-band); text-decoration: none; }
.b-body .b-brand:hover { color: var(--b-on-band); }
.b-brand:focus-visible, .b-bar :focus-visible, .b-foot :focus-visible { outline: 3px solid var(--b-band-accent); outline-offset: 3px; }
.b-brand-board { padding-inline-start: .875rem; border-inline-start: 1px solid color-mix(in srgb, var(--b-on-band) 35%, transparent); color: var(--b-band-muted); font-size: .9375rem; }
/* Strada's logo (shared/_logo): the stones and the word in the band's
   words, the top stone in its accent; never mirrored: the stones stand left
   of the word in Hebrew too. */
[data-board] .ic-logo { direction: ltr; white-space: nowrap; display: inline-flex; align-items: center; gap: .5rem; font-size: 1.625rem; line-height: 1; --ic-logo-accent: var(--b-band-accent); }
[data-board] .ic-logo__mark { flex: none; inline-size: 2.25rem; block-size: 2.25rem; fill: currentColor; }
[data-board] .ic-logo__mark .ic-logo__accent { fill: var(--ic-logo-accent); }
[data-board] .ic-logo__words { display: inline-flex; align-items: center; }
[data-board] .ic-logo__wordmark { display: block; block-size: 1.05em; inline-size: auto; aspect-ratio: 226 / 59; fill: currentColor; }
.b-bar-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
.b-nav, .b-lang { display: flex; align-items: center; gap: .125rem; }
.b-body .b-nav-link, .b-body .b-lang-link { display: inline-flex; align-items: center; gap: .4375rem; min-block-size: var(--b-press); padding-inline: .625rem; color: var(--b-on-band); font-size: .9375rem; text-decoration: none; }
.b-body .b-nav-link:hover, .b-body .b-lang-link:hover, .b-body .b-nav-link[aria-current] { color: var(--b-band-accent); text-decoration: underline; text-underline-offset: .3em; }
.b-lang-link[aria-current] { font-weight: 600; text-decoration: underline; text-underline-offset: .3em; }
/* The accessibility press on the band: its glyph in the band's words, a
   round edge in them, the accent's edge hovered. */
.b-bar .v-a11y-toggle { color: var(--b-on-band); background: transparent; border-color: color-mix(in srgb, var(--b-on-band) 55%, transparent); }
.b-bar .v-a11y-toggle:hover { border-color: var(--b-band-accent); }

.b-main { display: block; min-block-size: 60vh; }
.b-main:focus { outline: none; }
.b-band { padding-block: 2rem 3rem; }
.b-head { font-size: 2rem; font-weight: 600; line-height: 1.2; margin: 0 0 1rem; }
/* A page's head: its heading, and at the line's end a way on (the saved
   page's back to the search), under the heading on a phone. */
.b-page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.b-notice { margin: 0 0 1.25rem; padding: .875rem 1rem; border-radius: .625rem; background: var(--v-tray); color: var(--v-ink); }

/* The home's masthead (Strada's look): the band's stone ground edge to
   edge, Strada's photo on its reading end fading toward the words, the
   heading and its line at the start; the search's panel rides over its
   foot. Where the screen is narrow the words reach over the photo: a veil
   of the ground behind them, feathered at its edges, lets a tenth of it
   through at most, so a black or white pixel leaves them AA in both looks.
   On a phone the photo stands quieter, three quarters wide; in the dark
   look it is dimmed, so it sits in the dark ground as it does in the light. */
.b-masthead { position: relative; isolation: isolate; overflow: hidden; background: var(--v-tray); }
.b-masthead-photo {
  position: absolute; z-index: -1; inset-block: 0; inset-inline-end: 0; inline-size: 70%; block-size: 100%; max-inline-size: none;
  object-fit: cover; object-position: center 84%;
  mask-image: linear-gradient(to right, var(--v-ink) 0%, var(--v-ink) 40%, color-mix(in srgb, var(--v-ink) 53%, transparent) 68%, transparent 98%);
}
[data-board][dir="ltr"] .b-masthead-photo { mask-image: linear-gradient(to left, var(--v-ink) 0%, var(--v-ink) 40%, color-mix(in srgb, var(--v-ink) 53%, transparent) 68%, transparent 98%); }
.b-masthead-in { display: flex; flex-direction: column; justify-content: center; min-block-size: clamp(14rem, 26vw, 20rem); padding-block: 2rem 4rem; }
.b-masthead-words { align-self: start; border-radius: 1.5rem; background: color-mix(in srgb, var(--v-tray) 90%, transparent); box-shadow: 0 0 4rem 2rem color-mix(in srgb, var(--v-tray) 90%, transparent); }
[data-board][data-theme="dark"] .b-masthead-photo { filter: brightness(.45); }
.b-masthead-title { max-inline-size: 13ch; text-wrap: balance; margin: 0; font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.b-masthead-title span { color: var(--v-accent); }
.b-masthead-lead { max-inline-size: 36ch; text-wrap: pretty; margin: .625rem 0 0; color: var(--v-ink-muted); font-size: clamp(1rem, 1.4vw, 1.125rem); }
@media (max-width: 34rem) {
  .b-masthead-in { min-block-size: 13rem; padding-block-end: 3.5rem; }
  .b-masthead-photo { inline-size: 75%; mask-image: linear-gradient(to right, color-mix(in srgb, var(--v-ink) 67%, transparent), color-mix(in srgb, var(--v-ink) 27%, transparent) 45%, transparent 89%); }
  [data-board][dir="ltr"] .b-masthead-photo { mask-image: linear-gradient(to left, color-mix(in srgb, var(--v-ink) 67%, transparent), color-mix(in srgb, var(--v-ink) 27%, transparent) 45%, transparent 89%); }
}

/* The search's panel: on the home over the masthead's foot, elsewhere
   under the heading; one white card, a hairline and a faint shadow. */
.b-search-wrap { position: relative; margin-block-start: -2rem; }
.b-search { margin-block-end: 1.25rem; padding: clamp(.75rem, 2vw, 1.25rem); background: var(--v-surface); border: 1px solid var(--v-line); border-radius: .875rem; box-shadow: var(--v-shadow); }
.b-search-wrap .b-search { margin-block-end: 0; }

/* The deal: two links side by side in one tray, the one shown filled in the ink. */
.b-deals { display: flex; align-items: stretch; padding: 3px; border: 1px solid var(--v-line); border-radius: .4375rem; background: var(--v-page); }
.b-body .b-deal { flex: 1; display: grid; place-items: center; min-block-size: 2.625rem; padding-inline: .75rem; border-radius: .3125rem; color: var(--v-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.b-body .b-deal:hover { color: var(--v-ink); background: var(--v-tray); }
.b-body .b-deal[aria-current] { background: var(--v-ink); color: var(--v-surface); }
/* A deal that holds none here: its word, muted, no link (_form). */
.b-body span.b-deal, .b-body span.b-deal:hover { color: var(--v-ink-muted); background: none; font-weight: 400; }

/* The path of places (step b1): one muted line that wraps, an angle between
   each two, mirrored right to left; the page itself in the ink. */
.b-crumbs { margin-block-end: .5rem; }
.b-crumbs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 .5rem; font-size: .9375rem; color: var(--v-ink-muted); }
.b-crumb { display: inline-flex; align-items: center; gap: .5rem; }
.b-crumb + .b-crumb::before { content: "›"; content: "›" / ""; }
.b-body .b-crumb a { display: inline-flex; align-items: center; min-block-size: 2rem; }
.b-crumb [aria-current] { color: var(--v-ink); }

/* A place's count, and the places under it and its room counts: chips
   that wrap, the page's own room count filled. */
.b-count { margin: -.5rem 0 1.5rem; font-size: 1.125rem; color: var(--v-ink-muted); }
/* When the list's saved answer was built (step b3), under its count. */
.b-count:has(+ .b-built) { margin-block-end: .25rem; }
.b-built { margin: 0 0 1.5rem; font-size: .9375rem; color: var(--v-ink-muted); }

/* A list of lines (the saved searches, the visitor's opened and searched,
   the offices, every listing, the site map): one framed white box as a
   card's, a line each, a hairline between; its link and, under it, a
   muted line. */
.b-answers { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--v-line); border-radius: var(--b-card-round); background: var(--v-surface); }
.b-answer { display: grid; gap: .125rem; padding: .875rem 1.25rem; }
.b-answer + .b-answer { border-block-start: 1px solid var(--v-line); }
.b-body .b-answer a { font-size: 1.0625rem; }
.b-answer-about { font-size: .9375rem; color: var(--v-ink-muted); }
/* nadlan2's directory pages (step c3): an office beside its logo; the site
   map's places a line each, close together under their town. */
.b-office { grid-template-columns: 3rem minmax(0, 1fr); column-gap: .75rem; align-items: center; }
.b-office-logo { grid-row: span 2; inline-size: 3rem; block-size: 3rem; object-fit: contain; }
.b-map { gap: .375rem; padding: 1rem 1.25rem; }
.b-links { margin-block-end: 1.5rem; }
.b-links-title { margin: 0 0 .625rem; font-size: 1.125rem; font-weight: 600; }
.b-links-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.b-body .b-link { display: inline-flex; align-items: center; gap: .5rem; min-block-size: var(--b-press); padding-inline: 1rem; border-radius: 999px; background: var(--v-tray); color: var(--v-ink); text-decoration: none; }
.b-body .b-link:hover { color: var(--v-ink); text-decoration: underline; text-underline-offset: .2em; }
.b-body .b-link[aria-current] { background: var(--v-accent); color: var(--v-on-accent); }
.b-link-count { font-size: .875rem; color: var(--v-ink-muted); }
.b-links-rest { margin-block-start: .5rem; }
.b-links-rest[open] > .b-links-list { margin-block-start: .5rem; }
.b-link--rest { cursor: pointer; list-style: none; inline-size: fit-content; }
.b-link--rest::-webkit-details-marker { display: none; }
.b-link--rest:hover { text-decoration: underline; text-underline-offset: .2em; }
.b-link[aria-current] .b-link-count { color: inherit; }

/* The search (step b2): the place box and its press on one row, the
   suggestions under the box; the filters under one press, side by side
   where they fit; the filters set as chips that clear. */
/* One row on a computer: the deal, the place, Filter and Search; the
   filters' boxes open under it. A narrower screen gives the deal its own
   row; a phone the place too, Filter and Search side by side under it. */
.b-search-row { display: grid; align-items: stretch; gap: .625rem; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "place filter go" "more more more"; }
.b-search-row--deals { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "deals place filter go" "more more more more"; }
.b-deals { grid-area: deals; }
.b-search-place { grid-area: place; }
.b-search-go { grid-area: go; }
.b-search-place { position: relative; display: grid; min-inline-size: 0; }
.b-search-place > .v-icon { position: absolute; inset-inline-start: .875rem; inset-block-start: calc(50% - .5625rem); color: var(--v-ink-muted); pointer-events: none; }
.b-search-place .b-box { block-size: 100%; padding-inline-start: 2.5rem; }
.b-search-place .b-box::placeholder { color: var(--v-ink-muted); opacity: 1; }
.b-search-label { font-weight: 500; padding: 0; }
.b-search-go { font: inherit; font-weight: 600; cursor: pointer; }
/* The filters: their press in the row, outlined, beside Search; their
   boxes under a hairline across the whole panel. Where a browser cannot
   lay a details' boxes apart from its press, the press and its boxes take
   a row of their own under the row. Each filter stands in a box of its
   own, three a row where there is room, one under another where there is
   not; the boxes share a height and each one's boxes sit at its foot, so
   the kind's one box lines up with the rooms' and price's two. Its legend
   floats, so it lays out as a grid item, not on the fieldset's edge. */
.b-filters { grid-area: more; }
.b-body .b-filters-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-block-size: var(--b-press); padding-inline: 1rem; border: 1px solid var(--v-frame); border-radius: var(--b-press-round); background: var(--v-surface); color: var(--v-ink); font-weight: 600; cursor: pointer; list-style: none; white-space: nowrap; }
.b-filters-toggle::-webkit-details-marker { display: none; }
.b-filters-toggle:hover, .b-filters[open] > .b-filters-toggle { background: var(--v-tray); }
.b-filters-toggle:focus-visible { outline: 3px solid var(--v-accent); outline-offset: 2px; }
.b-filters-grid { display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); margin-block-start: 1rem; padding-block-start: 1rem; border-block-start: 1px solid var(--v-line); }
.b-filters .b-field { grid-template-rows: auto 1fr; gap: .5rem; padding: .875rem 1rem 1rem; border: 1px solid var(--v-line); border-radius: .75rem; background: var(--v-page); }
.b-filters .b-field > legend { float: inline-start; inline-size: 100%; margin: 0; }
.b-filters .b-field > select, .b-filters .b-field > .ic-dropdown__button, .b-filters .b-field > .b-pair { align-self: end; }
@media (min-width: 60rem) {
  .b-filters-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@supports selector(::details-content) {
  .b-filters { display: contents; }
  .b-filters > .b-filters-toggle { grid-area: filter; }
  .b-filters::details-content { grid-area: more; }
}
@media (max-width: 46rem) {
  .b-search-row--deals { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "deals deals deals" "place filter go" "more more more"; }
  .b-deals { justify-self: start; min-inline-size: min(100%, 17rem); }
}
@media (max-width: 34rem) {
  .b-search-row { gap: .5rem; grid-template-columns: 1fr 1fr; grid-template-areas: "place place" "filter go" "more more"; }
  .b-search-row--deals { grid-template-columns: 1fr 1fr; grid-template-areas: "deals deals" "place place" "filter go" "more more"; }
  .b-deals { justify-self: stretch; }
  .b-search-place .b-box { block-size: 3rem; }
}
.b-combo-list { position: absolute; inset-inline: 0; inset-block-start: 100%; z-index: 20; margin: .25rem 0 0; padding: .25rem; list-style: none; max-block-size: 20rem; overflow-y: auto; background: var(--v-surface); border: 1px solid var(--v-ink-muted); border-radius: .625rem; }
.b-combo-option { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .625rem .75rem; border-radius: .5rem; cursor: pointer; }
.b-combo-option:hover, .b-combo-option[aria-selected="true"] { background: var(--v-tray); }
.b-combo-about { font-size: .875rem; color: var(--v-ink-muted); }
.b-field { display: grid; gap: .375rem; align-content: start; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.b-field > legend { margin-block-end: .375rem; }
.b-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.b-pair-part { display: grid; gap: .25rem; font-size: .9375rem; color: var(--v-ink-muted); }
.b-chips { align-items: center; margin-block-end: 1.5rem; }
.b-chip-x { font-size: .875rem; }
.b-body .b-clear { display: inline-flex; align-items: center; min-block-size: var(--b-press); padding-inline: .5rem; text-decoration: underline; text-underline-offset: .22em; }

/* Over a list: how many and when built at the start, the order at the end. */
.b-list-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .75rem 1.25rem; margin-block-end: 1.25rem; }
.b-list-head .b-count { margin: 0; font-size: 1.125rem; font-weight: 600; color: var(--v-ink); }
.b-list-head .b-built { margin: .125rem 0 0; }
.b-sort { display: grid; grid-template-columns: auto minmax(11rem, max-content); align-items: center; gap: .5rem; }
.b-sort-label { color: var(--v-ink-muted); font-size: .9375rem; }
.b-sort .b-box { inline-size: auto; min-inline-size: 11rem; }
.b-list { padding-block-start: clamp(1.75rem, 4vw, 3rem); }

/* Our own dropdown over each of the search's selects (own-dropdown): the
   shared dropdown_controller's parts, in the board's look. Its button wears
   the select's own .b-box; the list opens under it on a computer, as a
   sheet from the foot over a locked, blurred page on a phone. */
[data-board] .ic-dropdown__source { display: none !important; }
[data-board] .ic-dropdown__button { display: flex; align-items: center; gap: .5rem; text-align: start; cursor: pointer; }
[data-board] .ic-dropdown__value { flex: 1 1 auto; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-board] .ic-dropdown__chevron { flex: 0 0 auto; inline-size: .5rem; block-size: .5rem; margin-block-start: -.25rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; }
[data-board] .ic-dropdown__button[aria-expanded="true"] .ic-dropdown__chevron { margin-block-start: .25rem; rotate: 225deg; }
[data-board] .ic-dropdown { position: fixed; inset: auto; margin: 0; box-sizing: border-box; max-inline-size: min(28rem, calc(100vw - 1rem)); padding: .5rem; color: var(--v-ink); background: var(--v-surface); border: 1px solid var(--v-ink-muted); border-radius: .625rem; font: inherit; flex-direction: column; gap: .5rem; }
[data-board] .ic-dropdown:popover-open { display: flex; }
[data-board] .ic-dropdown__search { flex: 0 0 auto; box-sizing: border-box; inline-size: 100%; min-block-size: var(--b-press); padding: .5rem .75rem; font: inherit; color: var(--v-ink); background: var(--v-surface); border: 1px solid var(--v-ink-muted); border-radius: .625rem; }
[data-board] .ic-dropdown__search:focus-visible { outline: 2px solid var(--v-accent); outline-offset: 0; }
[data-board] .ic-dropdown__list { flex: 1 1 auto; min-block-size: 0; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; scrollbar-width: thin; }
[data-board] .ic-dropdown:not(.ic-dropdown--sheet) .ic-dropdown__list { max-block-size: calc(8 * var(--b-press)); }
[data-board] .ic-dropdown__list:focus-visible { outline: none; }
[data-board] .ic-dropdown__option { display: flex; align-items: center; gap: .5rem; min-block-size: var(--b-press); padding: .5rem .75rem; border-radius: .5rem; cursor: pointer; }
[data-board] .ic-dropdown__option[data-active] { background: var(--v-tray); }
[data-board] .ic-dropdown__list[data-keyed] .ic-dropdown__option[data-active] { outline: 2px solid var(--v-accent); outline-offset: -2px; }
[data-board] .ic-dropdown__option[aria-selected="true"] { font-weight: 600; }
[data-board] .ic-dropdown__option[aria-selected="true"]::after { content: ""; flex: 0 0 auto; inline-size: .35rem; block-size: .7rem; margin-inline-start: auto; margin-block-end: .2rem; border-right: 2px solid var(--v-accent); border-bottom: 2px solid var(--v-accent); rotate: 45deg; }
[data-board] .ic-dropdown__glyph:empty { display: none; }
[data-board] .ic-dropdown__note { flex: 0 0 auto; margin: 0; padding: .25rem .75rem; color: var(--v-ink-muted); font-size: .875rem; }
[data-board] .ic-dropdown__note[hidden] { display: none; }
[data-board] .ic-dropdown__title { display: none; }
[data-board] .ic-dropdown.ic-dropdown--sheet { inset: auto 0 0; inline-size: 100%; max-inline-size: none; max-block-size: 80dvh; padding: .75rem .75rem calc(.75rem + env(safe-area-inset-bottom)); border-end-start-radius: 0; border-end-end-radius: 0; border-inline: 0; border-block-end: 0; }
[data-board] .ic-dropdown--sheet .ic-dropdown__title { display: block; flex: 0 0 auto; margin: 0; padding: .25rem .75rem .5rem; font-size: 1.125rem; font-weight: 600; border-block-end: 1px solid var(--v-line); }
[data-board] .ic-dropdown--sheet::backdrop { background: color-mix(in srgb, var(--v-ink) 40%, transparent); backdrop-filter: blur(4px); }
[data-board]:has(.ic-dropdown--sheet:popover-open) { overflow: hidden; }

/* The list: three a row at most, each card one press (Strada's look):
   a framed white card, the photo on its head, its place in the accent over
   its title, the facts as small chips, who offers it, and the price at the
   foot over a hairline, so a row's prices stand on one line. A card is at
   most 600px wide, what its photo holds sharp. */
.b-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.b-card { position: relative; display: flex; flex-direction: column; min-inline-size: 0; max-inline-size: 37.5rem; border: 1px solid var(--v-line); border-radius: var(--b-card-round); background: var(--v-surface); transition: border-color .2s ease; }
.b-card:hover { border-color: var(--v-frame); }
.b-card-photo { aspect-ratio: 4 / 3; border-start-start-radius: calc(var(--b-card-round) - 1px); border-start-end-radius: calc(var(--b-card-round) - 1px); overflow: hidden; background: var(--v-tray); }
.b-card-photo img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; transition: transform 1.2s ease; }
.b-card:hover .b-card-photo img { transform: scale(1.03); }
.b-card-blank { display: grid; place-items: center; block-size: 100%; color: var(--v-ink-muted); }
.b-card-words { display: flex; flex: 1; flex-direction: column; gap: .5rem; padding: 1rem clamp(.875rem, 1.6vw, 1.25rem) 1.125rem; }
.b-card-title { order: 1; overflow-wrap: anywhere; font-size: 1.125rem; font-weight: 600; line-height: 1.35; margin: 0; }
.b-body .b-card-link { color: var(--v-ink); text-decoration: none; }
.b-body .b-card-link:hover { color: var(--v-ink); text-decoration: underline; text-underline-offset: .2em; }
.b-card-link::after { content: ""; position: absolute; inset: -1px; border-radius: var(--b-card-round); }
.b-card-link:focus-visible { outline: none; }
.b-card-link:focus-visible::after { outline: 3px solid var(--v-accent); outline-offset: 3px; }
.b-card-place { order: 0; margin: 0; color: var(--v-accent); font-size: .9375rem; font-weight: 600; }
.b-card-facts { order: 2; }
.b-card-facts, .b-listing-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--v-ink-muted); }
.b-card-facts { gap: .375rem .5rem; }
.b-card-facts li { padding: .125rem .5rem; border-radius: .25rem; background: var(--v-page); font-size: .875rem; }
.b-card-who { order: 3; margin: 0; font-size: .9375rem; color: var(--v-ink-muted); }
.b-card-price { order: 4; margin: auto 0 0; padding-block-start: .625rem; border-block-start: 1px solid var(--v-line); font-size: clamp(1.25rem, 2.1vw, 1.5rem); font-weight: 600; font-variant-numeric: tabular-nums; }
.b-card-price--none { font-size: 1rem; color: var(--v-ink-muted); }
.b-card-month { font-size: 1rem; font-weight: 400; color: var(--v-ink-muted); }

.b-more-row { display: flex; justify-content: center; margin-block-start: 2.5rem; }
.b-body .b-more, .b-body .b-page-back { display: inline-flex; align-items: center; min-block-size: var(--b-press); padding-inline: 1.5rem; border-radius: var(--b-press-round); border: 1px solid var(--v-accent); text-decoration: none; }
.b-body .b-more:hover, .b-body .b-page-back:hover { background: var(--v-accent-wash); }
/* A list with nothing in it: a framed box, its words in the middle. */
.b-none { margin-block: 2rem; padding: clamp(1.75rem, 6vw, 4.25rem) 1.125rem; border: 1px solid var(--v-line); border-radius: var(--b-card-round); background: var(--v-surface); color: var(--v-ink-muted); font-size: 1.125rem; text-align: center; }
.b-none p { margin: 0; }
.b-none .b-none-title { margin-block-end: .5rem; color: var(--v-ink); font-size: 1.375rem; font-weight: 600; }

/* A listing's head: the path of places, its place in the accent drawn over
   the title (read after it), the save press at the title line's end. */
.b-listing-head { padding-block: 1.25rem 1rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "crumbs crumbs" "place place" "title save" "sub sub"; gap: .375rem 1.5rem; align-items: end; }
.b-listing-head .b-crumbs { grid-area: crumbs; margin-block-end: .5rem; }
.b-listing-title { grid-area: title; max-inline-size: 30ch; font-size: clamp(1.625rem, 4vw, 2.5rem); font-weight: 600; line-height: 1.2; text-wrap: balance; margin: 0; }
.b-listing-place { grid-area: place; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; }
.b-listing-place span { color: var(--v-accent); font-weight: 600; }
.b-listing-head .b-save-form { grid-area: save; }
.b-listing-subtitle { grid-area: sub; margin: 0; font-size: 1.125rem; color: var(--v-ink-muted); }
@media (max-width: 34rem) {
  .b-listing-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "crumbs" "place" "title" "sub" "save"; }
  .b-listing-head .b-save-form { justify-self: start; margin-block-start: .5rem; }
}

/* A listing's photos. On a phone one row that swipes, a photo at most 600px,
   bleeding to the screen's edges. On a computer the cover with the next two
   stacked beside it, the cover at reading start, none drawn wider than its
   copy; the rest open in the viewer, and the press at the corner says how
   many there are. */
.b-gallery { padding-inline: 0; }
.b-gallery-frame { position: relative; }
.b-gallery-row { list-style: none; margin: 0; padding: 0 1rem; display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-x: contain; }
.b-gallery-item { flex: 0 0 min(100%, 37.5rem); scroll-snap-align: start; }
.b-gallery-photo { display: block; inline-size: 100%; padding: 0; border: 0; background: var(--v-tray); border-radius: var(--b-round); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.b-gallery-photo img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
.b-gallery-count { position: absolute; inset-block-end: .75rem; inset-inline-end: 1.75rem; min-block-size: var(--b-press); padding-inline: 1rem; border-radius: var(--b-press-round); border: 1px solid var(--v-line); background: var(--v-surface); color: var(--v-ink); font: inherit; cursor: pointer; }
.b-gallery-count:hover { background: var(--v-tray); }
.b-gallery-total { display: none; }
@media (min-width: 48rem) {
  .b-gallery { padding-inline: 1rem; }
  .b-gallery-frame { max-inline-size: 56.5rem; }
  .b-gallery-frame:has(.b-gallery-item:only-child) { max-inline-size: 37.5rem; }
  .b-gallery-frame:has(.b-gallery-item:nth-child(2):last-child) { max-inline-size: 75.5rem; }
  .b-gallery-row { padding: 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); overflow: visible; scroll-snap-type: none; }
  [data-board][dir="rtl"] .b-gallery-row { direction: rtl; }
  .b-gallery-row:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
  .b-gallery-row:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-gallery-item:first-child { grid-row: span 2; }
  .b-gallery-row:has(> :nth-child(2):last-child) > :first-child { grid-row: auto; }
  .b-gallery-item:nth-child(n+4) { display: none; }
  /* The two beside the cover share its height. */
  .b-gallery-item:not(:first-child) .b-gallery-photo { position: relative; aspect-ratio: auto; block-size: 100%; }
  .b-gallery-item:not(:first-child) .b-gallery-photo img { position: absolute; inset: 0; }
  .b-gallery-count { inset-inline-end: .75rem; }
  .b-gallery-at { display: none; }
  .b-gallery-total { display: inline; }
}

.b-listing-body { padding-block: 1.5rem 3rem; display: flex; flex-direction: column; gap: 2rem; }
/* Two columns on a computer: the panel beside the rest, over every row; the
   last row takes what a taller panel adds. The panel scrolls with the page:
   with the enquiry it is taller than a laptop's screen. */
@media (min-width: 60rem) {
  .b-listing-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(20rem, .85fr); grid-template-rows: repeat(4, auto) 1fr; gap: 0 3rem; }
  .b-listing-body > * { grid-column: 1; margin-block: 0 2rem; }
  .b-listing-body > .b-listing-panel { grid-column: 2; grid-row: 1 / span 5; align-self: start; margin: 0; }
}
.b-listing-sum { display: flex; flex-direction: column; gap: .5rem; }
.b-listing-deal { margin: 0; color: var(--v-ink-muted); }
.b-listing-price { margin: 0; font-size: 1.75rem; font-weight: 600; }
.b-listing-meter { margin: 0; color: var(--v-ink-muted); }
.b-listing-facts { margin-block-start: .5rem; font-size: 1.0625rem; color: var(--v-ink); }
.b-listing-facts li { padding: .25rem .75rem; border-radius: 999px; background: var(--v-tray); }

.b-sub { font-size: 1.375rem; font-weight: 600; margin: 0 0 .75rem; }

/* The panel: the price in the accent, then who to contact, the office and
   its realtor, their presses and the enquiry. */
.b-listing-panel { padding: 1.5rem; border: 1px solid var(--v-line); border-radius: var(--b-card-round); background: var(--v-surface); box-shadow: var(--v-shadow); }
.b-listing-panel .b-listing-price { color: var(--v-accent); font-size: 1.875rem; line-height: 1.2; }
.b-listing-panel .b-listing-meter { margin-block-start: .25rem; }
.b-contact { margin-block-start: 1.25rem; padding-block-start: 1.25rem; border-block-start: 1px solid var(--v-line); }
.b-contact-who { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.b-contact-logo { max-block-size: 3rem; max-inline-size: 10rem; inline-size: auto; object-fit: contain; }
.b-contact-names { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; margin: 0; }
.b-contact-names dt { color: var(--v-ink-muted); }
.b-contact-names dd { margin: 0; font-weight: 500; }
.b-contact-licence { display: block; font-weight: 400; color: var(--v-ink-muted); }
.b-presses { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 0; }
.b-body .b-press { display: inline-flex; align-items: center; gap: .5rem; min-block-size: var(--b-press); padding-inline: 1.25rem; border-radius: var(--b-press-round); border: 1px solid var(--v-accent); background: transparent; color: var(--v-accent); font: inherit; text-decoration: none; cursor: pointer; }
.b-body .b-press:hover { color: var(--v-accent-soft); border-color: var(--v-accent-soft); background: var(--v-accent-wash); }
.b-body .b-press--go { background: var(--v-accent); color: var(--v-on-accent); }
.b-body .b-press--go:hover { background: var(--v-accent-soft); border-color: var(--v-accent-soft); color: var(--v-on-accent); }

/* The enquiry form under who to contact: name and phone side by side where
   they fit, the email and message under them, one Send press. */
.b-lead { display: grid; gap: 1rem; margin-block-start: 1.75rem; padding-block-start: 1.5rem; border-block-start: 1px solid var(--v-line); }
.b-lead-title { margin: 0; font-size: 1.125rem; font-weight: 500; }
.b-lead-body { display: grid; gap: 1rem; }
.b-lead-field { display: grid; gap: .375rem; min-inline-size: 0; }
.b-lead-label { font-weight: 500; }
.b-lead-box, .b-box {
  box-sizing: border-box; inline-size: 100%; min-block-size: var(--b-press); padding: .625rem .875rem; border: 1px solid var(--v-ink-muted); border-radius: .625rem;
  background: var(--v-surface); color: var(--v-ink); font: inherit; font-size: max(1rem, 16px); transition: border-color .2s ease;
}
.b-lead-box--area { min-block-size: 7.5rem; line-height: 1.6; resize: vertical; }
.b-lead-box:hover, .b-lead-box:focus-visible, .b-box:hover, .b-box:focus-visible { border-color: var(--v-accent); }
.b-lead-box[aria-invalid="true"] { border: 2px solid var(--v-danger); padding: calc(.625rem - 1px) calc(.875rem - 1px); }
.b-lead-box[dir="ltr"] { text-align: end; }
.b-lead-error, .b-lead-failed { margin: 0; color: var(--v-danger); font-size: .9375rem; line-height: 1.45; }
.b-lead-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.b-lead-send { font: inherit; cursor: pointer; }
/* Who receives the details (#646), quiet above the send press, its link the privacy policy. */
.b-lead-privacy { margin: 0; color: var(--v-ink-muted); font-size: .9375rem; line-height: 1.5; }
.b-body .b-lead-send[aria-disabled="true"] { background: var(--v-accent-soft); border-color: var(--v-accent-soft); cursor: progress; }
/* Its fade and rise are the shared sent answer's (sent.css). */
.b-lead.is-sent { align-content: center; }
.b-lead-thanks { margin: 0; font-size: 1.25rem; line-height: 1.4; --sent-mark: var(--v-accent); }
/* The trap: in the form for a robot, out of sight and out of reach. */
.b-lead-trap { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Two fields a row while the form is wide; in the computer's panel, one. */
@media (min-width: 40rem) and (max-width: 59.98rem) {
  .b-lead-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-lead-field--email, .b-lead-field--message, .b-lead-trap, .b-lead-privacy, .b-lead-foot { grid-column: 1 / -1; }
}

.b-story p { font-size: 1.0625rem; line-height: 1.9; max-inline-size: 52ch; margin: 0 0 1rem; }
.b-video-frame { aspect-ratio: 16 / 9; max-inline-size: 48rem; border-radius: var(--b-round); overflow: hidden; background: var(--v-tray); }
.b-video-frame iframe { inline-size: 100%; block-size: 100%; border: 0; display: block; }
.b-body .b-back { display: inline-flex; align-items: center; min-block-size: var(--b-press); }

/* A listing's save press (step d1): on a card over its photo's corner,
   above the title's stretched link, the bookmark alone in the accent; on
   a listing's page under its price, with its word. Pressed, the bookmark
   fills and its ground turns stone. */
.b-save-form { margin: 0; }
.b-card .b-save-form { position: absolute; inset-block-start: .75rem; inset-inline-end: .75rem; z-index: 1; }
.b-body .b-save { display: inline-flex; align-items: center; gap: .375rem; min-block-size: var(--b-press); padding-inline: 1rem; border-radius: var(--b-press-round); border: 1px solid var(--v-line); background: var(--v-surface); color: var(--v-ink); font: inherit; cursor: pointer; }
.b-save[aria-pressed="true"] { border-color: var(--v-accent); color: var(--v-accent); }
.b-save[aria-pressed="true"] .v-icon { fill: currentColor; }
.b-body .b-save--bare { justify-content: center; min-inline-size: var(--b-press); padding-inline: 0; color: var(--v-accent); }
.b-save--bare:hover, .b-save--bare[aria-pressed="true"] { background: var(--v-tray); }
.b-save:focus-visible { outline: 3px solid var(--v-accent); outline-offset: 2px; }

/* The visitor's own page (step d1): its link in the bar, with its count;
   its lists one under another; a line that says what happened. */
.b-body .b-mine-link { min-inline-size: var(--b-press); justify-content: center; }
.b-mine-count { min-inline-size: 1.375rem; padding-inline: .3125rem; border-radius: 999px; background: var(--b-band-accent); color: var(--b-band); font-size: .8125rem; font-weight: 600; line-height: 1.45; text-align: center; }
/* On a phone the link is its bookmark and count, its name to a screen
   reader alone. */
@media (max-width: 34rem) {
  .b-mine-name { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* The logo is the way home, so the board's name and the search's link
     step aside and the bar keeps to two rows. */
  .b-brand-board, .b-body .b-nav-search { display: none; }
  [data-board] .ic-logo { font-size: 1.375rem; }
  [data-board] .ic-logo__mark { inline-size: 1.875rem; block-size: 1.875rem; }
}
.b-mine { display: flex; flex-direction: column; gap: 2.5rem; }
.b-mine .b-head { margin-block-end: 0; }
.b-mine .b-none { margin-block: .5rem 0; }
.b-mine .b-links-title { margin-block-end: .75rem; }
.b-mine-kept p { margin: 0 0 1rem; max-inline-size: 60ch; color: var(--v-ink-muted); }
.b-mine-forget { margin: 0; }
.b-mine-note { margin-block: 1rem 0; padding: .75rem 1rem; border-radius: .75rem; background: var(--v-accent-wash); color: var(--v-accent-on-wash); }

/* The footer, on the band: Strada's logo and one line; the board's lists;
   the realtors' way in; under a hairline the legal links. Three columns on
   a computer, the logo over two on a tablet, one under another on a phone. */
.b-foot { background: var(--b-band); color: var(--b-on-band); border-block-start: 1px solid var(--v-line); }
.b-foot-in { max-inline-size: var(--b-wide); margin-inline: auto; padding: 0 1rem; }
.b-foot-main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem clamp(1.5rem, 6vw, 5.5rem); padding-block: clamp(2.25rem, 6vw, 4.5rem) clamp(1.75rem, 4vw, 3rem); }
.b-brand--foot .ic-logo { font-size: 2rem; }
[data-board] .b-brand--foot .ic-logo__mark { inline-size: 2.75rem; block-size: 2.75rem; }
.b-foot-about p { margin: .75rem 0 0; max-inline-size: 33ch; color: var(--b-band-muted); }
.b-foot-title { margin: 0 0 .5rem; font-size: 1.0625rem; font-weight: 600; }
.b-foot-list { list-style: none; margin: 0; padding: 0; }
.b-foot p { margin: 0; }
.b-body .b-foot-link { display: inline-flex; align-items: center; min-block-size: var(--b-press); color: var(--b-band-muted); text-decoration: none; }
.b-body .b-foot-link:hover { color: var(--b-band-accent); text-decoration: underline; text-underline-offset: .22em; }
.b-foot-legal { display: flex; flex-wrap: wrap; column-gap: 1.5rem; padding-block: .5rem; border-block-start: 1px solid color-mix(in srgb, var(--b-on-band) 20%, transparent); font-size: .875rem; }
@media (max-width: 46rem) {
  .b-foot-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-foot-about { grid-column: 1 / -1; }
}
@media (max-width: 30rem) {
  .b-foot-main { grid-template-columns: minmax(0, 1fr); }
}

/* The cookie note (piece 5), the agency sites' (#646) in the board's look:
   a paper card at the middle of the window's foot, a strip across a
   phone's; the footer's end keeps its room (--b-cookie-room, board.js). */
.b-cookie {
  position: fixed; inset-inline: 0; inset-block-end: calc(1rem + env(safe-area-inset-bottom)); z-index: 11;
  display: flex; align-items: center; gap: 1rem; inline-size: fit-content; max-inline-size: calc(100% - 2rem); margin-inline: auto; box-sizing: border-box;
  padding: .5rem; padding-inline-start: 1.25rem; border: 1px solid var(--v-line); border-radius: var(--b-round);
  background: var(--v-surface); color: var(--v-ink); box-shadow: var(--v-shadow); line-height: 1.5;
  animation: v-fade-in .4s ease backwards;
}
.b-cookie.is-leaving { animation: v-fade-out .25s ease forwards; pointer-events: none; }
.b-cookie p { margin: 0; }
.b-cookie .v-icon { flex: none; inline-size: 1.5rem; block-size: 1.5rem; color: var(--v-accent); }
.b-body .b-privacy { display: inline-block; padding-block: .625rem; color: var(--v-accent); white-space: nowrap; text-decoration: underline; text-underline-offset: .2em; }
.b-cookie-ok {
  flex: none; min-inline-size: 3.5rem; min-block-size: var(--b-press); padding: 0 1.25rem; border: 1px solid var(--v-ink);
  border-radius: var(--b-press-round); background: none; color: inherit; font: 500 1rem/1 inherit; cursor: pointer;
}
.b-cookie-ok:hover { background: var(--v-tray); }
.b-foot-legal { padding-block-end: calc(.5rem + var(--b-cookie-room, 0px)); }
@media (max-width: 39.99rem) {
  .b-cookie {
    inset-block-end: 0; justify-content: space-between; inline-size: auto; max-inline-size: none; gap: .75rem;
    padding: .5rem 1rem calc(.5rem + env(safe-area-inset-bottom)); border-width: 1px 0 0; border-radius: 0; font-size: .9375rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .b-cookie, .b-cookie.is-leaving { animation: none; }
  .b-card, .b-card-photo img { transition: none; }
  .b-card:hover .b-card-photo img { transform: none; }
  .b-lead-box, .b-box { transition: none; }
}
