.container {
  max-width: 80vw; /* or whatever fits your design */
  margin: 0 auto;    /* centers the container */
  padding: 0 20px;   /* prevents content from touching the edges on small screens */
}

@media (max-width: 600px) {
  .container {
    width: 100%;
    max-width: 95vw; /* more flexible on small screens */
    padding: 0 10px;   /* less padding on mobile */
  }
}

h1 {
  margin-bottom: 30px; /* space between heading and grid */
  margin-top: 30px;
  text-align: center;   /* optional: center heading */
  font-size: 2.7rem;
}

.tours-hero p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  text-align: center;
}


h2 {
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: left; /* optional */
  font-size: 2.2rem;
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.section-intro {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  text-align: left;
  padding-bottom: 30px;
}



/* Jump navigation */
.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 30px 0 50px;
  font-size: 0.95rem;
}

.jump-nav span {
  font-weight: 600;
}

.jump-nav a {
  text-decoration: none;
  color: #333;
  padding: 6px 12px;
  border-radius: 20px;
  background-color: #f2f2f2;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.jump-nav a:hover {
  background-color: #222;
  color: #fff;
}


.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}


/* Image card */
.image-card {
  position: relative;
  height: 460px;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Image */
.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
transition: transform 0.5s ease, filter 0.5s ease;
}

/* Overlay */
.card-overlay {
  position: absolute;
  display: flex;
  align-items: flex-end; /* vertical alignment at bottom */
  justify-content: flex-start; /* horizontal alignment to left */
  padding: 10px;
  transition: background-color 0.4s ease;
}

.card-overlay h3 {
  color: white;
  margin: 0;
  padding: 4px 8px;
  border-radius: 4px;
}

.card-overlay p {
  color: white;
  margin: 0;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 1.1rem;
  text-align: left;
}

/* Hover effect */
.image-card:hover .card-overlay {
  background: rgba(0, 0, 0, 0.35); /* darkens on hover */
}

.image-card:hover img {
  transform: scale(1.05); /* zoom image */
}

/* Overlay text stays visible */
.card-overlay h3 {
  color: #fff;
  font-size: 1.4rem;
  margin: 0;
  transition: color 0.4s ease;
}

/* Favorite styling */
.favorites {
  background: #fff8f0;
  border-radius: 10px;
  padding: 10px 20px;
 
}

.favorites h2, p {
    text-align: center;
    margin-bottom: 0px;
}

.favorites p {
  font-size: 1.1rem;
  line-height: 1.6;
}


/* Base rank badge */
.image-card.favorite .rank {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  z-index: 2;
  background: white;
    color: #000;
}

/* Gold */
.image-card.favorite.gold .rank {
  background: linear-gradient(135deg, #f7d046, #cfa000);
  color: #000;
}

/* Silver */
.image-card.favorite.silver .rank {
  background: linear-gradient(135deg, #e0e0e0, #a8a8a8);
  color: #000;
}

/* Bronze */
.image-card.favorite.bronze .rank {
  background: linear-gradient(135deg, #cd7f32, #8c5a2b);
  color: #fff;
}

/* Map Section */
.map-container {
  width: 100%;
  height: 800px;
  border-radius: 12px;
  overflow: hidden;
  padding-bottom: 20px;
}

.map-legend {
  background: #fff8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  max-width: fit-content;
  margin: 2rem auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.map-legend h3 {
  margin-bottom: 0.75rem;
  text-align: center;
  font-size: 1.1rem;
}

.map-legend ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  align-items: center;
}

.map-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
}


.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.brewery {
  background-color: #be1300; /* red */
}

.legend-dot.winery {
  background-color: #ffd117; /* yellow */
}

.legend-dot.distillery {
  background-color: #2980b9; /* blue */
}


.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-section h2 {
  text-align: center;
  margin-top: 20px;
}

.map-section p {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-top: 10px;
  margin-bottom: 20px;
}

/* List Section */
.brewery-list {
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 20px;
}

.brewery-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.brewery-list ul {
  list-style: none;
  padding: 0;
}

.brewery-list li {
  margin-bottom: 0.5rem;
}

.brewery-list a {
  text-decoration: none;
  color: inherit;
}

.brewery-list a:hover {
  text-decoration: underline;
}


@media (max-width: 992px) {
  .tour-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tour-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .map-legend ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1rem;
  }
}
