:root {
  --ink: #0a0a0b;
  --ink-2: #17181c;
  --ink-3: #2a2c33;
  --paper: #ffffff;
  --bg: #f5f6f8;
  --line: #e4e6eb;
  --muted: #5b616e;
  --muted-on-dark: #a4a9b5;
  --blue: #1e50ff;
  --blue-hover: #1740d6;
  --blue-soft: #e9efff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10, 10, 11, .06), 0 8px 24px rgba(10, 10, 11, .06);
  --heading: "Manrope", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font: 400 16px/1.55 var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.accent { color: var(--blue); }
.eyebrow {
  font: 600 13px/1 var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 18px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--body);
  padding: 14px 22px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid var(--ink-3);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font: 800 19px/1.1 var(--heading); letter-spacing: -0.01em; }
.brand-sub { font-size: 12px; color: var(--muted-on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: #d9dbe1; text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:not(.btn):hover { color: #fff; }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -180px; top: -160px; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(30,80,255,.35), rgba(30,80,255,0) 65%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; max-width: 14ch; }
.lede { font-size: 18px; color: #c9ccd4; max-width: 56ch; margin: 22px 0 36px; }
.hero-search {
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: end;
  background: #fff; color: var(--ink);
  padding: 14px; border-radius: var(--radius);
  max-width: 880px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.hero-search label span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 6px 4px; }
.hero-search .btn { height: 48px; padding: 0 30px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 48px; margin: 40px 0 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { color: var(--muted-on-dark); font-size: 14px; }
.hero-stats dd { margin: 0; font: 800 30px/1.1 var(--heading); }

/* Form controls */
select, input[type="search"] {
  width: 100%; height: 48px;
  font: 500 15px var(--body); color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 0 14px;
}
select {
  appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230a0a0b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
select:focus, input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }

/* Listings */
.listings { background: var(--bg); padding: 64px 0 80px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.count { color: var(--muted); margin: 0; font-weight: 500; }
.filters {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr .9fr .95fr auto auto 1.05fr;
  gap: 10px 14px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; margin-bottom: 28px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; border: 1px solid var(--line);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { position: relative; aspect-ratio: 3 / 2; background: #dfe3ea; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.noimg { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 14px; }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px;
}
.badge-dark { background: var(--ink); }
.photo-count {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(10,10,11,.72); color: #fff; font-size: 12px; font-weight: 500;
  padding: 4px 9px; border-radius: 999px;
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.card-price { font: 800 24px/1.15 var(--heading); }
.card-price span { font: 500 14px var(--body); color: var(--muted); }
.card-facts { font-weight: 600; font-size: 15px; }
.card-title { color: var(--ink-3); font-size: 15px; }
.card-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.avail { color: var(--blue); font-weight: 600; }
.more { display: flex; justify-content: center; margin-top: 36px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; background: var(--paper); border-radius: var(--radius); border: 1px dashed var(--line); }
.empty p { color: var(--muted); }

/* About */
.about { padding: 88px 0; }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.about h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 18px; }
.about p { color: var(--ink-3); font-size: 17px; max-width: 58ch; }
.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.points li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 3px; background: var(--blue); }
.brokerage-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 20px;
  padding: 36px; display: flex; flex-direction: column; gap: 16px;
}
.brokerage-card img { height: 72px; width: auto; align-self: flex-start; border-radius: 8px; }
.brokerage-card .label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.brokerage-card strong { font: 800 22px/1.2 var(--heading); }

/* Team page */
.page-hero { background: var(--ink); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; max-width: 18ch; }
.page-hero .lede { margin-bottom: 0; }
.team { padding: 72px 0 88px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 24px; }
/* Photos stay small (some headshots are only 240px) with the bio beside them. */
.member { display: grid; grid-template-columns: 200px 1fr; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--paper); }
.member-photo { background: var(--bg); min-height: 250px; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.member-body { padding: 22px 24px 26px; }
.member-body h2 { font-size: 24px; font-weight: 800; }
.member-role { color: var(--blue); font-weight: 600; margin: 6px 0 14px; }
.member-bio { color: var(--ink-3); margin: 0; font-size: 15px; }
.about-link { margin-top: 28px; }

/* Contact band */
.contact { background: var(--blue); color: #fff; padding: 64px 0; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.contact h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
.contact p { margin: 10px 0 0; color: #dfe6ff; font-size: 17px; }
.contact .btn-dark { font-size: 17px; padding: 16px 26px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-on-dark); padding: 56px 0 36px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--ink-3); }
.footer-top h3 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-top a { color: var(--muted-on-dark); text-decoration: none; }
.footer-top a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand .brand { margin-bottom: 14px; color: #fff; }
.footer-brand p { margin: 0; max-width: 40ch; }
.footer-legal { display: flex; flex-direction: column; gap: 20px; padding-top: 28px; }
.footer-legal p { margin: 0; max-width: 90ch; }
/* Same logo row as the original site: fair housing, REALTOR, brokerage, team. */
.footer-logos {
  display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 20px 36px;
  background: #fff; border-radius: var(--radius); padding: 20px 28px;
}
.footer-logos img { width: auto; flex: none; }
.logo-eho { height: 58px; }
.logo-realtor { height: 58px; }
.logo-towne { height: 62px; border-radius: 6px; }
.logo-wordmark { height: 34px; }

/* Listing detail */
.detail { padding: 28px 0 80px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 500; margin-bottom: 18px; }
.back:hover { color: var(--ink); }
.detail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.detail-head h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; }
.detail-head .where { color: var(--muted); margin: 8px 0 0; font-size: 17px; }
.status-pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.status-pill.pending { background: var(--ink); color: #fff; }

.gallery { position: relative; border-radius: 18px; overflow: hidden; background: var(--ink); }
.gallery-main { aspect-ratio: 16 / 10; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; font-size: 22px; line-height: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.gallery-nav:hover { background: #fff; }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-counter {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(10,10,11,.75); color: #fff; font-size: 13px; font-weight: 500;
  padding: 5px 11px; border-radius: 999px;
}
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: thin; }
.thumbs button { flex: none; width: 92px; aspect-ratio: 3 / 2; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--bg); opacity: .7; }
.thumbs button[aria-current="true"] { border-color: var(--blue); opacity: 1; }
.thumbs button:hover { opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; margin-top: 36px; align-items: start; }
.detail-section + .detail-section { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line); }
.detail-section h2 { font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.key-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.key-facts span { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.description p { margin: 0 0 14px; color: var(--ink-3); }
.description ul { margin: 0 0 14px; padding-left: 20px; color: var(--ink-3); }
.description li { margin-bottom: 4px; }
.facts-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.facts-table div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts-table dt { color: var(--muted); }
.facts-table dd { margin: 0; font-weight: 600; text-align: right; }
.map { width: 100%; height: 340px; border: 0; border-radius: var(--radius); background: var(--bg); }
.map-note { font-size: 13px; color: var(--muted); margin-top: 8px; }

.side-card {
  position: sticky; top: 96px;
  border: 1px solid var(--line); border-radius: 18px; padding: 26px;
  box-shadow: var(--shadow); background: var(--paper);
  display: flex; flex-direction: column; gap: 12px;
}
.side-price { font: 800 36px/1 var(--heading); }
.side-price span { font: 500 16px var(--body); color: var(--muted); }
.side-avail { color: var(--blue); font-weight: 600; margin-bottom: 8px; }
.side-note { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.side-team { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.side-team img { width: 36px; height: 36px; }
.side-team strong { color: var(--ink); display: block; font-size: 14px; }

.notice { max-width: 560px; margin: 60px auto; text-align: center; padding: 48px 28px; background: var(--bg); border-radius: 20px; }
.notice h1 { font-size: 30px; margin-bottom: 12px; }
.notice p { color: var(--muted); margin-bottom: 24px; }
.loading { color: var(--muted); padding: 60px 0; text-align: center; }

/* Responsive */
@media (max-width: 1080px) {
  .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filters input[type="search"] { grid-column: 1 / -1; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
}
@media (max-width: 860px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding: 52px 0 48px; }
  .hero-search { grid-template-columns: 1fr 1fr; }
  .hero-search label:first-child { grid-column: 1 / -1; }
  .hero-search .btn { grid-column: 1 / -1; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid, .detail-grid, .footer-top { grid-template-columns: 1fr; }
  .about-grid { gap: 32px; }
  .side-card { position: static; }
  .facts-table { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .brand-name { font-size: 17px; }
  /* The brokerage name must stay fully visible, so it wraps instead of truncating. */
  .brand-sub { font-size: 11px; white-space: normal; line-height: 1.3; }
  .header-inner { height: auto; min-height: 64px; padding: 10px 16px; }
  .nav .btn { padding: 9px 12px; font-size: 13px; }
  .hero-search { grid-template-columns: 1fr; }
  .hero-stats { gap: 14px 28px; }
  .hero-stats dd { font-size: 24px; }
  .filters { grid-template-columns: 1fr 1fr; padding: 10px; }
  .member { grid-template-columns: 1fr; }
  .member-photo { width: 160px; height: 200px; min-height: 0; margin: 22px 24px 0; border-radius: 12px; overflow: hidden; }
  .filters select[name="sort"] { grid-column: 1 / -1; }
  .grid { grid-template-columns: 1fr; }
  .gallery { border-radius: 12px; }
  .gallery-nav { width: 38px; height: 38px; font-size: 18px; }
  .thumbs button { width: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}
