/* AOS custom easing */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* Staggered post cards */
.posts-grid .post-card:nth-child(1) { --aos-delay: 0; }
.posts-grid .post-card:nth-child(2) { --aos-delay: 100; }
.posts-grid .post-card:nth-child(3) { --aos-delay: 200; }
.posts-grid .post-card:nth-child(4) { --aos-delay: 300; }
.posts-grid .post-card:nth-child(5) { --aos-delay: 400; }
.posts-grid .post-card:nth-child(6) { --aos-delay: 500; }

/* Parallax hero background — JS handles transform on non-mobile */
@media (prefers-reduced-motion: reduce) {
  .hero__bg { background-attachment: scroll; }
  [data-aos] { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* Leaflet popup styling */
.leaflet-popup-content-wrapper {
  border-radius: 10px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  padding: 0 !important;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0 !important;
  width: auto !important;
}

.map-popup {
  padding: 1rem 1.25rem;
  min-width: 180px;
}

.map-popup__location {
  font-size: 0.75rem;
  color: #7A7A6E;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.map-popup__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
  color: #1E1E1E;
}

.map-popup__date {
  font-size: 0.8rem;
  color: #7A7A6E;
  margin-bottom: 0.75rem;
}

.map-popup__link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4A5E3A;
  letter-spacing: 0.03em;
}

.map-popup__link:hover { color: #C8A96E; }

.leaflet-popup-tip { background: #fff !important; }
