.hero {
  position: relative;
  text-align: center;
  z-index: 1;
  width: 100%;
  overflow: hidden;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 🟡 Button overlay in corner */
.submit-hero-overlay {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 3;
}

#submit-hero-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 8px 14px;
  font-size: 0.9em;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#submit-hero-button:hover {
  background-color: #45a049;
}

.submit-hero-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-image-wrapper:hover .submit-hero-overlay {
  opacity: 1;
}

/* 🏷️ Title overlay */
.hero-title {
  position: absolute;
  bottom: 20px;
  left: 30px;
  color: white;
  font-size: 2.5em;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
  margin: 0;
  z-index: 2;
}

/* 👇 Optional: Style the submit button box below image */
.submit-hero-prompt {
  text-align: center;
  padding: 1em;
  background-color: #f0f0f0;
}


.submit-hero-prompt p {
  margin: 0 0 6px 0;
  font-size: 0.95em;
}

.container {
  margin-top: 2rem; /* or more, if needed */
  z-index: 0;
  position: relative;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1rem 0;
  text-align: left;
}

.info-grid > div {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
  .info-grid {
    grid-template-columns: 1fr; /* 👈 THIS FIXES IT */
    text-align: left; /* keep readable */
  }
}

@media (max-width: 600px) {
  .info-grid,
  .info-grid p,
  .info-grid h3 {
    text-align: center;
  }
}



.adventure-text {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 16px;
  text-align: left;
  font-family: 'Cinzel Decorative', serif;
  color: #333;
}

.description, .story {
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
}


.adventure-text p {
  margin-bottom: 1.2rem;
  line-height: 1.6;
}


/* Badge container (wraps all badges) */
.badges,
.badge-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1rem 0;
}

/* Base badge styling */
/* Base badge styling (unchanged except shadow size) */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 6px 14px;
  margin: 4px;
  border-radius: 20px;
  background-color: #e0f7fa; /* Neutral base – update this later if needed */
  color: #004d40;
  font-size: 0.85rem;
  font-family: 'Cinzel Decorative', serif;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15); /* Slightly bigger shadow */
  transition: transform 0.2s ease;
}

/* Hover effect */
.badge:hover {
  transform: scale(1.05);
}

/* Icon inside badge */
.badge svg,
.badge img {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
}

/* Updated shadows for variants */
.badge.dogFriendly {
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.6); /* amber glow */
}
.badge.kidFriendly {
  box-shadow: 0 0 10px rgba(33, 150, 243, 0.6); /* blue glow */
}
.badge.advancedOnly {
  box-shadow: 0 0 10px rgba(244, 67, 54, 0.6); /* red glow */
}
.badge.historic {
  box-shadow: 0 0 10px rgba(121, 85, 72, 0.6); /* brown glow */
}
.badge.localSecret {
  box-shadow: 0 0 10px rgba(149, 117, 205, 0.6); /* purple glow */
}
.badge.swimming {
  box-shadow: 0 0 10px rgba(3, 169, 244, 0.6); /* aqua glow */
}
.badge.kayaking {
  box-shadow: 0 0 10px rgba(3, 155, 229, 0.6); /* more blue, less teal */
}
.badge.drinkingWater {
  box-shadow: 0 0 10px rgba(180, 180, 180, 0.6); /* updated to light grey */
}
.badge.campingAllowed {
  box-shadow: 0 0 10px rgba(141, 110, 99, 0.6); /* earthy glow */
}
.badge.birdwatching {
  box-shadow: 0 0 10px rgba(100, 181, 246, 0.6); /* sky blue glow */
}
.badge.geothermal {
  box-shadow: 0 0 10px rgba(251, 192, 45, 0.6); /* yellow glow */
}
.badge.beginnerFriendly {
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.6); /* green glow */
}

.rating {
  font-size: 1.4rem;
  color: gold;
  margin-top: 0.5rem;
}


/* Swiper gallery */
.swiper-container {
  width: 100%;
  padding: 20px 0;
  position: relative;
}

.swiper-slide img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Arrows styling */
.custom-arrow {
  background-color: rgba(255, 255, 255, 0.8);
  color: #111;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  cursor: pointer;
}

.custom-arrow:hover {
  background-color: rgba(255, 255, 255, 1);
  color: #000;
}

/* Positioning */
.swiper-button-prev.custom-arrow {
  left: 15px;
}

.swiper-button-next.custom-arrow {
  right: 15px;
}

/* Mobile tweaks */
@media (max-width: 767px) {
  .custom-arrow {
    width: 30px;
    height: 30px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: none;
    top: auto;
    bottom: 10px;
    transform: none;
  }

  .swiper-button-prev.custom-arrow {
    left: 10px;
  }

  .swiper-button-next.custom-arrow {
    right: 10px;
  }
}

/* Add bottom space on desktop so arrows don't sit on the map */
@media (min-width: 768px) {
  .swiper-container {
    margin-bottom: 70px;
  }
}


/* google map */

#map {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  margin-top: 1rem;
}

.centered-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 2rem;
}

.map-below {
  width: 100%;
  height: 400px;
  margin: 2rem 0;
  border-radius: 10px;
}

.comments-section {
  margin-top: 3rem;
  text-align: left;
}

.comments-section h3 {
  margin-bottom: 1rem;
}

#comments-list {
  margin-bottom: 1.5rem;
}

#comment-input {
  width: 100%;
  min-height: 80px;
  padding: 10px;
  font-size: 1rem;
  resize: vertical;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#comment-form button {
  margin-top: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  background-color: #005f73;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#comment-form button:hover {
  background-color: #003f4f;
}

/* Use the same font across the app — replace with your chosen font */
.comment, #comment-form textarea, #comment-form button {
  font-family: 'Montserrat', sans-serif; /* or whatever your app is using */
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

#comments-container .comment {
  background-color: #f9f9f9;
  padding: 0.75em;
  margin-bottom: 1em;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#comment-form textarea {
  width: 100%;
  padding: 0.75em;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: vertical;
  margin-bottom: 0.5em;
}

#comment-form button {
  background-color: #007B55;
  color: white;
  border: none;
  padding: 0.6em 1.2em;
  border-radius: 6px;
  cursor: pointer;
}

#comment-form button:hover {
  background-color: #005f40;
}

.comment, 
#comment-form textarea, 
#comment-form button, 
#comments-container p, 
#comments-container strong, 
#comments-container small {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 1rem;
  color: #2c2c2c;
}

/* Style each comment box */
#comments-container .comment {
  background-color: #f2f2f2;
  padding: 0.75em;
  margin-bottom: 1em;
  border-radius: 10px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}

/* Comment form styles */
#comment-form textarea {
  width: 100%;
  padding: 0.75em;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: 'Cinzel Decorative', cursive;
  resize: vertical;
  margin-bottom: 0.5em;
}

#comment-form button {
  background-color: #004d40;
  color: white;
  border: none;
  padding: 0.6em 1.2em;
  border-radius: 8px;
  font-family: 'Cinzel Decorative', cursive;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#comment-form button:hover {
  background-color: #002f25;
}

.rating-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-tile {
  background: #fff;
  border-radius: 16px;
  padding: 30px 20px;
  width: 320px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  position: relative;
}

.popup-tile h3 {
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.star-picker span {
  font-size: 2.5rem;
  cursor: pointer;
  padding: 5px;
  color: #ccc;
  transition: color 0.2s ease;
}

.star-picker span.hovered,
.star-picker span.selected {
  color: gold;
}

.popup-note {
  font-size: 0.9rem;
  color: #666;
  margin-top: 10px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.5rem;
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #333;
}

.hidden {
  display: none;
}

/* --- Action Buttons Row --- */
.action-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap; /* mobile friendly */
}

/* Make both buttons share same style */
.action-buttons .rate-btn {
  flex: 1;
  max-width: 220px;
  text-align: center;
}

@media (max-width: 500px) {
  .action-buttons .rate-btn {
    max-width: 100%;
  }
}

/* Match style of other buttons */
.rate-btn {
  background-color: #0a4d4d;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  font-family: 'Cinzel Decorative', cursive;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.rate-btn:disabled {
  background-color: #999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.rate-btn:hover {
  background-color: #0e5f5f;
  transform: scale(1.03);
}

.rate-btn:active {
  transform: scale(0.98);
}

.centered-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

@media (max-width: 480px) {
  .centered-content {
    padding: 0 14px;
  }
}