/* NestFlo condo booking -- realtor accounts (realtor.py).

   Loaded only on the realtor pages and on /login while the realtor door
   is on. The sign-in side sits in the site's own doorway (site.css); the
   signed-in side in the property account's frame (account.css).
   Mobile first, nothing under 14px, every tap target 44px. */

/* ----------------------------------------------------- shared pieces */

.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.realtor .field, .ws .field { margin: 0 0 4px; min-width: 0; }
.realtor .field label, .ws .field label { display: block; font-weight: 600; font-size: 15px; color: var(--navy); margin: 14px 0 6px; }
.realtor .opt, .ws .opt { font-weight: 400; color: var(--muted); }
.msg { min-height: 0; margin: 6px 0 0; color: var(--red); font-size: 14px; font-weight: 600; }
.msg:empty { display: none; }
[aria-invalid="true"] { border-color: var(--red) !important; }
.inline { display: inline; }
.linkish { background: none; border: 0; padding: 0; color: var(--teal-strong); font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }

/* ----------------------------------------------- the sign-in side */

.realtor .doorway .in.single { max-width: 720px; display: block; }
.realtor .stackform .btn.primary { width: 100%; margin-top: 18px; }
.realtor .labelrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 14px 0 6px; }
.realtor .labelrow label { margin: 0 !important; }
.realtor .labelrow a { font-size: 14px; color: var(--teal-strong); }
.realtor .divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 12px; color: var(--muted); font-size: 14px; font-weight: 600; }
.realtor .divider::before, .realtor .divider::after { content: ""; flex: 1; height: 1px; background: var(--edge); }
.realtor .code-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }   /* stacked on a phone: the button's words need the room */
.realtor .code-row input { min-width: 0; width: 100%; font-size: 17px; }
.realtor .code-row .btn { white-space: nowrap; }
.realtor .foot { margin-top: 22px; }
.realtor .pitch .who { margin-top: 16px; }
.realtor .pitch .who p { margin: 0; }
.realtor .pitch .who strong { color: #fff; }
.realtor .grid2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 18px; }
.realtor .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 18px 0; }
.realtor .row .after { margin: 0; color: var(--muted); font-size: 14px; flex: 1 1 220px; }
.realtor .row .btn.primary { width: auto; margin: 0; }
.realtor .checked { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.realtor .questions { margin: 22px 0 0; color: var(--muted); font-size: 15px; }
.ws .questions { margin: 28px 0 0; color: var(--ws-muted); font-size: 15px; }
.realtor .questions a, .ws .questions a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.done-page { text-align: center; max-width: 560px; margin: 0 auto; }
.done-page .badge {
  display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 0 12px;
  border-radius: 50%; background: var(--teal-wash); color: var(--teal-strong); font-size: 32px; font-weight: 700;
}
.done-page .badge.wait { background: var(--amber-wash); color: var(--amber-ink); }
.done-page .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }

/* ------------------------------------------------ the signed-in side */

.ws .welcome h2, .ws .offerband h2 { margin-bottom: 8px; }
.ws .welcome .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.ws .offerband h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); }
.ws .offerband .links a { color: #B9E8DC; }
.ws .pill.navy { background: #17345B; color: #fff; }
.ws .reftable { width: 100%; border-collapse: collapse; }
.ws .reftable th { text-align: left; font-size: 14px; color: var(--ws-muted); padding: 8px 10px; border-bottom: 1px solid var(--ws-edge); }
.ws .reftable td { padding: 12px 10px; border-bottom: 1px solid var(--ws-edge); vertical-align: top; }
.ws .small { font-size: 14px; }
.ws .back { margin: 0 0 8px; }
.ws .agent {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 12px 16px;
  border: 1px solid var(--ws-edge); border-radius: 12px; background: var(--ws-cream);
}
.ws .agent p { margin: 0; }
.ws .referform fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.ws .referform legend { padding: 0; }
.ws .referform legend h2 { margin: 0; }
.ws .grid2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 18px; }
.ws .consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: #F6F0E3; }
.ws .consent.bad { outline: 2px solid var(--red); }
.ws .consent label { margin: 0; font-weight: 400; color: var(--ws-ink); }
.ws .consent input { flex: none; margin-top: 2px; }
.ws .referform > .btn.primary { margin-top: 18px; width: 100%; }
.ws .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* "See what your client receives" */
.ws .preview { margin: 0 0 16px; }
.ws .preview summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.ws .seg { display: inline-flex; margin: 10px 0 14px; border: 1px solid var(--ws-edge); border-radius: 10px; overflow: hidden; }
.ws .seg[hidden] { display: none; }
.ws .seg button { min-height: 44px; padding: 0 18px; border: 0; background: #fff; color: var(--ws-ink); font: inherit; font-weight: 600; cursor: pointer; }
.ws .seg button[aria-pressed="true"] { background: var(--ws-ink); color: #fff; }
.ws .pv { margin: 0 0 12px; }
.ws .pv[hidden] { display: none; }
.ws .pv-tag { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--ws-muted); }
.ws .js .pv-tag { display: none; }
.ws .sms-bubble { max-width: 420px; padding: 12px 16px; border-radius: 18px 18px 18px 4px; background: #E9EEF4; white-space: pre-line; }
.ws .sms-bubble p { margin: 0; }
.ws .mail { padding: 14px 18px; border: 1px solid var(--ws-edge); border-radius: 12px; background: #fff; }
.ws .mail .from { margin: 0; font-size: 14px; color: var(--ws-muted); }
.ws [data-fill="first"] { background: #FFF3C4; border-radius: 4px; padding: 0 2px; }

/* A phone reads the table as one card per client. */
@media (max-width: 799px) {
  .ws .reftable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ws .reftable, .ws .reftable tbody, .ws .reftable tr, .ws .reftable td { display: block; width: 100%; }
  .ws .reftable tr { padding: 10px 0; border-bottom: 1px solid var(--ws-edge); }
  .ws .reftable td { padding: 4px 0; border: 0; }
  .ws .reftable td::before { content: attr(data-label); display: block; font-size: 14px; font-weight: 600; color: var(--ws-muted); }
  .ws .reftable td:first-child::before { display: none; }
}

@media (min-width: 640px) {
  .realtor .code-row { grid-template-columns: minmax(0, 1fr) auto; }
  .realtor .grid2, .ws .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .realtor .grid2 .full, .ws .grid2 .full { grid-column: 1 / -1; }
  .ws .referform > .btn.primary { width: auto; }
}
