/* rd-app-for-sale.css: the "For sale" listings page (for-sale.html) on the light design (19 Nov 2026).
   A restyle only: markup, ids and the page's script are as they were. The dark theme's colour names (--navy-900,
   --gold-300, --ivory-100 ...) are kept and pointed at the light palette on the page's own body, as pricing.html did on
   18 Nov. Tokens come from css/redesign.css. Inter 400 and 600 only, corners 8 and 10, no gradients, no glow. */
.rd-forsale {
  --navy-950: var(--page); --navy-900: #fff; --navy-850: var(--page); --navy-800: #fff;
  --navy-line: var(--line); --navy-600: var(--line-strong);
  --gold-300: var(--action); --gold-400: var(--action); --gold-500: var(--action); --gold-glow: transparent;
  --ivory-100: var(--ink); --slate-400: var(--muted); --slate-500: var(--muted);
  --emerald-400: var(--good); --rose-400: var(--bad); --amber-400: var(--warn);
  min-height: 100vh;
}
.rd-forsale *, .rd-forsale *::before, .rd-forsale *::after { box-sizing: border-box; }
.rd-forsale .hidden { display: none !important; }
.rd-forsale .wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.rd-forsale a { color: var(--action); }
.rd-forsale .btn { border-radius: var(--r-input); min-height: 40px; padding: 0 16px; font: 600 14px/1.25 var(--font); }
.rd-forsale .btn-gold { background: var(--action); border: 1px solid var(--action); color: #fff; background-image: none; }
.rd-forsale .btn-gold:hover { background: var(--action-dark); border-color: var(--action-dark); color: #fff; }
.rd-forsale .btn-ghost { background: #fff; border: 1px solid var(--line-strong); color: var(--ink); }
.rd-forsale .btn-ghost:hover { border-color: var(--muted); color: var(--ink); }
.rd-forsale header.page { padding: 32px 0 8px; }
.rd-forsale header.page h1 { font-family: var(--font); font-size: 30px; margin: 0 0 8px; }
.rd-forsale header.page p { color: var(--muted); max-width: 700px; line-height: 1.55; margin: 0; }
.rd-forsale .filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; margin: 24px 0; }
.rd-forsale .field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.rd-forsale .field input, .rd-forsale .field select { padding: 10px 12px; border-radius: var(--r-input); border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: 400 14px var(--font); }
.rd-forsale .field input:focus, .rd-forsale .field select:focus { outline: 3px solid rgba(27,149,209,.35); border-color: var(--action); }
.rd-forsale .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); gap: 16px; padding-bottom: 64px; }
/* A card is a real button (J-10): it takes the keyboard and says so to a screen reader. Its parts are spans set to
   blocks, because a button may only hold phrasing content. */
.rd-forsale .card { display: block; width: 100%; padding: 0; margin: 0; text-align: left; font: inherit; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; cursor: pointer; transition: border-color .15s; }
.rd-forsale .card:hover { border-color: var(--action); }
.rd-forsale .card:focus-visible { outline: 3px solid rgba(27,149,209,.45); outline-offset: 2px; border-color: var(--action); }
.rd-forsale .card img { width: 100%; height: 190px; object-fit: cover; display: block; background: var(--page); }
.rd-forsale .card .body { display: block; padding: 12px 16px 16px; }
.rd-forsale .card .body > span { display: block; }
.rd-forsale .verified { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--good); border: 1px solid currentColor; border-radius: var(--r-input); padding: 0 8px; white-space: nowrap; }
.rd-forsale .price { font-family: var(--font); font-size: 20px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.rd-forsale .pq { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-left: 8px; }
.rd-forsale .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.rd-forsale .epc-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 0 8px; border-radius: 6px; background: var(--page); border: 1px solid var(--line); margin-left: 8px; }
.rd-forsale .addr { font-size: 14px; margin-top: 8px; color: var(--ink); }
.rd-forsale .agency { font-size: 12px; color: var(--muted); margin-top: 8px; }
.rd-forsale .empty { grid-column: 1/-1; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--r-card); padding: 40px; text-align: center; color: var(--muted); line-height: 1.6; }
.rd-forsale .overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(5,16,54,.45); display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.rd-forsale .modal { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); max-width: 720px; width: 100%; max-height: 92vh; overflow-y: auto; position: relative; }
.rd-forsale .modal-close { position: absolute; top: 8px; right: 12px; z-index: 2; background: #fff; border: 1px solid var(--line-strong); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; border-radius: 50%; width: 44px; height: 44px; }
.rd-forsale .gallery { display: flex; overflow-x: auto; gap: 4px; }
.rd-forsale .gallery img { height: 280px; flex: 1; min-width: 60%; object-fit: cover; }
.rd-forsale .modal .body { padding: 20px 24px 24px; }
@media (max-width: 760px) {
  .rd-forsale .wrap { padding: 0 16px; }
  .rd-forsale header.page h1 { font-size: 24px; }
}
