:root {
  --fg: #1f1a17;
  --muted: #5c534c;
  --border: #e3dcd3;
  --accent: #2f5233;
  --accent-dark: #243f27;
  --accent-soft: #e8f0e9;
  --warm: #c4a574;
  --warm-soft: #f4efe6;
  --bg: #faf7f2;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(31, 26, 23, 0.06), 0 8px 24px rgba(31, 26, 23, 0.06);
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
  font-size: 1.05rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}
.header-nav-drawer {
  margin-left: auto;
  position: relative;
}
.header-nav-drawer > summary {
  list-style: none;
  cursor: pointer;
}
.header-nav-drawer > summary::-webkit-details-marker { display: none; }
.header-menu-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  font: inherit;
  font-weight: 600;
  color: var(--fg);
}
.menu-bar {
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}
.logo-wordmark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--accent);
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  font-size: 0.95rem;
}
.header-nav a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
}
.header-nav a:hover { color: var(--accent); }
.nav-signin {
  color: var(--accent) !important;
  font-weight: 600 !important;
}
.account-nav-slot { display: inline-flex; align-items: center; }
.footer-auth-slot { list-style: none; margin: 0; padding: 0; }
.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--fg);
  text-decoration: underline;
  cursor: pointer;
}
.link-button:hover { color: var(--accent); }
.account-chip { position: relative; }
.account-chip-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.65rem 0.2rem 0.25rem;
  background: var(--bg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--fg);
}
.account-chip-trigger:hover { border-color: var(--accent); color: var(--accent); }
.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.account-name { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 11rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 0.35rem 0;
  z-index: 40;
}
.account-menu[hidden] { display: none; }
.account-menu a,
.account-menu .account-signout {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.85rem;
  border: none;
  background: none;
  font: inherit;
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
}
.account-menu a:hover,
.account-menu .account-signout:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}
.page-home main { max-width: none; padding-top: 0; }
.page-home > .hero { max-width: var(--max); margin: 0 auto; }

.site-footer {
  background: #2a2522;
  color: #e8e2da;
  padding: 2.5rem 1.25rem;
  font-size: 0.92rem;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.footer-mark { flex-shrink: 0; display: inline-flex; line-height: 0; }
.logo-mark { flex-shrink: 0; display: inline-flex; line-height: 0; }
.footer-tagline { margin: 0; color: #c9c0b6; }
.footer-heading { font-weight: 600; margin: 0 0 0.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #f4efe6; }
.footer-fine {
  max-width: var(--max);
  margin: 0 auto;
  color: #a89f95;
  font-size: 0.82rem;
  text-align: center;
}
.footer-legal { margin-bottom: 0.5rem; }
.footer-legal a { color: #e8e2da; }
.legal-page h2 { margin-top: 1.75rem; }

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1 { font-size: clamp(1.85rem, 4vw, 2.5rem); margin-top: 0; }
.section-title { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
.section-intro { color: var(--muted); max-width: 65ch; }
.meta { color: var(--muted); font-size: 0.9rem; }
.muted { color: var(--muted); }

.hero {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--warm-soft) 55%, var(--bg) 100%);
  padding: 2.5rem 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
}
.hero-pattern {
  background-color: var(--warm-soft);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(47, 82, 51, 0.08) 0, transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(196, 165, 116, 0.25) 0, transparent 40%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(47, 82, 51, 0.03) 18px,
      rgba(47, 82, 51, 0.03) 19px
    );
}
.hero-inner { max-width: var(--max); margin: 0 auto; }
.region-chip {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
.hero-lede { max-width: 52ch; color: var(--muted); margin-bottom: 1.25rem; }
.hero-search {
  display: flex;
  gap: 0.5rem;
  max-width: 560px;
  flex-wrap: nowrap;
  align-items: center;
}
.hero-search input[type="search"] {
  flex: 1 1 0;
  min-width: 0;
  height: 48px;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 1rem;
}
.hero-search button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
}
.hero-search button:hover { background: var(--accent-dark); }
.hero-search button,
.hero-search .btn { flex: 0 0 auto; width: auto; height: 48px; padding: 0 1.25rem; }
.btn,
button.btn,
a.btn,
input.btn[type="submit"] {
  font-family: inherit;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  line-height: 1.25;
  text-align: center;
}
.btn:hover,
button.btn:hover,
a.btn:hover { background: var(--accent-dark); color: #fff; }
.btn:disabled,
button.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.88rem; }
.btn-ghost {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--fg);
  background: var(--card);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.form-control,
.form input:not([type="checkbox"]):not([type="radio"]),
.form select,
.form textarea,
.filter-grid input:not([type="checkbox"]):not([type="radio"]),
.filter-grid select,
.filter-row input[type="search"] {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--fg);
  background: var(--card);
  line-height: 1.35;
}
.hero-search input[type="search"] {
  border-radius: 999px;
  padding: 0.75rem 1rem;
}
.form-control:focus,
.form input:focus,
.form select:focus,
.form textarea:focus,
.filter-grid input:focus,
.filter-grid select:focus,
.filter-row input[type="search"]:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}
.form textarea { min-height: 6rem; resize: vertical; }
.form label,
.form .label-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}
.form fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 0;
  background: var(--card);
}
.form fieldset legend {
  font-weight: 600;
  color: var(--fg);
  padding: 0 0.35rem;
}
.form .checkbox-label,
.checkbox-label {
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500 !important;
  color: var(--fg);
}
.form .checkbox-label input,
.checkbox-label input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.checkbox-fieldset .checkbox-label { display: flex; margin: 0.35rem 0; }
.form-help { color: var(--muted); font-size: 0.9rem; margin: 0.5rem 0 0; max-width: 65ch; }
.form-error,
.error-text { color: #8b2e2e; font-size: 0.92rem; margin: 0.5rem 0; }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.form-stack { display: flex; flex-direction: column; gap: 1rem; max-width: 36rem; }
.form-grid { margin-top: 0; }
.form-login { max-width: 28rem; margin-top: 1rem; }
.page-narrow .form { max-width: 36rem; }

.species-tiles { margin-top: 2rem; }
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}
.species-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s;
}
.species-tile:hover { border-color: var(--warm); transform: translateY(-2px); }
.species-icon { width: 28px; height: 28px; flex-shrink: 0; color: var(--accent); }
.species-tile .species-icon { width: 40px; height: 40px; margin-bottom: 0.25rem; }
.species-tile {
  min-height: 148px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.species-tile-label { font-weight: 700; }
.species-tile-blurb { font-size: 0.85rem; color: var(--muted); }
.species-tile-count { font-size: 0.82rem; font-weight: 600; color: var(--accent); margin-top: auto; }
.guide-hub-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.guide-hub-list li {
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.guide-hub-list a { text-decoration: none; color: var(--accent); display: block; margin-bottom: 0.35rem; }
.guide-hub-lede { display: block; color: var(--muted); font-size: 0.95rem; }
.guide-body ul { padding-left: 1.25rem; }

.chip-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.chip {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--fg);
  font-size: 0.92rem;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip .chip-count { opacity: 0.75; font-size: 0.85em; margin-left: 0.2rem; }
.area-chips { margin: 0 0 1.25rem; }
.area-chips .section-intro { margin-bottom: 0.6rem; }
@media (max-width: 640px) {
  .area-chips .chip-list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.35rem; -webkit-overflow-scrolling: touch; }
  .area-chips .chip { white-space: nowrap; }
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
}
.data-table th, .data-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.data-table th { background: var(--warm-soft); font-weight: 600; }
.data-table tr:last-child td { border-bottom: none; }
.best-value-row { background: linear-gradient(90deg, rgba(47, 82, 51, 0.1), transparent); }
.best-value-row td { font-weight: 600; }
.best-value-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.status-banner {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}
.status-closed { background: #f5ecec; border-color: #d4a5a5; }
.status-unverified { background: #fff8e6; border-color: #e6c86e; }
.status-restaurant { background: var(--accent-soft); }
.practice-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.65rem; }
.practice-badge {
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--warm-soft);
  border: 1px solid var(--border);
  color: var(--muted);
}
.bullet-list, .source-list { padding-left: 1.2rem; }

.browse-filters {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.filter-row input[type="search"] {
  width: 100%;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.filter-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.filter-grid select,
.filter-grid input[type="text"],
.filter-grid input[type="number"],
.filter-grid input[type="email"],
.filter-grid input[type="url"],
.filter-grid input[type="search"] {
  font-size: 0.95rem;
}
.checkbox-label { flex-direction: row !important; align-items: center; font-weight: 500 !important; }
.filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
.result-count { margin-left: auto; color: var(--muted); font-size: 0.9rem; }

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.seller-card {
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.card-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.35rem; }
.species-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.species-badge .species-icon { width: 16px; height: 16px; color: inherit; }
.type-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--warm-soft);
  color: #6b5a3e;
}
.card-title { margin: 0; font-size: 1.15rem; }
.card-title a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.card-title a:hover,
.card-title a:focus-visible { color: var(--accent-dark); text-decoration-color: currentColor; text-decoration-thickness: 2px; }
/* Whole card is tappable: the name link stretches over the card; inner controls sit above it. */
.card-title a.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.seller-card .save-seller-btn { z-index: 2; }
.seller-card a:not(.card-link) { position: relative; z-index: 1; }
.seller-card:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); }
.seller-card:has(.card-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-top: auto; padding-top: 0.5rem; }
.card-foot .card-checked { margin-top: 0; padding-top: 0; }
.card-view { font-size: 0.88rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.card-chevron { display: inline-block; transition: transform 0.15s ease; }
.seller-card:hover .card-view { text-decoration: underline; }
.seller-card:hover .card-chevron { transform: translateX(2px); }
.card-loc { font-size: 0.9rem; color: var(--muted); }
.card-area { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 0.15rem; }
.card-price { font-weight: 600; margin: 0.25rem 0; }
.card-meta { font-size: 0.88rem; margin: 0; }
.card-checked { font-size: 0.82rem; color: var(--muted); margin-top: auto; padding-top: 0.5rem; }

.breadcrumb { font-size: 0.85rem; margin-bottom: 1rem; color: var(--muted); }
.breadcrumb a { color: var(--accent); }

.draft-banner {
  background: #fff8e6;
  border: 1px solid #e6c86e;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.page-article { max-width: 72ch; }
.prose { white-space: pre-wrap; }

.seller-hero { margin-bottom: 1.5rem; }
.seller-summary { color: var(--muted); }
.profile-section { margin-bottom: 2rem; }
.price-table { font-size: 0.85rem; }
.price-table td { max-width: 220px; word-break: break-word; }
.price-species-groups { display: flex; flex-direction: column; gap: 0.75rem; }
.price-species-group summary { cursor: pointer; font-weight: 600; margin-bottom: 0.35rem; }
.price-table-group { margin-top: 0.5rem; }
.price-table-toolbar.browse-filters { margin-bottom: 0.75rem; }
.price-table-toolbar .filter-search-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.price-table-toolbar .filter-search-label input[type="search"] {
  font-weight: 400;
  color: var(--fg);
}
.price-table-pager .price-page-nums {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.price-table-pager .price-page-num {
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
  min-width: 2.25rem;
  text-align: center;
}
.price-table-pager .price-page-num.is-current {
  pointer-events: none;
}
.price-table-pager .price-show-all.is-active {
  border-color: var(--accent);
  color: var(--accent);
}
@media (max-width: 640px) {
  .price-table-toolbar .filter-grid {
    grid-template-columns: 1fr;
  }
  .price-table-pager.filter-actions {
    justify-content: flex-start;
  }
}
.claim-cta {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.faq-list dt { font-weight: 700; margin-top: 0.75rem; }
.faq-list dd { margin: 0.25rem 0 0; color: var(--muted); }
.review-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--card);
}
.similar-list { padding-left: 1.2rem; }

.map-section { margin-top: 2rem; }
.map-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.map-section-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.map-species-filter { font-size: 0.9rem; color: var(--muted); }
.map-species-filter select { margin-left: 0.35rem; }
.map-layer-toggle { font-size: 0.9rem; color: var(--muted); }
.map-footnote { margin-top: 0.5rem; font-size: 0.85rem; }
.region-map, .markets-map, .map-wrap .region-map, .map-wrap .markets-map {
  height: 420px;
  min-height: 280px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
}
@media (max-width: 640px) {
  .region-map, .markets-map, .map-wrap .region-map, .map-wrap .markets-map { height: min(52vh, 360px); }
}
.mini-map {
  height: 180px;
  min-height: 140px;
  background: var(--warm-soft);
  border-radius: 8px;
  border: 1px solid var(--border);
  margin: 0.5rem 0;
}
.map-popup { font-size: 0.92rem; line-height: 1.35; }
.map-popup-badges { margin: 0.35rem 0; }
.map-popup-price { margin: 0.25rem 0; font-weight: 600; }
.map-popup-approx { margin: 0.25rem 0 0; }
.map-popup-list { margin: 0.35rem 0 0; padding-left: 1.1rem; max-height: 14rem; overflow-y: auto; }
.map-popup-list li { margin: 0.15rem 0; }
.map-popup-stack { margin-top: 0.5rem; padding-top: 0.4rem; border-top: 1px solid #e3e0d6; }
.maplibregl-popup-content { border-radius: 8px; padding: 0.65rem 0.75rem; }

.empty-state {
  padding: 2rem;
  text-align: center;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

.est-label { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.unpriced-note { margin-top: 0.75rem; }
.section-cta { margin-top: 1rem; }

.region-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}
.region-card {
  display: block;
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}
.region-card h3 { margin: 0 0 0.35rem; font-family: var(--font-display); font-size: 1.15rem; }
.region-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.region-switcher { display: inline-flex; align-items: center; margin-right: 0.5rem; }
.region-select {
  font: inherit;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  max-width: 11rem;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 1.25rem 0;
}
.pagination-status { color: var(--muted); font-size: 0.95rem; }
.seller-intro { margin: 1rem 0 1.5rem; }
.seller-lede { font-size: 1.15rem; line-height: 1.6; margin: 0; }
.good-to-know h3 { font-size: 1rem; margin: 1rem 0 0.35rem; }

.seller-card { position: relative; }
.save-seller-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted);
}
.save-seller-btn.is-saved { color: #a33; border-color: #e8c4c4; background: #fff5f5; }
.save-seller-btn-lg {
  position: static;
  width: auto;
  height: auto;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font: inherit;
}
.buyer-tools-row, .buyer-alert-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.75rem 0; }
.buyer-tools-panel, .buyer-alert-panel {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--accent-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.alert-event-list { list-style: none; padding: 0; margin: 0.75rem 0; }
.alert-event {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.alert-event-unread { background: #fff; margin: 0 -0.5rem; padding-left: 0.5rem; padding-right: 0.5rem; border-radius: 8px; }
.account-alert-badge { font-weight: 600; color: var(--accent); }
.saved-note-input {
  width: 100%;
  max-width: 16rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--card);
}
.saved-note-input:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

@media (max-width: 1023px) {
  .header-menu-toggle { display: inline-flex; }
  .header-nav-drawer:not([open]) .header-nav { display: none; }
  .header-nav-drawer[open] .header-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    min-width: min(18rem, calc(100vw - 2.5rem));
    padding: 0.85rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 60;
  }
  .header-nav .region-switcher { margin-right: 0; }
  .header-nav .region-select { max-width: none; width: 100%; }
  .header-nav .account-nav-slot {
    display: block;
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
  }
}
@media (min-width: 1024px) {
  .header-nav-drawer > summary { display: none; }
  .header-nav-drawer .header-nav { display: flex; flex-wrap: nowrap; white-space: nowrap; gap: 0.9rem; align-items: center; font-size: 0.92rem; }
  .header-nav-drawer .header-nav .region-switcher { order: 1; margin-left: 0.4rem; }
  .header-nav-drawer .header-nav .account-nav-slot { order: 2; }
}
@media (max-width: 640px) {
  .result-count { margin-left: 0; width: 100%; }
}
.hidden { display: none !important; }
.calc-dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.35rem 1rem; margin: 1rem 0; }
.calc-dl dt { font-weight: 600; margin: 0; }
.calc-dl dd { margin: 0; }
.calc-prefill { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.25rem; margin: 1rem 0; }
.calc-results { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.report-form.form,
.suggest-seller-form.form { margin-top: 1rem; }
.report-form label + label { margin-top: 0.85rem; }
.token-reveal {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: var(--warm-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  overflow-x: auto;
}

@media (max-width: 390px) {
  .hero { padding: 1.75rem 1rem 1.5rem; }
  .form-actions .btn { width: 100%; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .species-tile { min-height: 130px; padding: 0.85rem; }
  .species-tile .species-icon { width: 36px; height: 36px; }
}

/* Narrow screens: every data table becomes a list of labeled cards. */
@media (max-width: 640px) {
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td { display: block; width: 100%; box-sizing: border-box; }
  .data-table { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; font-size: 0.95rem; }
  .data-table thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .data-table tr {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 0 0 0.75rem;
    padding: 0.35rem 0.9rem;
  }
  .data-table tr[hidden] { display: none; }
  .data-table td {
    position: relative;
    padding: 0.45rem 0 0.45rem 7.5rem;
    min-height: 1.6rem;
    max-width: none;
    border-bottom: 1px solid var(--border);
    overflow-wrap: break-word;
    word-break: normal;
  }
  .data-table tr td:last-child { border-bottom: none; }
  .data-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .data-table td:not([data-label]),
  .data-table td:first-child { padding-left: 0; }
  .data-table td:not([data-label])::before,
  .data-table td:first-child::before { content: none; }
  .data-table td:first-child { font-weight: 600; font-size: 1.02rem; }
  .data-table td:empty { display: none; }
}
