/* Venues page specific styles */

/* Map container */
.venues-map-section {
  padding: 2.5rem 0 2rem;
}
#venues-map {
  height: 620px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  width: 100%;
}
@media (max-width: 599px) {
  #venues-map {
    height: 420px;
  }
}

/* Cluster styling: the color is set per cluster in JS (matches the category inside).
   Outer Leaflet wrapper is transparent so no navy ring shows behind a red/green/gold cluster. */
.nv-cluster.marker-cluster-small,
.nv-cluster.marker-cluster-medium,
.nv-cluster.marker-cluster-large,
.nv-cluster {
  background-color: transparent;
  border: none;
}
.nv-cluster div {
  margin: 0;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
}
.marker-cluster span {
  color: #fff;
}

/* Filter chips */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2.5rem;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 1.5px solid rgba(30, 58, 95, 0.2);
  background: #fff;
  color: var(--color-navy);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-chip:hover {
  border-color: var(--color-navy);
  background: var(--color-base);
}
.filter-chip.active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #fff;
}
.filter-chip .swatch {
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.filter-chip .count {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Heading */
.venues-heading {
  margin-bottom: 1.5rem;
}
.venues-heading h2 {
  margin-bottom: 0;
}
#feed-count {
  color: var(--color-amber);
  font-size: 1.1rem;
  font-weight: 500;
}

/* Card grid */
.venue-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px) {
  .venue-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
}
.venue-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(30, 58, 95, 0.08);
  padding: 1.75rem;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}
.venue-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.venue-card.highlight {
  outline: 3px solid var(--color-amber);
  outline-offset: 4px;
  animation: cardPulse 2s ease;
}
@keyframes cardPulse {
  0%, 100% { outline-color: var(--color-amber); }
  50% { outline-color: rgba(200, 137, 46, 0.4); }
}

.venue-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.badge-type {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.badge-type .badge-dot {
  width: 16px;
  height: 16px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.badge-type .type-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-navy);
}
.date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.venue-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--color-navy);
}
.venue-card .description {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* Media row: mini map + photo */
.media-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 480px) {
  .media-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}
.venue-card-map {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0ede4;
}
.event-photo {
  position: relative;
}
.event-photo > img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.thumb-strip {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.thumb-strip img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(30, 58, 95, 0.1);
  transition: transform 0.2s;
}
.thumb-strip img:hover {
  transform: scale(1.05);
}
.thumb-strip img {
  cursor: pointer;
  opacity: 0.75;
}
.thumb-strip img.active,
.thumb-strip img:hover,
.thumb-strip img:focus-visible {
  opacity: 1;
  border: 2px solid var(--color-amber, #C8892E);
  outline: none;
}
.photo-placeholder {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f5f0e6 0%, #e8e0d0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}
.photo-placeholder svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-navy-light);
}

/* Bottom CTA strip */
.venues-cta {
  background-color: var(--color-base);
  border-top: 1px solid rgba(30, 58, 95, 0.08);
  padding: 3rem 0;
}
.venues-cta-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .venues-cta-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}
.venues-cta-left h2 {
  margin-bottom: 0.75rem;
}
.venues-cta-left .btn {
  margin-top: 0.5rem;
}
.venues-cta-right .nv-newsletter {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(30, 58, 95, 0.06);
}
.venues-cta-right .nv-newsletter h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.venues-cta-right .nv-newsletter p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.venues-cta-right .nv-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.venues-cta-right .nv-newsletter-form input {
  padding: 0.65rem 0.8rem;
  border: 1.5px solid rgba(30, 58, 95, 0.18);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.venues-cta-right .nv-newsletter-form button {
  align-self: flex-start;
}
