:root {
  --clr-background-light: #f8f9fa; /* Bootstrap's light gray */
  --clr-text-dark: #333;          /* A common dark gray for text/icons */
  --clr-text-secondary: #555;    /* Your map description color */
  --clr-link-hover: #0d6efd;    /* Bootstrap's default primary blue - good for hovers */
}

/* Ensure the HTML element can take full height */
html {
  height: 100%;
}

/* Make the body a flex container for sticky footer */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

/* Navbar Styles */
.navbar-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 40px; /* Review if needed with container padding */
}

.navbar-brand img {
  height: 50px;
  margin-right: 15px;
  border-radius: 50%;
}

.navbar-nav {
  /* margin-left: auto; /* REMOVED - Handled by Bootstrap ms-auto */
  margin-right: 40px; /* Review if needed with container padding */
}

/* Main Content Area */
.content {
  /* flex: 1; /* REMOVED - Using margin-top: auto on footer instead */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 2rem; /* Added padding so content doesn't touch footer */
}

.map-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

.map-container {
  width: 90%;
  max-width: 1200px;
  min-height: 500px;
  margin: 0 auto 15px auto; /* Added bottom margin */
  overflow: hidden;
}

.map-description {
  font-size: 14px;
  color: var(--clr-text-secondary); /* USE VARIABLE */
  margin-top: 15px;
}


/* Footer Styles */
footer {
  text-align: center;
  padding: 15px;
  background: var(--clr-background-light); /* USE VARIABLE */
  width: 100%;
  margin-top: auto; /* Key for sticky footer */
}

.social-icons a {
  margin: 0 10px;
  color: var(--clr-text-dark); /* USE VARIABLE */
  font-size: 20px;
  text-decoration: none;
  /* Add transition for smooth hover effect */
  transition: color 0.2s ease-in-out;
}

/* Styles for social icons WHEN HOVERING */
.social-icons a:hover {
  color: var(--clr-link-hover); /* Change color on hover using the variable */
}



/* Gallery Grid Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* Mobile: 1 column */
  gap: 1rem; /* Space between items */
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Tablet: 2 columns */
@media (min-width: 576px) { /* Small devices (landscape phones, 576px and up) */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 3 columns */
@media (min-width: 768px) { /* Medium devices (tablets, 768px and up) */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Larger Desktops: 4 columns (optional) */
@media (min-width: 992px) { /* Large devices (desktops, 992px and up) */
  .gallery-grid {
    /* You can change to 4 if you prefer and images look good */
    /* grid-template-columns: repeat(4, 1fr); */
  }
}

.gallery-item {
  border-radius: 8px; /* Consistent rounded corners */
  overflow: hidden; /* Ensures image respects border-radius */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Subtle shadow */
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  cursor: pointer;
  background-color: var(--clr-background-light, #f8f9fa); /* Fallback color */
}

.gallery-item:hover,
.gallery-item:focus-within { /* Added focus-within for keyboard nav */
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.gallery-item img {
  display: block; /* Removes extra space below image */
  width: 100%;
  height: 250px; /* Fixed height for uniform grid items */
  object-fit: cover; /* Covers the area, cropping if necessary */
  /* aspect-ratio: 1 / 1; /* Or use aspect-ratio for square/defined proportions */
}

/* Lightbox Styles */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85); /* Dark semi-transparent background */
  display: flex; /* Will be set to 'flex' by JS to show */
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Ensure it's on top */
  padding: 15px;
  box-sizing: border-box;
}

.lightbox-content {
  position: relative;
  background-color: #fff; /* Could be transparent if only showing image */
  padding: 20px;
  border-radius: 8px;
  max-width: 90vw; /* Max width relative to viewport width */
  max-height: 90vh; /* Max height relative to viewport height */
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
}

#lightboxImage {
  max-width: 100%;
  max-height: calc(90vh - 120px); /* Adjust based on caption/button height */
  height: auto;
  display: block;
  margin-bottom: 15px;
  border-radius: 4px;
}

.lightbox-caption {
  color: var(--clr-text-dark, #333);
  text-align: center;
  margin-bottom: 10px;
  font-weight: bold;
}

.lightbox-counter {
  color: var(--clr-text-secondary, #555);
  font-size: 0.9em;
  margin-bottom: 10px;
}

.lightbox-close {
  position: absolute;
  top: -10px; /* Position slightly outside for better click target */
  right: -10px;
  color: #fff;
  background-color: var(--clr-text-dark, #333);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 24px;
  line-height: 28px; /* Center the 'x' */
  text-align: center;
  cursor: pointer;
  border: 2px solid #fff; /* Make it stand out */
  z-index: 1001;
}
.lightbox-close:hover, .lightbox-close:focus {
  background-color: var(--clr-link-hover, #007bff);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(50, 50, 50, 0.7);
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 4px;
  z-index: 1001;
  transition: background-color 0.2s ease;
}

.lightbox-prev:hover, .lightbox-next:hover,
.lightbox-prev:focus, .lightbox-next:focus {
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-prev {
  left: 25px; /* Adjust positioning */
}

.lightbox-next {
  right: 25px; /* Adjust positioning */
}

.lightbox-prev:disabled,
.lightbox-next:disabled {
  opacity: 0.5;
  cursor: default;
}
