/* Regular sections - full width, no map */
.intro-section, .outro-section {
  background: #FFFFFF;
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 100; /* Ensure it's above map */
}

/* Side-by-side Timeline + Map (respects header) */
.scrolly-container {
  position: relative;
  display: flex;
  min-height: 100vh;
  margin-top: 2rem; /* Space for header */
}

.scrolly-content {
  width: 40%;
  padding: 2rem;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: relative;
}

.scrolly-map {
  width: 60%;
  position: sticky;
  top: 80px; /* Adjust this value based on your header height */
  height: calc(100vh - 80px); /* Account for header space */
  z-index: 1;
}

.step {
  margin: 4rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  border-left: 4px solid #A7F3D0;
  opacity: 0.4;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.step.active {
  opacity: 1;
  border-left-color: #2DD4BF;
  background: rgba(255, 255, 255, 0.98);
  transform: translateX(10px);
  box-shadow: 0 8px 30px rgba(45, 212, 191, 0.2);
}

.step h3 {
  color: #0F766E;
  margin-top: 0;
  font-size: 1.4rem;
}

.step-year {
  color: #0D9488;
  font-size: 0.9em;
  font-weight: bold;
  margin-bottom: 0.5rem;
  background: #F0FDFA;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  display: inline-block;
}

/* Photo Grid - Simple Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Exactly 3 columns */
  gap: 1.5rem;
  margin: 2rem 0;
}

.photo-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #A7F3D0;
  transition: transform 0.3s ease;
  background: #FFFFFF;
  text-decoration: none;
  color: inherit;
  padding-bottom: 1rem;
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(45, 212, 191, 0.2);
  border-color: #2DD4BF;
}

.photo-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  display: block;
  border-bottom: 1px solid #E5E7EB;
}

/* Caption styling */
.photo-card {
  padding-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.photo-card > :last-child {
  padding: 0.75rem;
  margin: 0;
  color: #374151;
}

/* Make entire card clickable */
.photo-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.photo-card a:hover {
  text-decoration: none;
}


/* Stats Grid - Simple Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat-card {
  background: linear-gradient(135deg, #2DD4BF 0%, #14B8A6 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Map interaction adjustments */
.leaflet-container {
  cursor: default !important;
  border-radius: 8px;
}

.leaflet-control-container {
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .scrolly-container {
    flex-direction: column;
    margin-top: 1rem;
  }
  
  .scrolly-content {
    width: 100%;
    background: #FFFFFF;
  }
  
  .scrolly-map {
    width: 100%;
    height: 50vh;
    position: relative;
    top: 0;
  }
  
  .step {
    margin: 2rem 0;
    transform: none;
  }
  
  .step.active {
    transform: none;
  }
  
  .intro-section, .outro-section {
    padding: 2rem 1rem;
  }
}