/* Best Realtor Directories — styled after the MICHELIN Guide directory pages */
:root {
  --red: #e10f20;
  --red-dark: #b90c1a;
  --red-soft: #fdeceb;
  --ink: #191919;
  --ink-2: #222227;
  --ink-soft: #48484a;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --line-soft: #f2f2f7;
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --gold: #d4a017;
  --radius: 3px;
  --card-shadow: 0 0 8px rgba(0,0,0,.14);
  --card-shadow-hover: 0 4px 16px rgba(0,0,0,.18);
  --font: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.45; -webkit-font-smoothing: antialiased; font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.container { width: min(1440px, 100% - 64px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { flex: none; }

/* ---------- Announcement bar ---------- */
.announce {
  background: #fff; border-bottom: 1px solid var(--line); text-align: center;
  font-size: 15px; padding: 10px 0; position: relative;
}
.announce a { text-decoration: underline; text-underline-offset: 3px; }
.announce .close {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; font-size: 20px; line-height: 1; color: var(--muted);
}

/* ---------- Header ---------- */
.header { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); position: sticky; top: 0; z-index: 60; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--red); letter-spacing: -.01em; white-space: nowrap; }
.header .logo img { height: 60px; width: auto; display: block; }
.logo .b { font-weight: 800; font-size: 25px; text-transform: uppercase; }
.logo .l { font-weight: 300; font-size: 25px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  font-size: 17px; font-weight: 500; padding: 9px 22px; border-radius: 999px;
  border: 1px solid transparent; color: var(--ink-2); transition: background .15s;
}
.nav a:hover { background: var(--bg-soft); }
.nav a.active { border-color: var(--ink-2); }
.header-right { display: flex; align-items: center; gap: 18px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #e5e5ea; display: grid; place-items: center; color: #8e8e93; }
.burger { background: none; border: 0; padding: 4px; color: var(--ink-2); display: grid; gap: 6px; }
.burger span { display: block; width: 24px; height: 2px; background: currentColor; }

/* ---------- Search + filter chips (directory page) ---------- */
.searchzone { background: #fff; border-bottom: 1px solid var(--line); }
.searchzone .container { padding: 22px 0 18px; }
.searchrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.search {
  display: flex; align-items: center; gap: 12px; width: 600px; max-width: 100%;
  height: 56px; padding: 0 16px 0 18px; border: 1px solid #c7c7cc; border-radius: 6px; background: #fff;
}
.search svg { width: 20px; height: 20px; color: var(--ink-2); }
.search input { flex: 1; border: 0; outline: 0; font-size: 18px; font-weight: 500; background: transparent; min-width: 0; }
.search .clear { background: none; border: 0; color: var(--muted); font-size: 18px; line-height: 1; padding: 4px; }
.search .divider { width: 1px; height: 28px; background: var(--line); }
.search select {
  border: 0; outline: 0; background: transparent; font-size: 15px; font-weight: 500; cursor: pointer;
  appearance: none; -webkit-appearance: none; padding-right: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23191919' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center;
}
.search .go {
  background: var(--red); color: #fff; border: 0; height: 40px; padding: 0 18px; border-radius: 4px; font-weight: 600; font-size: 14px;
}
.search .go:hover { background: var(--red-dark); }
.map-btn {
  width: 56px; height: 56px; border: 1px solid #c7c7cc; border-radius: 6px; background: #fff; display: grid; place-items: center; color: var(--ink-2);
}
.map-btn svg { width: 22px; height: 22px; }

.chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; position: relative; }
.chip-icon {
  width: 52px; height: 36px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fff; display: grid; place-items: center; color: var(--ink-2);
}
.chip-icon svg { width: 18px; height: 18px; }
.chip-wrap { position: relative; }
.chip {
  height: 36px; padding: 0 16px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fff;
  font-size: 13px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: background .15s, color .15s;
}
.chip:hover { border-color: #d1d1d6; }
.chip.open, .chip.has-value { background: var(--ink-soft); color: #fff; border-color: var(--ink-soft); }
.chip .n[hidden], .chip[hidden] { display: none; }
.chip .n { background: #fff; color: var(--ink); font-size: 11px; font-weight: 700; border-radius: 999px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; }
.chip.reset { color: var(--red); border-color: transparent; box-shadow: none; }
.chip.reset:hover { background: var(--red-soft); }

.panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 40;
  width: 340px; max-width: calc(100vw - 48px); background: #fff; border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18); padding: 22px 18px 12px; display: none;
}
.panel.open { display: block; }
.panel h4 { margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); font-size: 17px; font-weight: 600; }
.panel ul { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow: auto; }
.panel li { border-bottom: 1px solid var(--line-soft); }
.panel li:last-child { border-bottom: 0; }
.panel label { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; font-size: 15px; font-weight: 500; }
.panel label small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.panel label .txt { flex: 1; }
.panel label .cnt { font-size: 13px; color: var(--muted); }
.panel input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); border-radius: 2px; }

/* ---------- Page heading ---------- */
.page-head { padding: 34px 0 10px; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs span { margin: 0 8px; }
.page-head h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; margin: 0 0 10px; line-height: 1.12; letter-spacing: -.01em; }
.page-head .lede { font-size: 17px; color: var(--ink-soft); max-width: 820px; margin: 0; }
.notice {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: 13px; color: var(--ink-soft); background: var(--bg-soft); border: 1px solid var(--line); padding: 8px 14px; border-radius: 8px;
}
.notice svg { width: 15px; height: 15px; color: var(--red); }

/* ---------- Featured agent ---------- */
.featured {
  display: grid; grid-template-columns: 460px 1fr; align-items: start; background: #fff; border-radius: var(--radius);
  box-shadow: var(--card-shadow); overflow: hidden; margin: 28px 0 44px;
}
.featured .photo { position: relative; background: var(--bg-soft); aspect-ratio: 4 / 5; width: 100%; align-self: start; overflow: hidden; }
.featured .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.featured .badge {
  position: absolute; top: 18px; left: 18px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 7px 11px; border-radius: 3px;
}
.featured .body { padding: 40px 44px; display: flex; flex-direction: column; }
.featured .kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.featured h2 { font-size: 34px; margin: 8px 0 2px; font-weight: 600; letter-spacing: -.01em; }
.featured .brokerage { font-size: 16px; color: var(--ink-soft); margin-bottom: 14px; }
.featured .meta { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; }
.featured .meta strong { color: var(--ink); font-weight: 600; }
.featured .meta .stars { color: var(--gold); }
.featured .bio { font-size: 16px; color: var(--ink-soft); margin: 0 0 22px; line-height: 1.6; }
.featured .tags { margin: 0 0 26px; }
.featured .actions { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 6px;
  border: 1px solid var(--ink); background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* ---------- Results ---------- */
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 22px; flex-wrap: wrap; }
.results-bar h2 { font-size: 22px; font-weight: 500; margin: 0; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.sort select {
  border: 1px solid #c7c7cc; border-radius: 6px; padding: 9px 36px 9px 14px; background: #fff; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23191919' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 72px; }
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.card .photo { position: relative; aspect-ratio: 1 / 0.86; background: var(--bg-soft); overflow: hidden; }
.card .photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.card .flag, .card .verified { z-index: 2; }
.card .photo .initials {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 72px; font-weight: 600; color: #fff;
}
.card .flag {
  position: absolute; top: 14px; left: 14px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 8px; border-radius: 3px;
}
.card .verified {
  position: absolute; left: 16px; bottom: 16px; background: #fff; border-radius: 4px; padding: 6px 10px;
  font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.card .verified svg { width: 13px; height: 13px; color: #1f9d55; }
.card .body { padding: 16px 16px 18px; }
.card .spec-line { display: flex; align-items: center; gap: 6px; color: var(--red); font-size: 12px; font-weight: 600; letter-spacing: .02em; margin-bottom: 6px; }
.card .spec-line svg { width: 14px; height: 14px; }
.card h3 { font-size: 20px; font-weight: 600; margin: 0 0 4px; line-height: 1.2; }
.card h3 a:hover { color: var(--red); }
.card .brokerage { font-size: 13px; color: var(--ink-soft); }
.card .line { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.card .line .stars { color: var(--gold); letter-spacing: .5px; }
.card .line strong { color: var(--ink); font-weight: 600; }
.card .blurb { font-size: 13px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.card .hoods { font-size: 12px; color: var(--muted); margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.card .hoods svg { width: 13px; height: 13px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; color: var(--ink-soft); background: #fff; }
.tag.primary { border-color: var(--red); color: var(--red); background: var(--red-soft); }

.empty { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty button { margin-top: 12px; }

/* ---------- Home hero ---------- */
.hero { background: var(--ink); color: #fff; padding: 84px 0 76px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 90% at 90% 10%, rgba(225,15,32,.32), transparent 60%), radial-gradient(35% 60% at 5% 95%, rgba(255,255,255,.06), transparent 60%);
}
.hero .container { position: relative; z-index: 1; max-width: 900px; text-align: center; }
.hero .eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #ffb3b9; font-weight: 700; margin-bottom: 16px; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.06; margin: 0 0 16px; font-weight: 600; letter-spacing: -.02em; }
.hero p { font-size: 18px; color: rgba(255,255,255,.78); margin: 0 auto 34px; max-width: 640px; }
.hero .search { margin: 0 auto; width: 760px; border-color: transparent; color: var(--ink); height: 64px; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.hero .search svg { color: var(--ink-2); }
.hero .quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.hero .quick a { font-size: 13px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.06); }
.hero .quick a:hover { background: rgba(255,255,255,.14); }

.section { padding: 60px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-head h2 { font-size: 30px; margin: 0; font-weight: 600; letter-spacing: -.01em; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.section-head a { font-size: 14px; font-weight: 600; color: var(--red); white-space: nowrap; }

.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; color: #fff; background: var(--ink); box-shadow: var(--card-shadow); }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .4s; }
.tile:hover img { transform: scale(1.04); }
.tile .tile-body { position: absolute; inset: auto 0 0 0; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.tile .tile-body strong { display: block; font-size: 22px; font-weight: 600; }
.tile .tile-body span { font-size: 13px; opacity: .85; }

.spec-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.spec { background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 24px 16px; text-align: center; transition: transform .15s, box-shadow .15s; }
.spec:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
.spec .icon { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--red); }
.spec strong { display: block; font-size: 15px; font-weight: 600; }
.spec span { font-size: 13px; color: var(--muted); }

.about-strip { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 52px 0; }
.about-strip .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.about-strip h4 { font-size: 19px; margin: 0 0 8px; font-weight: 600; }
.about-strip p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 52px 0 28px; font-size: 14px; }
.footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer .logo { color: #fff; margin-bottom: 12px; align-items: baseline; }
.footer .logo img { height: 26px; width: auto; align-self: center; }
.footer .logo .b, .footer .logo .l { font-size: 16px; }
.footer .logo { flex-wrap: wrap; gap: 6px; }
.footer h5 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: #fff; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: repeat(3, 1fr); }
  .featured { grid-template-columns: 380px 1fr; }
}
@media (max-width: 900px) {
  .container { width: min(1440px, 100% - 40px); }
  .nav { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .featured { grid-template-columns: 1fr; }
  .featured .photo { aspect-ratio: 4 / 3; }
  .featured .body { padding: 26px; }
  .about-strip .grid, .footer .grid { grid-template-columns: 1fr 1fr; }
  .search { height: auto; flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .search .divider { display: none; }
  .search input { min-width: 60%; font-size: 16px; }
  .hero .search { width: 100%; }
}
@media (max-width: 560px) {
  .container { width: min(1440px, 100% - 32px); }
  .cards { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .tile-grid { grid-template-columns: 1fr; }
  .about-strip .grid, .footer .grid { grid-template-columns: 1fr; }
  .announce { display: none; }
  .header .container { height: 68px; }
  .header .logo img { height: 44px; }
  .map-btn { display: none; }
}

/* ---------- Real-data additions ---------- */
.featured .stats { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.featured .stats li { font-size: 14px; color: var(--ink); padding-left: 18px; position: relative; }
.featured .stats li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.featured .bio + .bio { margin-top: -8px; }
.card .line.muted { color: var(--muted); font-size: 12px; margin-top: 4px; }
.card .src { color: var(--muted); font-size: 12px; }
@media (max-width: 560px) { .featured .stats { grid-template-columns: 1fr; } }
