/* Header, footer and shared components */
.topbar {
  background: var(--slate-900); color: rgba(245,241,234,.7); font-size: 0.78rem;
  letter-spacing: .04em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 16px; }
.topbar a:hover { color: var(--brass-light); }
.topbar-links { display: flex; gap: 24px; }
.topbar svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 6px; color: var(--brass); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 241, 234, 0.92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(30,35,40,.5); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--slate-900); letter-spacing: -.01em; }
.brand-name span { color: var(--brass-dark); font-style: italic; font-weight: 500; }
.brand-sub { font-size: 0.6rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--slate-500); margin-top: 5px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 13px; font-size: 0.86rem; font-weight: 600;
  color: var(--slate-700);
  position: relative; transition: color .25s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.main-nav a:hover { color: var(--slate-900); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--slate-900); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.fav-link { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.fav-link:hover { border-color: var(--brass); background: #fff; }
.fav-link svg { width: 18px; height: 18px; }
.fav-count {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px;
  padding: 0 5px; border-radius: 10px;
  background: var(--brass); color: var(--slate-900); font-size: 0.66rem; font-weight: 800; display: grid; place-items: center;
  transform: scale(0); transition: transform .3s var(--ease);
}
.fav-count.has { transform: scale(1); }
.fav-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 50% { transform: scale(1.35); } }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; border-radius: 50%;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 18px; height: 1.5px; background: var(--slate); margin-left: -9px; transition: transform .3s var(--ease), background .2s;
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; margin: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: var(--nav-top, 122px) 0 0 0; background: var(--cream); padding: 24px;
    transform: translateX(100%); transition: transform .45s var(--ease), visibility .45s; visibility: hidden; overflow-y: auto;
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--cream); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .main-nav a[aria-current="page"] { color: var(--brass-dark); font-style: italic; }
  .nav-open { overflow: hidden; }
}
@media (max-width: 720px) {
  .topbar-links .hide-sm { display: none; }
  .topbar .tb-left { display: none; }
  .topbar .container { justify-content: center; }
}

/* Page hero (inner pages) */
.page-hero { position: relative; padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); background: var(--slate); color: var(--cream); overflow: hidden; }
.page-hero.has-img::before {
  content: ""; position: absolute; inset: 0; background-image: var(--img);
  background-size: cover; background-position: center;
  opacity: .32; animation: kenburns 14s var(--ease) both;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(30,35,40,.95) 0%, rgba(30,35,40,.7) 55%, rgba(30,35,40,.35) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--cream); max-width: 16ch; }
.page-hero h1 em { color: var(--brass-light); }
.page-hero .lead { color: rgba(245,241,234,.75); }
.page-hero .eyebrow { color: var(--brass-light); }
.breadcrumbs { display: flex; gap: 10px; font-size: .78rem; letter-spacing: .08em; color: rgba(245,241,234,.6); margin-bottom: 28px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--brass-light); }
.breadcrumbs span[aria-hidden] { color: var(--brass); }

/* Listing card */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.listing-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; position: relative;
  box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  display: flex; flex-direction: column;
}
.listing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.lc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--slate-700); }
.lc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.listing-card:hover .lc-media img { transform: scale(1.06); }
.lc-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, rgba(30,35,40,.55)); pointer-events: none; }
.lc-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; z-index: 2; }
.badge {
  display: inline-block; padding: 6px 11px; border-radius: 2px; font-size: .64rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  background: var(--cream); color: var(--slate-900);
}
.badge-brass { background: var(--brass); color: var(--slate-900); }
.badge-dark { background: var(--slate-900); color: var(--cream); }
.badge-sold { background: var(--sold); color: #fff; }
.fav-btn {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(245,241,234,.94); display: grid; place-items: center;
  transition: transform .25s var(--ease), background .2s;
}
.fav-btn:hover { transform: scale(1.1); background: #fff; }
.fav-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--slate); stroke-width: 1.8; transition: fill .25s, stroke .25s; }
.fav-btn[aria-pressed="true"] svg { fill: var(--sold); stroke: var(--sold); }
.fav-btn.pop svg { animation: heart .45s var(--ease); }
@keyframes heart { 30% { transform: scale(1.4); } 60% { transform: scale(.9); } }
.lc-price-tag { position: absolute; left: 18px; bottom: 14px; z-index: 2; color: #fff; font-family: var(--serif); font-size: 1.85rem; font-weight: 600; line-height: 1; }
.lc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.lc-hood { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-dark); margin-bottom: 6px; }
.lc-title { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; color: var(--slate-900); margin: 0 0 4px; line-height: 1.15; }
.lc-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.lc-addr { font-size: .88rem; color: var(--slate-500); margin: 0 0 16px; }
.lc-specs { display: flex; gap: 18px; padding-top: 14px; margin-top: auto; border-top: 1px solid var(--line); font-size: .84rem; color: var(--slate-700); flex-wrap: wrap; }
.lc-specs span { display: inline-flex; align-items: center; gap: 6px; }
.lc-specs svg { width: 16px; height: 16px; color: var(--brass-dark); }
.lc-specs b { font-weight: 700; color: var(--slate-900); }

/* list view variant */
.card-grid.list-view { grid-template-columns: 1fr; }
.list-view .listing-card { flex-direction: row; }
.list-view .lc-media { width: 42%; aspect-ratio: auto; min-height: 240px; flex-shrink: 0; }
.list-view .lc-body { padding: 28px 32px; justify-content: center; }
.list-view .lc-title { font-size: 1.8rem; }
.lc-excerpt { display: none; color: var(--slate-500); font-size: .94rem; }
.list-view .lc-excerpt { display: block; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-light); }
.stat { padding: 36px 28px 8px; border-right: 1px solid var(--line-light); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--serif); font-size: clamp(2.6rem, 4.4vw, 3.8rem); line-height: 1; color: var(--brass-light); font-weight: 500; }
.stat-label { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-top: 12px; color: var(--cream); }
.stat-note { font-size: .86rem; color: rgba(245,241,234,.55); margin-top: 6px; }
.stat-trend { display: inline-flex; gap: 4px; align-items: center; font-size: .78rem; color: #a9c2a2; margin-top: 8px; font-weight: 700; }

/* Agent card */
.agent-card { position: relative; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.agent-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.agent-photo { aspect-ratio: 4 / 5; background: var(--slate-300); overflow: hidden; position: relative; }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.02); transition: filter .6s, transform 1.2s var(--ease); }
.agent-card:hover .agent-photo img { filter: none; transform: scale(1.04); }
.agent-body { padding: 20px 22px 24px; }
.agent-name { font-family: var(--serif); font-size: 1.55rem; margin: 0; color: var(--slate-900); font-weight: 500; }
.agent-name a::after { content: ""; position: absolute; inset: 0; }
.agent-role { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-dark); margin: 4px 0 14px; }
.agent-meta { display: flex; gap: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--slate-500); }
.agent-meta b { color: var(--slate-900); display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }

/* Testimonials */
.testimonial-wrap { position: relative; }
.testimonial-track { display: grid; }
.testimonial { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility .7s; text-align: center; }
.testimonial.active { opacity: 1; visibility: visible; }
.testimonial blockquote { margin: 0 auto; max-width: 30ch; font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.25; font-weight: 400; color: var(--slate-900); }
.bg-slate .testimonial blockquote { color: var(--cream); }
.testimonial cite { display: block; margin-top: 28px; font-style: normal; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-dark); }
.testimonial cite span { display: block; letter-spacing: .04em; text-transform: none; font-weight: 500; color: var(--slate-500); margin-top: 4px; font-size: .9rem; }
.quote-mark { font-family: var(--serif); font-size: 6rem; line-height: .6; color: var(--brass); display: block; margin-bottom: 18px; }
.t-controls { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 40px; }
.t-dots { display: flex; gap: 8px; }
.t-dot { width: 28px; height: 3px; padding: 0; border: 0; background: var(--line); transition: background .3s, width .3s; }
.t-dot[aria-selected="true"] { background: var(--brass); width: 48px; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; transition: background .25s, border-color .25s, color .25s; }
.round-btn:hover { background: var(--slate); color: var(--cream); border-color: var(--slate); }
.round-btn svg { width: 16px; height: 16px; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--slate-900); color: var(--cream); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.cta-band::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(184,154,99,.35); }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(184,154,99,.2); }
.cta-band h2 { color: var(--cream); margin-bottom: .3em; }
.cta-band h2 em { color: var(--brass-light); }
.cta-band p { color: rgba(245,241,234,.7); margin: 0; }
.cta-band .actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; position: relative; z-index: 1; }

/* Footer */
.site-footer { background: var(--slate-900); color: rgba(245,241,234,.7); padding-top: 88px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 64px; }
.site-footer .brand-name { color: var(--cream); }
.site-footer .brand-sub { color: rgba(245,241,234,.5); }
.footer-about { margin-top: 22px; max-width: 34ch; }
.footer-title { font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-light); margin: 6px 0 20px; font-family: var(--sans); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { transition: color .2s, padding .3s var(--ease); }
.footer-links a:hover { color: var(--cream); padding-left: 6px; }
.newsletter { display: flex; border-bottom: 1px solid rgba(245,241,234,.25); margin-top: 8px; }
.newsletter input { flex: 1; background: transparent; border: 0; padding: 12px 0; color: var(--cream); min-width: 0; }
.newsletter input::placeholder { color: rgba(245,241,234,.45); }
.newsletter input:focus { outline: none; }
.newsletter button { background: none; border: 0; color: var(--brass-light); padding: 0 4px; font-weight: 700; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.newsletter-msg { font-size: .84rem; color: var(--brass-light); min-height: 1.4em; margin-top: 10px; }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(245,241,234,.2); display: grid; place-items: center; transition: background .25s, border-color .25s, color .25s; }
.socials a:hover { background: var(--brass); border-color: var(--brass); color: var(--slate-900); }
.socials svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(245,241,234,.1); padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; font-size: .8rem; flex-wrap: wrap; color: rgba(245,241,234,.5); }
.footer-bottom .eho { display: inline-flex; gap: 8px; align-items: center; }
.footer-bottom svg { width: 18px; height: 18px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 140%);
  background: var(--slate-900); color: var(--cream); padding: 14px 22px; border-radius: 40px; font-size: .9rem;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg);
  transition: transform .5s var(--ease);
}
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 16px; height: 16px; color: var(--brass); }
/* Chips & tabs */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 16px; border-radius: 40px; border: 1px solid var(--line);
  background: transparent;
  font-size: .84rem; font-weight: 600; transition: background .25s, color .25s,
  border-color .25s;
}
.chip:hover { border-color: var(--slate); }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip.active
{ background: var(--slate); color: var(--cream); border-color: var(--slate); }

/* Accordion */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; background: none; border: 0; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left; font-family: var(--serif); font-size: 1.4rem; color: var(--slate-900); }
.acc-btn .plus { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .4s var(--ease), background .3s; }
.acc-btn .plus::before, .acc-btn .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--slate); transform: translate(-50%, -50%); }
.acc-btn .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.acc-btn[aria-expanded="true"] .plus { background: var(--brass); border-color: var(--brass); }
.acc-btn[aria-expanded="true"] .plus::after { transform: translate(-50%, -50%) rotate(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-panel.open { grid-template-rows: 1fr; }
.acc-panel p { color: var(--slate-500); padding-bottom: 24px; margin: 0; max-width: 70ch; }

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .actions { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .card-grid { grid-template-columns: 1fr; }
  .list-view .listing-card { flex-direction: column; }
  .list-view .lc-media { width: 100%; min-height: 0; aspect-ratio: 4/3; }
  .list-view .lc-body { padding: 20px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .stat { padding: 26px 16px 8px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 1.35rem; }
}