/* Realty of America brand system — ROA Marketing Hub
   Powersuit Blue #10295A (primary) · Legacy Green #1A9175 (secondary accent)
   Power Pink #DB1263 (key CTAs only) · Misty Grey #E6E7E8 · Barely There #F1F2F2 */
:root {
  --brand: #10295A;
  --brand-deep: #0B1E44;
  --brand-tint: #1E3F7E;
  --green: #1A9175;
  --green-dark: #0F6B55;
  --pink: #DB1263;
  --misty: #E6E7E8;
  --barely: #F1F2F2;
  --paper: #F1F2F2;
  --ink: #1c2733;
  --muted: #64748b;
  --card: #ffffff;
  --line: #dfe3e8;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .card-price, .detail-price {
  font-family: "Figtree", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

/* ---------- header ---------- */
.site-header {
  background: var(--brand);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(11, 30, 68, .3);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-link { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
.site-nav a {
  color: #dbe4ee;
  text-decoration: none;
  margin-left: 22px;
  font-size: .95rem;
  font-weight: 500;
}
.site-nav a:hover { color: #fff; text-decoration: underline; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 60%, var(--brand-tint) 100%);
  color: #fff;
  padding: 72px 22px 64px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.5px;
}
.hero h1 .accent { color: var(--green); }
.hero p {
  max-width: 620px;
  margin: 14px auto 0;
  color: #c8d5e4;
  font-size: 1.1rem;
}
.hero .count {
  display: inline-block;
  margin-top: 18px;
  background: rgba(26, 145, 117, .15);
  border: 1px solid rgba(26, 145, 117, .55);
  color: #8fd8c3;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
}

/* ---------- toolbar ---------- */
.toolbar {
  max-width: 1200px;
  margin: -26px auto 0;
  padding: 0 22px;
  position: relative;
  z-index: 10;
}
.toolbar-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(16, 41, 90, .10);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-group .label { font-size: .85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: .9rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}
.chip:hover { border-color: var(--green); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
select.chip { appearance: none; }

/* ---------- grid & cards ---------- */
.grid-wrap { max-width: 1200px; margin: 0 auto; padding: 34px 22px 70px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(16, 41, 90, .14); }
.card-visual {
  height: 190px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
  position: relative;
}
.card-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 30, 68, .72), rgba(11, 30, 68, 0) 60%);
}
.card-visual .addr {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  font-family: "Figtree", sans-serif;
}
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-price { font-size: 1.55rem; font-weight: 800; color: var(--brand); }
.card-specs { color: var(--muted); font-size: .93rem; }
.card-agent { font-size: .88rem; color: var(--muted); }
.card-agent strong { color: var(--ink); font-weight: 600; }
.card-note {
  font-size: .82rem;
  background: rgba(26, 145, 117, .10);
  border: 1px solid rgba(26, 145, 117, .35);
  color: var(--green-dark);
  border-radius: 8px;
  padding: 6px 10px;
}
.card-link {
  margin-top: auto;
  padding-top: 10px;
  text-decoration: none;
  font-weight: 700;
  color: var(--brand);
  font-size: .95rem;
}
.card-link:hover { color: var(--green); text-decoration: underline; }
.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
  font-size: 1.05rem;
  grid-column: 1 / -1;
}

/* ---------- detail page ---------- */
.detail-wrap { max-width: 900px; margin: 0 auto; padding: 40px 22px 70px; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--brand); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.detail-hero {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.detail-visual {
  height: 280px;
  display: flex;
  align-items: flex-end;
  padding: 26px;
  color: #fff;
  position: relative;
}
.detail-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 30, 68, .78), rgba(11, 30, 68, 0) 55%);
}
.detail-visual .addr { position: relative; z-index: 1; }
.detail-visual .addr h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.detail-visual .addr .sub { color: #dbe4ee; font-size: 1.02rem; }
.detail-body { background: var(--card); padding: 28px 30px 32px; }
.detail-price { font-size: 2.2rem; font-weight: 800; color: var(--brand); }
.detail-note {
  margin-top: 12px;
  font-size: .9rem;
  background: rgba(26, 145, 117, .10);
  border: 1px solid rgba(26, 145, 117, .35);
  color: var(--green-dark);
  border-radius: 8px;
  padding: 10px 14px;
  display: inline-block;
}
.facts {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: .98rem;
}
.facts th, .facts td { text-align: left; padding: 11px 6px; border-bottom: 1px solid var(--line); }
.facts th { color: var(--muted); font-weight: 600; width: 38%; font-size: .88rem; text-transform: uppercase; letter-spacing: .5px; }
.facts td { font-weight: 500; }
.detail-desc { margin: 8px 0 26px; font-size: 1.03rem; color: #334155; }
.remarks-title { margin: 22px 0 2px; font-size: 1.05rem; color: var(--brand); font-family: "Figtree", sans-serif; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 1rem;
  font-family: "Figtree", sans-serif;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(16, 41, 90, .3); }
/* Power Pink — key CTAs only, per ROA brand guidelines */
.btn-cta { background: var(--pink); color: #fff; }
.btn-cta:hover { box-shadow: 0 8px 20px rgba(219, 18, 99, .4); }
.btn-outline { border: 2px solid var(--brand); color: var(--brand); }
.agent-card {
  margin-top: 30px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 28px;
}
.agent-card h2 { font-size: 1.25rem; margin-bottom: 6px; }
.agent-card p { color: #c8d5e4; font-size: .95rem; margin-bottom: 16px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--brand);
  color: #aebdd0;
  padding: 44px 22px 30px;
  font-size: .92rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo {
  max-height: 52px;
  width: auto;
  display: block;
  margin-bottom: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}
.footer-grid h3 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.footer-grid a { color: var(--misty); text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.fine-print {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  font-size: .8rem;
  color: #8fa0b8;
}

/* ---------- contact page bits ---------- */
.contact-card {
  max-width: 640px;
  margin: 40px auto 70px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-card h1 { color: var(--brand); margin-bottom: 10px; }
.contact-card p { color: #334155; margin-bottom: 8px; }
.contact-card a { color: var(--brand); font-weight: 600; }

/* ---------- rich detail page ---------- */
.detail-wrap.rich { max-width: 1100px; }
.header-call {
  background: var(--green);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 10px;
  font-family: "Figtree", sans-serif;
  margin-left: 18px !important;
}
.header-call:hover { background: var(--green-dark); text-decoration: none !important; }

.prop-hero {
  position: relative;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  margin-bottom: 8px;
}
.sale-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: .9rem;
  padding: 9px 18px 9px 14px;
  border-radius: 8px;
  border-left: 5px solid var(--green);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  font-family: "Figtree", sans-serif;
}
.hero-watermark {
  position: absolute;
  left: 18px;
  bottom: 18px;
  height: 56px;
  width: auto;
  background: var(--brand);
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.photos-btn {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  padding: 11px 18px;
  border-radius: 8px;
  font-family: "Figtree", sans-serif;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  white-space: nowrap;
}
.photos-btn:hover { background: var(--brand-tint); }
.sale-badge { white-space: nowrap; }

.title-block { padding: 26px 6px 6px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
}
.eyebrow.light { color: #9fb3cc; }
.title-block h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -.5px;
}
.title-sub { color: var(--muted); font-size: 1.05rem; margin-top: 4px; }
.detail-price { font-size: 2.4rem; font-weight: 800; color: var(--brand); margin-top: 10px; }
.mls-line { color: var(--muted); font-size: .92rem; margin-top: 6px; }

.cta-band { padding: 18px 6px 8px; }
.spec-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.spec-tile { text-align: center; padding: 20px 8px; }
.spec-tile + .spec-tile { border-left: 1px solid var(--line); }
.spec-num { font-family: "Figtree", sans-serif; font-size: 1.9rem; font-weight: 800; color: var(--brand); }
.spec-label { color: var(--muted); font-size: .88rem; margin-top: 2px; }

.section { padding: 34px 6px 8px; }
.section h2 { font-size: 1.7rem; font-weight: 800; color: var(--brand); margin-bottom: 18px; letter-spacing: -.3px; }
.section h2 .muted-sm { font-size: 1rem; font-weight: 500; color: var(--muted); font-family: "DM Sans", sans-serif; }
.section.about p { color: #334155; font-size: 1.04rem; margin-bottom: 14px; max-width: 70ch; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: .9rem;
  color: #334155;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.thumb {
  border: none;
  background: none;
  padding: 0;
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.thumb:hover img { transform: scale(1.03); }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(11, 30, 68, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 10px; }
.lb-close {
  position: absolute; top: 18px; right: 24px;
  background: none; border: none; color: #fff;
  font-size: 2.6rem; cursor: pointer; line-height: 1;
}

.features { list-style: none; }
.features li {
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
  color: #334155;
}
.features .check { color: var(--green); font-weight: 800; margin-right: 12px; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--misty);
}
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }
.map-addr { color: var(--muted); margin-top: 12px; font-size: .95rem; }

.agent-cta {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 34px;
  margin: 40px 0 10px;
}
.agent-cta h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.2; margin-bottom: 10px; }
.agent-sub { color: #c8d5e4; margin-bottom: 24px; font-size: 1.05rem; }
.agent-line { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  font-family: "Figtree", sans-serif; font-weight: 800; font-size: 1.4rem;
  flex-shrink: 0;
}
.agent-name { font-size: 1.35rem; font-weight: 800; font-family: "Figtree", sans-serif; }
.agent-broker { color: #c8d5e4; }
.agent-contact { margin: 0 0 28px 80px; color: #dbe4ee; font-size: 1.02rem; }
.agent-contact a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.agent-contact a:hover { text-decoration: underline; }

.showing-form {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 30px 28px;
  max-width: 560px;
}
.showing-form h3 { font-size: 1.4rem; color: var(--brand); margin-bottom: 4px; }
.req-note { color: var(--muted); font-size: .88rem; margin-bottom: 18px; }
.showing-form label { display: block; font-weight: 700; color: var(--brand); font-size: .95rem; margin-bottom: 14px; }
.showing-form input, .showing-form textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 1rem;
  font-family: "DM Sans", sans-serif;
  background: var(--barely);
}
.showing-form input:focus, .showing-form textarea:focus {
  outline: 2px solid var(--green);
  background: #fff;
}
.showing-form .btn { width: 100%; margin-top: 6px; }
.form-note { color: var(--muted); font-size: .85rem; margin-top: 12px; }

.card-visual.has-photo { background-size: cover; background-position: center; height: 190px; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .header-inner { padding: 10px 16px; flex-wrap: nowrap; }
  .brand-logo { height: 24px; }
  .site-nav { display: flex; align-items: center; flex-shrink: 0; }
  .site-nav a { margin-left: 10px; font-size: .8rem; white-space: nowrap; }
  .site-nav a[href="/contact"] { display: none; }
  .header-call { padding: 8px 12px !important; margin-left: 8px !important; font-size: .8rem; white-space: nowrap; flex-shrink: 0; }
  .hero { padding: 52px 18px 48px; }
  .toolbar { padding: 0 14px; }
  .toolbar-card { padding: 14px 14px; gap: 10px; }
  .chip { padding: 10px 18px; font-size: .92rem; }
  .grid-wrap { padding: 26px 14px 54px; }
  .grid { gap: 18px; }
  .detail-wrap { padding: 28px 14px 54px; }
  .detail-body { padding: 22px 20px 26px; }
  .detail-visual { height: 210px; padding: 20px; }
  .btn { width: 100%; text-align: center; }

  /* rich detail page — mobile */
  .prop-hero { height: 260px; }
  .sale-badge { top: 12px; left: 12px; font-size: .8rem; padding: 7px 12px 7px 10px; }
  .hero-watermark { left: auto; right: 12px; top: 12px; bottom: auto; height: 26px; padding: 5px 8px; }
  .photos-btn { right: 12px; bottom: 12px; font-size: .8rem; padding: 9px 13px; }
  .detail-price { font-size: 1.9rem; }
  .spec-tiles { margin-bottom: 18px; }
  .spec-tile { padding: 14px 4px; }
  .spec-num { font-size: 1.45rem; }
  .spec-label { font-size: .78rem; }
  .section { padding: 26px 4px 6px; }
  .section h2 { font-size: 1.4rem; margin-bottom: 14px; }
  .section.about p { font-size: 1rem; }
  .gallery { gap: 10px; }
  .features li { padding: 12px 4px; font-size: .98rem; }
  .map-wrap iframe { height: 280px; }
  .agent-cta { padding: 30px 20px; margin: 32px 0 10px; }
  .agent-line { gap: 12px; }
  .avatar { width: 52px; height: 52px; font-size: 1.15rem; }
  .agent-name { font-size: 1.15rem; }
  .agent-contact { margin: 2px 0 24px 0; font-size: .95rem; }
  .showing-form { padding: 24px 18px; }
  .showing-form input, .showing-form textarea { padding: 12px; font-size: 16px; }
  .contact-card { padding: 26px 20px; margin: 28px auto 54px; }
  .tag { padding: 8px 13px; font-size: .85rem; }
}

/* short landscape phones */
@media (max-width: 640px) and (max-height: 420px) {
  .prop-hero { height: 200px; }
}
