@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600&family=Lato&display=swap');

.popup-box {
  animation: fadeInUp 0.5s ease-in-out;

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

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

header {
  margin: 2.5em;
}

body {
  font-family: 'Lato', sans-serif;
  margin: 0;
  padding: 0;
}

p {
  line-height: 1.6;
  font-size: 24px;

}

h1,
h2 {
  font-family: 'Cinzel', serif;
  object-fit: contain;
  font-weight: 900;
}


.map-container {
  position: relative;
  width: 100;
  max-width: 2500px;
  aspect-ratio: 16/9;
  margin: 0, auto;
  overflow: hidden;
}

.map-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.map-header {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(255, 255, 255, 0.7);
  /* transparent white */
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.nav-overlay {
  position: absolute;
  inset: 0;
}

.nav-popup-box {
  position: absolute;
  top: var(--top);
  left: var(--left);
  width: 8vw;
  max-width: 60px;
  min-width: 40px;
  aspect-ratio: 5 / 3;
  background-color: rgba(255, 248, 220, 0.9);
  border: 2px solid #8B5E3C;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  color: #2a1f0f;
  font-size: clamp(0.7rem, 1.2vw, 1rem);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
  pointer-events: auto;
  cursor: pointer;
}

.nav-box:hover {
  transform: scale(1.15) rotate(-2deg);
  background-color: #fff5d6;
  box-shadow: 3px 6px 12px rgba(0, 0, 0, 0.4);
  color: #000;
}

@media (max-width: 768px) {
  .nav-box {
    font-size: 0.75rem;
    max-width: 50px;
  }
}

.content-wrapper {
  max-width: 75%;
  margin: 8rem 4rem 4rem 8rem;
  padding: 20px;
}

.section-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 5rem;
  flex-wrap: wrap;
}

.section-wrapper img {
  flex: 1;
  width: 50%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 12px;
}

.section-wrapper-reverse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 5rem;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

.section-wrapper-reverse img {
  flex: 1;
  width: 50%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 8px;
}

.section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  font-weight: bold;
}

section {
  flex: 1;
  min-width: 300px;
  font-size: 1.2em;
  line-height: 1.6;
}

.popup-overlay {

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;

}

.popup-box {
  background: #fff9e6;
  border: 2px solid #8B5E3C;
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.popup-box h2 {
  font-family: 'Cinzel', serif;
}

.close-btn {
  float: right;
  font-size: 1.2em;
  cursor: pointer;
  background: none;
  border: none;
}

.video-wrapper {
  margin-top: 1rem;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.scroll-down-btn {
  position: absolute;
  bottom: 16%; /* from bottom of the map */
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff4cc;
  border: 2px solid #c2780c;
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 1.8rem;
  color: #442200;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
  font-weight: bold;
  z-index: 20;
}

.scroll-down-btn:hover {
  transform: translate(-50%, 5px);
  background-color: #ffe599;
  color: #000;
}


/* Mobile Adjustments */
@media (max-width: 768px) {
  .map-header {
    font-size: 1rem;
    padding: 0.5rem;
  }
  .nav-popup-box {
    width: 9vw;
    min-width: 32px;
    font-size: 0.65rem;
  }
  .map-container {
    aspect-ratio: 9/16;
  }
  .section-wrapper,
  .section-wrapper-reverse {
    flex-direction: column;
    text-align: center;
  }
  .section-wrapper img,
  .section-wrapper-reverse img {
    width: 90%;
    max-height: 250px;
  }
  .content-wrapper {
    max-width: 90%;
    margin: 2rem auto;
  }
  p {
    font-size: 18px;
  }
}

