
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #333;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0c3b2e;
  padding: 10px 20px;
  position: relative;
  z-index: 10; /* Ensures it floats above the hero image */
}

/* Base header styles */
header {
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Fixed position on desktop only */
@media screen and (min-width: 768px) {
  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Optional: soft shadow */
  }

  body {
    padding-top: 100px; /* Adjust to your header's height */
  }
}


h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel Decorative', serif;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

h1 {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Cinzel Decorative', cursive;
  font-size: 3rem;
  color: #e74b0d;
  letter-spacing: 1px;
}

h2 {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 1rem;
  color: #ea9f09;
  letter-spacing: 2px;
}

@media (max-width: 600px) {
  .logo {
    width: 50px;
  }
}

.logo {
  height: auto;
  width: 120px; /* adjust as needed for your layout */
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover effect with soft sunrise glow */
.logo:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 6px rgba(255, 174, 66, 0.6)) 
          drop-shadow(0 0 12px rgba(255, 223, 100, 0.5));
}

/* User name and avatar in header */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-greeting {
  color: white;
  font-family: 'Cinzel Decorative', serif;
  font-size: 1rem;
  text-shadow: 1px 1px 2px #000;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .user-greeting {
    font-size: 0.8rem;
    margin-left: 0.5rem;
  }
}

#profile-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  position: relative;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.user-profile {
  position: relative;
  color: white;
  font-family: 'Cinzel Decorative', serif;
  cursor: pointer;
  margin-left: 1rem;
}

#user-name {
  cursor: pointer;
  font-family: 'Cinzel Decorative', serif;
  font-weight: bold;
  color: #fff;
  transition: all 0.3s ease;
  text-shadow: 0 0 3px rgba(255, 223, 100, 0.4);
}

#user-name:hover {
  color: #ffae42;
  text-shadow:
    0 0 5px #ffae42,
    0 0 10px #ff6f61,
    0 0 20px #ffd700,
    0 0 40px #ffa07a;
  transform: scale(1.05);
}

#profile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  min-width: 160px;
  z-index: 1000;
}

#profile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#profile-menu li a {
  display: block;
  padding: 0.5rem;
  color: white;
  text-decoration: none;
  transition: background 0.3s;
}

#profile-menu li a:hover {
  background: #1b4d3e;
  border-radius: 6px;
}

.hidden {
  display: none;
}

/* NAV BASE STYLES (applies to all screen sizes) */

nav {
  display: flex;
  align-items: center;
  position: relative;
}

/* Nav link base style */
nav a {
  position: relative;
  color: white;
  text-decoration: none;
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

/* Glowy hover effect */
nav a:hover {
  color: #ffae42; /* Warm sunrise orange */
  text-shadow:
    0 0 5px #ffae42,
    0 0 10px #ff6f61,  /* Coral pink */
    0 0 20px #ffd700,  /* Golden glow */
    0 0 40px #ffa07a;  /* Soft light salmon */
  transform: scale(1.05);
}


nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
}

/* HAMBURGER ICON STYLES */
.menu-toggle {
  display: none; /* Hidden on desktop */
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
  padding: 10px;
}

/* MOBILE NAV STYLES */
@media (max-width: 768px) {
  nav ul {
    display: none; /* Hide links on mobile initially */
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 10px;
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem;
    border-radius: 10px;
    z-index: 1000;
  }

  .menu-toggle {
    display: block; /* Show the hamburger on mobile */
  }
}

.hero {
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1; /* Lower than the header */
  text-align: center;
  color: white;
  text-shadow: 2px 2px 4px #000;
}

.hero-text h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 3.5rem;
  color: #ffffff;
  text-shadow:
    0 0 8px rgba(255, 215, 160, 0.8),   /* outer golden glow */
    0 0 15px rgba(255, 145, 80, 0.5),   /* soft orange blur */
    2px 2px 6px rgba(0, 0, 0, 0.7);     /* dark drop shadow */
  filter: blur(0.2px); /* tiny soft blur for dreaminess */
  margin: 0;
}

.hero-text h2 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.7rem;
  color: #ffffff;
  text-shadow:
    0 0 6px rgba(255, 230, 180, 0.8),   /* lighter glow */
    1px 1px 4px rgba(0, 0, 0, 0.5);     /* subtle shadow */
  filter: blur(0.3px);
  margin-top: 0.5rem;
}

/* Default: hidden */
.profile-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 1000;
  border-radius: 5px;
}

/* Desktop hover */
@media (min-width: 769px) {
  .user-profile:hover .profile-menu {
    display: block;
  }
}

/* Optional cleanup: make sure cursor is pointer */
.user-profile {
  position: relative;
  cursor: pointer;
}

.user-region {
  font-size: 0.85em;
  color: #888;
  margin-top: 2px;
}



@media (max-width: 768px) {
  nav ul.show li {
    opacity: 0;
    transform: translateY(-10px);
    animation: slideIn 0.4s forwards;
  }

  nav ul.show li:nth-child(1) {
    animation-delay: 0.05s;
  }

  nav ul.show li:nth-child(2) {
    animation-delay: 0.15s;
  }

  nav ul.show li:nth-child(3) {
    animation-delay: 0.25s;
  }

  nav ul.show li:nth-child(4) {
    animation-delay: 0.35s;
  }
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  nav ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 10px;
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem;
    border-radius: 10px;
    z-index: 1000;

    /* Hidden state */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
  }

  nav ul.show {
    max-height: 500px; /* adjust depending on content size */
    opacity: 1;
    display: flex; /* Show links when toggled */
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .hero-text h2 {
    font-size: 1.2rem;
    line-height: 1.2;
    white-space: nowrap;
  }
}

@media (max-width: 400px) {
  .hero-text h1 {
    font-size: 1.6rem;
    white-space: nowrap;
  }

  .hero-text h2 {
    font-size: 1rem;
    white-space: nowrap;
  }
}

/* Keyframes for fade-in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glow Pulse Animation */
@keyframes glowPulse {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(255, 215, 160, 0.8),
      0 0 15px rgba(255, 145, 80, 0.5),
      2px 2px 6px rgba(0, 0, 0, 0.7);
  }
  50% {
    text-shadow:
      0 0 12px rgba(255, 235, 180, 1),
      0 0 25px rgba(255, 145, 80, 0.8),
      2px 2px 6px rgba(0, 0, 0, 0.7);
  }
}

/* Combine Glow + Fade for hero headings */
.hero-text h1,
.hero-text h2 {
  font-family: 'Cinzel Decorative', serif;
  color: #fff4e5;
  text-align: center;
  margin: 0;
  padding: 0.3em 0;
  opacity: 0; /* Start hidden */
  animation: fadeIn 1.8s ease-out forwards, glowPulse 4s ease-in-out infinite;
}

/* Delay the subheading fade slightly */
.hero-text h2 {
  animation-delay: 0.6s, 0s; /* fadeIn delay, glow starts immediately */
}

/* -------------------------------------- Search Bar --------------------------------*/

.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background-color: #f8f9fa;
}

.search-bar input {
  width: 80%;
  max-width: 600px;
  padding: 0.75rem 1rem;
  border: 2px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Cinzel Decorative', serif;
  outline: none;
}

.search-bar button {
  padding: 0.75rem 1.5rem;
  background-color: #1b4d3e;
  color: white;
  border: none;
  border-radius: 0 10px 10px 0;
  font-family: 'Cinzel Decorative', serif;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-bar button:hover {
  background-color: #256d56;
}

/* -------------------------------- Regions and Tiles -------------------------------------*/

.regions {
  padding: 40px 20px;
  text-align: center;
}

#region-grid input[type="text"],
.region-grid input[type="text"] {
  width: 100%;
  max-width: 300px;
  margin: 0.5rem auto 1.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  display: block;
  text-align: center;
}

.region-grid {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  background-color: #f5f5f5;
  overflow: hidden; /* helps prevent visual overflow */
  margin-bottom: 4rem; /* Add space at the bottom of the region block */
}

.region-grid h2 {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 2rem;
  color: #333;
}

#region-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

@media (max-width: 600px) {
  .region-grid h2 {
    font-size: clamp(1.2rem, 5vw, 1.5rem); /* scales based on screen size */
    text-align: center;
    margin-bottom: 1rem;
  }

  .region-grid {
    margin-bottom: 6rem;
  }
}

/* ---------------------------------- Tiles ------------------------------------*/

.tiles {
  display: grid;
  /*grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));*/
  gap: 1rem;
  justify-items: center;
}

.tile {
  /*width: 100%; /* Let the grid column define the size */  
  max-width: 167px;
  height: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding-bottom: 1rem; /* add room for the text */
  transition: transform 0.2s ease;
  overflow: hidden;
}

.tile:hover {
  transform: scale(1.05);
  box-shadow: 3px 3px 12px rgba(0,0,0,0.2);
}

.tile img {
  max-width: 100%;
  aspect-ratio: 1 / 1; /* Always a perfect square */
  object-fit: cover;   /* Makes the image fill without squishing */
  height: auto;
  border-radius: 0.5rem;
}

.tile span {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(0.75em, 1.2vw, 0.9em);
  font-size: 1rem;
  font-weight: 700;
  color: #1b4d3e;
  margin-top: 0.5rem;
  overflow: hidden;
  text-decoration: none; /* Ensure no underline on region names */
  display: block;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.2;
}

.tile a {
  text-decoration: none;
  color: inherit;
}

.tile-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  padding: 1rem;
}

.tile.fade-out {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Default (Tier 1) - No shadow or a soft neutral */
.tile.tier-1 {
  box-shadow: none;
}

/* Tier 2 - Orange glow */
.tile.tier-2 {
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.6);
}

/* Tier 3 - Red glow */
.tile.tier-3 {
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.6);
}

.tile.tier-2:hover {
  box-shadow: 0 0 14px rgba(255, 165, 0, 0.8);
}

.tile.tier-3:hover {
  box-shadow: 0 0 16px rgba(255, 0, 0, 0.8);
}



/* ---------------------------- Mobile Set up for Tiles!!! -----------------------------*/

@media (max-width: 600px) {

  #region-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.8rem;
  padding: 0.5rem 0;
}
    
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  /*height: 130px; /* Adjust as needed */
  padding: 4px;
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
}

  .tile-container {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.8rem;
    padding: 0.5rem;
  }

  .tile img {
    /*width: 100%;
    height: 70px; /* Fixed image height */
    object-fit: cover;
    border-radius: 6px;
  }
  
  .tile span {
    margin-top: 6px;
    font-size: 0.65em;
    line-height: 1.1;
    color: #333;
    word-wrap: normal;
    text-align: center;
    max-height: 2.5em; /* Allow up to 2 lines */
    overflow: hidden;
    /*text-overflow: ellipsis;
    /*white-space: ; /* allow wrapping */
  }
  
.tile a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
}


/* ------------------------------ Favorite Icons ------------------------------- */


#favorites-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.favorites-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
}

.favorites-page h2 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2rem;
  color: #1b4d3e;
}

.favorites-subtext {
  color: #555;
  font-style: italic;
  margin-bottom: 2rem;
}

.favorite-icon {
  position: absolute;  
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 10px;
  right: 10px;
  font-size: 1.8rem;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  margin-top: 0.3rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.remove-favorite {
  position: absolute;
  pointer-events: auto;
  top: 6px;
  right: 6px;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  color: #ff1900;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 50%;
  cursor: pointer;
  width: 24px;
  height: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.2s ease;
}

.remove-favorite:hover {
  background: #ffdddd;
}

.heart-svg {
  width: 100%;
  height: 100%;
  fill: #aaaaaa95;
  transition: fill 0.3s ease, transform 0.3s ease;
}

.favorite-icon.favorited .heart-svg {
  fill: #ff1900;
  animation: pulse 0.4s ease;
}

.favorite-icon .heart-svg path {
  pointer-events: none;
}


@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.ghost {
  opacity: 0.4;
  background-color: #ccc;
  border: 2px dashed #aaa;
}

@media (max-width: 600px) {
  #favorites-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.8rem;
  padding: 0.5rem 0;
}

  .favorites-page h1 {
    font-size: clamp(1.2rem, 5vw, 1.5rem); /* scales based on screen size */
    text-align: center;
    margin-bottom: 1rem;
  }

}

/* ------------------------------ Adventure Map ------------------------------- */

.map-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2rem;
  color: #1b4d3e;
  text-align: center;
  margin-bottom: 1rem;
}

.map-filters {
  text-align: center;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#adventure-map {
  width: 100%;
  height: 400px;
  background: #f9f9f9;              /* Light background like a card */

  box-shadow: 0 4px 12px rgba(0,0,0,0.15);  /* Soft shadow */
  overflow: hidden;                 /* Keeps Leaflet tiles within the curve */
  margin: 2rem auto;                /* Centered with spacing */
  border: 2px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin-top: 1rem;
}


.map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 20px;
  justify-content: center; /* Or 'flex-start' depending on your layout */
}


  .map-filters label {
    margin: 0 1rem;
    font-weight: bold;
    cursor: pointer;
  }

/* Toggle-style badge (used for map filters) */
.toggle-badge {
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05); /* subtle background */
}

.toggle-badge.active {
  transform: scale(1.05);
  filter: drop-shadow(0 0 6px rgba(255, 174, 66, 0.6))
          drop-shadow(0 0 12px rgba(255, 223, 100, 0.5));
}


.toggle-badge:hover,
.toggle-badge.active {
  transform: scale(1.05);
  filter: drop-shadow(0 0 6px rgba(255, 174, 66, 0.6)) 
          drop-shadow(0 0 12px rgba(255, 223, 100, 0.5));
}

/* When the badge is "checked" */
.toggle-badge input:checked + img,
.toggle-badge input:checked ~ span,
.toggle-badge input:checked {
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}

.toggle-badge input:checked ~ img {
  opacity: 1;
}

.toggle-badge input:checked {
  display: none;
}

.toggle-badge input:checked + img,
.toggle-badge input:checked ~ img,
.toggle-badge.checked {
  opacity: 1;
  background-color: #b2ebf2;
  border-color: #0097a7;
  box-shadow: 0 0 10px rgba(0, 151, 167, 0.4);
}

.filter-toggle-btn {
  display: none;
  background: #222;
  color: #ffae42;
  border: none;
  padding: 10px 16px;
  margin-bottom: 10px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.filter-toggle-btn:hover {
  background: #333;
  filter: drop-shadow(0 0 4px #ffae42);
}

.tag-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  justify-content: start;
}


/* Filter panel hidden by default on mobile */
.filter-panel {
  display: block;
}

@media (max-width: 768px) {
  .filter-toggle-btn {
    display: block;
  }

  .filter-panel {
    display: none;
    margin-bottom: 1em;
  }

  .filter-panel.open {
    display: block;
  }
}

.marker-glow {
  filter: drop-shadow(0 0 3px white); /* base fallback glow */
}

.tier2-glow {
  filter: drop-shadow(0 0 4px #FFA500) drop-shadow(0 0 6px #FFA500); /* Orange */
}

.tier3-glow {
  filter: drop-shadow(0 0 4px #FF4500) drop-shadow(0 0 6px #FF4500); /* Red */
}


  
/* Desktop constraints */
@media (min-width: 768px) {
  #adventure-map {
    max-width: 900px;
    height: 500px;
  }
}

/* ------------------------------ Footer Starting ------------------------------- */

.footer {
  position: relative;
  margin-top: 2rem;
  height: 250px;
  background: url('images/sunset.jpg') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.footer img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-overlay {
  width: 100%;
  text-align: center;
  padding: 1rem 0;
  background: rgba(0, 0, 0, 0.4);
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.1rem;
  color: white;
  position: relative;
  bottom: 0;
  z-index: 2;
}

/* ---------------------------------------- CLEAN FOOTER LINKS STYLE -------------------------------------------- */

.footer-links {
  overflow: hidden; /* Prevents scrollbar from appearing */
  align-items: center;
  justify-content: center;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Cinzel Decorative', serif;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #ff9966; /* Sunset orange */
  text-shadow:
    0 0 6px #ff9966,
    0 0 12px #ff5e62,   /* Warm coral */
    0 0 20px #ffc371,   /* Light gold */
    0 0 40px #fcb045;   /* Golden yellow */
  transform: scale(1.05);
}


/* MOBILE CLEANUP */

@media (max-width: 600px) {
  .footer {
    height: auto;
    padding-top: 1rem;
  }

  .footer-links a {
  font-size: 0.9rem;
  }
  
  .footer-links {
    overflow: hidden;
    flex-direction: column;
    gap: 0.8rem;
  }
}

/*----------------------------- SIGN IN PAGE STARTING CSS -------------------------------*/

.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 100px); /* header height */
  padding: 2rem;
}

.auth-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  padding: 2rem 3rem;
  max-width: 400px;
  width: 100%;
}

.auth-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.auth-tabs button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: none;
  border-bottom: 3px solid transparent;
  background: #f5f5f5; /* 👈 add this */
  cursor: pointer;
  color: #1b4d3e;
  transition: all 0.3s ease;
}

.auth-tabs button.active {
  border-bottom: 3px solid #1b4d3e;
  font-weight: bold;
}

.form-container {
  position: relative;
  min-height: 480px; /* Increased a bit for comfort */
  transition: all 0.3s ease;
  overflow: hidden;
}

.auth-form {
  display: none; /* 🔥 important */
  flex-direction: column;
  gap: 1rem;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.auth-form.showing {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  display: flex;
}

.auth-form.hidden {
  display: none; /* still hiding for full swap when needed */
}

.auth-form input {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.auth-form button {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #1b4d3e;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.auth-form button:hover {
  background-color: #236a55;
}

.show-password {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

select {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 0.5rem;
  font-family: 'Cinzel Decorative', serif;
  font-size: 1rem;
  background-color: white;
  appearance: none;
}

select:focus {
  outline: none;
  border-color: #1b4d3e;
  box-shadow: 0 0 0 2px rgba(27, 77, 62, 0.2);
}

.hidden {
  display: none;
}

/* ----------------------- PROFILE PAGE STYLING ---------------------------- */

.profile-page {
  display: flex;
  justify-content: center;
  padding: 2rem;
  background-color: #f4f4f4;
}

.profile-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  width: 100%;
  max-width: 600px;
  font-family: 'Cinzel Decorative', serif;
  animation: fadeIn 0.6s ease-in-out;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 100%;
  object-fit: cover;
  border: 3px solid #1b4d3e;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.profile-info {
  font-family: 'Cinzel Decorative', serif;
  color: #1b4d3e;
}

.profile-info h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #1b4d3e;
}

.profile-info p {
  margin: 0.25rem 0 0;
  color: #555;
  font-size: 1rem;
}

.profile-actions {
  text-align: right;
  margin-bottom: 1rem;
}

.profile-btn {
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  background-color: #1b4d3e;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: 'Cinzel Decorative', serif;
}

.profile-btn:hover {
  background-color: #256d56;
}

.profile-stats h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #1b4d3e;
}

.profile-stats ul {
  list-style: none;
  padding: 0;
}

.profile-stats li {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.profile-links {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.profile-link-btn {
  background-color: #e74b0d;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-family: 'Cinzel Decorative', serif;
}

.profile-link-btn:hover {
  background-color: #ff6f3c;
  transform: scale(1.05);
}

.user-location {
  font-style: italic;
  color: #555;
  font-size: 1rem;
}

.profile-edit-form {
  margin-top: 2rem;
  background: #fefefe;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.profile-edit-form label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
  font-family: 'Cinzel Decorative', serif;
}
.profile-edit-form input {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 0.5rem;
}
.avatar-options {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
  justify-content: center;
}
.avatar-option {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.3s ease, border 0.3s ease;
}
.avatar-option:hover {
  transform: scale(1.1);
}
.avatar-option.selected {
  border-color: #1b4d3e;
  box-shadow: 0 0 10px rgba(27, 77, 62, 0.5);
}

@media (max-width: 600px) {
  .profile-info h1 {
    font-size: 1.4rem;
  }

  .profile-info p {
    font-size: 0.9rem;
  }

  .user-location {
    font-size: 0.85rem;
  }
}

/* -------------------------------- ADVENTURES PAGE STYLING ----------------------------------- */

.adventures-section {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.adventure-category {
  margin-bottom: 3rem;
}

.adventure-category h3 {
  font-size: 1.5rem;
  font-family: 'Cinzel Decorative', serif;
  color: #1b4d3e;
  margin-bottom: 1rem;
  text-align: center;
}

.adventures-page {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.adventure-list {
  padding-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}


.adventure-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 600px;
  text-align: left;
  transition: transform 0.2s ease;
}

.adventure-card:hover {
  transform: scale(1.02);
}

.adventure-card h3 {
  margin-top: 0;
  font-family: 'Cinzel Decorative', serif;
}

/* Adventure Tile */
.adventure-tile {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
  cursor: pointer;
}

.adventure-tile:hover {
  transform: translateY(-5px);
}

/* Image */
.tile-image {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
}

/* Content */
.tile-content {
  padding: 1rem;
}

.tile-content h3 {
  margin: 0;
  font-family: 'Cinzel Decorative', serif;
}

.tile-content p {
  margin-top: 0.5rem;
  color: #666;
  font-size: 0.9rem;
}


/* ------------------------------ Region Pages ------------------------------------ */

.adventure-type-section h2 {
  font-size: 2rem;
  color: #222;
  text-align: center;
  margin: 2rem 0 1rem;
  font-family: 'Cinzel Decorative', serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}



.region-blurb {
  background-color: #f4f9f7; /* Soft natural tone, tweak as needed */
  padding: 60px 20px;
  color: #2c2c2c;
  font-family: 'Cinzel Decorative', serif;
  line-height: 1.6;
}

.region-blurb h1 {
  font-size: 2rem;
  color: #1b3e2b; /* Deep forest green, adjust to match brand palette */
  margin-bottom: 30px;
  text-align: center;
}

@media (max-width: 600px) {
  .region-blurb h1 {
    font-size: clamp(1.2rem, 5vw, 1.5rem); /* scales based on screen size */
    white-space: wrap;
  }
}

.region-blurb p {
  max-width: 800px;
  margin: 0 auto 20px auto;
  font-size: 1.1rem;
  font-family: 'Georgia', serif; /* Slight contrast from headings */
  text-align: center;
}

.region-blurb .container {
  text-align: center; /* This can apply to all text inside if desired */
}

.scroll-buttons {
  display: flex;
  justify-content: center;
  gap: 20px; /* space between buttons */
  margin-top: 20px;
  flex-wrap: wrap; /* so they stack on smaller screens */
}

.scroll-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #1b3e2b;
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  font-family: 'Cinzel Decorative', serif;
  transition: background-color 0.3s ease;
}

.scroll-button:hover {
  background-color: #276947;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s ease-out forwards;
  animation-delay: 0.5s; /* Optional: delay so it fades in after the header */
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ------------------------------SUBMIT PAGE --------------------------------- */


.submit-section {
  max-width: 500px;
  margin: 2rem auto;
  padding: 1rem;
  font-family: 'Cinzel Decorative', serif;
}

#submit-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#submit-form input,
#submit-form textarea,
#submit-form select {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: inherit;
}

#submit-form button {
  background-color: #1b4d3e;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  font-family: 'Cinzel Decorative', serif;
  transition: background-color 0.3s ease;
}

.button, .button-link {
  background-color: #064420;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
  margin: 0.5rem 0.5rem 0 0;
}

.button:hover, .button-link:hover {
  background-color: #0b6b3a;
}


#submit-form button:hover {
  background-color: #276947;
}

@media (max-width: 600px) {
  .submit-section h2 {
    font-size: clamp(1.2rem, 5vw, 1.5rem); /* scales based on screen size */
    text-align: center;
  }
}

/* ------------------------------DISTRICT PAGE --------------------------------- */

.popular-section {
  padding: 2rem 1rem;
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
}

.popular-section h2 {
  font-family: 'Cinzel Decorative', serif;
  color: #1b4d3e;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

#highlight-list {
  list-style-type: none;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

#highlight-list li {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  background: #fff;
  border-left: 4px solid #e74b0d;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  text-align: left;
}

.highlight-list li::before {
  content: "🌿";
  position: absolute;
  left: 0;
}

.image-wrapper {
  position: relative;
  display: inline-block;
}

.image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.ai-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  z-index: 2;
}


/* ------------------------------ REVIEW PAGE --------------------------------- */

.review-grid {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  background-color: #f5f5f5;
  overflow: hidden; /* helps prevent visual overflow */
  margin-bottom: 4rem; /* Add space at the bottom of the region block */
}

.review-grid h2 {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 2rem;
  color: #333;
}

/* Modal background */
.review-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Modal content box */
.modal-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* Close button */
.modal-content .close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Image */
.modal-content img {
  width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

/* Section spacing */
.modal-content p,
.modal-content label,
.modal-content h2 {
  margin-bottom: 1rem;
}

/* Buttons and votes */
.vote-section,
.approve-section {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.vote-section button,
.approve-section button {
  flex: 1;
  margin: 0 0.5rem;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  background-color: #e0e0e0;
  transition: background-color 0.2s ease;
}

.vote-section button:hover,
.approve-section button:hover {
  background-color: #ccc;
}

/* Map container */
#map {
  width: 100%;
  height: 300px;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
} 

@media (max-width: 600px) {
  .review-grid h2 {
    font-size: clamp(1.2rem, 5vw, 1.5rem); /* scales based on screen size */
    text-align: center;
    margin-bottom: 1rem;
  }

  .review-grid {
    margin-bottom: 6rem;
  }
}

/* ------------------------------ COMMENTS!!!!  --------------------------------- */

.comments-section textarea {
  width: 100%;
  min-height: 60px;
  margin-top: 0.5rem;
}
.comments-section button {
  margin-top: 0.5rem;
}

.comments-section {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comments-section h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.5rem;
}

#comments-list p {
  background-color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

#comment-input {
  width: 100%;
  min-height: 80px;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

#submit-comment {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#submit-comment:hover {
  background-color: #218838;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 0.75rem;
  background: #fff;
  border-radius: 10px;
  padding: 0.75rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-body {
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.comment-time {
  font-size: 0.85rem;
  color: #666;
}

.comment-text {
  font-size: 1rem;
  line-height: 1.4;
}

/* ------------------------------ ADMIN PAGE  --------------------------------- */

.admin-tile {
  border: 1px solid #ccc;
  padding: 1em;
  margin: 1em 0;
  border-radius: 5px;
}
.admin-tile button {
  margin-right: 10px;
}

/* --------------------------------- PRIVACY PAGE ----------------------------------------*/

.content-page {
  padding-top: 120px;
  padding-bottom: 60px;
  display: flex;
  justify-content: center;
}

.content-container {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  box-sizing: border-box; /* 👈 IMPORTANT */
  
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.content-container h1 {
  font-family: 'Cinzel Decorative', serif;
  margin-bottom: 1rem;
  white-space: normal;
}

.content-container h2 {
  margin-top: 1.5rem;
}

.content-container ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.content-container p {
  margin-top: 0.5rem;
  line-height: 1.6;
}