/* Niche atlas layout — SoR tokens from shadcn.css */
.niche-atlas .page-hero { margin-bottom: 1rem; }
.niche-atlas .kicker {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 0.35rem;
}
.niche-atlas .lead {
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  line-height: 1.55;
  margin: 0.5rem 0 0;
  max-width: 42rem;
}
.niche-atlas .back-link {
  display: inline-block;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.caveats-strip {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--muted) / 0.4);
  padding: 0.75rem 1rem;
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  color: hsl(var(--muted-foreground));
}
.caveats-strip strong {
  color: hsl(var(--foreground));
  font-weight: 600;
}
.caveats-strip ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}
.caveats-strip li { margin-bottom: 0.25rem; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 1rem;
}
.filter-bar .filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  margin-right: 0.15rem;
}
.filter-chip {
  appearance: none;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.2;
}
.filter-chip:hover { background: hsl(var(--secondary)); }
.filter-chip[aria-pressed="true"] {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}
.filter-meta {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  margin-left: auto;
}

.niche-layout {
  display: grid;
  gap: 1rem;
}
@media (min-width: 960px) {
  .niche-layout {
    grid-template-columns: 1.25fr 1fr;
    align-items: stretch;
  }
}

.niche-map-wrap {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  background: hsl(var(--muted) / 0.25);
  min-height: 420px;
}
#niche-map {
  width: 100%;
  height: 520px;
  z-index: 0;
}

.place-list-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}
.place-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 520px;
  overflow: auto;
}
.place-item {
  border-top: 1px solid hsl(var(--border));
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: background 0.12s ease;
}
.place-item:first-child { border-top: 0; }
.place-item:hover,
.place-item.is-active {
  background: hsl(var(--secondary));
}
.place-item.is-muted {
  opacity: 0.72;
}
.place-item.is-muted:hover,
.place-item.is-muted.is-active {
  opacity: 0.9;
}
.place-item__dish {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.15rem;
  color: hsl(var(--foreground));
}
.place-item__name {
  font-size: 0.875rem;
  margin: 0;
  color: hsl(var(--foreground));
}
.place-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-top: 0.45rem;
  align-items: center;
}
.place-item__city {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
}
.place-item__note {
  font-size: 0.78rem;
  color: hsl(var(--muted-foreground));
  margin: 0.4rem 0 0;
  line-height: 1.4;
}
.place-item__caveat {
  font-size: 0.78rem;
  color: hsl(var(--foreground));
  margin: 0.35rem 0 0;
  font-weight: 500;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  line-height: 1.3;
}
.badge-open {
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.25);
}
.badge-closed,
.badge-seasonally_closed,
.badge-holiday_closed {
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  border-color: hsl(var(--border));
}
.badge-type,
.badge-format,
.badge-prod {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-color: hsl(var(--border));
  font-weight: 500;
}
.badge-conf {
  background: transparent;
  color: hsl(var(--muted-foreground));
  border-color: hsl(var(--border));
  font-weight: 500;
}

.leaflet-popup-content {
  margin: 0.65rem 0.85rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.85rem;
  line-height: 1.4;
  min-width: 180px;
}
.niche-popup__dish {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.15rem;
}
.niche-popup__name { margin: 0; font-weight: 500; }
.niche-popup__city {
  color: hsl(var(--muted-foreground));
  font-size: 0.8rem;
  margin: 0.15rem 0 0.4rem;
}
.niche-popup__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.35rem 0;
}
.niche-popup__note,
.niche-popup__caveat,
.niche-popup__verified {
  font-size: 0.78rem;
  margin: 0.3rem 0 0;
  color: hsl(var(--muted-foreground));
}
.niche-popup__caveat {
  color: hsl(var(--foreground));
  font-weight: 500;
}

.marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.marker-dot--open { background: hsl(222.2 47.4% 11.2%); }
.marker-dot--muted { background: #9ca3af; }

.empty-filter {
  padding: 1.25rem 1rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

.niche-source {
  font-size: 0.82rem;
  color: hsl(var(--muted-foreground));
  margin-top: 1.25rem;
}

.badge-closing-soon {
  background: hsl(38 92% 90%);
  color: hsl(32 80% 28%);
}
.badge-flavor {
  background: hsl(280 40% 92%);
  color: hsl(280 50% 30%);
}
.marker-dot--closing {
  background: hsl(38 92% 48%);
  border-color: hsl(32 80% 28%);
}
.place-item.is-closing-soon {
  border-left: 3px solid hsl(38 92% 48%);
}
.niche-flavor-note { margin-top: 0.35rem; }

.badge-closing-soon--reported {
  background: hsl(45 30% 92%);
  color: hsl(35 40% 30%);
  border: 1px dashed hsl(35 30% 55%);
}
.place-item.is-closing-soon-reported {
  border-left: 3px dashed hsl(45 40% 55%);
}
