/* ==========================================================================
   RentRadius — app.css
   The whole stylesheet. One request, no framework, no build step.
   Token contract: CLAUDE.md §4. Never override these values inline.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts — self-hosted woff2, latin subset. No Google Fonts CDN (§3).
   Files go in assets/fonts/. Until they exist the fallback stack renders
   correctly, so the site is never blocked on them.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}

/* --------------------------------------------------------------------------
   2. Tokens (§4.1–4.3)
   -------------------------------------------------------------------------- */

:root {
  /*
   * Colour. Surfaces are very slightly blue-tinted rather than neutral grey —
   * pure #F4F6F8 next to white reads as dirty; a hint of the brand hue makes
   * the whole page feel intentional.
   */
  --ink: #0E141B;
  --ink-soft: #253241;
  --slate: #5A6B7C;
  --slate-light: #8494A3;
  --paper: #ffffff;
  --mist: #F5F7FA;
  --mist-deep: #EDF1F6;
  --line: #E4E9EF;
  --line-soft: #EFF3F7;

  --brand: #0F4C81;
  --brand-hi: #1668B8;
  --brand-tint: #EAF2FA;

  --verified: #0E9F6E;
  --verified-tint: #E7F6F0;
  --flag: #E8871E;
  --flag-tint: #FDF2E5;

  /* Type */
  --font-display: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Mobile-first scale; desktop overrides at 900px */
  --fs-h1: 1.875rem;   /* 30 */
  --fs-h2: 1.375rem;   /* 22 */
  --fs-h3: 1.0625rem;  /* 17 */
  --fs-body: 0.9375rem;/* 15 */
  --fs-meta: 0.8125rem;/* 13 */
  --fs-stamp: 0.6875rem;

  --lh-display: 1.12;
  --lh-body: 1.55;

  /* Layout — tightened. Generous whitespace reads as empty on a phone. */
  --wrap: 1200px;
  --gutter: 16px;
  --rhythm: 40px;

  --r-card: 14px;
  --r-btn: 10px;
  --r-stamp: 5px;
  --r-pill: 999px;

  --tap: 46px;

  /*
   * Layered shadows. One soft ambient layer plus a tight contact layer reads
   * as a real object; a single blurred drop reads as a 2010 web page.
   */
  --shadow-sm: 0 1px 2px rgba(14, 20, 27, 0.05);
  --shadow-card: 0 1px 2px rgba(14, 20, 27, 0.04), 0 6px 16px -6px rgba(14, 20, 27, 0.10);
  --shadow-lift: 0 2px 4px rgba(14, 20, 27, 0.05), 0 14px 30px -10px rgba(14, 20, 27, 0.16);
  --shadow-sheet: 0 -2px 8px rgba(14, 20, 27, 0.06), 0 -18px 50px -12px rgba(14, 20, 27, 0.28);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.28, 0.64, 1);
}

@media (min-width: 600px) {
  :root {
    --fs-h1: 2.375rem;
    --fs-h2: 1.625rem;
    --fs-body: 1rem;
    --fs-meta: 0.875rem;
    --rhythm: 56px;
  }
}

@media (min-width: 900px) {
  :root {
    --fs-h1: 3rem;
    --fs-h2: 1.875rem;
    --fs-h3: 1.1875rem;
    --fs-body: 1.0625rem;
    --fs-meta: 0.9375rem;
    --fs-stamp: 0.75rem;
    --gutter: 24px;
    --rhythm: 72px;
  }
}

/* --------------------------------------------------------------------------
   3. Reset + base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Room for the sticky mobile bar (§9) */
  padding-bottom: env(safe-area-inset-bottom);
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: var(--lh-display);
  text-wrap: balance;
  color: var(--ink);
}

/* Optical tracking: large display type needs negative tracking to look even,
   small headings need almost none, or they read as cramped. */
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.032em; }
h2 { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.024em; }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.012em; }

p { text-wrap: pretty; }

::selection { background: var(--brand); color: var(--paper); }

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--brand-hi); }

/* Visible focus everywhere. Non-negotiable for the accessibility score. */
:focus-visible {
  outline: 2px solid var(--brand-hi);
  outline-offset: 2px;
  border-radius: 2px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* 16px minimum on inputs so iOS never zooms (§9) */
input,
select,
textarea { font-size: max(16px, 1rem); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 0 0 var(--r-btn) 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--rhythm); }
.section--mist { background: var(--mist); }

/* A hairline above a tinted band stops it floating free of the content above. */
.section--mist { box-shadow: inset 0 1px 0 var(--line-soft); }

.section__head { margin-bottom: 20px; max-width: 62ch; }
.section__head p { color: var(--slate); margin-top: 6px; font-size: var(--fs-meta); }

@media (min-width: 900px) { .section__head { margin-bottom: 26px; } }

/* Card grid: 1-up mobile, 2-up tablet, 3-up desktop. Never a carousel (§4.3) */
.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.stack > * + * { margin-top: var(--stack-gap, 16px); }

.hairline { border: 0; border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   5. The Stamp — the signature element (§4.4)
   -------------------------------------------------------------------------- */

.stamp {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-stamp);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  border-radius: var(--r-stamp);
  line-height: 1.35;
}

.stamp__rule {
  flex: 0 0 auto;
  width: 3px;
  align-self: stretch;
  min-height: 1.1em;
  border-radius: 2px;
  background: var(--verified);
}

/* Past 21 days it greys out and reads RE-CHECKING (§4.4) */
.stamp--rechecking { color: var(--slate); }
.stamp--rechecking .stamp__rule { background: var(--slate); }

.stamp--expired { color: var(--slate); }
.stamp--expired .stamp__rule { background: var(--line); }

/* --------------------------------------------------------------------------
   6. Price (§4.2) — tabular figures so columns align
   -------------------------------------------------------------------------- */

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

.price__figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.price__unit {
  color: var(--slate);
  font-size: 0.7em;
}

.price__deposit {
  color: var(--slate);
  font-size: var(--fs-meta);
  margin-left: 2px;
}
.price__deposit::before {
  content: "·";
  margin-right: 6px;
}

/* --------------------------------------------------------------------------
   7. Chips
   -------------------------------------------------------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: var(--fs-meta);
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  white-space: nowrap;
}

/* Scarcity only, max one per card, only when the data field is true (§4.1) */
.chip--flag {
  border-color: color-mix(in srgb, var(--flag) 35%, transparent);
  background: color-mix(in srgb, var(--flag) 10%, var(--paper));
  color: color-mix(in srgb, var(--flag) 75%, var(--ink));
}

.chip--count { color: var(--slate); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 11px 18px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.16s var(--ease),
    border-color 0.16s var(--ease),
    color 0.16s var(--ease),
    box-shadow 0.16s var(--ease),
    transform 0.08s var(--ease);
}

/* A press that actually depresses. Cheap, and it makes taps feel answered. */
.btn:active { transform: translateY(1px) scale(0.995); }

.btn .icon { width: 18px; height: 18px; }

.btn--primary {
  background: var(--brand);
  color: var(--paper);
  box-shadow: 0 1px 2px rgba(15, 76, 129, 0.24), 0 6px 14px -6px rgba(15, 76, 129, 0.44);
}
.btn--primary:hover {
  background: var(--brand-hi);
  color: var(--paper);
  box-shadow: 0 2px 4px rgba(22, 104, 184, 0.26), 0 10px 20px -8px rgba(22, 104, 184, 0.5);
}

/* Green means exactly one thing: trustworthy / talk to them (§4.1) */
.btn--whatsapp {
  background: var(--verified);
  color: var(--paper);
  box-shadow: 0 1px 2px rgba(14, 159, 110, 0.22), 0 6px 14px -6px rgba(14, 159, 110, 0.4);
}
.btn--whatsapp:hover {
  background: color-mix(in srgb, var(--verified) 88%, black);
  color: var(--paper);
  box-shadow: 0 2px 4px rgba(14, 159, 110, 0.24), 0 10px 20px -8px rgba(14, 159, 110, 0.46);
}

.btn--outline {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--outline:hover { border-color: var(--slate-light); color: var(--ink); }

.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 7px 14px; font-size: var(--fs-meta); }

/* --------------------------------------------------------------------------
   9. App shell — top bar
   Mobile is the target. Desktop expands this, not the reverse.
   -------------------------------------------------------------------------- */

.icon { width: 22px; height: 22px; flex: 0 0 auto; }

.appbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(170%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

.appbar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}
@media (min-width: 900px) { .appbar__inner { min-height: 68px; gap: 20px; } }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}
.logo:hover { color: var(--ink); }
.logo__mark { color: var(--brand); flex: 0 0 auto; }
.logo__word strong { color: var(--brand); font-weight: 800; }

/* City switcher — the app's sense of place */
.citypick { position: relative; margin-left: auto; }
@media (min-width: 900px) { .citypick { margin-left: 0; } }

.citypick__btn,
.citypick__static {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.citypick__static { margin-left: auto; cursor: default; }
@media (min-width: 900px) { .citypick__static { margin-left: 0; } }

.citypick__btn::-webkit-details-marker { display: none; }
.citypick__btn .icon { width: 17px; height: 17px; color: var(--brand); }
.citypick__btn .icon--chevron { width: 15px; height: 15px; color: var(--slate); }
.citypick__static .icon { width: 17px; height: 17px; color: var(--brand); }

.citypick__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 180px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  z-index: 50;
}
.citypick__menu a {
  display: block;
  padding: 11px 12px;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-meta);
}
.citypick__menu a:hover { background: var(--mist); }
.citypick__menu a[aria-current="true"] { color: var(--brand); font-weight: 600; }

/* Desktop nav — hidden on mobile, where the tab bar navigates instead */
.nav { display: none; }
@media (min-width: 900px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
  }
  .nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: var(--fs-meta);
    font-weight: 500;
  }
  .nav a:hover { color: var(--brand); }
}

.appbar__cta { display: none; }
@media (min-width: 900px) { .appbar__cta { display: inline-flex; } }

.btn--sm { min-height: 40px; padding: 8px 16px; font-size: var(--fs-meta); }

/* --------------------------------------------------------------------------
   10. Listing card (§8.2) — built once, used everywhere
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  /* No entrance animation — content must be instantly readable (§4.5).
     Hover lift only, and only where a pointer exists. */
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

@media (hover: hover) {
  .card:hover {
    border-color: color-mix(in srgb, var(--brand) 22%, var(--line));
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
  }
  .card:hover .card__media img { transform: scale(1.035); }
}

.card:focus-within {
  border-color: var(--brand-hi);
  box-shadow: var(--shadow-lift);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--mist) 0%, var(--mist-deep) 100%);
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

/* A soft scrim under the chips so they stay legible on a pale photo. */
.card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(14, 20, 27, 0.34), transparent);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  pointer-events: none;
}
.card:has(.card__chips) .card__media::after { opacity: 1; }

.card__chips {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  display: flex;
  gap: 6px;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px 14px 12px;
  flex: 1;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.28;
  letter-spacing: -0.014em;
  /* Two lines maximum — a runaway title wrecks a grid row. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Whole card is one link, tap target >= 48px (§8.2) */
.card__title a {
  color: inherit;
  text-decoration: none;
}
.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card__meta {
  color: var(--slate);
  font-size: var(--fs-meta);
}

.card__amenities {
  color: var(--slate);
  font-size: var(--fs-meta);
}

.card__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   11. The radius divider (§6.3)
   Own-area results, then a VISIBLE break. Never silently mix.
   -------------------------------------------------------------------------- */

.radius-break {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-block: 36px 24px;
}
.radius-break::before,
.radius-break::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.radius-break__text {
  font-family: var(--font-mono);
  font-size: var(--fs-stamp);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  text-align: center;
}
.radius-break__text strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   12. App shell — bottom bars
   Contextual, like a real app: tabs while browsing, contact actions on a
   listing. Both respect the iOS home indicator.
   -------------------------------------------------------------------------- */

.tabbar,
.actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  backdrop-filter: saturate(170%) blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}

/* --- Navigation tabs --- */
.tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.tabbar__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 56px;
  padding: 7px 4px;
  color: var(--slate);
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.tabbar__tab:hover { color: var(--ink); }
.tabbar__tab[aria-current="page"] { color: var(--brand); }

.tabbar__icon { position: relative; display: block; }
.tabbar__tab .icon { width: 23px; height: 23px; }
.tabbar__tab[aria-current="page"] .icon { stroke-width: 2.1; }

.tabbar__badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  line-height: 17px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* --- Contact actions (listing detail) --- */
.actionbar {
  display: flex;
  gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
}
.actionbar__primary { flex: 1 1 auto; }
.actionbar__save {
  flex: 0 0 auto;
  width: var(--tap);
  padding-inline: 0;
  background: var(--paper);
}
.actionbar__save[aria-pressed="true"] {
  border-color: var(--verified);
  color: var(--verified);
}
.actionbar__save[aria-pressed="true"] .icon { fill: currentColor; }

/* Desktop navigates by the top nav; the bottom bars are a mobile pattern. */
@media (min-width: 900px) {
  .tabbar { display: none; }

  /* On a browse page the bottom bar is just "Filters", which desktop already
     shows inline. Keeping it would cover the results it exists to reveal. */
  .rr-browse .actionbar { display: none; }

  .actionbar {
    position: sticky;
    bottom: 16px;
    max-width: var(--wrap);
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-card);
  }
}

/*
 * Reserve room for the bottom bar so it never covers the last row of content.
 * Applied to the shell rather than the footer, because on short pages the
 * footer is not what sits under the bar.
 */
@media (max-width: 899px) {
  .rr-app { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* --- Card save button --- */
.card__save {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px);
  color: var(--ink);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}
.card__save:hover { transform: scale(1.06); }
.card__save[aria-pressed="true"] { color: var(--verified); }
.card__save[aria-pressed="true"] .icon { fill: currentColor; }
.card__save .icon { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: color-mix(in srgb, var(--paper) 82%, var(--slate));
  padding-block: 56px 32px;
}

.site-footer a {
  color: color-mix(in srgb, var(--paper) 82%, var(--slate));
  text-decoration: none;
}
.site-footer a:hover { color: var(--paper); }

.site-footer .logo,
.site-footer .logo:hover { color: var(--paper); }
.site-footer .logo__mark { color: var(--paper); }
.site-footer .logo__word strong { color: var(--paper); }

.footer__cols {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .footer__cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer__cols { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; } }

.footer__h {
  font-family: var(--font-mono);
  font-size: var(--fs-stamp);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 55%, var(--slate));
  margin-bottom: 14px;
}

.footer__list { list-style: none; padding: 0; }
.footer__list li + li { margin-top: 10px; }

.footer__pitch { margin-top: 14px; max-width: 34ch; }
.footer__data { margin-top: 16px; }
.footer__note { margin-top: 16px; font-size: var(--fs-meta); }

.footer__legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--paper) 14%, transparent);
  font-family: var(--font-mono);
  font-size: var(--fs-stamp);
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--paper) 50%, var(--slate));
}

/* --------------------------------------------------------------------------
   14. Mono data line — "142 LIVE LISTINGS · LAST CHECKED 19 AUG 2026"
   Generated from data, never hardcoded (§8.1)
   -------------------------------------------------------------------------- */

.dataline {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-stamp);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   14b. App screens — search card, chips, callout
   -------------------------------------------------------------------------- */

/* Hero. Deliberately compact: on a 360px phone the search tool must be
   reachable without scrolling, so copy gets the minimum space that still reads. */
.screen { padding-block: 18px 24px; }
@media (min-width: 600px) { .screen { padding-block: 30px 36px; } }
@media (min-width: 900px) { .screen { padding-block: 48px 52px; } }

.screen__title {
  margin-top: 8px;
  font-size: clamp(1.6rem, 6.6vw, 2.9rem);
  letter-spacing: -0.034em;
}
.screen__title-em { color: var(--brand); }

.screen__sub {
  margin-top: 9px;
  max-width: 44ch;
  color: var(--slate);
  font-size: var(--fs-meta);
}
@media (min-width: 900px) { .screen__sub { font-size: var(--fs-body); } }

/* The search card is the screen's main event (§8.1 S1), so it gets the only
   real elevation on the page and a faint brand-tinted rim to lift it off white. */
.searchcard {
  margin-top: 16px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card), 0 0 0 4px rgba(15, 76, 129, 0.035);
}
@media (min-width: 900px) { .searchcard { max-width: 660px; padding: 18px; margin-top: 24px; } }

.searchcard__row + .searchcard__row { margin-top: 10px; }

.searchcard__row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.searchcard .btn { margin-top: 12px; }
.searchcard .icon { width: 18px; height: 18px; }

.field { display: block; }

.field__label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: var(--fs-stamp);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--slate-light);
}

.field__input {
  display: block;
  width: 100%;
  min-height: var(--tap);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--mist);
  color: var(--ink);
  font-weight: 500;
  appearance: none;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field__input:hover { border-color: var(--slate-light); }
.field__input:focus {
  border-color: var(--brand-hi);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(22, 104, 184, 0.13);
  outline: none;
}

select.field__input {
  /* Native chevron is inconsistent across Android browsers; draw our own. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6B7A' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  padding-right: 36px;
}

/* --- Property type tiles ---------------------------------------------------
   Five options will not fit a segmented control at 360px, and a scrolling
   strip hides the very choice the visitor arrived for. A wrapping grid keeps
   every type on screen. */

.typegrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* An odd last tile alone in a 2-up grid reads as a mistake; span it instead. */
.typegrid > :last-child:nth-child(odd) { grid-column: 1 / -1; }

@media (min-width: 600px) {
  .typegrid { grid-template-columns: repeat(3, 1fr); }
  .typegrid > :last-child:nth-child(odd) { grid-column: auto; }
}

.typetile { display: block; }
.typetile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.typetile__body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-height: var(--tap);
  height: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--mist);
  cursor: pointer;
  transition:
    border-color 0.16s var(--ease),
    background-color 0.16s var(--ease),
    box-shadow 0.16s var(--ease),
    transform 0.1s var(--ease);
}
@media (hover: hover) {
  .typetile__body:hover { border-color: var(--slate-light); background: var(--paper); }
}
.typetile__body:active { transform: scale(0.985); }

.typetile__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.012em;
  color: var(--ink);
  line-height: 1.2;
}

.typetile__blurb {
  font-size: 0.6875rem;
  line-height: 1.32;
  color: var(--slate-light);
}

.typetile input:checked + .typetile__body {
  border-color: var(--brand);
  background: var(--brand-tint);
  box-shadow: 0 0 0 1px var(--brand), 0 4px 10px -6px rgba(15, 76, 129, 0.5);
}
.typetile input:checked + .typetile__body .typetile__name { color: var(--brand); }
.typetile input:checked + .typetile__body .typetile__blurb { color: var(--brand-hi); }

/* A tick that confirms the choice without adding a whole icon column. */
.typetile input:checked + .typetile__body::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--brand);
}

.typetile input:focus-visible + .typetile__body {
  outline: 2px solid var(--brand-hi);
  outline-offset: 2px;
}

/* Area landing: type choice with live counts. */
.typegrid--area { margin-top: 18px; }

.areatile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 62px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--paper);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease), transform 0.16s var(--ease);
}
@media (hover: hover) {
  .areatile:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-card);
    transform: translateY(-1px);
  }
}

.areatile__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.areatile__count {
  font-family: var(--font-mono);
  font-size: var(--fs-stamp);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand);
}

/* An empty type is shown, not hidden — "no PGs here" is useful information. */
.areatile.is-empty { background: var(--mist); box-shadow: none; }
.areatile.is-empty .areatile__name { color: var(--slate); }
.areatile.is-empty .areatile__count { color: var(--slate-light); }

/* Segmented control — kept for two-option cases elsewhere. */
.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  overflow-x: auto;
  scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }

.segmented__opt { flex: 1 1 0; min-width: fit-content; }
.segmented__opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.segmented__opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--slate);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.segmented__opt input:checked + span {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(16, 22, 28, 0.08);
}
.segmented__opt input:focus-visible + span {
  outline: 2px solid var(--brand-hi);
  outline-offset: 1px;
}

[data-gender-field][hidden] { display: none; }

.card__config {
  color: var(--slate);
  font-size: var(--fs-meta);
  font-weight: 500;
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--verified) 30%, var(--line));
  border-radius: var(--r-card);
  background: color-mix(in srgb, var(--verified) 6%, var(--paper));
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-meta);
  line-height: 1.5;
}
@media (min-width: 900px) { .callout { max-width: 640px; } }
.callout:hover { color: var(--ink); border-color: var(--verified); }
.callout__icon { flex: 0 0 auto; color: var(--verified); }
.callout strong { display: block; }

.chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip--link {
  text-decoration: none;
  min-height: 40px;
  padding: 8px 14px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.chip--link:hover { border-color: var(--brand); color: var(--brand); }
.chip--link .chip--count {
  margin-left: 2px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.empty__note { margin-top: 8px; }

.btnrow {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.btnrow--center { justify-content: center; }

/* --- Archive screen --- */

.screen--archive { padding-bottom: 8px; }
.screen__title--sm { font-size: clamp(1.5rem, 5.5vw, 2rem); margin-top: 10px; }
.archive__count { margin-top: 10px; }

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-meta);
  color: var(--slate);
}
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

/* --- Pagination --- */

.pagination { margin-top: 32px; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-meta);
}
.page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.page-numbers.current {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--paper);
}
.page-numbers.dots { border-color: transparent; }

/* --- WordPress page content (how-it-works, verified, terms…) --- */

.entry {
  max-width: 68ch;
  font-size: var(--fs-body);
}
.entry h2 {
  margin-top: 36px;
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 4.5vw, 1.5rem);
}
.entry h2:first-child { margin-top: 0; }
.entry p { margin-top: 12px; }
.entry ul,
.entry ol { margin-top: 12px; padding-left: 22px; }
.entry li + li { margin-top: 6px; }
.entry strong { font-weight: 600; }
/* Underline links in prose, but not components that happen to be rendered
   inside page content — a listing card on /saved/ must look identical to the
   same card on an archive. */
.entry a { text-decoration: underline; }
.entry a.card,
.entry .card a,
.entry .myvisits__row,
.entry .btn { text-decoration: none; }

.entry pre {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--verified);
  border-radius: var(--r-stamp);
  background: var(--mist);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  overflow-x: auto;
}

/* --------------------------------------------------------------------------
   14ba. Filters — inline row on desktop, bottom sheet on mobile (§9)
   -------------------------------------------------------------------------- */

/* Mobile: a sheet that slides up from the bottom. */
.filters {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  max-height: 86vh;
  background: var(--paper);
  border-radius: 20px 20px 0 0;
  box-shadow: var(--shadow-sheet);
  transform: translateY(101%);
  visibility: hidden;
  transition: transform 0.32s var(--ease-spring), visibility 0.32s;
}
.filters[data-open="true"] { transform: translateY(0); visibility: visible; }

/* Grab handle — the affordance that says "this drags/closes". */
.filters::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  translate: -50% 0;
  width: 36px;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--line);
}
@media (min-width: 900px) { .filters::before { display: none; } }

.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter) 8px;
  border-bottom: 1px solid var(--line);
}
.filters__title { font-size: var(--fs-h3); }

.filters__close {
  width: var(--tap);
  height: var(--tap);
  margin-right: -12px;
  border: 0;
  background: none;
  font-size: 18px;
  color: var(--slate);
  cursor: pointer;
}

.filters__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 4px var(--gutter) 12px;
  -webkit-overflow-scrolling: touch;
}

/* --- Mobile: every group expanded, the dropdown button is not used --- */
.fgroup { padding-top: 16px; }
.fgroup__btn { display: none; }

.fgroup__panel { border: 0; padding: 0; margin: 0; }
.fgroup__panel legend { padding: 0; }

/* Apply stays pinned — the count must always be visible while choosing. */
.filters__foot {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.filters__foot .btn--primary { flex: 1 1 auto; }

.filters__backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(16, 22, 28, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s;
}
.filters__backdrop[data-open="true"] { opacity: 1; visibility: visible; }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pill span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.pill input:checked + span {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, var(--paper));
  color: var(--brand);
  font-weight: 600;
}
.pill input:focus-visible + span {
  outline: 2px solid var(--brand-hi);
  outline-offset: 2px;
}

.actionbar__badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 20px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Desktop: a compact row of dropdowns.

   Laid flat, twenty pills consumed 450px before a single result appeared. The
   whole point of a filter is to reach the results faster, so on desktop each
   group collapses to a button and opens as a popover.
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  .filters {
    position: static;
    transform: none;
    visibility: visible;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .filters::before,
  .filters__head,
  .filters__close,
  .filters__backdrop { display: none; }

  .filters__body {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
    overflow: visible;
    padding: 0;
    flex: 0 1 auto;
  }

  .fgroup { position: relative; padding-top: 0; }

  .fgroup__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    font-size: var(--fs-meta);
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  }
  .fgroup__btn:hover { border-color: var(--slate-light); }
  .fgroup__btn .icon { width: 15px; height: 15px; color: var(--slate); }

  /* An applied filter is obvious without opening it. */
  .fgroup__btn[data-chosen="true"] {
    border-color: var(--brand);
    background: var(--brand-tint);
    color: var(--brand);
  }
  .fgroup__btn[aria-expanded="true"] {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(22, 104, 184, 0.13);
  }
  .fgroup__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }

  .fgroup__panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 50;
    min-width: 250px;
    max-width: 340px;
    padding: 12px 14px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--paper);
    box-shadow: var(--shadow-lift);
    display: block;
  }

  /* Only once JS is running do the panels collapse into dropdowns. */
  .js-filters .fgroup__panel { display: none; }
  .js-filters .fgroup[data-open="true"] .fgroup__panel { display: block; }

  /* Right-hand groups open leftwards so they never leave the viewport. */
  .fgroup:nth-last-child(-n+2) .fgroup__panel { left: auto; right: 0; }

  .filters__foot {
    justify-content: flex-end;
    padding: 0;
    border-top: 0;
    margin-left: auto;
    gap: 8px;
  }
  .filters__foot .btn--primary { flex: 0 0 auto; }

  /* Without JS the button does nothing, so it is not shown. */
  .fgroup__btn { display: none; }
  .js-filters .fgroup__btn { display: inline-flex; }

  .fgroup__panel { position: static; box-shadow: none; border: 0; padding: 0; min-width: 0; }
  .js-filters .fgroup__panel {
    position: absolute;
    min-width: 250px;
    padding: 12px 14px 14px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
  }
}

/* --------------------------------------------------------------------------
   14bb. Bands and hairline rows (home S5–S7)
   -------------------------------------------------------------------------- */

/* Bands get a soft radial wash so a large flat colour field has some depth
   without introducing a decorative motif the spec doesn't allow. */
.band {
  position: relative;
  color: var(--paper);
  overflow: hidden;
}
.band--dark {
  background:
    radial-gradient(90% 130% at 8% 0%, #1B2836 0%, transparent 60%),
    var(--ink);
}
.band--brand {
  background:
    radial-gradient(90% 130% at 8% 0%, #1668B8 0%, transparent 62%),
    var(--brand);
}

.band__inner { position: relative; max-width: 58ch; }

.band__kicker { color: rgba(255, 255, 255, 0.6); }

.band__title {
  margin-top: 10px;
  font-size: clamp(1.375rem, 5.2vw, 1.875rem);
  color: var(--paper);
  letter-spacing: -0.028em;
}

.band__body {
  margin-top: 11px;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-meta);
}
@media (min-width: 900px) { .band__body { font-size: var(--fs-body); } }

.band .btn { margin-top: 22px; }
.band .btnrow .btn { margin-top: 0; }

/* On a brand-coloured field the primary button must invert, not disappear. */
.btn--onbrand {
  background: var(--paper);
  color: var(--brand);
}
.btn--onbrand:hover { background: var(--paper); color: var(--brand-hi); }

.rows { border-top: 1px solid var(--line); }

.rows__row {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.rows__num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: var(--fs-stamp);
  letter-spacing: 0.08em;
  color: var(--slate);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}

.rows__title { font-size: var(--fs-h3); }
.rows__body {
  margin-top: 5px;
  color: var(--slate);
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   14c. Listing detail
   -------------------------------------------------------------------------- */

.screen--listing { padding-block: 18px 10px; }
.section--tight { padding-top: 24px; }

/* Gallery — swipeable strip with dots, never a modal (§9) */
.gallery { position: relative; }

.gallery__strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-inline: var(--gutter);
}
.gallery__strip::-webkit-scrollbar { display: none; }

.gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--mist);
}
.gallery__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (min-width: 900px) {
  .gallery__strip {
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }
  .gallery__slide { flex: 0 0 66%; }
}

.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.gallery__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  transition: background-color 0.15s ease, width 0.15s ease;
}
.gallery__dot.is-on { background: var(--brand); width: 18px; }

.listing__head { max-width: 62ch; }

.listing__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  line-height: var(--lh-display);
  letter-spacing: -0.015em;
}

.listing__head .price { margin-top: 12px; }
.listing__head .price__figure { font-size: 1.5rem; }

.listing__where { margin-top: 6px; color: var(--slate); }
.listing__head .stamp { margin-top: 14px; }

.listing__stale {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--flag);
  background: color-mix(in srgb, var(--flag) 7%, var(--paper));
  font-size: var(--fs-meta);
  border-radius: var(--r-stamp);
}

.listing__h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: clamp(1.125rem, 4vw, 1.375rem);
}

/* Key facts — stacks to label:value, never sideways scroll (§9) */
.facts {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 62ch;
}
.facts__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.facts__row dt {
  flex: 0 0 42%;
  font-family: var(--font-mono);
  font-size: var(--fs-stamp);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  align-self: center;
}
.facts__row dd {
  flex: 1 1 auto;
  margin: 0;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 600px) { .facts__row dt { flex-basis: 30%; } }

.taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.cta-block {
  margin-top: 32px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--mist);
  max-width: 62ch;
}
.cta-block .callout { background: var(--paper); }
.cta-block__note {
  margin-top: 14px;
  font-size: var(--fs-meta);
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   15. Notices
   -------------------------------------------------------------------------- */

.notice {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--slate);
  border-radius: var(--r-stamp);
  background: var(--mist);
  color: var(--ink);
}
.notice--taken { border-left-color: var(--flag); }

.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--slate);
  border: 1px dashed var(--line);
  border-radius: var(--r-card);
}

/* --------------------------------------------------------------------------
   16. Motion (§4.5)
   Cards never animate in — content must be instantly readable.
   -------------------------------------------------------------------------- */

/*
 * Section reveal.
 *
 * Applied to bands and section headings only — never to cards or listing data,
 * which must be readable the instant they paint (§4.5). Opt-in via a data
 * attribute so nothing animates by accident, and the un-revealed state is only
 * ever set by JS: with scripting off, everything is simply visible.
 */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  will-change: opacity, transform;
}
[data-reveal="in"] {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  /* Reveal must not leave content invisible when motion is off. */
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .card:hover { transform: none !important; }
  .card:hover .card__media img { transform: none !important; }
}


/* --------------------------------------------------------------------------
   Visit windows (§11.3). Windows, not a calendar — the tenant joins a trip the
   agent is already making, which is what keeps visits-per-trip viable.
   -------------------------------------------------------------------------- */

.visits__intro { margin-top: 4px; color: var(--slate); max-width: 60ch; }

.visits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
  max-width: 62ch;
}
@media (min-width: 600px) { .visits { grid-template-columns: repeat(4, 1fr); } }

.visitslot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease), transform 0.16s var(--ease);
}
@media (hover: hover) {
  .visitslot:hover {
    border-color: var(--verified);
    box-shadow: var(--shadow-card);
    transform: translateY(-1px);
  }
}
.visitslot:active { transform: translateY(1px); }

.visitslot__day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.visitslot__time {
  font-family: var(--font-mono);
  font-size: var(--fs-stamp);
  letter-spacing: 0.05em;
  color: var(--verified);
  font-variant-numeric: tabular-nums;
}

.visits__note {
  margin-top: 12px;
  font-size: var(--fs-meta);
  color: var(--slate);
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   Visit booking. The fee is shown at the top, never revealed at the end — a
   charge discovered at the point of commitment costs the word of mouth this
   business runs on (§12).
   -------------------------------------------------------------------------- */

.booking {
  margin-top: 34px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  max-width: 62ch;
}

.booking__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.booking__head .listing__h2 { margin: 0; }

.booking__fee {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--verified);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.booking__fee span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-stamp);
  color: var(--slate);
}

.booking__intro { margin-top: 6px; color: var(--slate); font-size: var(--fs-meta); }

.booking__row { margin-top: 16px; }
.booking__row--split { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .booking__row--split { grid-template-columns: 1fr 1fr; } }

.booking__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.modegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }

.modetile input { position: absolute; opacity: 0; pointer-events: none; }
.modetile__body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--mist);
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.modetile__name { font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; color: var(--ink); }
.modetile__note { font-size: 0.6875rem; color: var(--slate-light); line-height: 1.3; }
.modetile input:checked + .modetile__body {
  border-color: var(--verified);
  background: var(--verified-tint);
  box-shadow: 0 0 0 1px var(--verified);
}
.modetile input:checked + .modetile__body .modetile__name { color: var(--verified); }
.modetile input:focus-visible + .modetile__body { outline: 2px solid var(--brand-hi); outline-offset: 2px; }

.pills--dates,
.pills--times { margin-top: 6px; }
.pills--times:empty::after {
  content: "No times left that day — pick another date.";
  font-size: var(--fs-meta);
  color: var(--slate);
}

.booking__form .field__label em { font-style: normal; color: var(--slate-light); text-transform: none; letter-spacing: 0; }
.booking__form .btn { margin-top: 18px; }

.booking__terms { margin-top: 12px; font-size: var(--fs-stamp); line-height: 1.5; color: var(--slate); }

.booking__result { margin-top: 14px; padding: 14px; border-radius: var(--r-btn); font-size: var(--fs-meta); }
.booking__result[data-state="ok"] { background: var(--verified-tint); border: 1px solid var(--verified); }
.booking__result[data-state="error"] { background: #fdf4f4; border: 1px solid #f0c3c3; color: #b32d2e; }
.booking__result .btn { margin-top: 10px; }

/* Launch pricing: the old price struck through, the new one loud. */
.booking__fee { flex-wrap: wrap; }
.booking__fee strong { font-weight: 800; }
.booking__was {
  color: var(--slate-light);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration-thickness: 2px;
}
.booking__fee span {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: var(--verified-tint);
  color: var(--verified);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Visit pass. Opened on a pavement two minutes before a stranger arrives, so
   the face and the name come first and nothing competes with them.
   -------------------------------------------------------------------------- */

.pass { max-width: 44ch; }

.pass__when {
  margin-top: 8px;
  font-size: clamp(1.5rem, 6vw, 2rem);
  letter-spacing: -0.03em;
}
.pass__when span { color: var(--brand); }

.pass__agent {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.pass__photo {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: var(--r-pill);
  overflow: hidden;
  background: var(--mist-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pass__photo img { width: 100%; height: 100%; object-fit: cover; }

.pass__initial {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--slate);
}

.pass__who {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.pass__role { margin-top: 2px; color: var(--slate); font-size: var(--fs-meta); }

.pass__badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--verified-tint);
  color: var(--verified);
  font-family: var(--font-mono);
  font-size: var(--fs-stamp);
  letter-spacing: 0.08em;
}

.pass .facts { margin-top: 22px; }

.pass__safety {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--verified);
  border-radius: var(--r-stamp);
  background: var(--mist);
  font-size: var(--fs-meta);
}
.pass__safety ul { margin-top: 8px; padding-left: 18px; }
.pass__safety li + li { margin-top: 5px; }

.pass .btn { margin-top: 20px; }

/* --------------------------------------------------------------------------
   Agent day. Read on a phone, outdoors, in a hurry — big targets, no chrome.
   -------------------------------------------------------------------------- */

.stop {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.stop__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.stop__time {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.stop__status {
  font-family: var(--font-mono);
  font-size: var(--fs-stamp);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--mist);
  color: var(--slate);
}
.stop__status--confirmed { background: var(--verified-tint); color: var(--verified); }
.stop__status--booked { background: var(--flag-tint); color: var(--flag); }

.stop__title { margin-top: 8px; font-size: var(--fs-h3); }
.stop__meta { margin-top: 3px; color: var(--slate); font-size: var(--fs-meta); }

.stop__tenant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.stop__notes { margin-top: 8px; font-size: var(--fs-meta); color: var(--slate); font-style: italic; }

/* Staged reveal of the tenant. Name on confirmation, number an hour before. */
.stop__tenant--pending span:first-child { color: var(--slate-light); font-style: italic; font-weight: 500; }
.stop__locked { font-family: var(--font-mono); font-size: 15px; letter-spacing: .12em; color: var(--slate-light); user-select: none; }
.stop__reveal { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--slate); }

/* What the tenant said on the phone before the trip. The agent reads this
   walking up to the gate, so it has to survive a two-second glance. */
.brief { margin-top: 10px; padding: 10px 12px; background: var(--mist); border-radius: 8px; border-left: 3px solid var(--brand); }
.brief__label { margin: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.brief__budget { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.brief__budget span { font-size: .7em; font-weight: 500; color: var(--slate); }
.brief__wants { margin: 4px 0 0; font-size: var(--fs-meta); color: var(--ink); line-height: 1.45; }

/* ==========================================================================
   THE AGENT APP
   A separate shell from the tenant site. Dark bar, four tabs, no marketing.
   ========================================================================== */

.rr-agent { background: var(--mist); }
.agent-main { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.screen--agent { padding-top: 16px; }
.screen--agent .wrap { max-width: 720px; }

/* --- Top bar --- */
.agentbar { position: sticky; top: 0; z-index: 40; background: var(--ink); color: #fff; padding-top: env(safe-area-inset-top); }
.agentbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; max-width: 720px; margin: 0 auto; padding: 0 16px; }
.agentbar__brand { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: #fff; text-decoration: none; }
.agentbar__brand svg { flex: none; color: #fff; }
/* Their name, so it reads as a name — not a mono job title. Truncates rather
   than wrapping: a two-line name would push the bar out of its 56px. */
.agentbar__label { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -.012em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Hamburger + drawer --- */
.drawer { position: relative; }
.drawer__btn { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border-radius: 8px; cursor: pointer; list-style: none; }
.drawer__btn::-webkit-details-marker { display: none; }
.drawer[open] .drawer__btn { background: rgba(255,255,255,.10); }
.drawer__bars { display: grid; gap: 4px; }
.drawer__bars i { display: block; width: 19px; height: 2px; background: #fff; border-radius: 2px; transition: transform .18s var(--ease), opacity .18s var(--ease); }
.drawer[open] .drawer__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.drawer[open] .drawer__bars i:nth-child(2) { opacity: 0; }
.drawer[open] .drawer__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.drawer__panel { position: absolute; top: calc(100% + 8px); right: 0; width: min(78vw, 280px); background: var(--paper); color: var(--ink); border-radius: 12px; box-shadow: var(--shadow-lift); overflow: hidden; }
.drawer__who { padding: 14px 16px; background: var(--mist); border-bottom: 1px solid var(--line); }
.drawer__name { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.drawer__meta { margin: 2px 0 0; font-size: 12px; color: var(--slate); line-height: 1.4; }
.drawer__nav { display: flex; flex-direction: column; padding: 6px; }
.drawer__nav a { padding: 12px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; }
.drawer__nav a[aria-current] { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.drawer__foot { display: flex; flex-direction: column; gap: 2px; padding: 6px; border-top: 1px solid var(--line); }
.drawer__office { display: inline-flex; align-items: center; gap: 8px; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--verified); text-decoration: none; }
.drawer__office svg { width: 17px; height: 17px; }
.drawer__out { padding: 12px; border-radius: 8px; font-size: 14px; color: var(--slate); text-decoration: none; }

/* --- Bottom tabs. Persistent, never hidden on scroll (§9.1). --- */
.agenttabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.agenttabs__tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; font-size: 11px; font-weight: 600; color: var(--slate); text-decoration: none; }
.agenttabs__tab svg { width: 21px; height: 21px; }
.agenttabs__tab.is-on { color: var(--brand); }

/* --- Day header + stat strip --- */
.daytop { margin-bottom: 16px; }
.daytop__title { margin: 2px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -.026em; color: var(--ink); }
.daytop__sub { margin: 4px 0 0; font-size: var(--fs-meta); color: var(--slate); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.stats--wide { grid-template-columns: repeat(4, 1fr); }
.stat { padding: 12px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; text-align: center; box-shadow: var(--shadow-sm); }
.stat__n { display: block; font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__n--ok { color: var(--verified); }
.stat__n--warn { color: var(--flag); }
.stat__k { display: block; margin-top: 3px; font-size: 11px; font-weight: 600; letter-spacing: .01em; color: var(--slate); }

.empty--agent { padding: 28px 20px; }
.empty--agent .btn { margin-top: 12px; }

/* --- Week --- */
.wday { margin-bottom: 18px; }
.wday__h { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--ink); }
.wday__dow { min-width: 46px; }
.wday__date { color: var(--slate); font-weight: 500; }
.wday__n { margin-left: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); font-weight: 500; }
.wday--empty { opacity: .5; }
.wday--empty .wday__h { border-bottom-style: dashed; }

/* --- Area / the re-check queue --- */
.patch { display: flex; flex-direction: column; gap: 8px; }
.patch__row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); }
.patch__row--rechecking { border-left: 3px solid var(--flag); }
.patch__row--expired { border-left: 3px solid #C5342F; }
.patch__title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--ink); text-decoration: none; }
.patch__meta { margin: 3px 0 0; font-size: 13px; color: var(--slate); }
.patch__age { grid-column: 1; margin: 0; }
.patch__row .btn { grid-column: 2; grid-row: 1 / span 2; min-height: 44px; }
.patch__flag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.patch__flag--soon { color: var(--flag); font-weight: 600; }
.patch__flag--gone { color: #C5342F; font-weight: 600; }

.notice--hint { padding: 10px 12px; margin-bottom: 14px; background: var(--brand-tint); border-radius: 8px; font-size: var(--fs-meta); color: var(--ink); }
.addbtn { margin-bottom: 14px; min-height: 48px; }
.patch__acts { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 6px; }
.patch__acts .btn { min-height: 40px; white-space: nowrap; }
.btn--ghost { background: transparent; border: 1px solid transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand-tint); }
.patch__flagged { grid-column: 1 / -1; margin: 6px 0 0; padding: 8px 10px; background: #FDF3E7; border-radius: 6px; font-size: 13px; color: #8A5A16; }

/* Field forms — filing and correcting a property from a doorway. */
.afield { display: flex; flex-direction: column; }
.afield__l { margin: 14px 0 6px; font-size: var(--fs-meta); font-weight: 600; color: var(--ink); }
.afield__l span { font-weight: 400; color: var(--slate-light); }
.afield__i { width: 100%; min-height: 50px; padding: 12px 14px; font-size: 16px; font-family: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.afield__i:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
textarea.afield__i { min-height: 84px; line-height: 1.5; resize: vertical; }
.afield__i--file { padding: 12px; background: var(--mist); border-style: dashed; }
.afield__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.afield__pair .afield__l { margin-top: 14px; }
.afield__hint { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--slate); }
.afield__hint--warn { color: #8A5A16; }
.afield .btn { margin-top: 20px; min-height: 52px; }
.afield__own { margin-top: 20px; padding: 4px 14px 16px; background: var(--mist); border: 1px solid var(--line); border-radius: 10px; }
.afield__own legend { padding: 0 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.afield__check { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; padding: 14px; background: var(--brand-tint); border-radius: 8px; font-size: var(--fs-meta); font-weight: 600; color: var(--ink); cursor: pointer; }
.afield__check input { width: 22px; height: 22px; flex: none; accent-color: var(--brand); }

/* Owner contact — office and covering agent only. */
.ownerbox { margin-bottom: 18px; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--verified); border-radius: 10px; }
.ownerbox__l { margin: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.ownerbox__n { margin: 3px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); }
.ownerbox__note { margin: 4px 0 0; font-size: var(--fs-meta); color: var(--slate); }
.ownerbox .btn { margin-top: 10px; }
.ownerbox__warn { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: #8A5A16; }

.stagebox { margin-bottom: 18px; padding: 14px; background: #FDF3E7; border-radius: 10px; }
.stagebox p { margin: 0 0 8px; font-size: var(--fs-meta); line-height: 1.5; color: #6B4712; }
.stagebox p:last-child { margin-bottom: 0; }

/* Owners waiting on an agent. */
.inbox { margin-bottom: 20px; padding: 14px; background: var(--brand-tint); border-radius: 12px; }
.inbox__h { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--brand); }
.inbox__note { margin: 3px 0 12px; font-size: 13px; color: var(--slate); }
.inbox__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--paper); border-radius: 8px; }
.inbox__row:last-child { margin-bottom: 0; }
.inbox__title { margin: 0; font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--ink); }
.inbox__meta { margin: 2px 0 0; font-size: 12.5px; color: var(--slate); }
.inbox__owner { margin: 2px 0 0; font-size: 12.5px; font-weight: 600; color: var(--verified); }
.inbox__acts { display: flex; flex-direction: column; gap: 6px; flex: none; }
.inbox__acts .btn { min-height: 38px; white-space: nowrap; }

/* The owner's own form on /list-your-property. */
.ownerform { margin-top: 32px; padding: 20px; background: var(--mist); border-radius: 12px; }
.ownerform h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.024em; color: var(--ink); }
.ownerform__sub { margin: 4px 0 8px; font-size: var(--fs-meta); color: var(--slate); }
.ownerform--done { border-left: 3px solid var(--verified); }
.ownerform--done p { font-size: var(--fs-body); line-height: 1.6; color: var(--ink); }

/* --- Me --- */
.mecard { margin-top: 18px; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.mecard__h { margin: 0 0 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.mecard p { margin: 0 0 10px; font-size: var(--fs-meta); line-height: 1.55; color: var(--ink); }
.mecard p:last-child { margin-bottom: 0; }

@media (min-width: 900px) {
	.agentbar__inner { height: 68px; }
	.daytop__title { font-size: 30px; }
	.agenttabs { position: sticky; grid-template-columns: repeat(4, minmax(0, 140px)); justify-content: center; border-radius: 0; }
}

/* Sign-in. Two fields, thumb-sized, nothing else on the screen. */
.signin { max-width: 380px; margin: 0 auto; padding: 8px 0 40px; }
.signin__title { margin: 2px 0 20px; font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -.028em; color: var(--ink); }
.signin__form { display: flex; flex-direction: column; gap: 10px; }
.signin__label { font-size: var(--fs-meta); font-weight: 600; color: var(--ink); }
.signin__input { width: 100%; min-height: 52px; padding: 12px 14px; font-size: 17px; font-family: inherit; color: var(--ink); background: var(--mist); border: 1px solid var(--line); border-radius: 8px; }
.signin__input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.signin__input--code { font-family: var(--font-mono); font-size: 26px; letter-spacing: .38em; text-align: center; font-variant-numeric: tabular-nums; }
.signin__form .btn { margin-top: 4px; min-height: 52px; }
.signin__again { margin-top: 14px; text-align: center; }
.signin__link { background: none; border: 0; padding: 8px; font: inherit; font-size: var(--fs-meta); color: var(--brand); font-weight: 600; text-decoration: underline; cursor: pointer; }
.signin__error { margin: 0 0 16px; padding: 10px 12px; background: #FDECEC; border-left: 3px solid #C5342F; border-radius: 6px; font-size: var(--fs-meta); color: #8A2622; }
.signin__notice { margin: 0 0 16px; padding: 10px 12px; background: var(--brand-tint); border-left: 3px solid var(--brand); border-radius: 6px; font-size: var(--fs-meta); color: var(--ink); }
.signin__note { margin: 18px 0 0; font-size: 13px; line-height: 1.5; color: var(--slate); }
.signin__note--quiet { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--slate-light); }

/* Who is holding the phone. */
.whoami { margin: -4px 0 18px; font-size: var(--fs-meta); color: var(--slate); }
.whoami a { color: var(--brand); font-weight: 600; }
.whoami--link { padding: 8px 10px; background: var(--brand-tint); border-radius: 8px; }

/* Settling a stop, outdoors, one-handed. */
.stop__actions { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.stop__ask { margin: 0 0 8px; font-size: var(--fs-meta); font-weight: 600; color: var(--ink); }
.stop__row { display: flex; flex-wrap: wrap; gap: 8px; }
.stop__row .btn { flex: 1 1 auto; min-height: 48px; }
.stop__settled { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--verified); }
.btn.is-muted { opacity: .38; }
.btn--verify { margin-top: 10px; width: 100%; min-height: 48px; }
.stop__hint { margin: 6px 0 0; font-size: 12px; color: var(--slate-light); line-height: 1.45; }

.nearby { margin-top: 12px; }

.nearby__toggle {
  cursor: pointer;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: var(--r-btn);
  font-weight: 600;
  font-size: var(--fs-meta);
  color: var(--brand);
  list-style: none;
}
.nearby__toggle::-webkit-details-marker { display: none; }
.nearby[open] .nearby__toggle { border-style: solid; border-color: var(--brand); }

.nearby__list { margin-top: 10px; }

.nearby__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.nearby__item a { font-weight: 600; text-decoration: none; }
.nearby__meta { display: block; color: var(--slate); font-size: var(--fs-stamp); }

.nearby__item .btn.is-added {
  border-color: var(--verified);
  color: var(--verified);
}

.nearby__note { margin-top: 10px; font-size: var(--fs-stamp); color: var(--slate); }

.stop__footer { margin-top: 26px; font-size: var(--fs-meta); color: var(--slate); }

/* Where it actually is. Agent-only, and the reason a trip succeeds. */
.where { margin-top: 12px; padding: 12px 14px; background: var(--ink); color: #fff; border-radius: 10px; }
.where__l { margin: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.where__a { margin: 4px 0 0; font-size: 15px; font-weight: 600; line-height: 1.4; color: #fff; }
.where__d { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,.82); }
.where__g { margin: 6px 0 0; font-size: 13px; color: var(--verified); font-weight: 600; }
.where .btn { margin-top: 10px; width: 100%; min-height: 44px; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.where--none { background: #FDF3E7; color: #6B4712; font-size: var(--fs-meta); line-height: 1.5; padding: 12px 14px; }

/* The facts, folded away until asked for. */
.facts2 { margin-top: 10px; }
.facts2__toggle { padding: 10px 12px; background: var(--mist); border: 1px solid var(--line); border-radius: 8px; font-size: var(--fs-meta); font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.facts2__toggle::-webkit-details-marker { display: none; }
.facts2__toggle::after { content: " ▾"; color: var(--slate); }
.facts2[open] .facts2__toggle::after { content: " ▴"; }
.facts2__list { margin: 8px 0 0; padding: 0 2px; }
.facts2__row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.facts2__row dt { font-size: 13px; color: var(--slate); }
.facts2__row dd { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); text-align: right; }
.facts2__note { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: var(--slate-light); }

/* Tenant self-service on the pass. */
.pass__locked { margin: 14px 0 0; padding: 12px 14px; background: var(--mist); border-left: 3px solid var(--slate-light); border-radius: 8px; font-size: var(--fs-meta); line-height: 1.5; color: var(--slate); }
.manage { margin-top: 20px; }
.manage__confirm .btn { min-height: 54px; font-size: 17px; }
.btn--verified { background: var(--verified); border-color: var(--verified); color: #fff; }
.btn--verified:hover { filter: brightness(1.06); }
.manage__note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--slate); }
.manage__more { margin-top: 18px; }
.manage__more > summary { padding: 12px 14px; background: var(--mist); border-radius: 8px; font-size: var(--fs-meta); font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.manage__more > summary::-webkit-details-marker { display: none; }
.manage__more > summary::after { content: " ▾"; color: var(--slate); }
.manage__more[open] > summary::after { content: " ▴"; }
.manage__move, .manage__cancel { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.manage__l { margin: 0 0 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.manage__move .afield__i, .manage__cancel .afield__i { margin-bottom: 8px; }
.manage__cancel .btn { color: #C5342F; }

/* All the stops on one trip. */
.triplist { margin-top: 16px; padding: 14px; background: var(--brand-tint); border-radius: 10px; }
.triplist__h { margin: 0 0 10px; font-size: var(--fs-meta); font-weight: 700; color: var(--brand); }
.triplist__row { display: flex; gap: 12px; padding: 7px 0; font-size: 13.5px; color: var(--ink); border-bottom: 1px solid rgba(15,76,129,.10); }
.triplist__row:last-of-type { border-bottom: 0; }
.triplist__row.is-this { font-weight: 700; }
.triplist__t { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--slate); flex: none; }
.triplist__row a { margin-left: 6px; color: var(--brand); font-weight: 600; }
.triplist__n { margin: 8px 0 0; font-size: 12px; color: var(--slate); }
.booking__keep { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--slate); }
.booking__keep code { display: block; margin-top: 4px; padding: 8px 10px; background: var(--mist); border-radius: 6px; font-family: var(--font-mono); font-size: 11px; word-break: break-all; color: var(--ink); }

/* Visits the tenant already booked, surfaced on their Saved screen. */
.myvisits { margin-bottom: 28px; }
.myvisits__h { margin: 0 0 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--ink); }
/* .entry a underlines everything inside page content — this card is a control,
   not prose, so it opts out explicitly. */
.entry .myvisits__row, .myvisits__row { text-decoration: none; }
.myvisits__row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; margin-bottom: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); text-decoration: none; }
.myvisits__when { font-family: var(--font-mono); font-size: 12px; color: var(--brand); font-weight: 500; white-space: nowrap; }
.myvisits__what { font-size: 14px; line-height: 1.35; color: var(--ink); }
.myvisits__area { font-size: 12.5px; color: var(--slate); font-weight: 400; }
.myvisits__flag { padding: 5px 9px; background: var(--flag); border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap; }
.myvisits__ok { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--verified); white-space: nowrap; }
.myvisits__n { margin: 4px 0 0; font-size: 12.5px; color: var(--slate); }
@media (max-width: 420px) { .myvisits__row { grid-template-columns: 1fr auto; } .myvisits__when { grid-column: 1 / -1; } }

/* Landing here straight from the booking form. */
.freshbook { margin-bottom: 18px; padding: 14px 16px; background: var(--brand-tint); border-left: 3px solid var(--brand); border-radius: 10px; }
.freshbook__h { margin: 0 0 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.freshbook p { margin: 0 0 6px; font-size: var(--fs-meta); line-height: 1.55; color: var(--ink); }
.freshbook__k { color: var(--slate) !important; font-size: 12.5px !important; margin-bottom: 0 !important; }
.field__hint { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--slate); }
