/**
 * Enhanced MapStory styles for RE:PUBLIC Ghost theme
 * Matches the mockup design with photo overlays and smooth transitions
 */

/* Map container */
#story-map {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#story-map .maplibregl-canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Scene wrapper (runway) */
.map-scene-wrapper {
  position: relative;
  z-index: 2;
  height: 220vh; /* default runway; overridden per scene by data-runway */
}

.story-scene {
  position: sticky;
  top: 18vh;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Photo reveal */
.scene-photo {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  position: relative;
  z-index: 3;
  margin-top: 16px;
}

.scene-photo.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scene-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.scene-photo figcaption {
  margin-top: 6px;
  opacity: 0.8;
  font-size: 0.9rem;
  color: #666;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .story-scene {
    background: rgba(20, 20, 20, 0.95);
    color: #fff;
  }
  
  .scene-photo figcaption {
    color: #ccc;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .story-scene {
    top: 12vh;
    padding: 1.5rem;
    margin: 1rem;
  }

  .map-scene-wrapper {
    height: 240vh;
  }

  #story-map {
    opacity: 0.7; /* Reduce map opacity on mobile for better text readability */
  }
}

/* Map controls (if needed) */
.maplibregl-ctrl {
  z-index: 10;
  pointer-events: auto;
}












