/* Legacy brand tokens, same as legacy-brokerage-site */
:root {
  --navy: #1B3A5C;
  --navy-mid: #1E4470;
  --navy-dark: #0F2540;
  --gold: #B8906A;
  --gold-light: #CFA882;
  --ink: #0F2540;
  --text: #283949;
  --muted: #5a6b7b;
  --line: #e3e0d9;
  --surface: #ffffff;
  --bg: #f6f4f0;
  --footer-bg: #0F2540;
  --ok: #2f7a4f;
  --err: #b03a2e;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(15, 37, 64, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-mid); }
h1, h2, h3 { font-family: "Playfair Display", serif; color: var(--ink); line-height: 1.2; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 12px; }
.section .intro { color: var(--muted); max-width: 62ch; margin: 0 0 36px; }
.eyebrow { color: var(--gold); letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; font-weight: 700; margin: 0 0 10px; }
.center { text-align: center; }
.center .intro { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a57f5b; }
.btn-outline { border-color: var(--gold-light); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(207, 168, 130, .15); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header and nav */
.top { background: var(--navy-dark); color: #fff; position: sticky; top: 0; z-index: 50; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { font-family: "Playfair Display", serif; font-size: 1.3rem; font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap; }
.brand em { font-style: normal; color: var(--gold-light); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > a, .nav .dd-toggle {
  color: #dfe6ee; text-decoration: none; padding: 10px 12px; border-radius: 6px; font-weight: 500;
  background: none; border: 0; font: inherit; cursor: pointer;
}
.nav > a:hover, .nav .dd-toggle:hover, .nav > a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.08); }
.nav .nav-cta { background: var(--gold); color: #fff; margin-left: 6px; }
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { background: #a57f5b; color: #fff; }
.dd { position: relative; }
.dd-toggle::after { content: ""; display: inline-block; margin-left: 6px; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.dd-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px;
  background: #fff; border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 8px; list-style: none; margin: 0;
}
.dd.open .dd-menu { display: block; }
.dd-menu a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; border-radius: 6px; }
.dd-menu a:hover { background: var(--bg); }
.dd-menu small { display: block; color: var(--muted); font-size: .82rem; }
.menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; padding: 6px 10px; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--navy-dark); padding: 8px 16px 18px; gap: 2px;
  }
  .nav.open { display: flex; }
  .dd-menu { position: static; box-shadow: none; background: rgba(255,255,255,.06); margin-top: 4px; }
  .dd-menu a { color: #fff; }
  .dd-menu a:hover { background: rgba(255,255,255,.08); }
  .dd-menu small { color: #b9c5d1; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; padding: 96px 0 104px;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.5rem); margin: 0 0 16px; max-width: 18ch; }
.hero .lede { font-size: 1.15rem; color: #c8d3de; margin: 0 0 30px; max-width: 56ch; }
.hero.slim { padding: 64px 0 68px; }

/* Cards and grids */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }
.step-num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: var(--gold-light); font-weight: 700; margin-bottom: 14px;
}
.service { scroll-margin-top: 90px; border-top: 3px solid var(--gold); }
.band { background: var(--navy-dark); color: #fff; }
.band h2 { color: #fff; }
.band .intro { color: #c8d3de; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }

/* Listings */
.listing { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.listing .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.listing .price { font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.listing .price span { font-size: .9rem; font-weight: 500; color: var(--muted); }
.listing .addr { font-weight: 700; color: var(--text); }
.listing .city { color: var(--muted); margin-top: -4px; }
.listing .facts { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .93rem; }
.listing .avail { font-size: .88rem; color: var(--ok); font-weight: 700; }
.listing .desc { color: var(--text); font-size: .95rem; margin: 6px 0 0; white-space: pre-line; }
.listing .desc.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.linkish { background: none; border: 0; padding: 0; color: var(--navy-mid); font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; background: var(--surface); border-radius: var(--radius); }

/* Photo carousel */
.carousel { position: relative; aspect-ratio: 4 / 3; background: #dfe3e8; overflow: hidden; }
.carousel .track { display: flex; height: 100%; transition: transform .3s ease; }
.carousel img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.carousel .nophoto { display: grid; place-items: center; width: 100%; color: var(--muted); }
.carousel .arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.9); color: var(--ink); font-size: 1.3rem; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.carousel .prev { left: 10px; }
.carousel .next { right: 10px; }
.carousel .count {
  position: absolute; bottom: 10px; right: 10px; background: rgba(15,37,64,.75); color: #fff;
  font-size: .8rem; padding: 3px 9px; border-radius: 999px;
}
.carousel .dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.carousel .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); }
.carousel .dots i.on { background: #fff; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(8, 18, 32, .94); z-index: 100; display: none; flex-direction: column; }
.lightbox.open { display: flex; }
.lightbox .lb-top { display: flex; justify-content: space-between; align-items: center; color: #fff; padding: 14px 20px; gap: 12px; }
.lightbox .lb-close { background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }
.lightbox .lb-stage { flex: 1; min-height: 0; display: flex; padding: 0 0 20px; }
.lightbox .carousel { flex: 1; min-height: 0; aspect-ratio: auto; background: transparent; }
.lightbox .carousel img { object-fit: contain; cursor: default; }

/* Forms */
.form-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; max-width: 720px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 22px; } }
label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
label .opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
label .req { color: var(--err); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfd6de; border-radius: 8px; font: inherit; color: var(--text); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-light); border-color: var(--gold); }
textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 16px; padding: 12px 14px; border-radius: 8px; display: none; }
.form-msg.ok { display: block; background: #e8f4ec; color: var(--ok); }
.form-msg.err { display: block; background: #fbeae8; color: var(--err); }

/* Footer */
.foot { background: var(--footer-bg); color: #90a1b1; padding: 40px 0; font-size: .92rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.foot a { color: #c8d3de; text-decoration: none; margin-right: 18px; }
.foot a:hover { color: #fff; }
.foot p { margin: 0; }

.btn-sm { padding: 8px 16px; font-size: .9rem; }
.card-cta { margin-top: auto; padding-top: 12px; }

/* Logo (inline SVG so the page fonts render it). Cream on the navy header and footer. */
.brand { display: inline-flex; align-items: center; line-height: 0; }
.logo { height: 70px; width: auto; display: block; }
.logo .lg-main { fill: #F2ECDF; }
.logo .lg-main-s { stroke: #F2ECDF; }
.logo .lg-accent-s { stroke: var(--gold-light); }
.logo .lg-sub { fill: #b9c5d1; }
.top .wrap { min-height: 88px; }
.foot-logo .logo { height: 64px; margin-bottom: 10px; }
@media (max-width: 860px) { .logo { height: 50px; } }

#featured { transition: opacity .4s ease; }
#featured.fading { opacity: 0; }

/* Slim rental card (click for details) */
.listing.clickable { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.listing.clickable:hover, .listing.clickable:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(15, 37, 64, .16); outline: none; }
.listing .ph { position: relative; aspect-ratio: 4 / 3; background: #dfe3e8; overflow: hidden; }
.listing .ph img { width: 100%; height: 100%; object-fit: cover; }
.listing .ph .nophoto { display: grid; place-items: center; height: 100%; color: var(--muted); }
.listing .ph .count { position: absolute; bottom: 10px; right: 10px; background: rgba(15,37,64,.75); color: #fff; font-size: .8rem; padding: 3px 10px; border-radius: 999px; }
.type-pill { align-self: flex-start; display: inline-block; background: #f3ece2; color: #8a6440; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }

/* Details view */
.detail { position: fixed; inset: 0; z-index: 90; background: rgba(8, 18, 32, .7); display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.detail.open { display: flex; }
.detail-panel { position: relative; background: #fff; border-radius: 14px; width: 100%; max-width: 920px; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.35); outline: none; }
.detail-ph { aspect-ratio: 16 / 10; }
.detail-ph.carousel { aspect-ratio: 16 / 10; max-height: 58vh; width: 100%; }
.detail-body { padding: 26px 30px 32px; display: flex; flex-direction: column; gap: 8px; }
.detail-addr { margin: 4px 0 0; font-size: 1.7rem; }
.detail-body .city { color: var(--muted); }
.detail-body .facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text); font-weight: 500; margin-top: 6px; }
.detail-body .avail { font-size: .92rem; color: var(--ok); font-weight: 700; }
.detail-desc { white-space: pre-line; margin: 10px 0 0; color: var(--text); }
.price.big { font-size: 1.8rem; font-weight: 700; color: var(--ink); }
.price.big span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.detail-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
@media (max-width: 640px) { .detail { padding: 0; } .detail-panel { border-radius: 0; min-height: 100%; } .detail-body { padding: 20px; } }
.card-cta.btn-row { gap: 8px; }
.listing .facts { margin-top: 2px; }

/* How to Qualify */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 640px; }
.checklist li { position: relative; padding: 14px 18px 14px 48px; background: var(--bg); border-radius: var(--radius); }
.checklist li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 14px; height: 8px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: translateY(-70%) rotate(-45deg); }
.fair-housing { margin: 36px 0 0; color: var(--muted); font-size: .9rem; max-width: 72ch; }

/* Rental filters */
.filters { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; align-items: end; background: var(--surface); padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 28px; }
.filters label { font-size: .8rem; margin-bottom: 4px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.filters select { padding: 10px 12px; }
.filters .f-clear .btn { width: 100%; padding: 10px 12px; }
@media (max-width: 1100px) { .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filters .f-clear { grid-column: 1 / -1; } }
#no-match { margin-top: 8px; }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--gold); }
.faq[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 2px solid var(--gold-light); border-radius: var(--radius); }
.faq-a { padding: 0 22px 20px; color: var(--text); }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: 1.5rem; margin: 0 0 16px; }

/* Pet friendly paw badge (top right of the photo) */
.paw { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.paw svg { width: 22px; height: 22px; fill: var(--navy); }
.detail-ph-wrap { position: relative; }
.detail-ph-wrap .paw { top: 14px; right: 62px; width: 40px; height: 40px; }
.pet-line { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); font-size: .95rem; }
.pet-line svg { width: 18px; height: 18px; fill: var(--gold); }

/* ===== Centered layout (Brett/Shelby 2026-11-24) ===== */
.hero, .section { text-align: center; }
.hero h1, .hero .lede, .section .intro { margin-left: auto; margin-right: auto; }
.btn-row { justify-content: center; }
.grid { grid-template-columns: repeat(auto-fit, minmax(270px, 350px)); justify-content: center; }
.listing .body { align-items: center; text-align: center; }
.type-pill { align-self: center; }
.listing .facts { justify-content: center; }
.card-cta.btn-row { justify-content: center; }
.band .wrap { flex-direction: column; justify-content: center; text-align: center; }
.form-card, .filters, .faq-list, .checklist, .detail-body { text-align: left; }
.faq-list, .checklist, .fair-housing { margin-left: auto; margin-right: auto; }
.form-card { margin-left: auto; margin-right: auto; }
.empty { max-width: 640px; margin-left: auto; margin-right: auto; }

/* Heading, paragraph and contact info beside each form */
.contact-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 48px; align-items: center; max-width: 1080px; margin: 0 auto; text-align: left; }
.contact-split .form-card { max-width: none; margin: 0; }
.contact-info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 14px; }
.contact-info > p:not(.eyebrow) { color: var(--muted); margin: 0 0 24px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list a { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; word-break: break-all; }
.contact-list a:hover span { text-decoration: underline; }
.contact-list svg { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--navy); fill: var(--gold-light); }
@media (max-width: 860px) {
  .contact-split { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .contact-list { justify-items: center; }
}

/* Footer, centered */
.foot .wrap { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; }
.foot .foot-logo .logo { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.foot-links a { margin: 0; }
.foot .contact-list { grid-auto-flow: column; gap: 28px; }
.foot .contact-list a { color: #dfe6ee; font-weight: 500; }
.foot .contact-list svg { width: 32px; height: 32px; padding: 8px; background: rgba(255,255,255,.08); }
.foot-copy { font-size: .85rem; }
@media (max-width: 640px) { .foot .contact-list { grid-auto-flow: row; gap: 12px; } }
@media (max-width: 420px) { .contact-list a { font-size: .86rem; word-break: normal; overflow-wrap: anywhere; } }
.pending-pill { align-self: center; display: inline-block; background: #fbf1dc; color: #9a6a12; font-size: .75rem; font-weight: 700; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; }
.detail-body .pending-pill { align-self: flex-start; }

/* Maintenance page */
.emergency { background: #fbeae8; color: #7a2a21; border-radius: var(--radius); padding: 14px 16px; margin: 0 0 22px; font-size: .95rem; text-align: left; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #cfd6de; border-radius: 8px; padding: 10px 16px; font-weight: 500; cursor: pointer; margin: 0; }
.choice input { width: auto; }
.choice:has(input:checked) { border-color: var(--gold); background: #fbf7f1; font-weight: 700; }
