#map {
  padding: 6rem 2rem 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  min-height: 90vh;
  /*   height: auto; */
  overflow-x: hidden;
  overflow-y: auto;
}

.map-header {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  text-align: center;
  margin-bottom: 1rem;
  font-family: "Germania", serif;
}
.map-subheader {
  font-size: 1.2rem;
  font-weight: lighter;
  display: block;
  margin-top: 0.5rem;
}

#container {
  display: flex;
  height: 70vh;
  width: 90%;
  max-width: 1200px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

#mapArea {
  flex: 3;
  height: 100%;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  overflow: hidden;
}

#photoDisplay {
  flex: 7;
  background-color: rgba(255, 255, 255, 0.6);
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

#regionTitle {
  font-size: 2.6rem;
  font-weight: 600;
  margin-top: 1.4rem;
  margin-bottom: 1.4rem;
  color: white;
  font-family: "Germania", serif;
}

.photo-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
  margin-top: 1.7rem;
/*   transform: scale(1.2); */
}

#photoGrid {
  position: relative;
  width: 600px;
  height: 320px;
  margin-top: 1.7rem;
  justify-content: center;
}

.photo-tile {
  position: absolute;
  width: 30px;
  height: 20px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

#actionButton {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;

  font-family: "Rye", serif;
  font-weight: 400;
  font-style: normal;
  margin: 1.6rem;

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#actionButton:hover {
  background: white;
  color: black;
}

#actionButton.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.custom-marker-icon {
  background-color: white;
  border: 2px solid #3d7b92;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
  font-size: 1.25rem;
  transition: all 0.3s ease;
  font-family: "Noto Color Emoji", "Segoe UI Emoji", sans-serif;
}

.custom-marker-icon > div {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-marker-icon.active {
  background-color: #b0cdd7;
  color: white;
}
.leaflet-container {
  filter: brightness(0.95) contrast(1.05) saturate(0.9);
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0) scale(1.6);
}

/* === Responsive Adjustments === */
@media (max-width: 1300px) {
  #photoGrid {
    min-width: 600px;
    width: 100%;
  }
  .fade-in.show {
    transform: scale(1.3);
    transform-origin: 15%;
  }
}
@media (max-width: 1200px) {
  .fade-in.show {
    transform: scale(1.1);
    transform-origin: 12%;
  }
}

@media (max-width: 1100px) {
  #photoGrid {
    margin-top: 1.4rem;
  }
  .fade-in.show {
    transform: scale(1.105);
/*     transform-origin: 10%; */
  }
}

@media (max-width: 1000px) {
  .fade-in.show {
    transform: scale(1.0);
    transform-origin: 5%;
  }
}

@media (max-width: 900px) {
  #photoGrid {
    transform: scale(0.95);
  }
  .fade-in.show {
    transform: scale(0.9);
    transform-origin: center;
  }
}

@media (max-width: 768px) {
  #map {
    padding: 2rem 1rem 1rem 1rem;
  }

  #container {
    flex-direction: column;
    height: 70vh;
  }

  #mapArea {
    width: 100%;
    border-radius: 20px 20px 0 0;
  }

  #photoDisplay {
    width: 100%;
    border-radius: 0 0 20px 20px;
    padding: 0.2rem;
  }

  .map-header {
    font-size: 1.4rem;
  }

  .map-subheader {
    font-size: 1rem;
  }

  #regionTitle {
    font-size: 2.4rem;
    margin-top: 1.5rem;
  }

  .photo-wrapper {
    margin-top: -0.2rem;
    justify-content: center;
    align-items: center;
  }

  #photoGrid {
    width: 100%;
    transform: scale(1.2);
    position: relative;
  }

  .fade-in.show {
    transform: scale(0.9); 
  }
  #actionButton {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  #photoGrid {
/*     min-width: unset;        
width: 100%;         
    max-width: 320px;          */
/*     margin: 0 20 0 240;            */
    transform: scale(1);      
    transform-origin: -50%;
  }

  .fade-in.show {
    transform: scale(0.6);
    transform-origin: center;
  }

  #photoDisplay {
    padding: 0rem;
  }

  #regionTitle {
    font-size: 3.8rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
/*   #photoGrid {
    max-width: 280px;       
  } */

  .fade-in.show {
    transform: scale(0.5);
  }

  #regionTitle {
    margin-top: 1rem;
    margin-bottom: 0.3rem;
  }
} 
