/* explore.css — Street Art NSW festival/project page (extends artist.css) */

.explore-page .artist-grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px) {
  .explore-page .artist-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
}
@media (min-width: 900px) {
  .explore-page .artist-grid { grid-template-columns: repeat(4, 1fr); }
}

.explore-kind-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.explore-kind-festival {
  background: rgba(230, 57, 70, 0.12);
  color: var(--brand);
  border: 1.5px solid var(--brand);
}

.explore-kind-project {
  background: rgba(60, 60, 60, 0.08);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.explore-page .no-blurb {
  color: var(--muted);
  font-style: italic;
}

.explore-map-wrap {
  margin-bottom: 28px;
}

.explore-map {
  width: 100%;
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Popup on hover for map points, matching the main map's styling */
.explore-map-wrap .mapboxgl-popup-content {
  font-family: 'Source Sans Pro', sans-serif; font-size: 14px;
  color: var(--popup-text); background: var(--card); border: 1px solid var(--border);
  line-height: 1.5; padding: 8px 12px;
}
/* ── Trail cards: route-line map background + bigger/fewer-per-row layout ─── */

.artist-card.has-map-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
.artist-card.has-map-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  filter: brightness(0.55); /* darken for text contrast only, no grayscale */
  background-size: inherit;
  background-position: inherit;
  border-radius: inherit;
  z-index: 0;
}
.artist-card.has-map-bg > * { position: relative; z-index: 1; }
.artist-card.has-map-bg .artist-card-name { color: #fff; }
.artist-card.has-map-bg .artist-card-count { color: rgba(255,255,255,0.65); }
.artist-card.has-map-bg .artist-card-avatar-placeholder {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.6);
}

@media (min-width: 900px) {
  .artists-grid.artists-grid--trails {
    grid-template-columns: repeat(3, 1fr);
  }
}

.artists-grid--trails .artist-card {
  padding: 28px 20px 22px;
}
.artists-grid--trails .artist-card-avatar,
.artists-grid--trails .artist-card-avatar-placeholder {
  width: 112px;
  height: 112px;
  font-size: 2.4rem;
  margin-bottom: 16px;
}
.artists-grid--trails .artist-card-name {
  font-size: 1.15rem;
}
.artists-grid--trails .artist-card-count {
  font-size: 0.9rem;
  margin-top: 6px;
}

#explore-index-sort {
  flex-shrink: 0;
  width: 180px;
  margin-left: auto;
  padding: 9px 12px;
  border: 1.5px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--input-text);
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
}
@media (max-width: 640px) {
  #explore-index-sort { flex: 1 1 100%; width: auto; margin-left: 0; }
}

.filter-select {
  width: auto;
  padding: 5px 30px 5px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23999' d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}
.filter-select:hover { border-color: var(--brand); }
.filter-select.filter-select--active {
  background-color: var(--brand);
  color: #fff;
  border-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
}
.filter-select-row { display: none; gap: 8px; flex-wrap: wrap; }

@media (max-width: 640px) {
  #explore-filters .filter-pills { display: none; }
  #explore-filters .filter-select-row { display: flex; }
}