/* ---------------------------------------------------------------------------
   Tailored RMS — public site.
   A SEPARATE stylesheet from the app's shared.css on purpose: this is a
   marketing surface with different density, different type scale, and a strict
   CSP that forbids inline style. Nothing here is imported by the app, and
   nothing from the app is imported here.
   --------------------------------------------------------------------------- */

:root {
  --brand: #1e40af;
  --ink: #14181f;
  --ink-2: #4a5464;
  --ink-3: #78849a;
  --bg: #ffffff;
  --bg-2: #f6f8fb;
  --line: #e2e7ef;
  --ok: #0d7a4f;
  --warn: #92400e;
  --warn-bg: #fef6e7;
  --r: 14px;
  --r-sm: 9px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 18px; --s5: 28px; --s6: 44px; --s7: 72px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px -12px rgba(16,24,40,.18);
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2f8; --ink-2: #aab4c4; --ink-3: #7e8899;
    --bg: #0e1218; --bg-2: #151b23; --line: #242c37;
    --warn-bg: #2a1f0c;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  /* Never let a wide table or a long word scroll the page sideways. */
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 var(--s3); }
h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 750; }
h2 { font-size: clamp(21px, 3vw, 27px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 650; }
p { margin: 0 0 var(--s3); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s4); }
.wrap.narrow { max-width: 620px; }
.stack-lg > * + * { margin-top: var(--s5); }
.stack > * + * { margin-top: var(--s4); }
.row { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: flex-end; }
.grow { flex: 1 1 200px; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 62ch; }
.fine { font-size: 14px; color: var(--ink-3); }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--brand);
  color: #fff; padding: var(--s3) var(--s4); z-index: 10; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* --- chrome ------------------------------------------------------------- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  position: sticky; top: 0; z-index: 5;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 62px; gap: var(--s4);
}
.wordmark {
  font-weight: 750; font-size: 19px; color: var(--ink); text-decoration: none;
  letter-spacing: -0.02em;
}
.wordmark span { color: var(--brand); }
.topnav { display: flex; gap: var(--s4); font-size: 15px; }
.topnav a { color: var(--ink-2); text-decoration: none; }
.topnav a:hover { color: var(--ink); }

.footer {
  margin-top: var(--s7); border-top: 1px solid var(--line);
  background: var(--bg-2); padding: var(--s6) 0; font-size: 14px; color: var(--ink-2);
}
.footer .wrap { display: grid; gap: var(--s4); }
.eho-block { display: flex; gap: var(--s4); align-items: flex-start; max-width: 70ch; }
.eho { width: 42px; height: 42px; flex: none; color: var(--ink-2); }
.footer p { margin: 0 0 var(--s2); }
.colophon { color: var(--ink-3); }

/* --- hero --------------------------------------------------------------- */
.hero { padding: var(--s7) 0 var(--s5); }
.hero-empty {
  background:
    radial-gradient(1000px 400px at 15% -10%,
      color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%);
}

/* --- cards -------------------------------------------------------------- */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s5);
  box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }

.grid {
  display: grid; gap: var(--s4);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.two-up { display: grid; gap: var(--s4); grid-template-columns: 1fr; margin-top: var(--s5); }
@media (min-width: 860px) { .two-up { grid-template-columns: 1fr 1fr; } }

.listing-card {
  padding: 0; overflow: hidden; text-decoration: none; color: inherit;
  display: block; transition: transform .15s ease, box-shadow .15s ease;
}
.listing-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -14px rgba(16,24,40,.3); }
.shot { position: relative; aspect-ratio: 4 / 3; background: var(--bg-2); }
/* The focal point the owner tapped. Fifteen lines of JS at upload beats a crop
   tool that would fight iOS scrolling for a year. */
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focal, 50% 50%); }
.shot-empty { display: grid; place-items: center; height: 100%; font-size: 44px; opacity: .35; }
.ribbon {
  position: absolute; top: var(--s3); left: var(--s3);
  background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.card-copy { padding: var(--s4); }
.card-copy h3 { margin: var(--s1) 0 var(--s2); font-size: 17px; }
.price { font-size: 26px; font-weight: 750; letter-spacing: -0.03em; }
.price span { font-size: 15px; font-weight: 500; color: var(--ink-3); }
.specs, .place, .avail { margin: 0; font-size: 15px; color: var(--ink-2); }
.avail { color: var(--ok); font-weight: 600; margin-top: var(--s2); }

/* --- listing detail ----------------------------------------------------- */
.listing { padding-top: var(--s6); }
.listing-head {
  display: flex; gap: var(--s4); justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; margin-bottom: var(--s5);
}
.price-block { text-align: right; }
.price-block .price { font-size: 38px; }
.dep { margin: 0; color: var(--ink-3); font-size: 15px; }

.gallery { margin: 0 0 var(--s5); }
.gallery .lead { width: 100%; border-radius: var(--r); aspect-ratio: 3 / 2; object-fit: cover; }
.thumbs {
  display: grid; gap: var(--s2); margin-top: var(--s2);
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.thumbs img { border-radius: var(--r-sm); aspect-ratio: 4 / 3; object-fit: cover; }

.facts {
  display: grid; gap: var(--s3) var(--s5); margin: 0 0 var(--s5);
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.facts div { border-top: 1px solid var(--line); padding-top: var(--s2); }
.facts dt { font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.facts dd { margin: 2px 0 0; font-weight: 600; }

.prose { max-width: 68ch; }
.policy-note { max-width: 68ch; font-size: 15px; color: var(--ink-2); }
.policy-note em { display: block; margin-top: var(--s2); color: var(--ink-3); }

.amenities { display: flex; flex-wrap: wrap; gap: var(--s2); padding: 0; list-style: none; }
.amenities li {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 13px; font-size: 14px;
}

.criteria ul { padding-left: var(--s4); }
.criteria li { margin-bottom: var(--s2); }

.stats dl { display: grid; gap: var(--s3); margin: 0; }
.stats dt { font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.stats dd { margin: 0; font-weight: 600; font-size: 19px; }

.contact { list-style: none; padding: 0; display: flex; gap: var(--s4); flex-wrap: wrap; }
.resident-links { font-size: 15px; color: var(--ink-2); }

/* --- banners ------------------------------------------------------------ */
.banner {
  border-radius: var(--r); padding: var(--s4) var(--s5); margin: var(--s5) 0 0;
  border: 1px solid var(--line); background: var(--bg-2);
}
.banner-leased { border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); background: var(--warn-bg); color: var(--warn); }

.scam {
  margin-top: var(--s5); border: 1px solid color-mix(in srgb, var(--warn) 25%, var(--line));
  background: var(--warn-bg); color: var(--warn);
  border-radius: var(--r); padding: var(--s4) var(--s5); font-size: 15px;
}

/* --- forms -------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 5px; flex: 1 1 160px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field em { font-style: normal; color: var(--ink-3); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], select, textarea {
  /* 16px prevents iOS zoom-on-focus; 46px is a comfortable thumb target. */
  font: inherit; font-size: 16px; min-height: 46px;
  padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink); width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent);
  outline-offset: 2px;
}
.check { display: flex; gap: var(--s2); align-items: center; font-size: 16px; }
.check input { width: 20px; height: 20px; }
.dayparts { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.dayparts legend { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 0 0 var(--s2); }
.consent { font-size: 14px; color: var(--ink-3); max-width: 60ch; }

/* The honeypot. Off-screen rather than display:none — a bot that parses CSS
   skips display:none, but a text input it can "see" in the DOM gets filled. */
.hp {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px;
  overflow: hidden;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font: inherit; font-weight: 650; font-size: 16px;
  padding: 12px 22px; min-height: 46px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink); cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--bg-2); }
.btn-primary {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-lg { width: 100%; min-height: 54px; font-size: 17px; }
@media (min-width: 640px) { .btn-lg { width: auto; padding: 14px 30px; } }

.message { margin-top: var(--s7); }
.waitlist.compact { background: var(--bg-2); }

@media print {
  .topbar, .footer, form, .scam { display: none; }
  .card { border: 0; box-shadow: none; padding: 0; }
}

/* --- the sign-in seam ---------------------------------------------------- */
/* Everything above this button needs no account; everything past it is rent,
   leases and payments. It sits in the header on every page because residents
   arrive from whatever link they kept, not from the front door. */
.topnav .signin {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  padding: 8px 16px;
  min-height: 38px;
  font-size: 15px;
}
.topnav .signin:hover { filter: brightness(1.08); color: #fff; }

.footer-signin {
  border-top: 1px solid var(--line);
  padding-top: var(--s4);
  max-width: 46ch;
}
.footer-signin p { margin: 0 0 var(--s2); }
.footer-signin .btn { margin-top: var(--s2); }
