/* map.css — Aarav & Riya Wedding */

/* ===================== MAP ===================== */
#map-section {
  position: relative;
  padding: 6rem 2rem;
  overflow: hidden;
  background: var(--ivory);
}

.map__bg {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 38px,
      rgba(212,160,23,0.08) 38px,
      rgba(212,160,23,0.08) 40px
    ),
    linear-gradient(180deg, #F0E8D0 0%, #FAF3E0 100%);
}

.map__header {
  text-align: center;
  position: relative;
  z-index: 2;
  margin-bottom: 2.5rem;
}

.map__header h2 {
  font-family: var(--font-script);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--royal);
  line-height: 1.2;
}

.map__container {
  position: relative;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  z-index: 2;
}

.map__illustration {
  width: 100%;
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 20px 60px rgba(27,42,107,0.2);
}

/* Illustrated map SVG */
.map__svg-container {
  width: 100%;
  /* natural aspect ratio: 1538x1023 = 1.5034 */
  aspect-ratio: 1538 / 1023;
  background: #e8f0e0;
  border-radius: 16px;
  position: relative;
  overflow: visible;
}

.map__pin {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 3;
  animation: pin-drop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}

@keyframes pin-drop {
  from { transform: translate(-50%, -200%); opacity: 0; }
  to { transform: translate(-50%, -100%); opacity: 1; }
}

.map__venue-info {
  text-align: center;
  position: relative;
  z-index: 2;
}

.map__venue-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--royal);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.map__address {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(27,42,107,0.7);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.map__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--gold);
  color: var(--dark);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(212,160,23,0.4);
}

.map__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.4) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.map__btn:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(212,160,23,0.5); }
.map__btn:hover::after { opacity: 1; }

/* Map floating elements */
.map__elephant {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  width: clamp(60px, 12vw, 120px);
  opacity: 0.4;
  animation: float-bob 6s ease-in-out infinite;
  z-index: 1;
}
