/* Directory index pages (state / city / category browse). Shares the
   profile-page look: system fonts, zinc palette, card lists. */

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

html, body { overflow-x: hidden; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f4f4f5;
  color: #18181b;
  min-height: 100vh;
}

a { color: #2563eb; text-decoration: none; }

/* ── Header / footer ── */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid #e4e4e7;
}

.site-brand { font-weight: 800; font-size: 1.15rem; color: #18181b; }

.site-links { display: flex; align-items: center; gap: 14px; }

.site-links a { font-size: 0.9rem; font-weight: 600; color: #3f3f46; }

.site-links .nav-cta { background: #18181b; color: #fff; padding: 8px 14px; border-radius: 8px; }

.site-foot {
  margin-top: 48px;
  padding: 28px 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #71717a;
  background: #fff;
  border-top: 1px solid #e4e4e7;
}

.site-foot a { color: #3f3f46; font-weight: 600; }

/* ── Breadcrumbs ── */

.crumbs {
  max-width: 900px;
  margin: 16px auto 0;
  padding: 0 16px;
  font-size: 0.8rem;
  color: #71717a;
}

.crumbs a { color: #52525b; }
.crumbs a:hover { text-decoration: underline; }

/* ── Directory body ── */

.dir { max-width: 900px; margin: 16px auto 0; padding: 0 16px; }

.dir h1 { font-size: 1.7rem; margin-bottom: 8px; }

.dir-section { margin-top: 26px; }

.dir-section h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #71717a;
  margin-bottom: 12px;
}

.dir-list, .dir-biz { list-style: none; display: grid; gap: 8px; }

.dir-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.dir-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 600;
}

.dir-list li:hover { border-color: #a1a1aa; }

.dir-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: #71717a;
  background: #f4f4f5;
  border-radius: 999px;
  padding: 2px 9px;
}

.dir-biz li {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 14px 18px;
}

.dir-biz li a { font-weight: 600; color: #18181b; }
.dir-biz li a:hover { color: #2563eb; }

.dir-empty {
  margin-top: 24px;
  background: #fff;
  border: 1px dashed #d4d4d8;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: #71717a;
}

@media (max-width: 640px) {
  .dir-list { grid-template-columns: 1fr; }
}
