/* ==========================================================================
   Explore: search area, category chips, results grid
   Phase 2 adds the map, the bottom sheet and the split desktop layout on top
   of these same blocks.
   ========================================================================== */

.explore-top {
  padding-top: var(--space-5);
  padding-bottom: var(--space-4);
  background:
    radial-gradient(70rem 22rem at 18% -6rem, var(--green-50), transparent 70%),
    var(--bg);
}

.explore-top__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.explore-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.explore-heading h1 {
  font-size: var(--text-2xl);
  max-width: 22ch;
}
.explore-heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}
@media (min-width: 48rem) {
  .explore-heading h1 { max-width: none; }
  .explore-heading p { font-size: var(--text-base); }
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
@media (min-width: 48rem) {
  .search-form { flex-direction: row; align-items: center; }
  /* Capped rather than full-width: a pill stretched across a desktop viewport
     reads as an empty bar. Phase 2 fills the remaining room with the location
     field and the filter button. */
  .search-form .search-pill { flex: 1 1 auto; max-width: 44rem; }
}

.results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-6) var(--space-4);
}
.results-head__count {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}
.results-head__sub { color: var(--text-muted); font-size: var(--text-sm); }

.results-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) {
  .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
}
@media (min-width: 64rem) {
  .results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.results-footer {
  display: flex;
  justify-content: center;
  padding-block: var(--space-8);
}

/* Active filter summary row. */
.filter-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.filter-summary__clear {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 36px;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--cream-200);
  color: var(--ink-700);
  font-weight: 600;
  text-decoration: none;
}
.filter-summary__clear:hover { background: var(--sand-100); color: var(--ink-900); }
