/* trail.css — Street Art NSW /trail/:slug page (extends artist.css/explore.css) */

/* ── Profile badges (walking/cycling/driving toggle) ─────────────────────── */

.trail-profile-badges {
  display: flex;
  gap: 8px;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.trail-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1.5px solid var(--border);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.trail-profile-badge:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.trail-profile-badge.active {
  background: rgba(215, 21, 58, 0.12);
  color: var(--brand);
  border-color: var(--brand);
}

.trail-profile-badges:has(.trail-profile-badge:only-child) .trail-profile-badge {
  cursor: default;
}
.trail-profile-badges:has(.trail-profile-badge:only-child) .trail-profile-badge:hover {
  border-color: var(--border);
  color: var(--muted);
}

/* ── Map + numbered stop markers ─────────────────────────────────────────── */

.trail-page .explore-map-wrap {
  margin-bottom: 24px;
}

.trail-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.trail-marker--group {
  width: auto;
  min-width: 32px;
  height: 30px;
  border-radius: 15px;
  padding: 0 10px;
  font-size: 0.76rem;
  background: var(--brand);
  white-space: nowrap;
}

/* ── Navigate in Google Maps ─────────────────────────────────────────────── */

.trail-navigate { width: 100%; }
.trail-navigate[hidden] { display: none; }
.trail-navigate-note { font-size: 0.8rem; color: var(--muted); margin: 0 0 6px; text-align: center; }
.trail-navigate-legs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.trail-navigate-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 7px 10px; background: var(--brand); color: #fff;
  text-decoration: none; border-radius: 6px; font-size: 0.82rem; font-weight: 600;
  text-align: center; transition: background 0.2s; box-sizing: border-box;
}
.trail-navigate-btn:hover { background: var(--brand-strong); }
.trail-navigate-legs .trail-navigate-btn { width: auto; flex: 1 1 auto; }

/* ── Stop list ────────────────────────────────────────────────────────────── */

.trail-stops-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.trail-stop-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.trail-stop-card:hover {
  border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.trail-stop-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.trail-stop-index {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--card-soft);
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.trail-stop-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.trail-stop-name {
  font-weight: 600;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

.trail-stop-artist {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .trail-stops-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

@media (min-width: 1000px) {
  .trail-stops-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Stat bar as a map overlay (was a separate line above the map) ───────── */

#trail-map-wrap {
  position: relative;
}

.trail-stat-bar--overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  display: flex;
  gap: 10px;
  padding: 6px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
  font-size: 0.8rem;
  margin-top: 0;
}

.trail-page .artist-profile-wrap {
  width: 260px;
}

@media (max-width: 640px) {
  .trail-page .artist-profile-wrap {
    width: 100%;
  }
  .trail-navigate { width: auto; flex: 1 1 auto; }
  .trail-navigate-btn { width: auto; flex: 0 0 auto; padding: 8px 12px; font-size: 0.9rem; }
}