/* ============================================================
   TOP AGENT TODAY — design system
   Editorial serif display + grotesque body, cream/ink/periwinkle
   ============================================================ */

:root {
  --cream: #F2ECE7;
  --cream-2: #EAE2DA;
  --ink: #151515;
  --ink-soft: #55504A;
  --ink-mute: #8A837B;
  --accent: #7195FF;
  --accent-deep: #5077EA;
  --accent-soft: #DCE5FF;
  --white: #FFFFFF;
  --line: rgba(21, 21, 21, 0.14);
  --line-soft: rgba(21, 21, 21, 0.08);
  --gold: #C9A227;
  --silver: #A8A8A8;
  --bronze: #B0784F;
  --bg: var(--cream);
  --text: var(--ink);
  --r-card: 22px;
  --r-big: 28px;
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

section[id] { scroll-margin-top: 90px; }

a { color: inherit; }

img { max-width: 100%; }

::selection { background: var(--accent); color: var(--ink); }

/* Serif italic accent — wrap emphasis words in <em> inside headings */
h1 em, h2 em, h3 em, .section-title em {
  font-style: italic;
  font-weight: inherit;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001s !important; }
}

/* ── ANNOUNCEMENT PILL ── */
.announce-bar {
  background: var(--cream);
  padding: 14px 24px 0;
  display: flex;
  justify-content: center;
}

.announce-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: 999px;
  padding: 9px 22px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.25s, transform 0.25s var(--ease-out);
}

.announce-pill:hover { background: var(--accent); transform: translateY(-1px); }

.announce-pill .arr { font-size: 14px; letter-spacing: 0; }

/* ── NAV ── */
nav {
  background: rgba(242, 236, 231, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.logo-img {
  width: 38px;
  height: 34px;
  display: block;
  transition: transform 0.35s var(--ease-out);
}

.logo:hover .logo-img { transform: rotate(-6deg) scale(1.05); }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .brand {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.2px;
}

.logo-text .brand em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0;
}

.logo-text .sub {
  font-size: 10px;
  color: var(--ink-mute);
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--ink);
  transition: right 0.3s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }

.nav-cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  background: var(--ink);
  color: var(--cream) !important;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s, transform 0.25s var(--ease-out);
}

.btn-nav:hover { background: var(--accent); color: var(--ink) !important; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 28px 26px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-nav { display: none; }
}

/* ── SHARED BUTTONS ── */
.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  background: var(--accent);
  color: var(--ink) !important;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s var(--ease-out);
}

.btn-solid:hover { background: var(--accent-deep); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  background: transparent;
  color: inherit !important;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}

.btn-outline:hover { background: var(--ink); color: var(--cream) !important; border-color: var(--ink); transform: translateY(-2px); }

/* ── HOMEPAGE HERO ── */
.home-hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  color: var(--ink);
  padding: 92px 24px 72px;
  text-align: center;
}

.home-hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
}

.home-hero-eyebrow,
.hero-eyebrow,
.page-header-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 28px;
  color: inherit;
  opacity: 0.85;
}

.home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 400;
  letter-spacing: -1.5px;
  line-height: 1.02;
  margin-bottom: 26px;
}

.home-hero h1 span,
.home-hero h1 em {
  font-style: italic;
  color: inherit;
}

.home-hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 42px;
}

/* search box */
.search-box {
  background: var(--white);
  border-radius: 999px;
  padding: 8px 8px 8px 12px;
  display: flex;
  gap: 8px;
  max-width: 580px;
  margin: 0 auto 16px;
  box-shadow: 0 18px 45px rgba(21, 21, 21, 0.10);
  transition: box-shadow 0.3s;
}

.search-box:focus-within { box-shadow: 0 22px 55px rgba(21, 21, 21, 0.16); }

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  padding: 12px 16px;
  background: transparent;
  min-width: 0;
}

.search-box input::placeholder { color: var(--ink-mute); }

.search-box button {
  background: var(--accent);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 0 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s;
  font-family: inherit;
}

.search-box button:hover { background: var(--accent-deep); }

@media (max-width: 560px) {
  .search-box { flex-direction: column; border-radius: 24px; padding: 10px; }
  .search-box button { padding: 13px; }
}

.search-note {
  font-size: 13.5px;
  min-height: 20px;
  color: var(--ink-soft);
  margin-bottom: 30px;
}

.search-note.visible { font-weight: 600; color: var(--ink); }

.home-hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}

.home-hero-chips span.label {
  font-size: 13px;
  color: var(--ink-mute);
  align-self: center;
  margin-right: 4px;
}

.hero-chip {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}

.hero-chip:hover { background: var(--white); border-color: var(--ink); transform: translateY(-1px); }

.home-hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  padding-top: 34px;
}

.hero-stat { text-align: center; }

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.hero-stat span {
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 600;
}

/* ── MARQUEE STRIP ── */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  overflow: hidden;
  padding: 16px 0;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 0;
  animation: marquee-scroll 36s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 36px;
  text-decoration: none;
}

.marquee-item .star { font-style: normal; font-size: 14px; color: var(--accent); }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── CITY PAGE HERO (dark ink) ── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  padding: 72px 24px 56px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}

.hero-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
}

.hero .hero-eyebrow { border-color: rgba(242, 236, 231, 0.25); }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* badge + checklist row */
.hero-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 52px;
  max-width: 940px;
  margin: 0 auto 44px;
  text-align: left;
}

.hero-badge-wrap {
  position: relative;
  flex-shrink: 0;
  width: 200px;
  padding-bottom: 22px;
}

.hero-badge-shield {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--r-card);
  padding: 26px 16px 34px;
  text-align: center;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  transform: rotate(-2deg);
  transition: transform 0.4s var(--ease-out);
}

.hero-badge-wrap:hover .hero-badge-shield { transform: rotate(0deg) scale(1.02); }

.hero-badge-mark {
  width: 52px;
  height: 46px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge-mark img,
.hero-badge-mark svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-badge-brand {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.2px;
}

.hero-badge-year {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  margin-top: 2px;
}

.hero-badge-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.hero-badge-ribbon {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 92%;
  background: var(--accent);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-align: center;
  padding: 10px 8px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.hero-copy {
  flex: 1;
  min-width: 0;
}

.hero-desc {
  font-size: 16.5px;
  opacity: 0.85;
  max-width: 620px;
  margin: 0 0 24px;
}

.hero-checklist {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.hero-check-col {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.hero-check-item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}

.check-icon {
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .hero-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-desc { margin: 0 auto 22px; }
  .hero-checklist { justify-content: center; }
  .hero-check-item { white-space: normal; }
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 52px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(242, 236, 231, 0.15);
  padding-top: 30px;
}

.hero .hero-stat strong { color: var(--cream); }
.hero .hero-stat span { color: rgba(242, 236, 231, 0.6); }

/* ── PAGE HEADER (buy/sell/find-an-agent) ── */
.page-header {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  color: var(--ink);
  padding: 84px 24px 64px;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: -1.2px;
  line-height: 1.04;
  margin-bottom: 20px;
}

.page-header p {
  font-size: 17.5px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto;
}

.page-header-cta {
  margin-top: 34px;
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── GENERIC SECTION WRAPPERS ── */
.lede-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 8px;
}

.lede-section p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.85;
}

.section-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-wrap.tight { padding-top: 8px; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 400;
  letter-spacing: -0.6px;
  line-height: 1.08;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 4px;
}

.section-heading-block {
  margin-bottom: 40px;
  text-align: center;
}

.section-heading-block .section-subtitle { margin-left: auto; margin-right: auto; }

.section-heading-block.left { text-align: left; }
.section-heading-block.left .section-subtitle { margin-left: 0; }

/* ── HOW RANKINGS WORK / CRITERIA ── */
.how-rankings-section {
  background: var(--white);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0 28px;
}

@media (max-width: 760px) {
  .criteria-grid { grid-template-columns: 1fr; }
}

.criteria-item {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: 28px 24px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.criteria-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(21, 21, 21, 0.08);
}

.criteria-item .icon { font-size: 26px; margin-bottom: 12px; }

.criteria-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.criteria-item p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.65;
}

.how-rankings-closing {
  font-size: 13.5px;
  color: var(--ink-mute);
  text-align: center;
}

/* ── RANKINGS SECTION HEADER ── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 8px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.section-header .section-subtitle { margin-bottom: 0; }

.result-count {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-mute);
  white-space: nowrap;
}

/* ── AGENT CARD ── */
.listings {
  display: flex;
  flex-direction: column;
}

.agent-card {
  background: var(--white);
  border-radius: var(--r-big);
  border: 1px solid var(--line-soft);
  padding: 26px 26px 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
  position: relative;
  flex-wrap: wrap;
}

.agent-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(21, 21, 21, 0.09);
  border-color: var(--line);
}

.agent-card.rank-1 {
  border: 2px solid var(--ink);
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--white) 55%);
}

.agent-card.rank-2 { border-color: var(--silver); }
.agent-card.rank-3 { border-color: var(--bronze); }

/* rank badge */
.rank-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 10px;
}

.rank-1 .rank-badge { background: var(--gold); color: var(--white); }
.rank-2 .rank-badge { background: var(--silver); color: var(--white); }
.rank-3 .rank-badge { background: var(--bronze); color: var(--white); }
.agent-card:not(.rank-1):not(.rank-2):not(.rank-3) .rank-badge {
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 17px;
}

/* avatar */
.agent-avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  margin-top: 2px;
  flex-shrink: 0;
  background: var(--cream);
}

.rank-1 .agent-avatar { border-color: var(--ink); }
.rank-2 .agent-avatar { border-color: var(--silver); }
.rank-3 .agent-avatar { border-color: var(--bronze); }

.avatar-placeholder {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--ink-mute);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 0;
  flex-shrink: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  margin-top: 2px;
}

.avatar-placeholder::after {
  content: '';
  display: block;
  width: 60px;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600' fill='white'%3E%3Cdefs%3E%3CclipPath id='cp'%3E%3Ccircle cx='300' cy='300' r='280'/%3E%3C/clipPath%3E%3C/defs%3E%3Ccircle cx='300' cy='230' r='115'/%3E%3Ccircle cx='300' cy='550' r='205' clip-path='url(%23cp)'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
  flex-shrink: 0;
}

.agent-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 260px;
}

.agent-info {
  flex: 1;
  min-width: 0;
}

.agent-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.agent-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.2px;
  color: var(--ink);
  text-decoration: none;
}

.badge-top {
  background: var(--ink);
  color: var(--cream);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.agent-title {
  font-size: 13.5px;
  color: var(--ink-mute);
  margin-bottom: 2px;
}

.agent-brokerage {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 8px;
}

.agent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.meta-item {
  font-size: 13.5px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.meta-item strong {
  color: var(--ink);
  font-weight: 700;
}

.agent-bio {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 700px;
}

.agent-tags, .agent-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.agent-specialties { margin-top: 8px; }

.specialties-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 4px;
  align-self: center;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink-soft);
  letter-spacing: 0.1px;
}

.tag.primary { background: var(--accent-soft); color: var(--ink); }

.tag.quality {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.tag.bonus {
  background: #F7E9D2;
  color: #8A5A12;
}

/* stars */
.stars-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
}

.stars {
  display: flex;
  align-items: center;
  gap: 5px;
}

.star-icons {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 1px;
}

.star-score {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.review-count {
  font-size: 12.5px;
  color: var(--ink-mute);
}

.star-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: var(--ink);
  color: var(--cream);
  font-size: 11.5px;
  line-height: 1.6;
  padding: 8px 14px;
  border-radius: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 20;
}

.star-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 16px;
  border: 5px solid transparent;
  border-top-color: var(--ink);
}

.stars-wrap:hover .star-tooltip,
.stars-wrap:focus-within .star-tooltip {
  opacity: 1;
}

/* card right col */
.card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.agent-website {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  line-height: 1.5;
  white-space: nowrap;
  transition: color 0.2s;
}

.agent-website:hover { color: var(--accent-deep); }

.zillow-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px 6px 7px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s, border-color 0.25s;
}

.zillow-link:hover { background: var(--accent-soft); border-color: var(--accent); }

.zillow-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0F5FA8;
  color: white;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── NEIGHBORHOODS ── */
.neighborhoods-section {
  background: var(--white);
  border-top: 1px solid var(--line-soft);
}

.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .neighborhood-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .neighborhood-grid { grid-template-columns: 1fr; }
}

.neighborhood-card {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: 24px 22px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.neighborhood-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(21, 21, 21, 0.07);
}

.neighborhood-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--ink);
}

.neighborhood-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  transition: background 0.2s;
}

.chip:hover { background: var(--cream-2); }

/* ── MARKET SNAPSHOT ── */
.market-section {
  background: var(--cream);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .market-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .market-grid { grid-template-columns: 1fr; }
}

.market-stat-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: 26px 22px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.market-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(21, 21, 21, 0.07);
}

.market-stat-card .value {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.5px;
  display: block;
  margin-bottom: 4px;
  line-height: 1.1;
}

.market-stat-card .label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  display: block;
}

.market-stat-card .context {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.market-disclaimer {
  font-size: 12.5px;
  color: var(--ink-mute);
  line-height: 1.6;
  max-width: 800px;
}

/* ── MAP ── */
.map-section {
  background: var(--white);
  border-top: 1px solid var(--line-soft);
}

.map-embed {
  border-radius: var(--r-big);
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
  position: relative;
}

.map-embed iframe {
  display: block;
  filter: grayscale(1) contrast(1.02);
  transition: filter 0.6s var(--ease-out);
}

.map-embed:hover iframe { filter: grayscale(0); }

/* ── FAQ SECTION ── */
.faq-section {
  background: var(--cream);
  border-top: 1px solid var(--line-soft);
  padding: 72px 24px 80px;
}

.faq-inner {
  max-width: 840px;
  margin: 0 auto;
}

.faq-section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: var(--ink);
}

.faq-section-sub {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.faq-list {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-big);
  overflow: hidden;
  background: var(--white);
  margin-top: 28px;
}

.faq-item {
  border-bottom: 1px solid var(--line-soft);
}

.faq-item:last-child { border-bottom: none; }

.faq-item summary {
  padding: 24px 28px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
  transition: background 0.2s;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--ink-mute);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
  line-height: 1;
}

.faq-item[open] > summary::after { transform: rotate(45deg); }

.faq-item summary:hover { background: var(--cream); }
.faq-item[open] > summary { background: var(--cream); }

.faq-answer {
  padding: 6px 28px 24px;
  background: var(--cream);
}

.faq-answer p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* ── ABOUT THIS LIST ── */
.about-section {
  background: var(--white);
  border-top: 1px solid var(--line-soft);
}

.about-card {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  padding: 32px;
  max-width: 820px;
}

.about-card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.about-card a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

/* ── COMING SOON CARD ── */
.coming-soon-card {
  background: var(--white);
  border: 1.5px dashed var(--line);
  border-radius: var(--r-big);
  padding: 52px 36px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.coming-soon-card .icon-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 26px;
}

.coming-soon-card h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 12px;
}

.coming-soon-card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 26px;
}

.coming-soon-card .btn-solid { color: var(--ink) !important; }
.coming-soon-card .btn-outline { color: var(--ink) !important; border-color: var(--line); }
.coming-soon-card .btn-outline:hover { color: var(--cream) !important; border-color: var(--ink); }

/* ── CITY CARDS (homepage / find-an-agent) ── */
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .city-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .city-grid { grid-template-columns: 1fr; }
}

.city-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-big);
  padding: 30px 28px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
  position: relative;
  overflow: hidden;
}

.city-card:hover {
  box-shadow: 0 22px 48px rgba(21, 21, 21, 0.10);
  border-color: var(--ink);
  transform: translateY(-5px);
}

.city-card .city-tag {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.city-card .city-tag.live { background: var(--accent); color: var(--ink); }
.city-card .city-tag.soon { background: var(--cream); color: var(--ink-soft); }

.city-card h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
  line-height: 1.1;
}

.city-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 22px;
  flex: 1;
}

.city-card .city-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s var(--ease-out);
}

.city-card:hover .city-cta { gap: 11px; }

/* ── HOW IT WORKS STEPS ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 800px) {
  .steps-grid { grid-template-columns: 1fr; }
}

.step-item {
  text-align: center;
  padding: 0 12px;
}

.step-number {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.step-item h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ── PROCESS TIMELINE (buy / sell) ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 840px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 24px;
  padding-bottom: 40px;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 54px;
  bottom: -4px;
  width: 1.5px;
  background: var(--line);
}

.timeline-num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  transition: background 0.3s, color 0.3s;
}

.timeline-item:hover .timeline-num { background: var(--accent); border-color: var(--accent); }

.timeline-body h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.timeline-body p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 640px;
}

/* ── CTA BAND ── */
.cta-band {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 84px 24px;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.8px;
  line-height: 1.06;
  margin-bottom: 14px;
}

.cta-band p {
  font-size: 16px;
  opacity: 0.75;
  max-width: 520px;
  margin: 0 auto 34px;
}

.cta-band-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-band .btn-outline { color: var(--cream) !important; border-color: rgba(242, 236, 231, 0.4); }
.cta-band .btn-outline:hover { background: var(--cream); color: var(--ink) !important; border-color: var(--cream); }

/* ── PAGE CONTENT (generic long-form) ── */
.page-content {
  max-width: 780px;
  margin: 56px auto;
  padding: 0 24px;
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  margin: 40px 0 14px;
  letter-spacing: -0.3px;
}

.page-content p {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 14px;
}

.page-content ul {
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 2;
  margin-bottom: 16px;
}

/* ── FOOTER ── */
footer {
  background: var(--accent);
  color: var(--ink);
  padding: 72px 28px 0;
  margin-top: 0;
  overflow: hidden;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.footer-brand { max-width: 300px; }

.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo .logo-text .brand { color: var(--ink); }
.footer-brand .logo .logo-text .sub { color: rgba(21, 21, 21, 0.55); }

.footer-brand p {
  font-size: 14px;
  color: rgba(21, 21, 21, 0.75);
  line-height: 1.7;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 0;
  text-transform: none;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links ul li a {
  color: rgba(21, 21, 21, 0.78);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.footer-links ul li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid rgba(21, 21, 21, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  font-size: 12.5px;
  color: rgba(21, 21, 21, 0.65);
}

.disclaimer {
  font-size: 11.5px;
  color: rgba(21, 21, 21, 0.5);
  max-width: 1240px;
  margin: 14px auto 0;
  line-height: 1.55;
  white-space: pre-line;
}

/* giant footer logo */
.footer-logo {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  line-height: 0;
}

.footer-logo img {
  width: min(340px, 60vw);
  height: auto;
  display: block;
  transform: translateY(14%);
  transition: transform 0.6s var(--ease-out);
}

.footer-logo:hover img { transform: translateY(8%) rotate(-3deg); }
