/* WRH rentals, resident portal and admin. Loaded after styles.css; every class here starts with a-, r- or p- so nothing collides. */
:root {
  --a-bg: #FAF7F2; --a-card: #FFFFFF; --a-ink: #1D1B18; --a-ink-3: #3A362F; --a-sub: #5A544A; --a-muted: #6E685C;
  --a-line: #DCD6C7; --a-line-2: #E9E4DA; --a-line-3: #F0ECE3; --a-sand: #F4EFE4; --a-gold: #F59E0B; --a-gold-dk: #D97706; --a-gold-text: #92400E;
  --a-ok: #166534; --a-ok-bg: rgba(22,163,74,0.10); --a-warn: #92400E; --a-warn-bg: rgba(245,158,11,0.16);
  --a-bad: #991B1B; --a-bad-bg: rgba(185,28,28,0.10); --a-info: #1E40AF; --a-info-bg: rgba(37,99,235,0.10);
  --a-radius: 14px; --a-mono: 'DM Mono', ui-monospace, monospace; --a-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Building blocks ---------- */
.a-eyebrow { margin: 0 0 8px; font-family: var(--a-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--a-gold-text); }
.a-muted { color: var(--a-muted); }
.a-sub { color: var(--a-sub); }
.a-mono { font-family: var(--a-mono); }
.a-small { font-size: 13px; }
.a-nowrap { white-space: nowrap; }
.a-right { text-align: right; }
.a-hidden { display: none !important; }
.a-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.a-stack { display: flex; flex-direction: column; gap: 12px; }
.a-stack--lg { gap: 20px; }
.a-row-gap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.a-spread { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

.a-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 12px; border: 1px solid transparent; font: 700 14px/1.2 var(--a-sans); text-decoration: none; cursor: pointer;
  background: var(--a-ink); color: #FAF7F2; transition: background .15s ease, border-color .15s ease, transform .15s ease; white-space: nowrap;
}
.a-btn:hover { background: var(--a-ink-3); }
.a-btn:disabled, .a-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.a-btn--dark { background: var(--a-ink); color: #FAF7F2; }
.a-btn--gold { background: var(--a-gold-dk); color: var(--a-ink); }
.a-btn--gold:hover { background: var(--a-gold); }
.a-btn--line { background: #FFF; color: var(--a-ink); border-color: var(--a-line); }
.a-btn--line:hover { background: var(--a-sand); border-color: #CFC7B6; }
.a-btn--ghost { background: transparent; color: var(--a-ink); border-color: transparent; }
.a-btn--ghost:hover { background: var(--a-line-3); }
.a-btn--danger { background: #FFF; color: var(--a-bad); border-color: rgba(185,28,28,0.35); }
.a-btn--danger:hover { background: var(--a-bad-bg); }
.a-btn--sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.a-btn--block { width: 100%; }
.a-link { color: var(--a-gold-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }

.a-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 8px; font: 500 12px/1.4 var(--a-mono); background: var(--a-sand); color: #3F3A33; white-space: nowrap; }
.a-chip--ok { background: var(--a-ok-bg); color: var(--a-ok); }
.a-chip--warn { background: var(--a-warn-bg); color: var(--a-warn); }
.a-chip--bad { background: var(--a-bad-bg); color: var(--a-bad); }
.a-chip--info { background: var(--a-info-bg); color: var(--a-info); }
.a-chip--dark { background: var(--a-ink); color: #FAF7F2; }
.a-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

.a-card { background: var(--a-card); border: 1px solid var(--a-line-2); border-radius: 16px; padding: 22px; }
.a-card--flush { padding: 0; overflow: hidden; }
.a-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.a-card__head h2, .a-card h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.a-card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.a-card p { margin: 0 0 10px; }

.a-note { padding: 12px 14px; border-radius: 12px; background: var(--a-sand); color: var(--a-sub); font-size: 13.5px; line-height: 1.5; }
.a-note strong { color: var(--a-ink); }
.a-note--warn { background: var(--a-warn-bg); color: #6B3410; }
.a-note--bad { background: var(--a-bad-bg); color: var(--a-bad); }
.a-note--ok { background: var(--a-ok-bg); color: var(--a-ok); }
.a-note--info { background: var(--a-info-bg); color: #1E3A8A; }
.a-empty { padding: 28px 18px; text-align: center; color: var(--a-muted); font-size: 14px; }

/* Forms */
.a-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.a-field > span, .a-label { font-size: 13px; font-weight: 600; color: var(--a-ink); }
.a-field small, .a-help { font-size: 12.5px; color: var(--a-muted); line-height: 1.45; }
.a-input, .a-select, .a-textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--a-line); background: #FFF;
  font: 500 15px/1.4 var(--a-sans); color: var(--a-ink); box-sizing: border-box;
}
.a-textarea { min-height: 96px; resize: vertical; }
.a-input:focus, .a-select:focus, .a-textarea:focus { outline: 2px solid var(--a-gold); outline-offset: 1px; border-color: var(--a-gold-dk); }
.a-money { position: relative; }
.a-money::before { content: '$'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--a-muted); font-weight: 600; }
.a-money .a-input { padding-left: 24px; }
.a-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.a-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.a-span2 { grid-column: span 2; }
.a-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.a-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--a-ink); flex: none; }
.a-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.a-seg label { position: relative; }
.a-seg input { position: absolute; opacity: 0; pointer-events: none; }
.a-seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--a-line); background: #FFF; font-size: 14px; font-weight: 600; cursor: pointer; }
.a-seg input:checked + span { background: var(--a-ink); border-color: var(--a-ink); color: #FAF7F2; }
.a-seg input:focus-visible + span { outline: 2px solid var(--a-gold); outline-offset: 2px; }
.a-switch { position: relative; display: inline-flex; width: 48px; height: 28px; flex: none; }
.a-switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.a-switch span { position: absolute; inset: 0; border-radius: 99px; background: #DCD6C7; transition: background .15s; pointer-events: none; }
.a-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFF; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.a-switch input:checked + span { background: var(--a-ink); }
.a-switch input:checked + span::after { transform: translateX(20px); }
.a-switch input:focus-visible + span { outline: 2px solid var(--a-gold); outline-offset: 2px; }
.a-toggle-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; padding: 14px 0; border-top: 1px solid var(--a-line-3); }
.a-toggle-row > div:first-child { flex: 1 1 220px; min-width: 0; }
.a-toggle-row:first-child { border-top: 0; }
.a-toggle-row strong { display: block; font-size: 14.5px; }
.a-toggle-row p { margin: 2px 0 0; font-size: 13px; color: var(--a-muted); }

/* Tabs */
.a-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.a-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--a-line); background: #FFF; font: 600 13.5px var(--a-sans); color: var(--a-ink); cursor: pointer; text-decoration: none; }
.a-tab[aria-pressed="true"], .a-tab.is-on { background: var(--a-ink); border-color: var(--a-ink); color: #FAF7F2; }
.a-tab .a-count { font: 500 12px var(--a-mono); opacity: .75; }

/* Lists and tables */
.a-list { display: flex; flex-direction: column; }
.a-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 18px; border: 0; border-top: 1px solid var(--a-line-3); background: #FFF; text-align: left; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.a-item:first-child { border-top: 0; }
.a-item:hover { background: #FDFBF7; }
.a-item.is-on { background: rgba(245,158,11,0.08); box-shadow: inset 3px 0 0 var(--a-gold-dk); }
.a-item__main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.a-item__title { font-weight: 700; font-size: 14.5px; }
.a-item__sub { font-size: 13px; color: var(--a-muted); }
.a-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; text-align: right; max-width: 48%; }
.a-ledger { display: flex; flex-direction: column; }
.a-ledger__row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--a-line-3); font-size: 14px; }
.a-ledger__row:first-child { border-top: 0; }
.a-ledger__amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.a-ledger__amt small { display: block; color: var(--a-muted); font-size: 12px; }
.a-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.a-table th { text-align: left; font: 500 11px var(--a-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--a-muted); padding: 10px 12px; border-bottom: 1px solid var(--a-line-2); }
.a-table td { padding: 11px 12px; border-bottom: 1px solid var(--a-line-3); vertical-align: top; }
.a-table tr:last-child td { border-bottom: 0; }
.a-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.a-table tbody tr.is-click { cursor: pointer; }
.a-table tbody tr.is-click:hover td { background: #FDFBF7; }
.a-table tbody tr.is-on td { background: rgba(245,158,11,0.08); }
.a-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.a-kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 0; font-size: 14px; }
.a-kv > div { padding: 9px 0; border-top: 1px solid var(--a-line-3); }
.a-kv > div:nth-child(-n+2) { border-top: 0; }
.a-kv > div:nth-child(odd) { color: var(--a-muted); padding-right: 12px; }
.a-log { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.a-log li { position: relative; padding: 6px 0 6px 18px; color: var(--a-sub); }
.a-log li::before { content: ''; position: absolute; left: 3px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--a-line); }
.a-log time { font-family: var(--a-mono); font-size: 12px; color: var(--a-muted); margin-right: 6px; }

.a-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.a-tile { background: #FFF; border: 1px solid var(--a-line-2); border-radius: 14px; padding: 16px; text-decoration: none; color: inherit; }
.a-tile__label { font: 500 11px var(--a-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--a-muted); }
.a-tile__value { margin-top: 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.a-tile__sub { margin-top: 2px; font-size: 12.5px; color: var(--a-muted); }

/* Photos */
.a-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.a-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--a-sand); border: 1px solid var(--a-line-2); }
.a-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.a-photo__bar { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; gap: 4px; justify-content: flex-end; }
.a-photo__bar button { min-width: 30px; height: 30px; border-radius: 8px; border: 0; background: rgba(29,27,24,0.78); color: #FFF; font-size: 13px; cursor: pointer; }
.a-drop { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: 10px; border: 1.5px dashed var(--a-line); background: #FFF; color: var(--a-sub); font-size: 13px; font-weight: 600; cursor: pointer; text-align: center; padding: 8px; }
.a-drop input { display: none; }
/* Listing photos with a title field under each one */
.a-photos--titled { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 12px; align-items: start; }
.a-photo-cell { display: grid; gap: 6px; min-width: 0; }
.a-photo__title { min-height: 36px; padding: 6px 10px; font-size: 13px; border-radius: 9px; }
.a-photo__title::placeholder { color: var(--a-muted); }
.a-chip[hidden] { display: none; }

/* Messages */
.a-mail { border: 1px solid var(--a-line); border-radius: 14px; background: #FFF; padding: 16px; font-size: 14.5px; line-height: 1.55; }
.a-mail p { margin: 0 0 12px; }
.a-mail p:last-child { margin-bottom: 0; }
.a-mail__subject { font-weight: 700; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--a-line-3); }
.a-mailbtn { display: inline-block; margin: 2px 6px 2px 0; padding: 8px 12px; border-radius: 9px; background: var(--a-ink); color: #FAF7F2; font-weight: 700; font-size: 13px; }
.a-bubble { background: var(--a-sand); border-radius: 18px 18px 18px 4px; padding: 14px 16px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; }

/* Toasts, dialogs, preview banner */
.a-toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 1000; width: min(560px, calc(100% - 32px)); pointer-events: none; }
.has-preview .a-toasts { bottom: 72px; }
.a-toast { pointer-events: auto; padding: 12px 16px; border-radius: 12px; background: var(--a-ink); color: #FAF7F2; font-size: 14px; font-weight: 600; box-shadow: 0 12px 32px -12px rgba(0,0,0,.45); transition: opacity .3s, transform .3s; }
.a-toast--bad { background: #7F1D1D; }
.a-toast.is-out { opacity: 0; transform: translateY(8px); }
.a-dialog { border: 0; padding: 0; border-radius: 18px; width: min(560px, calc(100% - 24px)); max-height: calc(100% - 32px); background: #FFF; color: var(--a-ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
.a-dialog--wide { width: min(820px, calc(100% - 24px)); }
.a-dialog::backdrop { background: rgba(29,27,24,0.45); }
.a-dlg { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.a-dlg__title { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.a-dlg__text { margin: 0; color: var(--a-sub); line-height: 1.55; }
.a-dlg__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 6px; }
.a-preview { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 10px 16px; background: #2B2723; color: #F4EFE4; font: 500 13px/1.4 var(--a-sans); }
.a-preview strong { color: #FCD9A0; }
.a-preview__btns { display: inline-flex; gap: 8px; }
.a-preview button { min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid #5A544A; background: transparent; color: #FAF7F2; font: 600 12.5px var(--a-sans); cursor: pointer; }
.a-preview button:hover { background: #3A362F; }
body.has-preview { padding-bottom: 56px; }
.a-setup { max-width: 620px; margin: 64px auto; padding: 32px; background: #FFF; border: 1px solid var(--a-line-2); border-radius: 18px; }
.a-setup h1 { margin: 0 0 12px; font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; }
.a-setup p { color: var(--a-sub); line-height: 1.6; }
.a-loading { padding: 48px 16px; text-align: center; color: var(--a-muted); }
.a-loading::before { content: ''; display: block; width: 26px; height: 26px; margin: 0 auto 12px; border-radius: 50%; border: 3px solid var(--a-line); border-top-color: var(--a-ink); animation: a-spin .8s linear infinite; }
@keyframes a-spin { to { transform: rotate(360deg); } }

/* ---------- Admin shell ---------- */
.a-body { margin: 0; background: var(--a-bg); color: var(--a-ink); font-family: var(--a-sans); -webkit-font-smoothing: antialiased; }
.a-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.a-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #FFF; border-right: 1px solid var(--a-line-2); padding: 20px 14px; box-sizing: border-box; display: flex; flex-direction: column; gap: 18px; }
.a-side__brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; text-decoration: none; color: var(--a-ink); }
.a-side__brand img { width: 44px; height: 26px; }
.a-side__brand b { display: block; font-weight: 800; font-size: 15px; }
.a-side__brand small { display: block; font: 500 10px var(--a-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--a-sub); }
.a-nav { display: flex; flex-direction: column; gap: 14px; font-size: 14px; font-weight: 500; }
.a-nav__group { display: flex; flex-direction: column; gap: 2px; }
.a-nav__label { padding: 0 12px 4px; font: 500 10px var(--a-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--a-muted); }
.a-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 0 12px; border-radius: 12px; text-decoration: none; color: var(--a-ink); }
.a-nav a:hover { background: var(--a-line-3); }
.a-nav a[aria-current="page"] { background: var(--a-ink); color: #FAF7F2; font-weight: 700; }
.a-nav a[aria-current="page"] .a-badge { background: rgba(255,255,255,0.16); color: #FAF7F2; }
.a-badge { font: 500 11px var(--a-mono); padding: 2px 7px; border-radius: 6px; background: transparent; color: var(--a-sub); }
.a-badge--warn { background: var(--a-warn-bg); color: var(--a-warn); }
.a-badge--bad { background: var(--a-bad-bg); color: var(--a-bad); }
.a-side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px 8px 0; border-top: 1px solid var(--a-line-3); font-size: 13px; }
.a-side__foot a, .a-side__foot button { color: var(--a-sub); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.a-side__foot a:hover, .a-side__foot button:hover { color: var(--a-ink); text-decoration: underline; }
.a-main { min-width: 0; padding: 28px 32px 64px; }
.a-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.a-head h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.a-head p { margin: 6px 0 0; color: var(--a-sub); }
.a-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.a-mobilebar { display: none; }
.a-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.a-split--wide { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); }
.a-sticky { position: sticky; top: 20px; }
.a-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.a-section + .a-section { margin-top: 18px; }
.a-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.a-step { padding: 14px; border-radius: 12px; background: #FFF; border: 1px solid var(--a-line-2); font-size: 13.5px; color: var(--a-sub); }
.a-step b { display: block; font: 500 11px var(--a-mono); color: var(--a-gold-text); margin-bottom: 4px; letter-spacing: .08em; }
.a-step strong { display: block; color: var(--a-ink); margin-bottom: 2px; }

@media (max-width: 1100px) {
  .a-split, .a-split--wide { grid-template-columns: minmax(0, 1fr); }
  .a-sticky { position: static; }
}
@media (max-width: 960px) {
  .a-shell { grid-template-columns: minmax(0, 1fr); }
  .a-side { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 800; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 60px rgba(0,0,0,.25); }
  .a-shell.is-nav-open .a-side { transform: none; }
  .a-mobilebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 700; padding: 10px 16px; background: #FFF; border-bottom: 1px solid var(--a-line-2); }
  .a-mobilebar button { min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--a-line); background: #FFF; font: 700 14px var(--a-sans); cursor: pointer; }
  .a-main { padding: 20px 16px 56px; }
  .a-head h1 { font-size: 24px; }
  .a-grid2, .a-grid3 { grid-template-columns: minmax(0, 1fr); }
  .a-span2 { grid-column: auto; }
}

/* ---------- Public rentals pages ---------- */
.r-hero { background: var(--a-bg); border-bottom: 1px solid var(--a-line-2); }
.r-hero .wrap { padding-top: 56px; padding-bottom: 40px; }
.r-hero h1 { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 900; }
.r-hero p.r-lede { margin: 14px 0 0; max-width: 640px; font-size: 18px; color: var(--a-sub); line-height: 1.55; }
.r-how { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 32px; max-width: 1040px; }
.r-how div { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-content: start; column-gap: 10px; font-size: 13.5px; color: var(--a-sub); line-height: 1.45; }
.r-how b { grid-row: span 2; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(245,158,11,0.16); color: var(--a-gold-text); font: 700 11.5px/1 var(--a-sans); }
.r-how strong { display: block; color: var(--a-ink); font-size: 14px; }
.r-body { background: var(--a-bg); }
.r-body .wrap { padding-top: 28px; padding-bottom: 80px; }
.r-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.r-filters .a-row-gap { gap: 8px; }
.r-select { min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--a-line); background: #FFF; font: 600 14px var(--a-sans); color: var(--a-ink); }
.r-count { font: 500 12px var(--a-mono); color: var(--a-muted); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }
.r-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.r-card { display: flex; flex-direction: column; background: #FFF; border: 1px solid var(--a-line-2); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.r-card:hover { box-shadow: 0 20px 40px -24px rgba(29,27,24,.35); transform: translateY(-2px); }
.r-card__img { position: relative; aspect-ratio: 4 / 3; background: var(--a-sand); }
.r-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.r-card__img .a-chip { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.94); color: var(--a-ink); font-weight: 600; }
.r-card__img .a-chip--ok { color: var(--a-ok); }
.r-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.r-card__rent { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; }
.r-card__rent small { font-size: 14px; font-weight: 600; color: var(--a-muted); }
.r-card__title { font-weight: 700; font-size: 15.5px; }
.r-card__meta { font-size: 14px; color: var(--a-sub); }
.r-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.r-card__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.r-card__actions .a-btn { flex: 1; }
.r-alerts { margin: 0 0 18px; padding: 18px; border-radius: 16px; background: #FFF; border: 1px solid var(--a-line-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.r-alerts form, .r-alerts .r-alerts__form { display: flex; gap: 8px; flex: 1 1 320px; max-width: 460px; }
.r-alerts .a-input { min-height: 44px; }
.r-resident { margin-top: 36px; padding: 22px; border-radius: 18px; background: var(--a-ink); color: #EDE6D8; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.r-resident h2 { margin: 0 0 4px; font-size: 19px; color: #FFF; }
.r-resident p { margin: 0; color: #CFC8BB; font-size: 14.5px; }
.r-resident .a-btn { background: var(--a-gold-dk); color: var(--a-ink); }
.r-crumbs { font-size: 14px; color: var(--a-muted); margin: 0 0 14px; }
.r-crumbs a { color: var(--a-sub); }
.r-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 7; background: var(--a-sand); position: relative; }
.r-gallery button { border: 0; padding: 0; margin: 0; background: var(--a-sand); cursor: zoom-in; overflow: hidden; }
.r-gallery button:not(.r-gallery__all) { position: relative; }
.r-gallery .r-gallery__all { position: absolute; right: 12px; bottom: 12px; padding: 0 12px; border: 1px solid var(--a-line); background: #FFF; cursor: pointer; }
/* Where each photo was taken, on the photo itself */
.r-ph-tag { position: absolute; left: 10px; top: 10px; max-width: calc(100% - 20px); padding: 4px 10px; border-radius: 999px; background: rgba(29,27,24,.74); color: #FFF; font: 600 12.5px/1.35 var(--a-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.r-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.r-gallery button:first-child { grid-row: span 2; }
.r-gallery--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.r-gallery--1 button:first-child { grid-row: auto; }
.r-gallery__all { position: absolute; right: 12px; bottom: 12px; }
.r-detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; margin-top: 26px; }
.r-title h1 { margin: 6px 0 4px; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.02em; line-height: 1.15; }
.r-title p { margin: 0; color: var(--a-sub); font-size: 16px; }
.r-price { margin: 18px 0 6px; font-size: 40px; font-weight: 900; letter-spacing: -0.03em; }
.r-price small { font-size: 17px; font-weight: 600; color: var(--a-muted); }
.r-specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.r-specs span { padding: 8px 12px; border-radius: 10px; background: #FFF; border: 1px solid var(--a-line-2); font-size: 14px; font-weight: 600; }
.r-block { margin-top: 18px; background: #FFF; border: 1px solid var(--a-line-2); border-radius: 16px; padding: 20px; }
.r-block h2 { margin: 0 0 12px; font-size: 18px; letter-spacing: -0.01em; }
.r-block p { margin: 0 0 10px; line-height: 1.6; color: var(--a-sub); }
.r-pays { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.r-pays > div { padding: 14px; border-radius: 12px; background: var(--a-bg); }
.r-pays strong { display: block; font-size: 13px; font-family: var(--a-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--a-muted); font-weight: 500; margin-bottom: 4px; }
.r-feats { margin: 0; padding: 0 0 0 18px; columns: 2; column-gap: 28px; color: var(--a-sub); line-height: 1.8; }
.r-aside { position: sticky; top: 96px; }
.r-inq { background: #FFF; border: 1px solid var(--a-line-2); border-radius: 18px; padding: 22px; box-shadow: 0 24px 48px -32px rgba(29,27,24,.35); }
.r-inq h2 { margin: 0 0 4px; font-size: 20px; }
.r-inq__lede { margin: 0 0 14px; font-size: 14px; color: var(--a-sub); }
.r-steps { display: flex; gap: 6px; margin: 0 0 16px; }
.r-steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--a-line-2); }
.r-steps span.is-done { background: var(--a-ink); }
.r-steps-label { font: 500 11px var(--a-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--a-muted); margin: -8px 0 12px; }
.r-inq .a-stack { gap: 14px; }
.r-inq__nav { display: flex; gap: 8px; margin-top: 16px; }
.r-inq__nav .a-btn { flex: 1; }
.r-fine { margin: 10px 0 0; font-size: 12.5px; color: var(--a-muted); line-height: 1.5; }
.r-lightbox { position: fixed; inset: 0; z-index: 950; background: rgba(20,18,16,.94); display: flex; flex-direction: column; }
.r-lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; color: #FFF; font-weight: 700; }
.r-lightbox__bar button { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid #5A544A; background: transparent; color: #FFF; font: 700 14px var(--a-sans); cursor: pointer; }
.r-lightbox__list { overflow-y: auto; padding: 0 18px 40px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.r-lightbox__list figure { margin: 0; max-width: 1100px; width: 100%; }
.r-lightbox__list img { width: 100%; height: auto; border-radius: 12px; display: block; }
.r-lightbox__list figcaption { color: #CFC8BB; font-size: 13px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.r-lightbox__list figcaption b { color: #FFF; font-weight: 700; }
.r-eho { display: flex; gap: 12px; align-items: center; margin-top: 18px; font-size: 13px; color: var(--a-muted); }
.r-eho img { width: 32px; height: 32px; }
@media (max-width: 980px) {
  .r-detail { grid-template-columns: minmax(0, 1fr); }
  .r-aside { position: static; }
  .r-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; aspect-ratio: 4 / 3.4; }
  .r-gallery button:first-child { grid-column: span 2; grid-row: auto; }
  .r-gallery button:not(.r-gallery__all):nth-child(n+4) { display: none; }
}
@media (max-width: 680px) {
  .r-how { grid-template-columns: minmax(0, 1fr); }
  .r-pays { grid-template-columns: minmax(0, 1fr); }
  .r-feats { columns: 1; }
  .r-alerts form, .r-alerts .r-alerts__form { flex-direction: column; max-width: none; }
}

/* ---------- Resident portal ---------- */
.p-body { margin: 0; background: var(--a-bg); color: var(--a-ink); font-family: var(--a-sans); -webkit-font-smoothing: antialiased; }
:where(.p-body, .a-body) *, :where(.p-body, .a-body) *::before, :where(.p-body, .a-body) *::after { box-sizing: border-box; }
.a-item, .a-card, .a-tile, .a-step, .a-note { box-sizing: border-box; }
:where(.p-body, .a-body) a:where(:not([class])) { color: var(--a-gold-text); }
:where(.a-nav) a { color: var(--a-ink); }
.p-top { background: #FFF; border-bottom: 1px solid var(--a-line-2); }
.p-top__in { max-width: 720px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.p-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--a-ink); font-weight: 800; }
.p-brand img { width: 52px; height: 31px; }
.p-brand small { display: block; font: 500 10px var(--a-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--a-sub); }
.p-wrap { max-width: 720px; margin: 0 auto; padding: 20px 16px 56px; }
.p-wrap--narrow { max-width: 440px; }
.p-card { background: #FFF; border: 1px solid var(--a-line-2); border-radius: 18px; padding: 20px; margin-bottom: 14px; }
.p-card h2 { margin: 0 0 12px; font-size: 17px; font-weight: 800; }
.p-hello h1 { margin: 4px 0 2px; font-size: 28px; letter-spacing: -0.02em; }
.p-hello p { margin: 0; color: var(--a-sub); }
.p-911 { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--a-bad-bg); color: var(--a-bad); font-size: 14px; font-weight: 600; line-height: 1.45; }
.p-cta { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 14px; background: var(--a-gold-dk); color: var(--a-ink); font-weight: 800; font-size: 16px; text-decoration: none; margin-bottom: 14px; }
.p-cta:hover { background: var(--a-gold); }
.p-pay { display: flex; flex-direction: column; }
.p-pay > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--a-line-3); font-size: 14.5px; }
.p-pay > div:first-child { border-top: 0; }
.p-pay span:last-child { text-align: right; color: var(--a-sub); }
.p-req { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--a-line-3); }
.p-req > div { flex: 1 1 190px; min-width: 0; }
.p-req .a-chip { flex: none; max-width: 100%; white-space: normal; }
.p-req:first-child { border-top: 0; }
.p-req strong { display: block; font-size: 14.5px; }
.p-req small { color: var(--a-muted); font-size: 13px; }
.p-docs a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--a-line-3); color: var(--a-ink); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.p-docs a:first-child { border-top: 0; }
.p-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.p-cats label { position: relative; }
.p-cats input { position: absolute; opacity: 0; pointer-events: none; }
.p-cats span { display: flex; align-items: center; min-height: 52px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--a-line); background: #FFF; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.p-cats input:checked + span { border: 2px solid var(--a-ink); background: rgba(245,158,11,0.12); padding: 0 13px; }
.p-cats input:focus-visible + span { outline: 2px solid var(--a-gold); outline-offset: 2px; }
.p-urg { display: flex; flex-direction: column; gap: 8px; }
.p-urg label { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--a-line); background: #FFF; cursor: pointer; }
.p-urg label:has(input:checked) { border: 2px solid var(--a-ink); padding: 12px 13px; }
.p-urg input { margin-top: 3px; accent-color: var(--a-ink); width: 18px; height: 18px; }
.p-urg strong { display: block; font-size: 14.5px; }
.p-urg small { color: var(--a-sub); font-size: 13px; }
.p-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.p-thumbs .a-photo { width: 84px; }
.p-thumbs .a-drop { width: 84px; }
.p-done { text-align: center; padding: 28px 18px; }
.p-done .p-check { width: 56px; height: 56px; border-radius: 50%; background: var(--a-ok-bg); color: var(--a-ok); display: inline-flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 10px; }

/* ---------- Printable pages: statement and receipt ---------- */
.s-page { max-width: 816px; margin: 24px auto; background: #FFF; padding: 48px 56px; box-shadow: 0 10px 40px -20px rgba(0,0,0,.3); color: #1D1B18; font-family: var(--a-sans); }
.s-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 2px solid #1D1B18; }
.s-head img { width: 74px; height: 44px; }
.s-head small { display: block; color: #5A544A; font-size: 12.5px; line-height: 1.5; }
.s-title { margin: 22px 0 4px; font-size: 24px; font-weight: 900; }
.s-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px; font-size: 13px; margin: 14px 0 18px; }
.s-meta div span { color: #6E685C; display: inline-block; min-width: 86px; }
.s-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.s-sum div { border: 1px solid #E9E4DA; border-radius: 10px; padding: 10px 12px; font-size: 12px; color: #5A544A; }
.s-sum b { display: block; font-size: 18px; color: #1D1B18; margin-top: 2px; }
.s-page .a-table { font-size: 12.5px; }
.s-page .a-table td, .s-page .a-table th { padding: 7px 8px; }
.s-foot { margin-top: 18px; font-size: 11.5px; color: #6E685C; line-height: 1.6; }
.s-tools { max-width: 816px; margin: 16px auto 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; padding: 0 12px; }
@media print {
  @page { size: letter; margin: 0.5in; }
  body { background: #FFF !important; padding: 0 !important; }
  .s-tools, .a-preview, .a-toasts { display: none !important; }
  .s-page { margin: 0; box-shadow: none; padding: 0; max-width: none; }
}

/* Texting opt-in on the inquiry form */
.r-sms { padding: 12px 14px; border: 1px solid var(--a-line); border-radius: 12px; background: var(--a-bg); }
.r-sms .a-check > span { display: grid; gap: 4px; }
.r-sms .a-check strong { font-size: 14px; }
.r-sms .a-check small { font-size: 12px; color: var(--a-sub); line-height: 1.5; }
.r-sms .a-check a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.r-sms__note { margin: 8px 0 0 28px; font-size: 12.5px; color: var(--a-muted); }

/* Income by source on the inquiry form */
.r-income { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--a-line); border-radius: 12px; background: var(--a-bg); }
.r-income__row { display: grid; grid-template-columns: minmax(0, 1fr) 148px; align-items: center; gap: 12px; font-size: 14px; color: var(--a-ink); }
.r-income__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--a-line); font-size: 14px; }
.r-income__total strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.r-income__row small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--a-muted); }
.r-income__row .a-seg { flex-wrap: nowrap; }
.r-co { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--a-line); border-radius: 12px; background: var(--a-bg); }
.r-income__who { margin: 0; font: 500 11px/1.3 var(--a-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--a-gold-text); }
.r-income__who[data-sep] { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--a-line); }
.r-income__row--sep { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--a-line); }
.r-income__sub { display: grid; gap: 10px; margin: -2px -8px 0; padding: 10px; border: 1px solid var(--a-line); border-radius: 10px; background: #FFFFFF; }
.r-income .r-income__program > span { font-size: 14px; font-weight: 400; color: var(--a-ink); }
.r-income__split { margin: -4px 0 0; font-size: 13px; color: var(--a-muted); text-align: right; font-variant-numeric: tabular-nums; }
.r-income__split:empty { display: none; }
.r-income__more { display: grid; gap: 12px; padding-top: 12px; margin-top: 2px; border-top: 1px solid var(--a-line); }
@media (max-width: 420px) { .r-income__row { grid-template-columns: minmax(0, 1fr) 128px; } }
