/* BedBridge — Marvin's design (whatsapp/index (1).html, 2026-10-29): white header, deep
   purple hero, gold accents, rounded cards. Functional pages follow the design round's
   verdict (design/VERDICT.md). Type is sized for older operators and phone users:
   nothing under 0.75rem. No inline styles anywhere (CSP style-src 'self'). */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --purple: #260b46;
  --purple-2: #3a1260;
  --night: #18082c;
  --violet: #6426a1;
  --violet-dark: #4f1b82;
  --violet-soft: #f4eef9;
  --violet-line: #ddc9ef;
  --lavender: #c9a8f0;
  --gold: #d7a84b;
  --gold-light: #f0cf7e;
  --gold-on-dark: #eac36f;
  --gold-text: #865a12;           /* gold for text on light: 5.6:1 on white */
  --ink: #251b31;
  --ink-2: #463a52;
  --muted: #655a70;               /* 6.2:1 on white */
  --line: #e9e3ef;
  --control: #8b8192;             /* input borders: 3.7:1 (WCAG 1.4.11) */
  --cream: #faf8fc;
  --white: #fff;

  --ok-bg: #edf7ed; --ok-line: #a9d8b4; --ok-ink: #1e6b35;
  --warn-bg: #fff6e5; --warn-line: #f1dbad; --warn-ink: #6e4f12;
  --slate-bg: #efecf2; --slate-line: #cfc8d8; --slate-ink: #463f50;
  --rent-bg: #f1eafb; --rent-line: #d3bdf2; --rent-ink: #4a1f7c;
  --svc-bg: #e6f4f4; --svc-line: #a6d4d6; --svc-ink: #135257;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 24px; --r-pill: 999px;
  --tap: 44px;
  --shadow-sm: 0 8px 25px rgba(44, 21, 64, .05);
  --shadow-md: 0 14px 40px rgba(40, 16, 60, .08);
  --shadow-lg: 0 24px 60px rgba(30, 11, 50, .16);
}

/* A small, in-flow install notice never covers page controls or the mobile tab bar. */
.app-install { padding-block: .75rem; gap: .75rem; }
[data-push-controls] [hidden] { display: none; }

/* Issue #8: progressive geography controls and legible area breadcrumbs. */
[data-search-map][hidden], [data-use-location][hidden] { display: none; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; font-size: .875rem; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.on-dark .breadcrumbs a { color: var(--gold-light); }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
/* In-page links (Check availability, Ask about a plan) glide; a script's scrollTo and the browser's scroll restore jump at once. */
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.55; overflow-x: clip; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--violet); text-underline-offset: .18em; }
a:hover { color: var(--purple); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 4px; }
.on-dark :focus-visible, .hero :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-light); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 750; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .88rem; line-height: 1.5; }
.tiny { font-size: .78rem; line-height: 1.45; }
/* The terms notice above a sign-in or request button: body size, body colour, underlined links. Keep it that way. */
.consent-notice { font-size: 1rem; line-height: 1.5; color: var(--ink); }
.consent-notice a { text-decoration: underline; }
.lead { font-size: 1.08rem; color: var(--ink-2); line-height: 1.65; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--gold-light); color: var(--purple); font-weight: 700; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { left: 16px; }
.crisis-line { background: var(--cream); color: var(--ink-2); border-bottom: 1px solid var(--line); font-size: .88rem; }
.crisis-line .wrap { display: flex; flex-wrap: wrap; gap: 0 .3em; align-items: center; }
.crisis-line a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; }
.report-link { display: inline-flex; align-items: center; min-height: var(--tap); }
main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { width: 100%; max-width: 1190px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 36px 0; }
.soft { background: var(--cream); }
.stack-xs { display: grid; gap: 6px; }
.stack-sm { display: grid; gap: 12px; }
.stack-md { display: grid; gap: 20px; }
.stack-lg { display: grid; gap: 32px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }

.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 800; color: var(--gold-text); }
.on-dark .eyebrow, .hero .eyebrow, .cta-band .eyebrow { color: var(--gold-on-dark); }
.heading { text-align: center; max-width: 740px; margin: 0 auto 36px; display: grid; gap: 12px; }
.heading p { color: var(--muted); line-height: 1.7; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 12px 20px; border: 0; border-radius: 11px; background: var(--purple); color: #fff; font-weight: 750; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, transform .15s; }
.btn:hover { background: #46156f; color: #fff; transform: translateY(-1px); }
.btn-gold { background: linear-gradient(125deg, #c08f35, var(--gold-light)); color: #301a3f; }
.btn-gold:hover { background: linear-gradient(125deg, #c99a40, #f5d993); color: #301a3f; }
.btn-outline { background: #fff; color: var(--purple); border: 1.5px solid #cdbddc; }
.btn-outline:hover { background: var(--violet-soft); color: var(--purple); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn-sm { padding: 9px 15px; font-size: .86rem; }
.btn-lg { padding: 15px 24px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Preview banner, header */
.preview-banner { background: var(--night); color: #e9d8ff; text-align: center; padding: 8px 16px; font-size: .78rem; letter-spacing: .06em; }
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .97); box-shadow: 0 2px 20px rgba(43, 16, 64, .07); }
.header-row { display: flex; align-items: center; gap: 18px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--purple); font-weight: 850; font-size: 1.35rem; letter-spacing: -.04em; min-height: var(--tap); flex-shrink: 0; }
.brand:hover { color: var(--purple); }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; display: block; }
.wm-pro { color: #8b50c5; }
.brand-tm { font-size: .5em; font-weight: 600; vertical-align: super; color: var(--muted); letter-spacing: 0; margin-left: 1px; }
.navlinks { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.navlinks a { color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 650; padding: 10px 10px; border-radius: var(--r-sm); min-height: var(--tap); display: inline-flex; align-items: center; }
.navlinks a:hover { color: var(--violet); background: var(--violet-soft); }
.navlinks a[aria-current="page"] { color: var(--violet); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
/* Language: one compact control (globe + EN/ES) that opens a two-item list; the phone menu and the
   footer show the two names side by side. Spanish labels are long, so Spanish desktop headers use
   two clean rows: brand and actions above, the nav below. */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 10px 0 9px; border: 1.5px solid #cdbddc; border-radius: var(--r-sm); color: var(--purple); font-weight: 750; font-size: .84rem; letter-spacing: .04em; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: var(--violet-soft); }
.lang-globe { width: 18px; height: 18px; }
.lang-sheet { position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 6px; z-index: 95; display: grid; gap: 2px; }
.lang-sheet a { display: flex; align-items: center; justify-content: space-between; min-height: var(--tap); padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 650; font-size: .92rem; }
.lang-sheet a:hover { background: var(--violet-soft); color: var(--violet); }
.lang-sheet a[aria-current="true"] { color: var(--violet-dark); font-weight: 800; }
.lang-sheet a[aria-current="true"]::after { content: "✓"; font-weight: 900; }
.sheet-lang { display: flex; align-items: center; gap: 4px; padding: 6px 12px 2px; font-size: .9rem; }
.sheet-lang-links { display: inline-flex; align-items: center; gap: .15rem; }
.sheet-lang-links a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 .4rem; color: var(--ink-2); text-decoration: none; font-weight: 650; }
.sheet-lang-links a[aria-current="true"] { color: var(--violet-dark); font-weight: 800; text-decoration: underline; text-underline-offset: .2em; }
.sheet-lang-links span { color: var(--muted); }
/* Two-row header (brand and actions above, nav below) whenever one row cannot hold every label:
   Spanish at every desktop width, English between 901 and 1240 px. */
@media (min-width: 901px) {
  html[lang="es"] .header-row, .header-row.header-two-rows { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand actions" "nav nav"; row-gap: 0; min-height: 0; padding-top: 10px; }
  html[lang="es"] .brand, .header-two-rows .brand { grid-area: brand; }
  html[lang="es"] .header-actions, .header-two-rows .header-actions { grid-area: actions; justify-self: end; }
  html[lang="es"] .navlinks, .header-two-rows .navlinks { grid-area: nav; margin-left: -10px; border-top: 1px solid var(--line); padding: 4px 0; flex-wrap: wrap; }
  html[lang="es"] .navlinks a, .header-two-rows .navlinks a { white-space: nowrap; }
}
@media (min-width: 901px) and (max-width: 1240px) {
  .header-row { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand actions" "nav nav"; row-gap: 0; min-height: 0; padding-top: 10px; }
  .brand { grid-area: brand; }
  .header-actions { grid-area: actions; justify-self: end; }
  .navlinks { grid-area: nav; margin-left: -10px; border-top: 1px solid var(--line); padding: 4px 0; flex-wrap: wrap; }
  .navlinks a, .account-link, .header-cta { white-space: nowrap; }
}
/* The public number in the header: "Questions? Call us:" as a small line over the number, so the wording is the
   same as everywhere else and the one-row header still fits at 1241 px and up. */
.phone-link { font-weight: 750; font-size: .88rem; color: var(--purple); text-decoration: none; white-space: nowrap; min-height: var(--tap); display: inline-flex; flex-direction: column; justify-content: center; align-items: flex-end; line-height: 1.2; }
.phone-link-label { font-size: .72rem; font-weight: 650; color: var(--muted); }
.phone-link:hover .num { text-decoration: underline; }
/* The same line wherever else the number shows (views/parts.js placementLine). */
.placement { margin: 0; font-size: .95rem; }
.placement a { font-weight: 700; white-space: nowrap; }
.mobile-sheet a .num { white-space: nowrap; }
.on-dark .placement, .cta-band .placement { color: #e5d6ed; }
.on-dark .placement a, .cta-band .placement a { color: var(--gold-light); }
.account-link { font-weight: 700; font-size: .9rem; color: var(--purple); text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; padding: 0 6px; }
.account-link:hover { color: var(--violet); text-decoration: underline; }
/* Unread conversations on Account, Your homes, Partner dashboard and Menu (layout.js; public/messages.js keeps them live).
   In the header they sit on the link's corner and take no width, so the one-row header still fits; in the menu sheet
   they follow the label. On phones the Menu badge carries the total (Your homes and Partner are inside the menu). */
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 6px; border-radius: 999px; background: var(--violet); color: #fff; font-size: .75rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; text-decoration: none; }
.header-actions > .account-link, .mobile-menu summary { position: relative; }
.header-actions > .account-link > .nav-count, .mobile-menu summary > .nav-count { position: absolute; top: 0; right: -4px; margin: 0; min-width: 18px; height: 18px; padding: 0 5px; font-size: .7rem; box-shadow: 0 0 0 2px #fff; }
.header-actions > .account-link:has(> .nav-count:not([hidden])) { padding-right: 14px; }
.mobile-menu summary > .nav-count { top: -8px; }
.mobile-menu[open] summary .nav-count { background: var(--gold-light); color: var(--purple); }
.nav-count[hidden], [data-inbox-poll][hidden], [data-thread-stale][hidden] { display: none; }
@media (max-width: 900px) { .header-actions > .account-link > .nav-count { display: none; } }
/* Signed-in headers carry Account plus Your homes or Partner dashboard. Wide screens keep every
   label on one line; 901-1240 px shrinks them; 901-1100 px also drops the secondary portal link
   (still reachable from Account), and labels may wrap rather than overflow. */
@media (min-width: 1101px) { .navlinks a, .account-link, .header-cta { white-space: nowrap; } }
@media (max-width: 1240px) and (min-width: 901px) { .navlinks a, .account-link, .phone-link { font-size: .82rem; } .navlinks a { padding: 10px 8px; } .header-cta { padding-inline: 12px; } }
@media (max-width: 1100px) and (min-width: 901px) { .header-actions > .owner-account-link, .header-actions > .account-link[href="/partner"] { display: none; } }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; min-height: var(--tap); padding: 0 14px; border-radius: var(--r-sm); border: 1.5px solid #cdbddc; color: var(--purple); font-weight: 750; font-size: .88rem; display: inline-flex; align-items: center; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu[open] summary { background: var(--purple); color: #fff; border-color: var(--purple); }
.mobile-sheet { position: absolute; right: 0; top: calc(100% + 10px); width: min(330px, calc(100vw - 24px)); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 12px; z-index: 90; display: grid; gap: 4px; }
.mobile-sheet a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 650; }
.mobile-sheet a:hover, .mobile-sheet a[aria-current="page"] { background: var(--violet-soft); color: var(--violet); }
.sheet-divider { height: 1px; background: var(--line); margin: 4px 0; }

/* Home hero */
.hero { background: radial-gradient(circle at 75% 10%, #7133a5 0%, #381257 35%, #1a092d 78%); color: #fff; overflow: hidden; }
/* Text left, the search card right as the one main action; the owner and partner links sit under the text, quieter. */
.hero-inner { display: grid; grid-template-columns: 1.04fr .96fr; grid-template-areas: "text card" "more card"; align-items: center; gap: 0 48px; padding-top: 64px; padding-bottom: 68px; }
.hero-text { grid-area: text; align-self: end; }
.hero-card { grid-area: card; }
.hero-more { grid-area: more; align-self: start; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.06; letter-spacing: -.045em; margin: 16px 0; }
.hero h1 em { font-style: normal; color: var(--gold-on-dark); }
.hero .lead { color: #ece2f2; max-width: 34em; }
.hero-search { margin-top: 26px; display: flex; gap: 10px; max-width: 600px; background: #fff; padding: 8px; border-radius: 16px; box-shadow: var(--shadow-lg); }
.hero-search input { flex: 1; border: 0; min-height: 50px; font-size: 1.02rem; padding: 0 12px; min-width: 0; color: var(--ink); background: transparent; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.hero-card { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-lg); display: grid; gap: 14px; }
.hero-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.hero-card-grid .field-wide, .hero-card-grid .btn { grid-column: 1 / -1; }
.quick-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.hero .chip { min-height: 40px; padding: 6px 12px; font-size: .84rem; }
.hero-wizard a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; }
/* Polish r2: light outline buttons on the dark hero (white border and text), filled white on hover. */
.hero-actions .btn-ghost { background: transparent; border: 1.5px solid rgba(255, 255, 255, .9); color: #fff; }
.hero-actions .btn-ghost:hover { background: #fff; border-color: #fff; color: var(--purple); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.proof { display: flex; gap: 10px 24px; flex-wrap: wrap; margin-top: 26px; color: #e4d5ed; font-size: .86rem; }
.proof b { color: var(--gold-light); }

/* Feature cards, split sections */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.card p { color: var(--muted); line-height: 1.65; font-size: .95rem; flex: 1; }
.glyph { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--violet-soft); color: var(--violet); }
.glyph svg { width: 26px; height: 26px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split > *, .hero-inner > *, .cards-3 > *, .plans > * { min-width: 0; }
.panel-head { flex-wrap: wrap; }
.panel-head .badge, .panel-line .badge { white-space: normal; }
.split h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.035em; margin: 10px 0 14px; }
.split .lead { color: var(--muted); }
.featurelist { padding: 0; list-style: none; margin: 18px 0 24px; }
.featurelist li { padding: 9px 0; display: flex; gap: 12px; color: var(--ink-2); }
.featurelist li::before { content: "✓"; color: var(--gold-text); font-weight: 900; }
.panel { border-radius: 20px; background: #fff; border: 1px solid var(--line); padding: 26px; box-shadow: 0 20px 50px rgba(30, 11, 50, .07); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.panel-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 13px 0; font-size: .92rem; }
.panel-line:last-of-type { border-bottom: 0; }
.panel-line a { color: var(--ink); font-weight: 650; text-decoration: none; }
.panel-line a:hover { color: var(--violet); text-decoration: underline; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: #f7f2fa; padding: 14px; border-radius: 12px; display: grid; gap: 2px; }
.stat b { font-size: 1.5rem; color: var(--purple); line-height: 1.1; }
.stat span { font-size: .78rem; color: var(--muted); }

/* Badges and pills */
.badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--r-pill); font-size: .78rem; font-weight: 750; line-height: 1.25; border: 1px solid transparent; white-space: nowrap; }
.badge-member { background: var(--purple); color: var(--gold-light); }
.badge-verified { background: var(--violet-soft); border-color: var(--violet-line); color: var(--violet-dark); }
.badge-open { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.badge-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.badge-unclaimed, .badge-slate { background: var(--slate-bg); border-color: var(--slate-line); color: var(--slate-ink); }
.badge-rent { background: var(--rent-bg); border-color: var(--rent-line); color: var(--rent-ink); white-space: normal; }
.badge-svc { background: var(--svc-bg); border-color: var(--svc-line); color: var(--svc-ink); white-space: normal; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.chip { display: inline-flex; align-items: center; min-height: var(--tap); padding: 8px 14px; border-radius: var(--r-pill); background: var(--violet-soft); color: #5c3285; font-weight: 700; font-size: .86rem; text-decoration: none; }
.chip:hover { background: #eadcf6; color: var(--purple); }

/* Search panel (home) */
.searchpanel { background: #fff; border: 1px solid var(--line); border-radius: 19px; padding: 24px; box-shadow: 0 14px 50px rgba(40, 16, 60, .06); }
.searchrow { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 12px; align-items: end; }
.disclaimer { background: var(--warn-bg); border: 1px solid var(--warn-line); padding: 12px 15px; border-radius: 12px; color: var(--warn-ink); font-size: .86rem; margin-top: 16px; }

/* Forms */
.field { display: grid; gap: 6px; min-width: 0; }
.field-label { font-size: .84rem; font-weight: 750; color: #4d3f5c; }
.field-hint { font-size: .8rem; color: var(--muted); }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; min-width: 0; min-height: 48px; padding: 11px 13px; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--control); border-radius: var(--r-sm); }
textarea { min-height: 104px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #776c80; }
input:focus, select:focus, textarea:focus { border-color: var(--violet); outline: 2px solid var(--violet-line); outline-offset: 0; }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--violet); flex-shrink: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.check-row { display: flex; align-items: flex-start; gap: 10px; min-height: var(--tap); padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; font-size: .92rem; }
.check-row:hover { background: var(--cream); }
.check-sub { display: block; font-size: .8rem; color: var(--muted); }
.check-card { border: 1px solid var(--line); background: var(--cream); }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.role-option { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 9px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font-size: .92rem; font-weight: 600; }
.role-option:has(input:checked) { background: var(--violet-soft); border-color: var(--violet); color: var(--violet-dark); }
.phi-warning { background: var(--warn-bg); border: 1px solid var(--warn-line); border-left: 4px solid var(--warn-ink); border-radius: var(--r-sm); padding: 12px 14px; font-size: .88rem; color: var(--warn-ink); }

/* Listing cards */
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.listing-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.listing { position: relative; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: #fff; box-shadow: 0 10px 24px rgba(33, 12, 55, .04); display: flex; flex-direction: column; min-width: 0; transition: box-shadow .15s, border-color .15s; }
/* The whole card is the tap target; other links in it sit above the stretched title link. */
.listing-title a::after { content: ""; position: absolute; inset: 0; }
.listing-foot a, .listing-body .small a { position: relative; z-index: 1; }
.listing:hover { box-shadow: var(--shadow-md); border-color: var(--violet-line); }
.listing-photo { height: 170px; position: relative; background: linear-gradient(135deg, #eee5f4, #e2d5e9); display: flex; align-items: center; justify-content: center; color: #a58bbd; }
.listing-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-photo > svg { width: 64px; height: 64px; }
.listing-photo.tone-1, .listing-thumb.tone-1 { background: linear-gradient(135deg, #f5eddb, #dfcda8); color: #a88a54; }
.listing-photo.tone-2, .listing-thumb.tone-2 { background: linear-gradient(135deg, #e4e8f2, #cad5e8); color: #7d8daa; }
.listing-photo.tone-3, .listing-thumb.tone-3 { background: linear-gradient(135deg, #e2f1eb, #bcdad0); color: #6f9d8c; }
.listing-photo.tone-4, .listing-thumb.tone-4 { background: linear-gradient(135deg, #f4e5e6, #ead1d5); color: #a87d84; }
.listing-photo .badges { position: absolute; top: 12px; left: 12px; right: 12px; }
.listing-photo .badge { box-shadow: 0 2px 8px rgba(26, 18, 37, .12); }
.listing-unclaimed { background: var(--cream); border-style: dashed; border-color: var(--slate-line); }
.listing-unclaimed .listing-photo { height: auto; padding: 16px; justify-content: flex-start; background: var(--slate-bg); }
.listing-unclaimed .listing-photo .badges { position: static; }
.listing-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.listing-title { font-size: 1.15rem; font-weight: 800; }
.listing-title a { color: var(--ink); text-decoration: none; }
.listing-title a:hover { color: var(--violet); text-decoration: underline; }
.listing-meta { font-size: .88rem; color: var(--muted); }
.avail { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .86rem; }
.pay-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.listing-side { padding: 0 20px 20px; display: grid; gap: 10px; }
.listing-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; flex-wrap: wrap; }
.price { font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.price small { font-size: .8rem; font-weight: 500; color: var(--muted); }
/* Save is a quiet text action beside the one primary button (View details). */
.save-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; min-height: var(--tap); padding: 6px 8px; border: 0; background: none; color: var(--violet); font-weight: 700; font-size: .86rem; cursor: pointer; border-radius: var(--r-sm); }
.save-btn svg { width: 18px; height: 18px; flex: none; }
.save-btn:hover { background: var(--violet-soft); color: var(--purple); }
.save-btn.is-saved svg { fill: currentColor; }
.listing-source a { font-weight: 700; }

/* Areas */
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.area-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; display: grid; gap: 8px; }
.area-card > a { font-size: 1.12rem; font-weight: 800; color: var(--ink); text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; }
.area-card > a:hover { color: var(--violet); }
/* Coverage (U02): one line of counts, state chips, compact state and county indexes. */
.coverage-line { font-size: 1.12rem; font-weight: 700; color: var(--ink-2); text-align: center; }
.state-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.state-chips a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 8px 16px; border-radius: var(--r-pill); background: #fff; border: 1.5px solid var(--violet-line); color: var(--purple); font-weight: 750; text-decoration: none; }
.state-chips a:hover { border-color: var(--violet); }
.state-chips .num { color: var(--muted); font-weight: 650; }
.coverage-source { text-align: center; }
.coverage-map .map { height: 420px; }
.coverage-index { display: grid; gap: 10px; }
.coverage-index h2 { font-size: 1.25rem; }
.coverage-index ul { list-style: none; padding: 0; columns: 3; column-gap: 32px; }
.coverage-index-long ul { columns: 4; }
.coverage-index li { break-inside: avoid; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; min-height: var(--tap); border-bottom: 1px solid var(--line); color: var(--muted); }
.coverage-index .coverage-name { font-weight: 750; color: var(--ink); text-decoration: none; }
.coverage-index .coverage-name:hover { color: var(--violet); text-decoration: underline; }
.area-count { font-size: 1.08rem; font-weight: 650; color: var(--ink-2); }
/* State and county pages (polish r2). Desktop: the "See all" action and the unclaimed summary on the
   left, the map on the right (sticky, sized so a tall state fills it), and the county or town index
   full width below in columns, so neither column runs a long way past the other. Phones: action,
   a shorter map, the summary, then the index as a compact two-column grid. */
.coverage-layout { display: grid; gap: 20px; }
.coverage-layout > * { min-width: 0; }
.coverage-summary > .content-card { height: 100%; }
@media (min-width: 1025px) {
  .coverage-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; grid-template-areas: "action map" "summary map" "index index"; gap: 20px 32px; align-items: start; }
  .coverage-layout .coverage-action { grid-area: action; }
  .coverage-layout .coverage-summary { grid-area: summary; }
  .coverage-layout .coverage-index { grid-area: index; padding-top: 8px; }
  .coverage-layout .coverage-map { grid-area: map; position: sticky; top: calc(var(--site-header-height, 72px) + 20px); }
  .coverage-layout .coverage-map .map { height: min(820px, calc(100vh - var(--site-header-height, 72px) - 110px)); min-height: 420px; }
  .coverage-summary .tally { gap: 0 24px; }
}
@media (max-width: 1024px) {
  .coverage-index ul, .coverage-index-long ul { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
}
@media (max-width: 600px) {
  .coverage-map .map { height: 360px; }
  .coverage-index ul, .coverage-index-long ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  /* Name above its count; the " · " between them (kept for the text) takes no space here. */
  .coverage-index li { display: block; padding: 8px 0; font-size: 0; line-height: 1.35; }
  .coverage-index li > a { display: block; width: fit-content; font-size: .9rem; }
  .coverage-index li > a + a { margin-top: 2px; font-size: .84rem; }
}
/* Unclaimed counts: a count of homes first, then what they have in common; no ticks. */
.tally { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.tally li { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 4px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.tally-n { flex: none; min-width: 6.4em; padding: 2px 10px; border-radius: var(--r-pill); background: var(--violet-soft); color: var(--purple); font-weight: 750; font-size: .84rem; text-align: center; white-space: nowrap; }
.tally-name { min-width: 0; }
/* Phones: two columns, the count above its label, so 20-odd counts are half as many rows. */
@media (max-width: 600px) {
  .tally { gap: 0 14px; }
  .tally li { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 0; font-size: .92rem; line-height: 1.35; }
}

/* Steps, FAQ, CTA */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step-num { width: 36px; height: 36px; border-radius: var(--r-pill); background: var(--purple); color: var(--gold-light); font-weight: 800; display: inline-grid; place-items: center; flex-shrink: 0; }
.ranking-list { padding-left: 1.3rem; display: grid; gap: 8px; color: var(--ink-2); }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { font-weight: 750; cursor: pointer; min-height: 52px; display: flex; align-items: center; }
.faq details p { color: var(--muted); line-height: 1.7; padding: 0 0 16px; }
.cta-band { background: linear-gradient(120deg, #240a40, #602494); color: #fff; border-radius: 25px; padding: 54px 30px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.cta-band p { color: #e5d6ed; }
.cta-band .actions { justify-content: center; margin-top: 8px; }
.callout { background: var(--violet-soft); border: 1px solid var(--violet-line); border-radius: var(--r-md); padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.empty { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; display: grid; gap: 10px; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.plan { border: 1px solid var(--line); border-radius: 19px; padding: 28px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.plan-featured { border: 2px solid var(--gold); box-shadow: 0 15px 50px rgba(91, 36, 128, .1); }
.plan h3 { font-size: 1.35rem; }
.plan-price { font-size: 2rem; font-weight: 850; letter-spacing: -.04em; }
.plan-price small { font-size: .85rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan ul { padding-left: 1.2rem; color: var(--ink-2); line-height: 1.9; flex: 1; }

/* Inner page header band */
.page-band { background: radial-gradient(circle at 80% 0%, #6a2f9c 0%, #36115a 45%, #1a092d 90%); color: #fff; padding: 40px 0; }
.page-band h1 { color: #fff; }
.page-band .lead { color: #ece2f2; }
.subnav { background: var(--cream); border-bottom: 1px solid var(--line); }
.subnav .wrap { min-height: 50px; display: flex; align-items: center; }
.back-link { font-weight: 750; text-decoration: none; color: var(--purple); min-height: var(--tap); display: inline-flex; align-items: center; gap: 6px; }

/* Search results (lead's design, 2026-11-02): a slim sticky bar, then the list left (about
   60%) and the map right, sticky and as tall as the viewport. Phones: list first with a
   List / Map switch; the bar shrinks to Filters + Sort. Every results view uses this. */
.view-switch, .results-switch { display: none; }
.results-page { background: var(--cream); border-top: 1px solid var(--line); }
.results-bar { position: sticky; top: var(--site-header-height, 72px); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(43, 16, 64, .05); }
.results-bar:has(.more-filters[open]), body.sheet-open .results-bar { z-index: 140; }
.results-bar-inner { display: flex; align-items: center; gap: 10px; max-width: 1680px; margin: 0 auto; padding: 12px 24px; }
.bar-form { display: contents; }
.bar-place { flex: 1 1 180px; max-width: 380px; min-width: 0; }
.bar-pay { flex-basis: 260px; max-width: 280px; }
.bar-select { flex: 1 1 200px; max-width: 260px; min-width: 0; }
.results-bar input:not([type=hidden]), .results-bar-inner > .bar-form select { min-height: 46px; padding: 9px 12px; font-size: .95rem; }
/* Every control in the bar is one height: fields, Search, More filters and Sort. */
.results-bar-inner input:not([type=hidden]), .results-bar-inner select, .results-bar-inner .bar-go, .results-bar-inner .more-filters > summary { height: 46px; min-height: 46px; padding-block: 0; }
.bar-go { flex: none; }
.bar-sort { order: 10; margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.bar-sort-label { font-size: .84rem; font-weight: 750; color: var(--ink-2); white-space: nowrap; }
.bar-sort select { width: auto; }
.more-filters { order: 5; flex: none; }
.more-filters > summary { list-style: none; }
.more-filters > summary::-webkit-details-marker { display: none; }
.more-narrow { display: none; }
.filter-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: var(--r-pill); background: var(--purple); color: #fff; font-size: .78rem; font-weight: 800; }
/* The open summary doubles as the backdrop: a tap outside the sheet closes it, with or without JS. */
.more-filters[open] > summary::before { content: ""; position: fixed; inset: 0; z-index: 1; background: rgba(24, 8, 44, .45); cursor: default; }
.filter-sheet { display: none; }
.more-filters[open] > .filter-sheet { display: block; position: fixed; top: 0; right: 0; bottom: 0; z-index: 2; width: min(460px, 100vw); overflow-y: auto; overscroll-behavior: contain; background: #fff; box-shadow: var(--shadow-lg); }
.filter-sheet .filter-panel { position: static; max-height: none; overflow: visible; border: 0; border-radius: 0; box-shadow: none; padding: 20px 22px 0; }
.filter-sheet .filter-close { display: inline-flex; }
.filter-submit { position: sticky; bottom: 0; background: #fff; padding: 12px 0 16px; border-top: 1px solid var(--line); }
body.sheet-open { overflow: hidden; }

.results-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; max-width: 1680px; margin: 0 auto; padding: 20px 24px 56px; }
.results-main { display: grid; gap: 16px; min-width: 0; align-content: start; }
/* A fallback notice sits above the list (and, on phones, above the map too); the map keeps the
   right column from the top. The List / Map links land below the sticky bars. */
.results-notice, .results-main { grid-column: 1; min-width: 0; }
.results-body > .results-map { grid-column: 2; }
.results-body:has(> .results-notice) > .results-map { grid-row: 1 / span 2; }
.results-body, .results-main, .results-map { scroll-margin-top: calc(var(--site-header-height, 72px) + var(--results-bar-height, 71px)); }
.results-head { display: grid; gap: 10px; }
.results-head h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.results-head h2 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.results-head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.results-sub-line { font-size: .95rem; }
.results-sub-line:not(.muted) { background: #fff; border: 1px solid var(--warn-line); border-left: 4px solid var(--gold); border-radius: var(--r-sm); padding: 11px 14px; color: var(--ink-2); }
.results-sub { font-size: 1.02rem; }
.results-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: .88rem; }
.results-tools .save-search { margin: 0; display: flex; align-items: center; gap: 4px 10px; }
.results-tools .save-search .small { color: var(--muted); font-size: .84rem; max-width: 30em; }
.results-tool { font-weight: 700; min-height: var(--tap); display: inline-flex; align-items: center; }
.results-cards { display: grid; gap: 14px; }
.results-pages { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.results-quiet { color: var(--muted); }
.chips-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 6px 8px 6px 14px; border-radius: var(--r-pill); background: #fff; border: 1.5px solid var(--violet-line); color: var(--purple); font-weight: 700; font-size: .84rem; text-decoration: none; }
.filter-chip:hover { border-color: var(--violet); color: var(--purple); }
.chip-x { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--violet-soft); font-size: 1rem; line-height: 1; }
.chips-clear { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 6px; font-size: .84rem; font-weight: 700; }
.place-suggest ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.place-suggest a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 6px 14px; border-radius: var(--r-pill); background: #fff; border: 1.5px solid var(--violet-line); font-weight: 700; text-decoration: none; }
.coverage-browser { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 14px; }
.coverage-browser summary { min-height: var(--tap); display: flex; align-items: center; cursor: pointer; font-weight: 750; font-size: .92rem; color: var(--violet); }
.coverage-browser ul { list-style: none; padding: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.coverage-browser a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 6px 14px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font-weight: 700; text-decoration: none; }
.results-map { position: sticky; top: calc(var(--site-header-height, 72px) + var(--results-bar-height, 71px) + 20px); min-width: 0; }
.results-page-area { --results-bar-height: 0px; }
/* Polish r2: as tall as the viewport, but never taller than the list beside it (desktop rules below). */
.results-map .map-card { display: flex; flex-direction: column; height: min(100%, calc(100vh - var(--site-header-height, 72px) - var(--results-bar-height, 71px) - 40px)); min-height: 480px; box-shadow: var(--shadow-sm); }
.results-map .map-frame { flex: 1; min-height: 0; }
.results-map .map { height: 100%; }

/* Results cards: one per row, laid out across: photo, facts, price and actions. */
.results-cards .listing { display: grid; grid-template-columns: 200px minmax(0, 1fr) 196px; scroll-margin-top: calc(var(--site-header-height, 72px) + var(--results-bar-height, 71px) + 16px); }
.results-cards .listing-photo { height: auto; min-height: 172px; }
.results-cards .listing-photo .badges { top: 10px; left: 10px; right: 10px; }
.results-cards .listing-photo .badge { white-space: normal; }
.results-cards .listing-body { padding: 16px 18px; gap: 7px; }
.results-cards .listing-side { padding: 16px 18px; border-left: 1px solid var(--line); align-content: center; }
.results-cards .listing-foot { margin: 0; padding: 0; border: 0; flex-direction: column; align-items: stretch; gap: 10px; }
.results-cards .listing-side .btn { width: 100%; }
.unclaimed-glyph { display: none; }
.results-cards .listing-unclaimed .listing-photo { flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 12px; color: #a59cb0; }
.results-cards .unclaimed-glyph { display: block; align-self: center; margin: auto 0; }
.results-cards .listing-unclaimed .listing-photo .badges { order: -1; }
.results-cards .unclaimed-glyph svg { width: 52px; height: 52px; display: block; }
/* Unclaimed results are compact: label, title, area, one source line; the Member cards lead. */
.results-cards .listing-unclaimed { grid-template-columns: 132px minmax(0, 1fr) 196px; box-shadow: none; }
.results-cards .listing-unclaimed .listing-photo { min-height: 0; background: transparent; padding: 16px 0 16px 16px; }
.results-cards .listing-unclaimed .unclaimed-glyph { display: none; }
.results-cards .listing-unclaimed .listing-body { padding: 14px 18px; gap: 4px; }
.results-cards .listing-unclaimed .listing-title { font-size: 1.05rem; }
.results-cards .listing-unclaimed .listing-side { padding: 12px 18px; gap: 4px; }
.results-cards .listing-side .save-form { display: flex; justify-content: center; }
.listing.is-active { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-line), var(--shadow-md); }
.listing-distance { font-size: .86rem; font-weight: 750; color: var(--violet-dark); }

.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-sm); position: sticky; top: 90px; display: grid; gap: 12px; max-height: calc(100vh - 110px); overflow-y: auto; }
.filter-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.filter-head h2 { font-size: 1.1rem; }
.filter-close { display: none; }
.filter-group { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.filter-group summary { list-style: none; cursor: pointer; font-size: .95rem; font-weight: 800; display: flex; align-items: center; justify-content: space-between; min-height: var(--tap); }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: "−"; color: var(--muted); font-weight: 700; }
.filter-group:not([open]) summary::after { content: "+"; }
.filter-body { display: grid; gap: 10px; padding-top: 6px; }
.filter-body legend { font-size: .84rem; font-weight: 750; color: #4d3f5c; margin-bottom: 4px; }
.map-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.map-frame { position: relative; }
.map { height: 320px; background: #edf1f4; }
.map-caption { padding: 10px 16px; background: var(--cream); border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
/* "Loading map" shows only when the map script can run; the list never waits for it. */
.map-status { display: none; position: absolute; inset: 0; margin: 0; place-items: center; padding: 20px; text-align: center; color: var(--muted); font-weight: 700; font-size: .92rem; pointer-events: none; }
.js .map-status:not([hidden]) { display: grid; }
.map-status.is-error { color: var(--ink-2); }
.map-noscript { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--muted); font-size: .92rem; }
.map-search { position: absolute; top: 12px; left: 12px; z-index: 2; box-shadow: var(--shadow-sm); }
/* A listing's own map: the button sits under the area circle, not over it. */
.map-search-low { top: auto; bottom: 12px; }
.map-place { pointer-events: none; }
.map-place-inner { display: flex; align-items: center; gap: 6px; }
.map-place-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--purple); border: 3px solid var(--gold-light); box-shadow: 0 0 0 4px rgba(215, 168, 75, .35); }
.map-place-label { background: var(--purple); color: #fff; font-weight: 800; font-size: .8rem; padding: 4px 10px; border-radius: var(--r-pill); white-space: nowrap; box-shadow: 0 4px 12px rgba(26, 18, 37, .25); }
.map-popup a, .map-popup span { font-weight: 750; font-size: .9rem; color: var(--ink); }
.map-popup a { color: var(--violet); }
.maplibregl-ctrl-group button { width: 44px !important; height: 44px !important; }

/* Listing detail */
.detail-head { display: grid; gap: 12px; }
.disclosure { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); border-radius: var(--r-md); padding: 12px 16px; font-weight: 600; font-size: .92rem; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.photos img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--r-md); display: block; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 32px; align-items: start; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 3px; align-content: start; }
.fact-label { font-size: .8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fact-value { font-size: 1.12rem; font-weight: 800; color: var(--ink); }
.fact-value.ok { color: var(--ok-ink); }
.content-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 16px; }
.ticks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.ticks li { display: flex; gap: 9px; color: var(--ink-2); }
.ticks li::before { content: "✓"; color: var(--ok-ink); font-weight: 900; }
.plain-list { padding-left: 1.2rem; display: grid; gap: 6px; color: var(--ink-2); }

.payment-card { background: #fff; border: 1.5px solid var(--violet-line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.payment-head { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-start; justify-content: space-between; }
.payment-head h2 { color: var(--purple); margin-top: 4px; }
.payment-head p { color: var(--muted); font-size: .9rem; margin-top: 6px; max-width: 46em; }
.pay-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--cream); border-bottom: 1px solid var(--line); margin: 0; }
.pay-summary > div { padding: 14px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.pay-summary > div:nth-child(3n) { border-right: 0; }
.pay-summary dt { font-size: .8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pay-summary dd { margin: 0; font-weight: 750; font-size: 1.02rem; }
.payment-body { padding: 22px 24px; display: grid; gap: 22px; }
.ledger { display: grid; gap: 12px; }
.ledger-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.pay-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.pay-entry { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; background: var(--cream); display: grid; gap: 8px; }
.pay-entry-stale { background: #fffcf4; border-color: var(--warn-line); }
.payment-card, .payment-body > *, .ledger, .pay-list, .pay-entry, .detail-layout > *, .results > * { min-width: 0; }
.pay-entry .badge, .detail-head .badge { white-space: normal; }
.pay-name { overflow-wrap: anywhere; }
.pay-entry-top { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-start; justify-content: space-between; }
.pay-name { font-weight: 800; }
.pay-kind { font-size: .84rem; color: var(--muted); font-weight: 600; }
.pay-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 14px; margin: 0; padding-top: 8px; border-top: 1px dashed var(--line); font-size: .94rem; }
.pay-facts dt { font-size: .8rem; font-weight: 750; color: var(--muted); }
.pay-facts dd { margin: 0; font-weight: 650; color: var(--ink); }
.not-reported { font-size: .88rem; color: var(--muted); }
.compliance { background: var(--cream); border-left: 4px solid var(--violet); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 13px 16px; font-size: .9rem; color: var(--ink-2); display: grid; gap: 6px; }

.inquiry-rail { position: sticky; top: 92px; display: grid; gap: 14px; }
.call-card { background: var(--purple); color: #fff; border-radius: var(--r-lg); padding: 18px 20px; display: grid; gap: 10px; }
.call-card p { color: #e5d6ed; font-size: .88rem; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-md); display: grid; gap: 14px; scroll-margin-top: 96px; }
.form-card h2 { font-size: 1.3rem; }
.unclaimed-head { background: var(--cream); border: 1.5px dashed var(--slate-line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 12px; }
/* Polish round 3: the unclaimed header carries its five fact tiles in one row on wide screens, 3 + 2 at tablet
   widths and 1 + 2 + 2 on phones, so no tile is left alone on a row. */
.unclaimed-head > p { margin: 0; }
.facts.facts-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.unclaimed-head-links { display: flex; flex-wrap: wrap; align-items: center; column-gap: 24px; }
.unclaimed-head-links a { display: inline-flex; align-items: center; min-height: var(--tap); }
.unclaimed-claim { border-left: 4px solid var(--gold); }
.unclaimed-claim h2 { margin-top: -4px; }
@media (max-width: 1240px) {
  .facts.facts-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .facts.facts-5 > * { grid-column: span 2; }
  .facts.facts-5 > :nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 1024px) {
  /* The request form comes before the reviews block on one-column layouts. */
  .unclaimed-head + .detail-layout > .unclaimed-main { display: contents; }
  .unclaimed-head + .detail-layout > .unclaimed-main > .unclaimed-trust { order: 1; }
}
@media (max-width: 600px) {
  .facts.facts-5 { grid-template-columns: 1fr 1fr; }
  .facts.facts-5 > *, .facts.facts-5 > :nth-child(n+4) { grid-column: auto; }
  .facts.facts-5 > :first-child { grid-column: 1 / -1; }
  .unclaimed-head { padding: 18px 16px; }
}

/* Operator form */
.mode-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.mode-tab { min-height: var(--tap); padding: 9px 16px; border-radius: var(--r-sm); font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--ink-2); background: var(--cream); border: 1px solid var(--line); display: inline-flex; align-items: center; }
.mode-tab[aria-current="page"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.phone-banner { background: linear-gradient(120deg, #240a40, #5a2290); color: #fff; border-radius: var(--r-lg); padding: 22px 26px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.phone-banner h2 { color: var(--gold-light); font-size: 1.2rem; }
.phone-banner p { color: #e5d6ed; margin-top: 4px; }
.form-step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 16px; }
.form-step-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.form-step-head h2 { font-size: 1.15rem; }
.plan-row { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; background: var(--cream); display: grid; gap: 12px; }
.plan-more summary { cursor: pointer; font-weight: 750; color: var(--violet); min-height: var(--tap); display: flex; align-items: center; }
.plan-more[open] { display: grid; gap: 12px; }

/* Confirmation (/thanks): a centred card with a gold check on a plum disc. */
.confirm-page { min-height: 62vh; display: grid; align-items: center; background: var(--cream); }
.confirm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); padding: 40px 36px; display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 640px; margin: 0 auto; }
.confirm-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--purple); color: var(--gold-light); display: grid; place-items: center; box-shadow: 0 0 0 8px var(--violet-soft); margin-bottom: 6px; }
.confirm-icon svg { width: 32px; height: 32px; }
.confirm-card .lead { color: var(--ink-2); max-width: 34em; }
.confirm-note { background: var(--violet-soft); border: 1px solid var(--violet-line); border-radius: var(--r-sm); padding: 10px 16px; color: var(--ink); }
.confirm-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
@media (max-width: 600px) { .confirm-card { padding: 28px 18px; } .confirm-actions .btn { flex: 1 1 100%; } }

/* Prose pages */
.prose { display: grid; gap: 14px; color: var(--ink-2); line-height: 1.7; }
.prose ol, .prose ul { padding-left: 1.3rem; display: grid; gap: 8px; }
.prose h2 { margin-top: 12px; font-size: 1.3rem; }

/* Footer */
.site-footer { background: #1c0b2b; color: #d6c9df; padding: 48px 0; font-size: .9rem; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; }
.foot-brand { font-size: 1.35rem; font-weight: 850; color: #fff; letter-spacing: -.03em; }
.foot-brand .wm-pro { color: var(--gold); }
.site-footer strong { color: #fff; }
.foot-links { list-style: none; padding: 0; margin-top: 8px; display: grid; gap: 2px; }
.foot-links a { color: var(--gold-light); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { text-decoration: underline; color: #fff; }
.site-footer p { line-height: 1.65; }
.foot-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .8rem; color: #c3b5cf; overflow-wrap: anywhere; }
.foot-legal a { color: inherit; }

/* Mobile app chrome */
.app-tabbar, .detail-bar { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .listing { transition: none; }
  .btn:hover { transform: none; }
}

@media (max-width: 1240px) {
  .results-cards .listing { grid-template-columns: 172px minmax(0, 1fr); }
  .results-cards .listing-photo { grid-row: 1 / span 2; }
  .results-cards .listing-side { grid-column: 2; border-left: 0; border-top: 1px solid var(--line); padding: 12px 18px 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
  .results-cards .listing-foot { flex-direction: row; align-items: center; flex: 1 1 auto; justify-content: space-between; }
  .results-cards .listing-side .btn { width: auto; }
  .results-cards .listing-unclaimed { grid-template-columns: 120px minmax(0, 1fr); }
  .results-cards .listing-unclaimed .listing-side { padding: 10px 18px 12px; }
}

@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr; }
  .inquiry-rail { position: static; }
  .listing-grid, .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .searchrow { grid-template-columns: 1fr 1fr; }
  .searchrow .btn { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  html { font-size: 17px; }
  .wrap, .wrap-narrow { padding: 0 16px; }
  .section { padding: 48px 0; }
  /* The placement line stays in the menu sheet on phones; in the top bar it pushed Menu off-screen. */
  .navlinks, .header-cta, .lang-menu, .header-actions > .phone-link { display: none; }
  .mobile-menu { display: block; }
  .header-row { min-height: 62px; gap: 10px; }
  .header-actions { gap: 6px; }
  .brand { font-size: 1.15rem; }
  .brand-mark { width: 36px; height: 36px; }
  .hero-inner, .split { grid-template-columns: 1fr; }
  .hero-inner { grid-template-areas: "text" "card" "more"; padding-top: 32px; padding-bottom: 40px; gap: 24px; }
  .hero-more .hero-actions { margin-top: 0; flex-wrap: nowrap; gap: 10px; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; padding-inline: 10px; text-align: center; }
  .cards-3, .steps, .plans, .foot-grid { grid-template-columns: 1fr; }
  .cards-2, .grid-2, .grid-3, .check-grid, .facts, .pay-summary, .listing-grid-2 { grid-template-columns: 1fr 1fr; }
  .pay-summary > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .pay-summary > div:nth-child(2n) { border-right: 0; }
  .view-switch { display: flex; margin-left: auto; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; background: #fff; }
  .view-switch [data-view] { display: inline-flex; align-items: center; background: #fff; color: var(--muted); border: 0; border-radius: 7px; min-height: 44px; padding: 6px 14px; font-weight: 700; font-size: .88rem; text-decoration: none; cursor: pointer; }
  .view-switch [data-view][aria-pressed="true"] { background: var(--purple); color: #fff; }
  .filter-panel { position: static; max-height: none; }
  .results-bar-inner { padding: 10px 16px; gap: 8px; }
  .bar-place, .bar-select, .bar-go { display: none; }
  html:not(.js) .bar-go { display: inline-flex; order: 11; }
  .more-wide { display: none; }
  .more-narrow { display: inline; }
  .more-filters { order: 0; }
  .more-filters > summary { padding-inline: 14px; }
  .bar-sort { order: 1; margin-left: 0; flex: 1 1 auto; min-width: 0; }
  .bar-sort-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bar-sort select { width: 100%; padding-inline: 10px 6px; font-size: .9rem; }
  .view-switch { order: 2; flex: none; }
  .results-switch { display: flex; justify-content: flex-end; position: sticky; top: var(--site-header-height, 62px); z-index: 45; padding: 8px 16px; background: #fff; border-bottom: 1px solid var(--line); }
  .results-body { grid-template-columns: 1fr; gap: 14px; padding: 14px 16px 40px; }
  .results-map { display: none; position: static; }
  .results-notice, .results-main, .results-body > .results-map, .results-body:has(> .results-notice) > .results-map { grid-column: auto; grid-row: auto; }
  /* Without JavaScript the Map link lands on a short box saying the map needs it. */
  html:not(.js) .results-map { display: block; }
  html:not(.js) .results-bar-inner { flex-wrap: wrap; }
  html:not(.js) .bar-sort { flex-basis: 0; }
  html:not(.js) .view-switch { order: 12; flex: 1 1 100%; margin-left: 0; }
  html:not(.js) .view-switch [data-view] { flex: 1; justify-content: center; }
  html:not(.js) .results-page:not(.results-page-area) { --results-bar-height: 136px; }
  html:not(.js) .results-map .map-card { height: auto; min-height: 0; }
  html:not(.js) .results-map .map { height: 160px; }
  .js.map-mode .results-map { display: block; }
  .js.map-mode .results-main { display: none; }
  .js.map-mode .results-map .map-card { height: calc(100dvh - var(--site-header-height, 62px) - var(--results-bar-height, 66px) - 28px); min-height: 360px; }
  .results-page-area { --results-bar-height: 61px; }
  .results-cards .listing { display: flex; flex-direction: column; }
  .results-cards .listing-photo { min-height: 0; height: 132px; }
  .results-cards .listing-unclaimed .listing-photo { height: auto; padding: 14px 16px 0; }
  .results-cards .listing-unclaimed .listing-body { padding: 8px 16px 12px; }
  .results-cards .listing-unclaimed .listing-side { padding: 8px 16px 10px; }
  .results-cards .unclaimed-glyph { display: none; }
  .results-cards .listing-side { border-left: 0; border-top: 1px solid var(--line); padding: 12px 16px 16px; }
  .results-cards .listing-foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .results-cards .listing-foot .btn { width: auto; }
  body.filters-open { overflow: hidden; }
  body.filters-open .filter-panel { position: fixed; inset: 0; z-index: 120; border-radius: 0; overflow-y: auto; padding: 18px 16px 96px; max-height: none; }
  body.filters-open .filter-close { display: inline-flex; }
  .app-tabbar { display: none; }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; border-radius: var(--r-sm); text-decoration: none; color: var(--muted); font-size: .75rem; font-weight: 750; text-align: center; line-height: 1.15; }
  .tab svg { width: 22px; height: 22px; }
  .tab[aria-current="page"] { color: var(--purple); background: var(--violet-soft); }
  .detail-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; bottom: 0; z-index: 80; background: rgba(255, 255, 255, .98); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 18px rgba(26, 18, 37, .09); }
  .detail-bar-meta { min-width: 0; line-height: 1.3; font-size: .86rem; }
  .detail-bar-meta strong { font-size: 1rem; }
  .detail-bar-actions { display: flex; gap: 8px; flex-shrink: 0; }
  /* The bar's main action: plum with gold text, the brand's strongest button, so it reads first. */
  .detail-bar .btn-cta { background: var(--purple); color: var(--gold-light); min-height: 48px; padding-inline: 18px; font-size: 1rem; box-shadow: 0 6px 16px rgba(38, 11, 70, .22); }
  .detail-bar .btn-cta:hover { background: var(--purple-2); color: var(--gold-light); }
}

/* Owner portal and moderation (issue #2). */
.owner-band a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-light); }
@media (max-width: 900px) {
  .header-actions > .owner-account-link, .header-actions > .account-link[href="/partner"] { display: none; }
}
.owner-portal, .owner-review { overflow-wrap: anywhere; }
.owner-portal > *, .owner-review > *, .owner-portal fieldset { min-width: 0; }
.owner-portal input, .owner-portal select, .owner-portal textarea,
.owner-review input, .owner-review select, .owner-review textarea { max-width: 100%; min-width: 0; box-sizing: border-box; }
.owner-portal fieldset { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; }
.owner-portal .form-card, .owner-review .form-card { width: 100%; max-width: 760px; box-sizing: border-box; }
.owner-home-link { display: inline-flex; align-items: center; min-height: 44px; }
.owner-photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.owner-photo-grid img { display: block; width: 100%; height: 220px; object-fit: contain; border-radius: var(--r-sm); }
.owner-review { max-width: 1100px; margin: auto; }
.owner-review button, .owner-review select, .owner-review input:not([type="checkbox"]) { min-height: 44px; }

@media (max-width: 600px) {
  .hero h1 { font-size: 2.35rem; }
  .hero-card-grid { grid-template-columns: 1fr; }
  .hero-card { padding: 16px; }
  .listing-grid, .listing-grid-2, .area-grid, .cards-2, .grid-2, .grid-3, .check-grid, .searchrow, .ticks, .pay-facts { grid-template-columns: 1fr; }
  .facts, .pay-summary, .stats { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 40px 20px; }
  .content-card, .form-step, .payment-body, .card, .panel { padding: 18px 16px; }
  .payment-head { padding: 18px 16px; }
}
/* Issue #4: saved searches, conversations and visits. */
.seeker-portal { min-width: 0; }
.seeker-portal .row, .save-search { flex-wrap: wrap; gap: .75rem; }
.seeker-portal input, .seeker-portal select, .seeker-portal textarea { max-width: 100%; min-width: 0; }
.thread-message, .message-body, .seeker-portal a { overflow-wrap: anywhere; }
.message-body { white-space: pre-wrap; }
.save-search { margin-bottom: 1rem; }
.listing-side > form { position: relative; z-index: 1; }
/* Issue #4 part 2: referral forms retain readable, wrapping controls on narrow screens. */
.partner-portal { overflow-wrap: anywhere; }
.partner-portal .row { flex-wrap: wrap; }
.partner-portal nav a, .partner-portal .plain-list a, .seeker-portal nav a { display: inline-flex; align-items: center; min-height: 44px; }
.partner-portal form, .partner-portal .field { min-width: 0; }
.partner-portal input, .partner-portal select, .partner-portal textarea { max-width: 100%; }
/* Issue #5: readable signed text and touch-sized billing forms. */
.billing-agreement { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.billing-page { overflow-wrap: anywhere; }
.billing-page fieldset { min-width: 0; }
.billing-page summary, .billing-page a { min-height: 44px; display: inline-flex; align-items: center; }
.billing-check { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.billing-check input { flex: 0 0 24px; width: 24px; height: 24px; }
/* Issue #6: trust forms and content fit narrow listing and owner columns. */
.trust-sections, .trust-entry, .trust-prompt { min-width: 0; overflow-wrap: anywhere; }
.trust-entry { border-top: 1px solid var(--border, #dde4ea); padding-block: 1rem; }
.trust-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.trust-prompt { display: grid; gap: .75rem; padding-block: 1rem; border-top: 1px solid var(--border, #dde4ea); }
.trust-prompt select, .trust-sections textarea, .trust-sections select { min-width: 0; width: 100%; max-width: 100%; }
.trust-sections summary, .trust-sections a { min-height: 44px; display: inline-flex; align-items: center; }
.trust-sections .badge { white-space: normal; }
/* Find housing wizard: one question per page, usable without JavaScript. */
.find-wizard { max-width: 42rem; }
.find-wizard progress { width: 100%; accent-color: var(--violet, #6d28d9); }
.find-progress { font-weight: 700; }
.find-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.find-fields legend { padding: 0; margin-bottom: 1rem; max-width: 100%; }
.find-fields h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
.find-choice { min-height: 52px; padding: .75rem; border: 1px solid var(--line, #d5cddd); border-radius: .5rem; cursor: pointer; }
.find-choice:focus-within { outline: 2px solid var(--violet, #6d28d9); outline-offset: 2px; }
.find-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.find-actions a { min-height: 44px; }
.find-wizard .field input, .find-wizard .field select { width: 100%; min-width: 0; min-height: 48px; }
.language-switch { display: inline-flex; align-items: center; flex-wrap: wrap; font-size: .875rem; gap: .15rem; }
.language-switch a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .25rem; }
.language-switch a[aria-current="true"] { font-weight: 750; text-decoration: underline; }
html[lang="es"] .app-tabbar .tab { overflow-wrap: anywhere; }
html[lang="es"] .content-card { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  html[lang="es"] .detail-bar { flex-wrap: wrap; }
  html[lang="es"] .detail-bar-meta { flex-basis: 100%; }
  html[lang="es"] .detail-bar-actions { width: 100%; }
  html[lang="es"] .detail-bar-actions .btn { flex: 1; }
}

/* Issue #7 part 2: installed app tabs, including desktop PWAs. No script required. */
.installed-tabs { display: none; }
.installed-tabs .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 44px; min-height: 60px; padding: 4px 2px; border-radius: var(--r-sm); text-decoration: none; color: var(--muted); font-size: .75rem; font-weight: 750; text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
.installed-tabs .tab[aria-current="page"] { color: var(--purple); background: var(--violet-soft); }
.installed-tabs svg { width: 22px; height: 22px; }
body[data-app-mode="twa"] { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body[data-app-mode="twa"] .installed-tabs { display: grid; }
body[data-app-mode="twa"] .detail-bar { display: none; }
.installed-tabs { position: fixed; inset: auto 0 0; z-index: 80; grid-template-columns: repeat(4, minmax(44px, 1fr)); background: rgba(255, 255, 255, .98); border-top: 1px solid var(--line); padding: 4px max(6px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); box-shadow: 0 -4px 16px rgba(26, 18, 37, .07); }
.installed-tabs-signed-in { grid-template-columns: repeat(6, minmax(44px, 1fr)); }
@media (display-mode: standalone), (display-mode: fullscreen) {
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .installed-tabs { display: grid; }
  .detail-bar { display: none; }
}


/* Portal: signed-in pages for seekers, owners and referral partners (design/PORTAL.md).
   Compact white header with tabs, cream workspace, cards and inbox rows. */
:root { --danger: #b42318; --danger-bg: #fef3f2; --danger-line: #f3c2bc; }
.portal-head { background: #fff; border-bottom: 1px solid var(--line); }
.portal-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 30px; }
.portal-head-text { display: grid; gap: 6px; min-width: 0; }
.portal-head h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -.03em; }
.portal-head .lede { font-size: 1rem; color: var(--muted); max-width: 60ch; }
.portal-head .eyebrow, .portal-main .eyebrow { font-size: .8rem; }
.portal-back { font-weight: 700; text-decoration: none; color: var(--violet); min-height: var(--tap); display: inline-flex; align-items: center; }
.portal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.portal-tabs-wrap { position: relative; margin-top: 14px; }
.portal-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.portal-tabs-more { display: none; }
.portal-tabs::-webkit-scrollbar { display: none; }
.portal-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--ink-2); font-weight: 650; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.portal-tabs a:hover { color: var(--purple); background: var(--cream); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.portal-tabs a[aria-current="page"] { color: var(--violet-dark); border-bottom-color: var(--violet); font-weight: 750; }
.tab-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--purple); color: var(--gold-light); font-size: .8rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.portal-main { background: var(--cream); padding: 28px 0 72px; flex: 1; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.portal-grid > * { min-width: 0; }
.portal-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.portal-section-head h2 { font-size: 1.2rem; }
.portal-main .content-card, .portal-main .form-card, .portal-main .panel { box-shadow: none; }
.portal-main .content-card h2, .portal-main .form-card h2 { font-size: 1.15rem; }
.portal-main p { max-width: 70ch; }

/* identity, stats, notices */
.identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.identity-text { display: grid; gap: 2px; min-width: 0; }
.identity-text strong { font-size: 1.1rem; overflow-wrap: anywhere; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--violet-soft); color: var(--violet-dark); font-weight: 800; font-size: 1rem; display: grid; place-items: center; flex-shrink: 0; text-transform: uppercase; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.25rem; }
.avatar-home { border-radius: 14px; background: var(--purple); color: var(--gold-light); }
.portal-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.portal-stats .stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; display: grid; gap: 4px; text-decoration: none; color: var(--ink); }
.portal-stats .stat b { font-size: 1.7rem; letter-spacing: -.03em; line-height: 1.1; color: var(--purple); font-variant-numeric: tabular-nums; }
.portal-stats .stat span { font-size: .84rem; color: var(--muted); font-weight: 600; }
.portal-stats a.stat:hover { border-color: var(--violet-line); box-shadow: var(--shadow-sm); }
.notice-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--r-md); padding: 14px 18px; color: var(--warn-ink); }
.notice-row p { margin: 0; font-size: .92rem; }
.notice-row strong { color: var(--ink); }
.danger-zone { background: #fff; border: 1px solid var(--danger-line); border-radius: var(--r-lg); padding: 22px 24px; display: grid; gap: 10px; }
.danger-zone h2 { color: var(--danger); font-size: 1.1rem; }
.btn-danger { background: #fff; color: var(--danger); border: 1.5px solid var(--danger-line); }
.btn-danger:hover { background: var(--danger-bg); color: var(--danger); transform: none; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 750; background: var(--slate-bg); color: var(--slate-ink); border: 1px solid var(--slate-line); }
.status-pill.is-new, .status-pill.is-open { background: var(--violet-soft); color: var(--violet-dark); border-color: var(--violet-line); }
.status-pill.is-ok, .status-pill.is-accepted, .status-pill.is-confirmed { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-line); }
.status-pill.is-warn, .status-pill.is-pending { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.status-pill.is-danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-line); }

/* inbox (conversations, requests, visits) */
.inbox { list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.inbox-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; min-height: 72px; }
.inbox li:last-child .inbox-row { border-bottom: 0; }
.inbox-row:hover { background: var(--cream); }
.inbox-body { display: grid; gap: 3px; min-width: 0; }
.inbox-title { font-weight: 750; color: var(--ink); display: flex; align-items: center; gap: 8px; min-width: 0; }
.inbox-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-case { font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--muted); overflow-wrap: anywhere; }
.inbox-title-wrap span { white-space: normal; overflow-wrap: anywhere; }
.inbox-preview { color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-meta { display: grid; gap: 6px; justify-items: end; text-align: right; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--violet); flex-shrink: 0; }
.inbox-row.is-unread .inbox-title { color: var(--purple); }
.inbox-row.is-unread .inbox-preview { color: var(--ink-2); font-weight: 600; }

/* message thread */
.thread { display: grid; gap: 12px; }
.bubble { max-width: min(72%, 560px); padding: 12px 16px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid var(--line); overflow-wrap: anywhere; }
.bubble-mine { margin-left: auto; border-radius: 16px 16px 4px 16px; background: var(--violet-soft); border-color: var(--violet-line); }
.bubble-system { max-width: none; text-align: center; background: transparent; border: 0; color: var(--muted); font-size: .86rem; padding: 4px; }
.bubble time, .bubble .meta { display: block; margin-top: 6px; font-size: .8rem; color: var(--muted); }
.composer { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; display: grid; gap: 10px; }
.composer textarea { min-height: 84px; }
.composer-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.composer-actions .hint { font-size: .82rem; color: var(--muted); }

/* home cards (owner), case cards (partner) */
.home-cards, .case-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.home-card, .case-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.home-card:hover, .case-card:hover { border-color: var(--violet-line); box-shadow: var(--shadow-sm); }
.home-card h2, .home-card h3, .case-card h2, .case-card h3 { font-size: 1.1rem; line-height: 1.3; }
.home-card .card-link::after, .case-card .card-link::after { content: ""; position: absolute; inset: 0; }
.home-card .card-link, .case-card .card-link { color: var(--ink); text-decoration: none; }
.home-card .card-link:hover, .case-card .card-link:hover { color: var(--violet); }
.card-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; color: var(--ink-2); margin: 0; }
.card-facts b { color: var(--ink); }
.card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); }
.card-foot a, .card-foot form, .card-foot .btn { position: relative; z-index: 1; }
.todo-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.todo-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--tap); padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); font-weight: 650; }
.todo-list a:hover { border-color: var(--violet-line); color: var(--violet); }

/* empty states, key/value, timelines, slots */
.empty-state { background: #fff; border: 1px dashed var(--slate-line); border-radius: var(--r-lg); padding: 36px 24px; text-align: center; display: grid; gap: 10px; justify-items: center; color: var(--muted); }
.empty-state h2, .empty-state h3 { color: var(--ink); font-size: 1.1rem; }
.empty-state p { max-width: 46ch; }
.empty-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; }
.empty-icon svg { width: 24px; height: 24px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 0; font-size: .92rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; }
.timeline li { position: relative; padding: 0 0 16px 24px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--violet); border: 2px solid #fff; }
.timeline li:last-child { padding-bottom: 0; }
.timeline time { display: block; font-size: .82rem; color: var(--muted); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.slot { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; font-weight: 650; font-size: .9rem; cursor: pointer; }
.slot input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; }
.slot:has(input:checked) { border-color: var(--violet); background: var(--violet-soft); color: var(--violet-dark); }
.slot:focus-within { outline: 3px solid var(--violet); outline-offset: 2px; }

@media (max-width: 900px) {
  .portal-head-row { padding-top: 20px; flex-direction: column; align-items: stretch; gap: 12px; }
  .portal-actions .btn { width: 100%; }
  .portal-main { padding: 20px 0 64px; }
  .portal-grid { grid-template-columns: 1fr; }
  .inbox-row { grid-template-columns: 40px minmax(0, 1fr); padding: 12px 14px; }
  .inbox-meta { grid-column: 2; display: flex; gap: 10px; justify-items: start; text-align: left; }
  .bubble { max-width: 88%; }
  .home-cards, .case-cards { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dt { margin-top: 8px; }
  .portal-main p { max-width: none; }
  /* Polish round 3: on a rail-first page (a partner case) the compact case card leads on phones, then the main
     column (shortlist, request tracking), then the rest of the rail (the outcome form). */
  .rail-first { gap: 16px; }
  .rail-first > .portal-primary, .rail-first > .portal-rail { display: contents; }
  .rail-first > .portal-rail > .case-summary { order: -1; }
  .rail-first .case-summary .kv { grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; }
  .rail-first .case-summary .kv dt { margin-top: 0; }
}

/* Polish round 2: one slim notice line; a second line under an inbox row's preview; phone folds.
   A .phone-fold is rendered open and app.js closes it on phones. A list fold (.fold-list) hides its summary on
   desktop and its list joins the list above it; on phones the summary reads "Show all N" closed and "Show
   fewer" open. A card fold (.fold-card, owner editor cards) keeps its summary as the card heading: static on
   desktop, a tappable heading with a chevron on phones. */
.portal-main .notice-slim { padding: 10px 14px; font-size: .9rem; line-height: 1.5; }
.notice-slim a { font-weight: 700; }
.inbox-sub { color: var(--muted); font-size: .84rem; }
.phone-fold > summary { list-style: none; cursor: pointer; }
.stack-sm > .inbox + .fold-list { margin-top: -12px; }
.phone-fold > summary::-webkit-details-marker { display: none; }
.fold-list:not([open]) .fold-hide, .fold-list[open] .fold-show { display: none; }
.portal-main details.fold-card { display: block; }
.fold-card > .fold-body { margin-top: 16px; }
@media (min-width: 901px) {
  .fold-list > summary { display: none; }
  .inbox:has(+ .fold-list) { border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .fold-list > .inbox { border-top-left-radius: 0; border-top-right-radius: 0; }
  .fold-card > summary { cursor: default; pointer-events: none; }
}
@media (max-width: 900px) {
  .inbox:has(+ .fold-list) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .fold-list > summary { display: flex; align-items: center; justify-content: center; min-height: var(--tap); background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); color: var(--violet); font-weight: 700; font-size: .92rem; }
  .fold-list[open] > summary { border-radius: 0; }
  .fold-list > .inbox { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
  .fold-card > summary { min-height: var(--tap); flex-wrap: nowrap; }
  .fold-card > summary h2 { flex: 1; min-width: 0; }
  .fold-card > summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 2.5px solid var(--violet); border-bottom: 2.5px solid var(--violet); transform: rotate(45deg) translateY(-3px); transition: transform .15s; }
  .fold-card[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
}

/* Polish round 2: on the request page the Organization field shows only once "I'm a professional referrer" is
   chosen. Without :has() support the whole rule is dropped and the field stays visible; the server rules for
   the field are unchanged. */
.request-page #inquiry:has(input[name="role"]:checked):not(:has(input[name="role"][value="professional"]:checked)) .field:has(> input[name="organization"]) { display: none; }

/* Polish round 2: the sign-in band carries its reassurance line and the card sits closer under it. */
.page-band.band-tight { padding-bottom: 32px; }
.page-band.band-tight .lead { margin: 0; font-size: 1rem; }
.section-sm.section-tight { padding-top: 20px; }

/* List your property (A183: build free, publish as a Member) */
.lyp-hero { padding: 56px 0 60px; }
.lyp-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 20em; }
.lyp-hero h1 em { font-style: normal; color: var(--gold-light); }
.lyp-hero .lead { max-width: 40em; }
.lyp-hero .actions { margin-top: 10px; }
.lyp-hero-note { color: #e5d6ed; }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
.lyp-step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); display: grid; align-content: start; gap: 10px; }
.lyp-step p { color: var(--muted); line-height: 1.6; }
/* Billing terms sit directly under the two cards, as the pricing block's footer, same width and edge. */
.plan-terms { max-width: 900px; margin: 16px auto 0; padding: 20px 28px; background: #fff; border: 1px solid var(--line); border-radius: 19px; display: grid; gap: 8px; line-height: 1.6; color: var(--ink-2); }
.plan-terms-title { font-weight: 800; color: var(--purple); font-size: .95rem; }
.plan-note { color: var(--ink-2); }
.plan-terms ul { margin: 0; padding-left: 1.2rem; }
.lyp-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.lyp-paths > * { min-width: 0; }
.lyp-card-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 1024px) { .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .lyp-hero { padding: 40px 0 44px; }
  .steps-4, .lyp-paths { grid-template-columns: 1fr; }
  .lyp-hero .actions .btn, .lyp-card-actions .btn { width: 100%; }
}

/* QA 2026-11-02: footer language links were 2:1 on the dark footer. */
.site-footer .language-switch a { color: var(--gold-light); }
.site-footer .language-switch a:hover { color: #fff; }
.site-footer .language-switch span { color: #d6c9df; }
/* Polish 2026-11-03: phone tab strip. It bleeds to the screen edges but its first label starts at the
   16px page gutter. The right edge fades under a chevron while more tabs sit off-screen; once scrolled,
   the left edge fades too. Without JS the strip still scrolls and shows the right fade and chevron;
   app.js sets is-scrolled / is-end from the real scroll position and hides what does not apply. */
@media (max-width: 900px) {
  .portal-tabs-wrap { margin-inline: -16px; }
  .portal-tabs { padding-inline: 16px 52px; scroll-padding-inline: 16px 52px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 72px), rgba(0, 0, 0, .15) calc(100% - 20px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 72px), rgba(0, 0, 0, .15) calc(100% - 20px), transparent); }
  .portal-tabs a:first-child { padding-left: 0; }
  .portal-tabs-wrap.is-scrolled .portal-tabs {
    -webkit-mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, .2) 8px, #000 26px, #000 calc(100% - 72px), rgba(0, 0, 0, .15) calc(100% - 20px), transparent);
    mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, .2) 8px, #000 26px, #000 calc(100% - 72px), rgba(0, 0, 0, .15) calc(100% - 20px), transparent); }
  .portal-tabs-wrap.is-end .portal-tabs { -webkit-mask-image: none; mask-image: none; }
  .portal-tabs-wrap.is-scrolled.is-end .portal-tabs {
    -webkit-mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, .2) 8px, #000 26px);
    mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, .2) 8px, #000 26px); }
  .portal-tabs-more { display: grid; place-items: center; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid var(--violet-line); color: var(--violet); box-shadow: var(--shadow-sm); pointer-events: none; }
  .portal-tabs-more svg { width: 16px; height: 16px; }
  .portal-tabs-wrap.is-end .portal-tabs-more { display: none; }
}

/* QA 2026-11-03 P11: under 480 px the sort select cannot share a row with Filters and List/Map without clipping its labels. */
@media (max-width: 480px) {
  .results-bar-inner { flex-wrap: wrap; }
  .bar-sort { flex: 1 1 100%; order: 11; }
}

/* A183: the owner preview of a home that is not live says draft, never Member or paid. */
.badge-draft { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }

/* QA 2026-11-03 U10: tally numbers never split across lines; the label wraps instead. */
.ticks li { align-items: baseline; }
.ticks li .num { white-space: nowrap; flex: none; }

/* QA 2026-11-03 P14: a place label near the right edge sits left of its dot instead of running off the map. */
.map-place.is-flipped .map-place-inner { flex-direction: row-reverse; transform: translateX(calc(-100% + 18px)); }

/* Polish r2, public pages. */
/* A home without approved photos: a small tinted thumbnail that says so (never a stock image). */
.listing-thumb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; border-radius: 12px; background: linear-gradient(135deg, #eee5f4, #e2d5e9); color: #8f73a8; text-align: center; }
.listing-thumb svg { width: 30px; height: 30px; flex: none; }
.listing-thumb-note { font-size: .75rem; font-weight: 700; line-height: 1.2; color: var(--ink-2); }
/* Grid cards (home page, nearby homes): badges on the left, the thumbnail on the right. */
.listing-photo-empty { height: auto; background: transparent; padding: 14px 16px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.listing .listing-photo-empty .badges { position: static; order: -1; flex: 1 1 auto; min-width: 0; }
.listing-photo-empty .badge { box-shadow: none; white-space: normal; }
.listing-photo-empty .listing-thumb { flex: none; width: 124px; height: 76px; }
/* Results cards: a narrow column, badges above a small thumbnail. */
.results-cards .listing-nophoto { grid-template-columns: 168px minmax(0, 1fr) 196px; }
.results-cards .listing-photo-empty { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 10px; min-height: 0; height: auto; padding: 16px 0 16px 16px; }
.results-cards .listing-photo-empty .listing-thumb { width: 100%; height: 84px; }
.results-cards .listing-photo-empty .badges { flex: none; }
@media (max-width: 1240px) { .results-cards .listing-nophoto { grid-template-columns: 160px minmax(0, 1fr); } }
@media (max-width: 900px) {
  .results-cards .listing-photo-empty { flex-direction: row; align-items: flex-start; height: auto; padding: 14px 16px 0; }
  .results-cards .listing-photo-empty .badges { flex: 1 1 auto; }
  .results-cards .listing-photo-empty .listing-thumb { width: 120px; height: 64px; }
  .results-cards .listing-photo-empty .listing-thumb svg { width: 24px; height: 24px; }
}
/* Desktop results: the map column fills the row and the map sticks inside it, so the map ends with the
   list instead of running on below it. */
@media (min-width: 901px) {
  .results-body > .results-map { align-self: stretch; position: static; }
  .results-map .map-card { position: sticky; top: calc(var(--site-header-height, 72px) + var(--results-bar-height, 71px) + 20px); }
}
/* Unclaimed cards: the home's type and house under the shared public name. */
.listing-title-detail { display: block; margin-top: 2px; font-size: .9rem; font-weight: 650; letter-spacing: 0; color: var(--ink-2); }
/* Member listing: the photo slot under the title says plainly when there are no photos yet. */
.photo-empty .listing-thumb { flex-direction: row; gap: 12px; height: 96px; border-radius: var(--r-lg); }
.photo-empty .listing-thumb svg { width: 34px; height: 34px; }
.photo-empty .listing-thumb-note { font-size: .92rem; }
/* The request form sits below the details on narrower screens; a button under the title jumps to it. */
.detail-jump { display: none; }
@media (max-width: 1024px) { .detail-jump { display: block; } }
@media (max-width: 900px) {
  .detail-jump .btn { width: 100%; color: var(--gold-light); min-height: 48px; }
  .photo-empty .listing-thumb { height: 72px; }
}
/* Member pricing terms: body size, the three billing periods as one row of three. */
.plan-terms { font-size: 1rem; gap: 12px; }
.plan-terms-title { font-size: 1.05rem; }
.plan-terms ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.plan-terms li { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; line-height: 1.5; }
@media (max-width: 900px) {
  .plan-terms { padding: 18px 16px; }
  .plan-terms ul { grid-template-columns: 1fr; gap: 0; }
  .plan-terms li { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0; }
  .plan ul { line-height: 1.5; display: grid; gap: 8px; }
}

/* Polish r3: generated site imagery (public/img/site, src/views/site-images.js). Editorial scenes only,
   never on a listing card or listing page. Every image carries its intrinsic width and height. */
.hero { position: relative; }
.hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
.hero-art picture, .hero-art img { display: block; width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: center; }
/* The photo fades in from the plum band (mask) under a plum tint, so the white and gold headline on the
   left sits on plum, never on the photo, and the band has no seam. */
.hero-art::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(34, 11, 58, .7) 0%, rgba(46, 15, 74, .4) 50%, rgba(56, 18, 87, .22) 100%),
  linear-gradient(0deg, rgba(26, 9, 45, .55) 0%, rgba(26, 9, 45, 0) 40%); }
.hero-text, .hero-card, .hero-more { position: relative; z-index: 1; }
@media (max-width: 900px) {
  .hero-inner { grid-template-areas: "text" "card" "art" "more"; }
  .hero-art { position: relative; grid-area: art; width: auto; height: 180px; border-radius: var(--r-lg); overflow: hidden; -webkit-mask-image: none; mask-image: none; }
  .hero-art::after { background: linear-gradient(0deg, rgba(34, 11, 58, .45) 0%, rgba(34, 11, 58, .08) 60%); }
}

.type-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.type-tile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--purple-2); color: #fff; text-decoration: none; box-shadow: var(--shadow-sm); }
.type-tile picture, .type-tile img { display: block; width: 100%; height: 100%; }
.type-tile img { object-fit: cover; }
.type-tile-foot { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 48px 14px 14px;
  background: linear-gradient(0deg, rgba(26, 9, 45, .94) 0%, rgba(38, 11, 70, .82) 45%, rgba(38, 11, 70, 0) 100%); }
.type-tile-name { font-weight: 800; font-size: 1rem; line-height: 1.25; color: #fff; }
.type-tile-count { font-size: .86rem; color: var(--gold-light); font-weight: 700; }
.type-tile:hover .type-tile-name, .type-tile:focus-visible .type-tile-name { text-decoration: underline; }
.type-tile:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.type-tiles-source { text-align: center; max-width: 70ch; margin-inline: auto; }
/* Housing types beyond the tiles: a wrapping list of links with counts. */
.type-more { text-align: center; }
.type-more-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.type-more-list a { font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .type-tile img { transition: transform .25s ease; }
  .type-tile:hover img { transform: scale(1.03); }
}
@media (max-width: 900px) {
  /* Three over two: the last two tiles share the second row instead of leaving an orphan. */
  .type-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .type-tiles li { grid-column: span 2; }
  .type-tiles li:nth-child(n+4) { grid-column: span 3; }
  .type-tiles li:nth-child(n+4) .type-tile { aspect-ratio: 3 / 2; }
}
@media (max-width: 600px) {
  .type-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .type-tiles li, .type-tiles li:nth-child(n+4) { grid-column: auto; }
  .type-tile, .type-tiles li:nth-child(n+4) .type-tile { aspect-ratio: 1 / 1; }
  .type-tiles li:last-child { grid-column: 1 / -1; }
  .type-tiles li:last-child .type-tile { aspect-ratio: 2 / 1; }
}

/* Page headers. On a dark band the scene fades in on the right, beside the title (the band's text
   column narrows so it never sits on the photo); phones get a 140 px strip under the band's text. */
.page-band.has-art { position: relative; overflow: hidden; }
.has-art > .wrap { position: relative; z-index: 1; }
.has-art > .wrap > * { max-width: 620px; }
.band-art { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 50%); mask-image: linear-gradient(90deg, transparent 0%, #000 50%); }
.band-art picture, .band-art img, .page-banner picture, .page-banner img { display: block; width: 100%; height: 100%; }
.band-art img, .page-banner img { object-fit: cover; }
.band-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(34, 11, 58, .6) 0%, rgba(56, 18, 87, .25) 100%); }
.page-banner { aspect-ratio: 3 / 1; max-height: 240px; width: 100%; border-radius: var(--r-lg); overflow: hidden; background: var(--violet-soft); }
@media (max-width: 900px) {
  .has-art > .wrap > * { max-width: none; }
  .band-art { position: relative; width: auto; height: 140px; margin: 24px 16px 0; border-radius: var(--r-lg); overflow: hidden; -webkit-mask-image: none; mask-image: none; }
  .band-art::after { background: linear-gradient(0deg, rgba(34, 11, 58, .35) 0%, rgba(34, 11, 58, 0) 60%); }
  .page-banner { max-height: 140px; }
}

/* Empty-state art: 160 px, in the icon's place. Search keeps its copy left-aligned, so the art aligns with it. */
/* The helper puts the class on the <img> itself. */
.empty-art { display: block; width: 160px; max-width: 100%; height: auto; border-radius: var(--r-lg); }
.results-empty-art { margin-bottom: 4px; }
@media (max-width: 600px) { .results-empty-art { width: 120px; } }

/* ==========================================================================================
   Design pass 2026-11-09 (design/DIRECTION-2026-11-09.md). Marvin's tokens; new components only.
   ========================================================================================== */

/* Record card: an unclaimed home as a directory record. Solid, quiet, one line of facts per row;
   the rate sits where a Member's rate does. Replaces the dashed photo-less card. */
.listing.record { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 14px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: none; }
.listing.record:hover { border-color: var(--violet-line); box-shadow: var(--shadow-sm); }
.record-mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--slate-bg); color: #8d829b; }
.record-mark svg { width: 24px; height: 24px; }
.record-mark.tone-1 { background: #f6efe0; color: #a88a54; }
.record-mark.tone-2 { background: #e9edf5; color: #7d8daa; }
.record-mark.tone-3 { background: #e6f2ed; color: #6f9d8c; }
.record-mark.tone-4 { background: #f5e9ea; color: #a87d84; }
/* The body is a small grid: the label, the place and the distance share one row; tags and the source line
   each take their own. On phones the distance drops to its own row, and when a card has both a distance and
   tags the label sits with the tags instead, so no card grows past four rows under its title. */
.listing.record .listing-body { padding: 0; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 6px 12px; }
.listing.record .listing-body > * { grid-column: 1 / -1; min-width: 0; }
.listing.record .listing-title { order: 1; font-size: 1.06rem; line-height: 1.3; }
.listing.record .listing-title-detail { font-size: .9rem; font-weight: 600; color: var(--muted); }
.listing.record .listing-body > .badges { order: 2; grid-column: 1; }
.listing.record .record-where { order: 2; grid-column: 2 / -1; font-size: .9rem; color: var(--ink-2); }
.listing.record .listing-body:has(> .listing-distance) > .record-where { grid-column: 2; }
.listing.record .listing-body > .listing-distance { order: 2; grid-column: 3; font-size: .9rem; font-weight: 650; }
.listing.record .badge-unclaimed { padding: 3px 10px; font-size: .78rem; }
.listing.record .listing-body > .record-tags { order: 3; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.record-actions .btn { white-space: nowrap; }
.record-tags li { max-width: 100%; padding: 3px 10px; border-radius: var(--r-pill); background: var(--cream); border: 1px solid var(--line); font-size: .78rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing.record .listing-source { order: 5; }
@media (max-width: 600px) {
  .listing.record .listing-body { gap: 5px 10px; }
  .listing.record .listing-body:has(> .listing-distance) > .record-where { grid-column: 2 / -1; }
  .listing.record .listing-body > .listing-distance { order: 3; grid-column: 1 / -1; }
  .listing.record .listing-body > .record-tags { order: 4; }
  .listing.record .listing-body:has(> .listing-distance):has(> .record-tags) > .record-where { grid-column: 1 / -1; }
  .listing.record .listing-body:has(> .listing-distance):has(> .record-tags) > .badges { order: 4; align-self: start; }
  .listing.record .listing-body:has(> .listing-distance):has(> .record-tags) > .record-tags { grid-column: 2 / -1; }
}
.listing.record .listing-source ~ .tiny { order: 6; }
.listing.record .listing-source a { position: relative; z-index: 1; font-weight: 600; color: var(--muted); }
.listing.record .listing-source a:hover { color: var(--violet); }
.listing.record .listing-side { grid-column: 1 / -1; padding: 12px 0 0; margin-top: 12px; border-top: 1px solid var(--line); border-left: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.listing.record .listing-foot { margin: 0; padding: 0; border: 0; flex: 0 1 auto; display: block; }
.record-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; margin-left: auto; }
.record-actions .save-form { display: flex; }
.record-actions .save-btn { min-width: var(--tap); padding: 6px; }
.record-actions .save-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.listing.record .listing-side .btn { width: auto; }
.record-rate { display: grid; gap: 0; line-height: 1.25; }
.record-rate .price { font-size: 1.12rem; }
@media (min-width: 901px) {
  .results-cards .listing.record { grid-template-columns: 44px minmax(0, 1fr) 222px; align-items: start; }
  .results-cards .listing.record .listing-side { grid-column: auto; margin: 0; padding: 0 0 0 16px; border-top: 0; border-left: 1px solid var(--line); align-self: stretch; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: center; gap: 10px; }
  .results-cards .listing.record .record-rate { text-align: right; }
  .results-cards .listing.record .record-actions { margin-left: 0; justify-content: flex-end; }
  .results-cards .listing.record .record-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 900px) {
  .results-cards .listing.record { display: grid; padding: 14px 16px; }
  .results-cards .listing.record .listing-body { padding: 0; }
  .results-cards .listing.record .listing-side { padding: 10px 0 0; }
}
/* The note ahead of the first record card. */
.record-note { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; border-radius: var(--r-md); background: linear-gradient(180deg, #fff, var(--violet-soft)); border: 1px solid var(--violet-line); }
.record-note-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--purple); color: var(--gold-light); }
.record-note-icon svg { width: 20px; height: 20px; }
.record-note strong { display: block; font-size: 1rem; color: var(--ink); }
.record-note p { margin: 4px 0 0; font-size: .9rem; line-height: 1.55; color: var(--ink-2); }
.record-note a { font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) { .record-note { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; } .record-note-icon { display: none; } }

.unclaimed-head-links a.detail-jump { display: none; }
/* jump-only: no open-beds link beside the phone-only button, so the row has nothing to show on wide screens. */
.unclaimed-head-links.jump-only { display: none; }
@media (max-width: 1024px) { .unclaimed-head-links.jump-only { display: flex; } .unclaimed-head-links.jump-only a.detail-jump { margin-bottom: 0; } }
@media (max-width: 1024px) { .unclaimed-head-links a.detail-jump { display: inline-flex; width: 100%; min-height: 48px; margin-bottom: 6px; background: var(--purple); color: var(--gold-light); } }

/* Home: the headline holds three lines beside the search card; a band of real counts closes the hero. */
@media (min-width: 901px) { .hero h1 { font-size: clamp(2.3rem, 4.3vw, 3.25rem); } }
.stat-band { background: #fff; border-bottom: 1px solid var(--line); padding: 0 0 14px; }
.stat-strip { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, auto)) minmax(0, 1.5fr); gap: 0; align-items: stretch; }
.stat-strip > div { padding: 22px 28px 14px; display: grid; gap: 2px; align-content: center; border-left: 1px solid var(--line); }
.stat-strip > div:first-child { border-left: 0; padding-left: 0; }
.stat-strip dd { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; color: var(--purple); }
.stat-strip dt { font-size: .9rem; font-weight: 600; color: var(--muted); }
.stat-strip .stat-strip-note dd { font-size: 1.1rem; letter-spacing: -.01em; color: var(--ink); }
.stat-strip .stat-strip-note dt { font-weight: 500; line-height: 1.45; max-width: 34ch; }
.stat-source { margin: 0; }
@media (max-width: 900px) {
  .stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-strip > div { padding: 16px 12px 10px; }
  .stat-strip > .stat-strip-note { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 12px 0; }
  .stat-strip .stat-strip-note dt { max-width: none; }
  .stat-strip dt { font-size: .8rem; }
}
/* Home: owner and partner splits always have a second column. Until a Member home exists to show, it is the
   page's own editorial scene, never a mock listing. */
.split-art { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--violet-soft); box-shadow: 0 20px 50px rgba(30, 11, 50, .1); }
.split-art picture, .split-art img { display: block; width: 100%; height: 100%; }
.split-art img { object-fit: cover; }
@media (max-width: 900px) { .split-art { aspect-ratio: 16 / 9; } }
/* Home: more housing types and the states as tidy chips and a ruled grid instead of ragged link runs. */
.type-more-list { gap: 8px; margin-top: 12px; }
.type-more-list li { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 4px 6px 4px 14px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font-size: .88rem; }
.type-more-list a { text-decoration: none; color: var(--purple); font-weight: 700; }
.type-more-list a:hover { text-decoration: underline; }
.type-more-list .num { padding: 3px 9px; border-radius: var(--r-pill); background: var(--violet-soft); font-size: .78rem; font-weight: 700; color: var(--violet-dark); white-space: nowrap; }
.state-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 28px; justify-content: stretch; max-width: 1040px; margin-inline: auto; }
.state-chips a { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: var(--tap); padding: 6px 4px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.state-chips a:hover { color: var(--violet); border-color: var(--violet); }
.state-chips .num { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .state-chips { grid-template-columns: 1fr 1fr; gap: 0 18px; } }

/* Request confirmation: what happens next, the first step already ticked. */
.next-steps { list-style: none; margin: 8px 0 4px; padding: 18px 20px; width: 100%; max-width: 560px; justify-self: center; text-align: left; display: grid; gap: 0; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-md); }
.next-steps li { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding-bottom: 16px; }
.next-steps li:last-child { padding-bottom: 0; }
.next-steps li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--violet-line); }
.next-step-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--violet-line); color: var(--violet-dark); font-weight: 800; font-size: .88rem; }
.next-steps .is-done .next-step-dot { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.next-step-dot svg { width: 16px; height: 16px; }
.next-steps strong { display: block; color: var(--ink); line-height: 1.35; padding-top: 4px; }
.next-steps p { margin: 2px 0 0; font-size: .9rem; line-height: 1.5; color: var(--ink-2); }

/* Listing title row (Member and unclaimed): the name and its one-line summary on the left, Save and
   Report as quiet actions on the right; they wrap under the title on phones. */
.title-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 20px; }
.title-main { flex: 1 1 320px; min-width: 0; display: grid; gap: 8px; }
.title-main .lead { margin: 0; }
.title-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-left: auto; }
.title-actions .report-link { font-size: .88rem; color: var(--muted); }
.title-actions .report-link:hover { color: var(--violet); }

/* Unclaimed listing page: a record sheet. White, solid, with the facts as one ruled strip. */
.unclaimed-head { background: #fff; border: 1px solid var(--line); border-style: solid; border-radius: var(--r-lg); padding: 28px; gap: 18px; box-shadow: var(--shadow-sm); }
.unclaimed-head .title-main h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.record-mark-lg { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.record-mark-lg svg { width: 34px; height: 34px; }
.record-facts { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--cream); overflow: hidden; }
.record-facts > div { padding: 14px 16px; display: grid; gap: 4px; align-content: start; border-left: 1px solid var(--line); }
.record-facts > div:first-child { border-left: 0; }
.record-facts dt { font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.record-facts dd { margin: 0; font-size: 1.02rem; font-weight: 750; color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; }
.record-facts dd.is-blank { font-weight: 500; color: var(--muted); }
.record-source { color: var(--muted); max-width: 86ch; }
.unclaimed-head .unclaimed-head-links { margin-top: -8px; }
.unclaimed-head .unclaimed-head-links a { font-weight: 700; }
.record-how h2 { font-size: 1.3rem; }
.record-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.record-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.record-steps strong { display: block; color: var(--ink); }
.record-steps p { margin: 2px 0 0; font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
/* The owner's box comes last and stays quiet: this page is for the person looking for a bed. */
.unclaimed-claim { border-left: 1px solid var(--line); background: var(--cream); gap: 10px; }
.unclaimed-claim h2 { margin-top: 0; font-size: 1.2rem; }
@media (max-width: 1024px) {
  .record-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .record-facts > div:nth-child(4) { border-left: 0; }
  .record-facts > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .unclaimed-head + .detail-layout > .unclaimed-main > .unclaimed-claim { order: 2; }
}
@media (max-width: 700px) { .record-steps { grid-template-columns: 1fr; gap: 14px; } }
@media (max-width: 600px) {
  .unclaimed-head { padding: 18px 16px; gap: 14px; }
  .record-mark-lg { width: 48px; height: 48px; border-radius: 12px; }
  .record-mark-lg svg { width: 26px; height: 26px; }
  .unclaimed-head .title-row { gap: 10px 14px; }
  .unclaimed-head .title-main { flex-basis: 200px; }
  .title-actions { margin-left: 0; width: 100%; }
  .record-facts { grid-template-columns: 1fr 1fr; }
  .record-facts > div { border-left: 0; border-top: 1px solid var(--line); padding: 12px 14px; }
  .record-facts > div:nth-child(even) { border-left: 1px solid var(--line); }
  .record-facts > div:first-child { grid-column: 1 / -1; border-top: 0; }
  .record-facts > div:nth-child(2), .record-facts > div:nth-child(4) { border-left: 0; }
  .record-facts > div:nth-child(3), .record-facts > div:nth-child(5) { border-left: 1px solid var(--line); }
}
