/* ==========================================================================
   PAST SHOWS PAGE STYLES
   ========================================================================== */

.shows-list {
  display: grid;
  /* Automatically creates as many columns as fit (min 500px wide each) */
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 1.5rem;
  /* Prevents shorter cards in the same row from stretching vertically */
  align-items: start;
}

.past-show-card {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  background-color: #111;
  border-radius: 8px;
  padding: 1.25rem;
  align-items: flex-start;
}

.show-flyer-container {
  flex: 0 0 160px;
  max-width: 160px;
}

.show-flyer {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.show-details {
  flex: 1;
}

/* Mobile fallback for small screens */
@media (max-width: 500px) {
  .shows-list {
    grid-template-columns: 1fr;
  }

  .past-show-card {
    flex-direction: column;
  }

  .show-flyer-container {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Optional: Layout inside the card (horizontal on wider cards, stacked on narrower columns) */
@media (min-width: 600px) {
  .past-show-card {
    flex-direction: row;
    align-items: flex-start;
  }

  .show-flyer-container {
    flex: 0 0 180px;
    max-width: 180px;
  }
}

.past-show-card {
  display: flex;
  gap: 2rem;
  background-color: #111;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.show-flyer {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.show-details {
  flex: 1;
}

.show-date {
  font-size: 0.9rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.show-venue {
  font-size: 1.5rem;
  margin: 0.25rem 0;
}

.show-location {
  color: #aaa;
  margin-bottom: 0.75rem;
}

.show-lineup {
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Setlist formatting */
.show-setlist-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #222;
}

.show-setlist-block h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: #888;
  text-transform: uppercase;
}

.setlist {
  margin: 0;
  padding-left: 1.25rem;
  color: #ddd;
  text-align: left;
}

.setlist ol {
  text-align: left; /* Keeps numbers and titles neatly aligned */
  list-style-position: outside;
  padding-left: 1.5rem;
  margin: 0;
}

.setlist li {
  margin-bottom: 0.25rem;
}

/* Mobile responsive fallback */
@media (max-width: 600px) {
  .past-show-card {
    flex-direction: column;
  }

  .show-flyer-container {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Map Container */
#shows-map {
  width: 100%;
  height: 350px;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid #222;
  z-index: 1;
  /* Keep map beneath floating elements/nav dropdowns */
}

/* Custom Pin Badges */
.custom-map-pin {
  background: transparent;
  border: none;
}

.map-city-badge {
  width: 32px;
  height: 32px;
  background-color: #111;
  /* Dark badge base contrast against bright map */
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e63946;
  /* Bold red border ring */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.map-city-badge:hover {
  transform: scale(1.25);
  background-color: #e63946;
  border-color: #fff;
  cursor: pointer;
}

.leaflet-popup-tip {
  background-color: #111 !important;
}