/* REalProz — shared styles */
:root {
  --blue: #3952a4;
  --blue-deep: #2b3f84;
  --ink: #1b2550;
  --purple: #80287e;
  --red: #ee1d22;
  --red-strong: #c9141a; /* white text passes 4.5:1 */
  --paper: #ffffff;
  --mist: #f2f4fa;
  --line: #d9deec;
  --muted: #55607f;

  --role-broker: var(--blue);
  --role-buyer: var(--purple);
  --role-seller: var(--red-strong);

  --font: "Archivo", system-ui, sans-serif;
  --radius-s: 4px;
  --radius-m: 8px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; display: block; }

a { color: var(--blue); }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
}

.wrap {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-s);
  z-index: 10;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 5;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.brand img { width: 56px; height: 56px; }
.site-header .wrap > .btn { margin-left: auto; }
.main-nav { display: flex; gap: 4px; margin-right: auto; }
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-s);
}
.main-nav a:hover { background: var(--mist); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-s);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease;
}
.btn-primary { background: var(--red-strong); color: #fff; }
.btn-primary:hover { background: #a91015; }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-outline:hover { background: var(--mist); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 0; }
.hero h1 {
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.25rem, 1.2rem + 4.6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 14ch;
}
.hero p.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 40px;
}

/* ---------- Search panel ---------- */
.search-tabs { display: flex; gap: 2px; }
.search-tabs button {
  font: inherit;
  font-weight: 600;
  border: 0;
  padding: 12px 24px;
  min-height: 44px;
  background: var(--mist);
  color: var(--ink);
  border-radius: var(--radius-m) var(--radius-m) 0 0;
  cursor: pointer;
}
.search-tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }

.search-panel {
  background: var(--blue);
  color: #fff;
  padding: 24px;
  border-radius: var(--radius-m);
  display: grid;
  grid-template-columns: 2.2fr repeat(4, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .875rem; font-weight: 500; }
.field input, .field select {
  font: inherit;
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-s);
  background: #fff;
  color: var(--ink);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231b2550' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.search-panel :focus-visible { outline-color: #fff; }
.search-panel .btn { min-height: 48px; padding: 0 28px; }

/* ---------- Sections ---------- */
section.block { padding: 80px 0; }
section.block.tint { background: var(--mist); }
.block h2 {
  font-stretch: 112%;
  font-weight: 750;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.block .section-intro { color: var(--muted); margin: 0 0 32px; max-width: 60ch; }

/* ---------- Listings ---------- */
.results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.results-count { color: var(--muted); margin: 0 0 24px; }
.listings {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 32px 24px;
}
.listing a { color: inherit; text-decoration: none; display: block; }
.listing a:hover h3 { text-decoration: underline; }
.listing .art {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-m);
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
}
.listing .art svg { width: 100%; height: 100%; display: block; }
.listing .tag {
  position: absolute;
  left: 12px;
  top: 12px;
  background: #fff;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-s);
}
.listing .price { font-size: 1.35rem; font-weight: 700; font-stretch: 110%; margin: 0; }
.listing h3 { font-size: 1rem; font-weight: 500; margin: 2px 0 4px; }
.listing .facts { color: var(--muted); font-size: .9rem; margin: 0; }
.listing .facts span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--line); margin: 0 8px; vertical-align: middle; }

.empty {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-m);
  padding: 40px 24px;
  text-align: center;
}
.empty p { margin: 0 0 16px; }

/* ---------- Roles ---------- */
.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.role {
  background: #fff;
  border-radius: var(--radius-m);
  border-top: 8px solid var(--role-color);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.role[data-role="broker"] { --role-color: var(--role-broker); }
.role[data-role="buyer"] { --role-color: var(--role-buyer); }
.role[data-role="seller"] { --role-color: var(--role-seller); }
.role h3 { font-stretch: 115%; font-weight: 750; font-size: 1.5rem; margin: 0 0 8px; color: var(--role-color); }
.role p { margin: 0 0 16px; }
.role ul { margin: 0 0 24px; padding-left: 20px; color: var(--muted); }
.role ul li + li { margin-top: 4px; }
.role .actions { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; }
.role .btn-role { background: var(--role-color); color: #fff; }
.role .btn-role:hover { filter: brightness(.88); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c8cee3; padding: 48px 0; font-size: .95rem; }
.site-footer .wrap { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.site-footer img { width: 64px; height: 64px; border-radius: var(--radius-s); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: #fff; }

/* ---------- Login page ---------- */
.login-main { padding: 56px 0 96px; }
.login-card {
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-top: 8px solid var(--role-color, var(--blue));
  border-radius: var(--radius-m);
  padding: 32px;
  transition: border-color .2s ease;
}
.login-card h1 { font-stretch: 115%; font-weight: 800; font-size: 2rem; line-height: 1.1; margin: 0 0 8px; }
.login-card .sub { color: var(--muted); margin: 0 0 24px; }
.role-switch {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.role-switch legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.role-switch input { position: absolute; opacity: 0; pointer-events: none; }
.role-switch label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius-s);
  background: var(--mist);
  font-weight: 600;
  cursor: pointer;
}
.role-switch input:checked + label { background: var(--c); color: #fff; }
.role-switch input:focus-visible + label { outline: 3px solid var(--purple); outline-offset: 2px; }
.login-form .field { margin-bottom: 16px; }
.login-form .field input { box-shadow: inset 0 0 0 1.5px var(--line); }
.login-form .field input:focus-visible { box-shadow: inset 0 0 0 1.5px var(--ink); }
.login-form .hint { font-size: .85rem; color: var(--muted); }
.login-form .btn { width: 100%; margin-top: 8px; }
.form-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  background: var(--mist);
  font-size: .95rem;
}
.form-note[hidden] { display: none; }
.login-foot { margin-top: 24px; text-align: center; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .search-panel { grid-template-columns: 1fr 1fr; }
  .search-panel .field-location { grid-column: 1 / -1; }
  .search-panel .btn { grid-column: 1 / -1; }
  .roles { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  /* Phones: the menu becomes a row under the logo instead of disappearing. */
  .site-header .wrap { flex-wrap: wrap; row-gap: 4px; }
  .main-nav { order: 3; flex-basis: 100%; margin: 0 -8px; overflow-x: auto; scrollbar-width: none; }
  .main-nav a { white-space: nowrap; flex: none; }
  .site-header .wrap { justify-content: space-between; }
  .hero { padding-top: 40px; }
  section.block { padding: 56px 0; }
  .search-panel { padding: 16px; }
  .login-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.listing .art img.cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.search-map { height: 340px; border-radius: 8px; border: 1px solid var(--line); margin: 0 0 28px; background: var(--mist); z-index: 0; }
.map-note { font-size: .88rem; color: var(--muted); margin: -20px 0 24px; }
.map-fallback { padding: 16px; color: var(--muted); }
.leaflet-tooltip.price-tip { font: 700 12px/1.2 var(--font); color: var(--ink); padding: 2px 6px; }
.include-contract { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-weight: 500; }
.include-contract input { width: 20px; height: 20px; accent-color: var(--blue); }
.status-badge { position: absolute; left: 12px; bottom: 12px; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 4px; }
.status-badge.tone-open { background: #17663a; color: #fff; }
.status-badge.tone-contract { background: #a05a00; color: #fff; }
.pill.tone-open { background: #e3f3e8; color: #17663a; }
.pill.tone-contract { background: #fff2d6; color: #7a4b00; }
.btn-contact { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); font-size: .92rem; min-height: 40px; padding: 6px 14px; text-align: left; line-height: 1.3; margin-top: 10px; }
.btn-contact:hover { background: #e6eaf6; }
.status-badge.tone-off { background: #55607f; color: #fff; }
.contact-dialog { border: 0; border-radius: 8px; padding: 28px; width: min(480px, calc(100% - 32px)); color: var(--ink); }
.contact-dialog::backdrop { background: rgba(27, 37, 80, .55); }
.contact-dialog .close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 1.5rem; cursor: pointer; }
.contact-dialog h2 { font-stretch: 112%; font-size: 1.5rem; margin: 0 0 8px; padding-right: 40px; }
.contact-dialog h2:focus { outline: none; }
.cp-about { color: var(--muted); margin: 0 0 18px; }
.cp-about strong { color: var(--ink); }
.cp-form .field { display: grid; gap: 6px; margin-bottom: 14px; }
.cp-form .field label { font-size: .875rem; font-weight: 500; }
.cp-form input:not([type=checkbox]), .cp-form select, .cp-form textarea { font: inherit; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--line); background: #fff; color: var(--ink); }
.cp-form textarea { min-height: 96px; resize: vertical; }
.cp-form .check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 4px 0 12px; }
.cp-form .check input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--blue); }
.cp-form .btn-primary { width: 100%; }
.cp-err:empty { display: none; }
.cp-err { color: var(--red-strong); font-weight: 600; margin: 0 0 12px; }
.hint { font-size: .85rem; color: var(--muted); font-weight: 400; }
.btn-contact { width: 100%; justify-content: flex-start; }

/* Phones with a notch or rounded corners (also inside the iPhone and Android apps) */
.site-header { padding-top: env(safe-area-inset-top); }
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); padding-bottom: env(safe-area-inset-bottom); }
.search-panel { grid-template-columns: 1.6fr 1.4fr repeat(4, 1fr) auto; }
.listing .snippet { margin: 6px 0 0; font-size: .88rem; color: var(--ink); background: #fff8d6; padding: 4px 8px; border-radius: 4px; }
.listing .rec-line { margin: 4px 0 0; font-size: .78rem; color: var(--muted); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .search-panel .field-keywords { grid-column: 1 / -1; } }

/* ---------- Banner Builder: the REalPro chyron on the first photo ---------- */
/* In cards the banner is its own button laid over the bottom of the photo (a button can't sit
   inside the card link). The photo is 4:3 and full width, so its bottom edge is at 75cqi. */
.listing { position: relative; container-type: inline-size; }
.gallery-main, .banner-stage { container-type: inline-size; }
.rp-banner {
  --rb-bg: rgba(27, 37, 80, .9); --rb-fg: #fff; --rb-sub: rgba(255, 255, 255, .86); --rb-edge: var(--red);
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; align-items: center; gap: 2.6cqi; width: 100%; box-sizing: border-box;
  margin: 0; padding: 2.2cqi 3cqi; border: 0;
  background: var(--rb-bg); color: var(--rb-fg);
  border-top: max(2px, .8cqi) solid var(--rb-edge);
  font: inherit; font-size: clamp(9px, 3.3cqi, 15px); line-height: 1.25; text-align: left;
}
.listing > .rp-banner { bottom: auto; top: 75cqi; transform: translateY(-100%); border-radius: 0 0 var(--radius-m) var(--radius-m); }
button.rp-banner { cursor: pointer; transition: filter .15s; }
button.rp-banner:hover { filter: brightness(1.12); }
button.rp-banner:hover .rb-cta { text-decoration: underline; }
button.rp-banner:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.rp-banner.theme-purple { --rb-bg: rgba(84, 22, 82, .9); --rb-edge: #f4b8f2; }
.rp-banner.theme-red { --rb-bg: rgba(150, 14, 18, .92); --rb-edge: #fff; }
.rp-banner.theme-light { --rb-bg: rgba(255, 255, 255, .94); --rb-fg: var(--ink); --rb-sub: var(--muted); --rb-edge: var(--blue); }
.rp-banner img.rb-face, .rp-banner .rb-face {
  flex: none; width: clamp(28px, 13cqi, 64px); height: clamp(28px, 13cqi, 64px); border-radius: 50%;
  object-fit: cover; border: 2px solid var(--rb-fg); background: var(--blue);
}
.rp-banner .rb-initials { display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.05em; }
.rp-banner .rb-text { min-width: 0; flex: 1; display: block; }
.rp-banner .rb-text > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-banner .rb-firm { font-weight: 700; font-size: 1.05em; }
.rp-banner .rb-pro::after { content: " · "; font-weight: 400; }
.rp-banner .rb-line { color: var(--rb-sub); font-size: .9em; }
.rp-banner .rb-cta { flex: none; display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: .95em; padding: .35em .5em .35em .8em; border-radius: 999px; border: 1.5px solid currentColor; }
.rp-banner .rb-cta svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.5; }
.rp-banner img.rb-logo {
  flex: none; width: auto; height: clamp(24px, 11cqi, 56px); max-width: 24cqi; object-fit: contain;
  background: #fff; border-radius: 4px; padding: 2px;
}
@container (max-width: 520px) { .rp-banner .rb-cta { font-size: 0; padding: 3px; } .rp-banner .rb-cta svg { width: 16px; height: 16px; } }
@container (max-width: 360px) { .rp-banner .rb-pro { display: none; } }
.gallery-main:has(.rp-banner) figcaption { bottom: auto; top: 12px; }
.listing:has(> .rp-banner) .status-badge { bottom: auto; top: 46px; }
.listing:has(> .rp-banner) .photo-count { bottom: auto; top: 12px; right: 64px; }

/* Compensation Disclosure explanation (js/comp-disclosure.js), shared by commissions.html and the seller's Home page */
.cd-explain section h3 { margin: 0 0 6px; font-size: 1.05rem; }
.cd-explain section p { margin: 0 0 8px; line-height: 1.6; }

/* Draw an area on a map (SearchMap.areaTool): waypoints, undo, draggable outline. */
.leaflet-bar.area-tool { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; background: #fff; padding: 4px; max-width: min(460px, calc(100vw - 90px)); border: 0; box-shadow: 0 2px 10px rgba(27, 37, 80, .3); border-radius: 10px; }
.area-tool button { font: inherit; font-size: .88rem; font-weight: 600; border: 0; background: #eef1f8; color: #1b2550; border-radius: 8px; padding: 0 12px; min-height: 36px; cursor: pointer; }
.area-tool button.on { background: #1b2550; color: #fff; }
.area-tool .area-tip { font-size: .84rem; color: #1b2550; padding: 0 6px; flex: 1 1 140px; }
.area-pt { background: #fff; border: 3px solid #1b52c4; border-radius: 50%; box-sizing: border-box; cursor: grab; }
.leaflet-container.drawing, .leaflet-container.drawing .leaflet-interactive { cursor: crosshair !important; }

/* Map | Satellite toggle (js/map-layers.js). */
.leaflet-bar.base-toggle { display: flex; border: 0; box-shadow: 0 2px 8px rgba(27, 37, 80, .3); border-radius: 8px; overflow: hidden; background: #fff; }
.base-toggle button { font: inherit; font-size: .85rem; font-weight: 600; border: 0; background: #fff; color: #1b2550; padding: 0 12px; min-height: 34px; cursor: pointer; }
.base-toggle button[aria-pressed="true"] { background: #1b2550; color: #fff; }
.base-satellite .price-tip { box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }

/* Open houses (js/open-houses.js). */
.oh-badge { display: inline-block; background: #fff2d6; color: #7a4b00; font-size: .78rem; font-weight: 700; border-radius: 4px; padding: 2px 8px; margin: 2px 0 4px; }
.oh-block { background: #fffaf0; border: 1px solid #f1dfb5; border-radius: 10px; padding: 12px 16px; margin: 12px 0; }
.oh-block h3 { font-size: 1rem; margin: 0 0 6px; }
.oh-block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.oh-cal { font-size: .88rem; font-weight: 600; }
.oh-dialog { width: min(640px, 94vw); }
.oh-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.oh-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: #f4f6fb; border-radius: 8px; }
.oh-list li.cancelled, .oh-list li.past { opacity: .6; }
.oh-aud { border: 0; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.oh-aud legend { font-weight: 700; margin-bottom: 6px; width: 100%; }
.oh-aud label, .oh-form .check { display: flex; gap: 8px; align-items: center; }
.oh-aud input, .oh-form .check input { width: 20px; height: 20px; min-height: 0; padding: 0; }
.sms-consent { display: block; margin-top: 6px; font-size: .82rem; line-height: 1.45; }

/* Text messaging page (text-messaging.html). */
.sms-sec { max-width: 760px; margin: 0 0 36px; }
.sms-sec h2 { font-size: 1.4rem; margin: 0 0 12px; }
.sms-sec h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.sms-sec blockquote { margin: 12px 0; padding: 14px 18px; background: var(--mist, #f3f5fa); border-left: 4px solid #1b2550; border-radius: 6px; font-size: .98rem; line-height: 1.55; }
.sms-sec figure { margin: 16px 0 8px; }
.sms-sec figure img { width: 100%; max-width: 520px; height: auto; border: 1px solid #dfe3ee; border-radius: 10px; }
.sms-sec figcaption { color: #55607f; font-size: .85rem; margin-top: 6px; }
/* Flood zones layer (js/map-layers.js). */
.base-toggle .flood-toggle { border-left: 1px solid var(--line); }
.base-toggle .flood-toggle[aria-pressed="true"] { background: #2f6fa8; color: #fff; }
.flood-legend { background: rgba(255,255,255,.94); border-radius: 6px; padding: 5px 8px; font-size: .75rem; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.flood-legend span[class^="fl-"] { display: inline-block; width: 12px; height: 12px; vertical-align: -2px; margin: 0 3px 0 6px; border-radius: 2px; }
.flood-legend .fl-hi { background: rgba(40,130,210,.75); margin-left: 0; }
.flood-legend .fl-mod { background: rgba(245,160,60,.75); }
.flood-legend .fl-way { background: rgba(210,50,50,.8); }
.flood-legend .hint { display: block; font-size: .7rem; color: var(--muted); }

/* The REalPro Standard (js/pro-standard.js) */
.ps-list { margin: 10px 0; padding-left: 22px; display: grid; gap: 10px; }
.ps-list li { line-height: 1.45; } .ps-list b { display: block; font-size: 1.05rem; }
.ps-intro { color: var(--muted, #55607f); margin: 0; }
.ps-dialog { max-width: 620px; }
.ps-form { margin: 12px 0 6px; } .ps-acts { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.ps-roster { list-style: none; padding: 0; margin: 8px 0; }
.ps-roster li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line, #d9deec); }
.ps-roster li.due span:last-child { color: #9b1c1c; font-weight: 600; } .ps-roster li.ok span:last-child { color: #1d6b37; }
.ps-public .ps-list b { font-size: 1.2rem; } .ps-public .ps-list { gap: 16px; font-size: 1.05rem; }
.ps-never { border: 2px solid #b4141a; background: #fff5f5; border-radius: 10px; padding: 12px 16px; margin: 12px 0; }
.ps-never h3 { margin: 0 0 6px; color: #9b1c1c; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }
.ps-never ul { margin: 0 0 8px; padding-left: 20px; } .ps-never li { margin: 4px 0; }
.ps-never p { margin: 0; color: #7a1010; }
.ps-form .check { margin: 6px 0; }

/* Discipline (js/discipline.js) */
.ds-levels, .ds-steps { padding-left: 22px; display: grid; gap: 8px; }
.ds h3 { margin-top: 18px; }
.pc-h { margin: 14px 0 4px; font-size: 1rem; } .pc-list { margin: 0 0 6px; padding-left: 22px; } .pc-list li { margin: 3px 0; }
.pc-scroll { max-height: 46vh; overflow: auto; border: 1px solid var(--line, #d9deec); border-radius: 8px; padding: 4px 14px 10px; margin: 8px 0 12px; }
.pc-sign { display: grid; gap: 4px; margin: 10px 0; font-weight: 600; } .pc-sign input { font: 600 1.1rem/1.3 Georgia, serif; padding: 8px 10px; }
.hire-note { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: #eef7f1; border: 1px solid #b9dfc9; color: #1f4f2f; font-weight: 600; }

/* Phones: the map's credits wrap across the bottom and the List button floats there, so the Map / Satellite / Flood zones
   buttons move to the top left, under the map's other buttons. */
@media (max-width: 640px) {
  .leaflet-control-attribution { font-size: 10px; line-height: 1.35; }
  .map-wrap .leaflet-bottom.leaflet-left { top: 132px; bottom: auto; }
  .map-wrap .leaflet-bottom.leaflet-left .leaflet-control { margin-bottom: 0; }
}
.role-more { margin: 12px 0 0; font-weight: 700; }
.pub-more { margin: 10px 0 0 !important; font-weight: 700; }

/* Firm and license under a REalPro's name in Find a REalPro (js/pro-directory.js idLine) */
.pro-card .pro-id { font-weight: 600; color: var(--ink); margin: 2px 0; }
/* "← Back" on pages without the site menu (sign-in portals, unsubscribe): js/api.js [data-rp-back] */
.rp-back-bar { max-width: 1080px; margin: 0 auto; padding: 14px 16px 0; }
.rp-back-bar a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink, #1b2550); text-decoration: none; padding: 8px 14px; border: 1.5px solid var(--line, #dfe3ea); border-radius: 8px; background: #fff; }
.rp-back-bar a:hover { background: var(--mist, #eef1f6); }
/* login.html: a new client chooses buy, sell or both. */
.goal-pick { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.goal-pick legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.goal-pick .check { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.goal-pick .hint { flex-basis: 100%; }
/* login.html: a client picks buying or selling each time they sign in. */
.side-pick h2 { margin: 0 0 16px; font-size: 1.35rem; }
.side-pick-btn { display: block; width: 100%; text-align: left; font: inherit; background: #fff; border: 2px solid var(--line, #dfe3ee); border-radius: 14px; padding: 16px 18px; margin: 0 0 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.side-pick-btn strong { display: block; font-size: 1.2rem; color: var(--navy, #1b2550); margin-bottom: 4px; }
.side-pick-btn span { color: var(--muted, #5a6480); }
.side-pick-btn[data-pick-side="buyer"]:hover, .side-pick-btn[data-pick-side="buyer"]:focus-visible { border-color: var(--role-buyer); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.side-pick-btn[data-pick-side="seller"]:hover, .side-pick-btn[data-pick-side="seller"]:focus-visible { border-color: var(--role-seller); box-shadow: 0 4px 14px rgba(0,0,0,.06); }

/* The REalPro Standard as an oath (js/pro-standard.js): color, and bolder letters */
.ps-oath { background: linear-gradient(160deg, #f3f5ff 0%, #fff 55%, #fff4f4 100%); border: 1px solid #dfe3f5; border-top: 6px solid transparent; border-image: linear-gradient(90deg, #1b2550, #3b54a5, #7a2c86, #c8102e) 1; border-image-slice: 1; padding: 18px 20px 16px; margin: 12px 0; }
.ps-open { margin: 0 0 12px; font-size: 1.15rem; font-weight: 800; color: #1b2550; letter-spacing: .01em; }
.ps-oath .ps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ps-oath .ps-list li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; line-height: 1.5; font-weight: 500; color: #1b2550; }
.ps-oath .ps-list li b { display: block; font-size: 1.1rem; font-weight: 800; margin-bottom: 2px; }
.ps-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.05rem; box-shadow: 0 2px 6px rgba(27, 37, 80, .2); }
.ps-p1 .ps-n { background: #1b2550; } .ps-p1 b { color: #1b2550; }
.ps-p2 .ps-n { background: #3b54a5; } .ps-p2 b { color: #3b54a5; }
.ps-p3 .ps-n { background: #1f7a45; } .ps-p3 b { color: #1f7a45; }
.ps-p4 .ps-n { background: #7a2c86; } .ps-p4 b { color: #7a2c86; }
.ps-p5 .ps-n { background: #c8102e; } .ps-p5 b { color: #c8102e; }
.ps-close { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed #c9cfe6; font-weight: 800; font-style: italic; color: #7a2c86; font-size: 1.05rem; }
.ps-public .ps-oath .ps-list li b { font-size: 1.25rem; } .ps-public .ps-oath .ps-list { gap: 16px; font-size: 1.08rem; }
.ps-dialog .ps-form .check span { font-weight: 600; }
.ps-form .check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; } .ps-form .check input { width: 20px; height: 20px; flex: none; margin-top: 3px; accent-color: #7a2c86; }
/* A new REalPro's first step: the platform, then the oath (login.html) */
.ps-first { text-align: left; }
.ps-kicker { margin: 0 0 6px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: linear-gradient(90deg, #3b54a5, #7a2c86, #c8102e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ps-first h2 { margin: 0 0 10px; font-size: 1.55rem; line-height: 1.2; color: #1b2550; }
.ps-lead { margin: 0 0 10px; font-size: 1.02rem; font-weight: 500; color: #1b2550; line-height: 1.55; }
.ps-h3 { margin: 18px 0 0; font-size: 1.15rem; color: #1b2550; }
.ps-first .ps-form .check span { font-weight: 600; }
/* The REPA band on the home pages (index.html, public-site/index.html; the full story is repa.html) */
.repa-band { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: center; background: linear-gradient(135deg, #1b2550 0%, #2c3f8f 60%, #3b54a5 100%); color: #fff; border-radius: 18px; padding: clamp(22px, 4vw, 38px); }
.repa-band h2 { color: #fff; margin: 0 0 10px; font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem); line-height: 1.15; max-width: 22ch; }
.repa-band p { margin: 0 0 16px; line-height: 1.55; max-width: 60ch; color: rgba(255, 255, 255, .92); } .repa-band p b { color: #ffd76a; }
.repa-band-k { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-bottom: 6px !important; }
.repa-band-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.repa-band .repa-band-ghost, .repa-band .repa-band-ghost:visited { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .7); }
.repa-band-card { display: grid; gap: 6px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); border-radius: 14px; padding: 18px; transform: rotate(-2deg); box-shadow: 0 14px 30px rgba(0, 0, 0, .22); }
.repa-band-card span { font-weight: 800; letter-spacing: .03em; font-size: .95rem; } .repa-band-card strong { font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.repa-band-card i { display: flex; gap: 2px; height: 9px; border-radius: 99px; overflow: hidden; } .repa-band-card small { opacity: .8; }
@media (max-width: 760px) { .repa-band { grid-template-columns: 1fr; } .repa-band-card { transform: none; } }

/* "License verified with the Real Estate Commission" (js/pro-public.js, js/pro-finder.js; server/offerings.mjs directory) */
.lic-verified { display: inline-flex; align-items: center; gap: 5px; margin: 2px 0 4px; font-size: .82rem; font-weight: 700; color: #14532d; }
.lic-verified svg { width: 17px; height: 17px; color: #1f7a45; flex: none; }

/* Choosing a REalPro: the note box (js/pro-finder.js askNote). */
.pf-note { border: 0; border-radius: 20px; padding: 0; width: min(500px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; box-shadow: 0 24px 70px rgba(27, 37, 80, .35); color: var(--ink); }
.pf-note::backdrop { background: rgba(27, 37, 80, .5); backdrop-filter: blur(2px); }
.pf-note form { padding: 26px 26px 22px; display: grid; gap: 14px; position: relative; }
.pf-note-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 50%; }
.pf-note-x:hover { background: var(--mist); }
.pf-note-who { display: flex; align-items: center; gap: 14px; padding-right: 30px; }
.pf-note-who .avatar { flex: none; }
.pf-note-kicker { margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.pf-note h2 { margin: 2px 0 0; font-size: 1.4rem; line-height: 1.2; }
.pf-note-firm { margin: 2px 0 0; color: var(--muted); font-weight: 600; }
.pf-note-when { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pf-note-when legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.pf-note-when label { cursor: pointer; }
.pf-note-when input { position: absolute; opacity: 0; pointer-events: none; }
.pf-note .pf-note-when span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .92rem; background: #fff; color: var(--ink); }
.pf-note-when label:hover span { border-color: var(--blue); }
.pf-note .pf-note-when input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pf-note-when input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.pf-note-lbl { font-weight: 700; } .pf-note-lbl span { font-weight: 500; color: var(--muted); }
.pf-note textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; resize: vertical; background: var(--mist); }
.pf-note textarea:focus { background: #fff; }
.pf-note-tip { margin: 0; display: flex; gap: 10px; align-items: flex-start; background: #eef2fb; border-radius: 12px; padding: 10px 12px; font-size: .88rem; color: #374061; line-height: 1.45; }
.pf-note-tip svg { flex: none; width: 18px; height: 18px; color: var(--blue); margin-top: 1px; }
.pf-note-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pf-note-btns .btn-primary { flex: 1 1 auto; }
@media (max-width: 480px) { .pf-note form { padding: 20px 16px 16px; gap: 12px; } .pf-note .avatar.big { width: 56px; height: 56px; font-size: 1.1rem; } .pf-note h2 { font-size: 1.2rem; } .pf-note textarea { min-height: 72px; } .pf-note-btns .btn { flex: 1 1 auto; } }

/* REalProz's own question and message box (js/rp-dialog.js), in place of the browser's pop-ups. */
.rp-dlg { border: 0; border-radius: 20px; padding: 0; width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; box-shadow: 0 24px 70px rgba(27, 37, 80, .35); color: var(--ink); }
.rp-dlg::backdrop { background: rgba(27, 37, 80, .5); backdrop-filter: blur(2px); }
.rp-dlg form { padding: 24px 24px 20px; display: grid; gap: 12px; position: relative; }
.rp-dlg h2 { margin: 0; padding-right: 30px; font-size: 1.25rem; line-height: 1.3; }
.rp-dlg-body { margin: 0; color: #374061; line-height: 1.5; white-space: pre-line; }
.rp-dlg-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 50%; }
.rp-dlg-x:hover { background: var(--mist); }
.rp-dlg-in { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: var(--mist); }
.rp-dlg-in:focus { background: #fff; }
.rp-dlg-err { margin: 0; color: var(--red-strong); font-weight: 600; }
.rp-dlg-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.rp-dlg-btns .btn { flex: 1 1 auto; }
.rp-dlg .btn-danger { background: var(--red-strong); border-color: var(--red-strong); color: #fff; }

/* The client's simple "Emailing your REalPro instead?" (js/client-file.js). */
.cf-mail-simple { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.cf-mail-simple summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.cf-mail-simple p { margin: 8px 0; color: #374061; line-height: 1.5; }
.cf-mail-simple code { font-size: .85rem; word-break: break-all; }

/* Phones: a text box never pushes the page sideways, and its text is 16px so the iPhone doesn't zoom in when it's tapped. */
@media (max-width: 720px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea { font-size: 16px !important; max-width: 100%; }
  .dc-grid > *, .form-grid > *, .field { min-width: 0; }
}
@media (max-width: 720px) {
  /* Grids and rows on a narrow phone: columns may shrink below their content's natural width, so nothing spills sideways. */
  .dc-grid label, .dc-grid label > *, .field > *, .filter-grid > *, .pp-checks > li, .pp-checks > li > *, .tabbar > * { min-width: 0; }
  .dc-grid select, .field > input, .field > select { width: 100%; }
  .rx-cardwrap { grid-template-columns: minmax(0, 1fr) !important; }
  .pp-checks > li span { overflow-wrap: anywhere; }
  .tabbar .tab-label { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}
@media (max-width: 720px) {
  .mo-sides { flex-wrap: wrap; }
  .rx-check { grid-template-columns: minmax(0, 1fr) !important; }
  .rx-check > * { min-width: 0; }
}
/* Phones: room for a thumb. Footer links, small buttons and link-style buttons get a 40px-tall tap area. */
@media (max-width: 720px) {
  footer nav a, .site-footer nav a, .ws-footer nav a { display: inline-block; padding: 10px 8px; min-height: 40px; }
  .btn-sm { min-height: 40px; }
  button.linklike, a.linklike { min-height: 40px; display: inline-flex; align-items: center; }
  details > summary { padding-block: 8px; }
  .rx-check input { font-size: 16px; }
}
/* Phones, the rest of the small tap targets. */
@media (max-width: 720px) {
  .leaflet-touch .leaflet-bar a { width: 40px !important; height: 40px !important; line-height: 40px !important; font-size: 20px !important; }
  .leaflet-control-attribution a { display: inline-block; padding: 6px 2px; }
  .cre-pin { position: relative; } .cre-pin::after { content: ""; position: absolute; inset: -9px -6px; }   /* a bigger touch area; the pin looks the same */
  .stat-link a, .nw-head a, .results-head a { display: inline-flex; align-items: center; min-height: 40px; }
  .kw-try button, .ad-report { min-height: 40px; }
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select { min-height: 40px; }
  span > button.linklike, p > button.linklike { min-width: 40px !important; justify-content: center; }
}
@media (max-width: 720px) {
  .kw-try button, .ad-report, .up-head a, .bb-img-row a, .stat-link a { min-height: 40px !important; display: inline-flex !important; align-items: center; }
  .kw-try button { padding-inline: 12px !important; }
}
/* Tester feedback (js/tester.js, test site only): a small pill at the bottom left, above the phone tab bar. */
.tf-btn { position: fixed; left: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60; border: 0; border-radius: 999px; padding: 9px 14px; min-height: 40px;
  background: #80287e; color: #fff; font: 700 .85rem/1 Archivo, Arial, sans-serif; box-shadow: 0 4px 14px rgba(27, 37, 80, .25); cursor: pointer; opacity: .92; }
.tf-btn:hover, .tf-btn:focus-visible { opacity: 1; }
@media (max-width: 900px) { body:has(.tabbar) .tf-btn { bottom: calc(84px + env(safe-area-inset-bottom)); } }
@media print { .tf-btn { display: none; } }
.tf-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.tf-kinds label { display: flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; min-height: 40px; cursor: pointer; }
.tf-kinds label:has(input:checked) { border-color: #80287e; background: #f7eef7; font-weight: 700; }
.tf-shot { display: flex; gap: 8px; align-items: center; margin: 10px 0 4px; min-height: 40px; } .tf-shot-ok { margin: 0; font-size: .9rem; color: #17663a; }
.sf-no { min-height: 40px; padding: 0 8px; }
.tf-dlg { width: min(560px, calc(100vw - 24px)); box-sizing: border-box; }
.tf-dlg .rp-dlg-in, .tf-dlg textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.tf-shot { flex-wrap: wrap; } .tf-shot input { max-width: 100%; min-width: 0; font-size: 16px; }
/* The trust card (js/trust-card.js) */
.trust-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: #fff; display: grid; gap: 12px; }
.trust-head { display: flex; gap: 12px; align-items: flex-start; } .trust-head h2 { margin: 0; font-size: 1.2rem; } .trust-head p { margin: 2px 0 0; color: var(--muted); }
.trust-seal { color: #17663a; flex: none; } .trust-seal svg { width: 34px; height: 34px; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.trust-list li { display: flex; gap: 10px; align-items: flex-start; background: #f2f8f4; border-radius: 12px; padding: 10px 12px; min-width: 0; }
.trust-ok { color: #17663a; flex: none; margin-top: 2px; } .trust-list b { display: block; } .trust-list b a { color: inherit; } .trust-list small { color: var(--muted); display: block; line-height: 1.45; }
.trust-line { display: inline-flex; gap: 6px; align-items: center; color: #17663a; font-weight: 700; font-size: .85rem; } .trust-line svg { width: 16px; height: 16px; }
/* Where an email opens (js/mail-link.js) */
.ml-choices { display: grid; gap: 8px; margin: 4px 0 10px; } .ml-choices .btn { justify-content: center; min-height: 46px; }
.ml-keep { display: flex; gap: 8px; align-items: center; min-height: 40px; }
.ml-pref { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0; } .ml-pref select { min-height: 40px; }

/* REalPro sign-up: full REalPro or the free Referral REalPro (login.html). */
.plan-pick { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.plan-pick legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.plan-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line, #d9deec); border-radius: 10px; margin-bottom: 8px; cursor: pointer; background: #fff; }
.plan-opt:has(input:checked) { border-color: #3952a4; box-shadow: 0 0 0 2px rgba(57, 82, 164, .18); }
.plan-opt input[type=radio] { appearance: auto; -webkit-appearance: radio; margin: 4px 0 0; padding: 0; border: 0; box-shadow: none; background: none; flex: none; width: 18px; height: 18px; min-height: 0; accent-color: #3952a4; }
.plan-opt span { display: block; min-width: 0; } .plan-opt small { display: block; color: var(--muted, #55607f); margin-top: 2px; line-height: 1.45; }
.plan-free { font-style: normal; font-size: .8rem; font-weight: 700; color: #1f5d33; background: #e6f4ea; border-radius: 999px; padding: 2px 8px; margin-left: 4px; }
/* Sign-up: the separate text-message consent box (never pre-checked; text-messaging.html). */
.sms-optin { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line, #d9deec); border-radius: 8px; font-size: .84rem; line-height: 1.45; background: #fafbfe; }
.sms-optin input[type=checkbox] { appearance: auto; -webkit-appearance: checkbox; flex: none; width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; padding: 0; border: 0; box-shadow: none; background: none; accent-color: #3952a4; }
