/* ==========================================================================
   ALL PLACES - home page showcase of every destination across both routes,
   shown one after another with no route-choosing flow (that now lives on
   journey-overview.html, alongside the day-by-day carousel). Replaces the
   old "Two Ways South / Choose Your Route" + day-cards sections here.

   Deliberately its own small, freshly-scoped stylesheet rather than reusing
   journey-app.css's .editorial-section-node treatment: journey-app.css is
   loaded nowhere on this page (its generic Tailwind-derived class names -
   .absolute, .flex, .hero-title, etc. - are known to collide with index.css
   sitewide; see day-cards.css's own header comment for the precedent this
   avoids repeating in the other direction). Every rule here is scoped under
   #all-places-section; the dark schist ground + cream/gold accents mirror
   the Curator's Chamber carousels' own card treatment elsewhere on the site.
   ========================================================================== */
#all-places-section {
  background: var(--color-schist, #1C1C1C);
  padding: clamp(64px, 9vh, 104px) 0 clamp(48px, 7vh, 88px);
}

#all-places-section .all-places-header {
  max-width: 800px;
  margin: 0 auto clamp(40px, 6vw, 72px);
  padding: 0 6vw;
  text-align: center;
}
#all-places-section .all-places-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 56px);
  color: var(--color-cream, #FAF8F5);
  margin: 0 0 32px;
  line-height: 1.1;
}
#all-places-section .all-places-title .apt-word--bold {
  font-weight: 700;
}
#all-places-section .all-places-title .apt-word--italic {
  font-style: italic;
  font-weight: 400;
}

/* Vivid two-stage word reveal, driven by .all-places-header.revealed (see
   index.js's generic .scroll-reveal IntersectionObserver) - mirrors the
   Curator's Chamber headers' own treatment elsewhere on the site. */
#all-places-section .all-places-title .apt-word {
  display: inline-block;
  opacity: 0;
  filter: blur(18px);
  transform: translateY(36px) scale(1.07);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              filter 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
#all-places-section .all-places-title .apt-word--italic {
  transition-delay: 0.18s;
}
#all-places-section .all-places-header.revealed .all-places-title .apt-word {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

#all-places-section .all-places-quote {
  max-width: 660px;
  margin: 0 auto;
  padding: 0;
}
#all-places-section .all-places-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.55;
  color: rgba(250, 248, 245, 0.88);
  margin: 0 0 14px;
}
#all-places-section .all-places-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold, #C4A45A);
}

/* Vivid staggered reveal for the quote, same driver class as the title. */
#all-places-section .all-places-quote p,
#all-places-section .all-places-quote cite {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              filter 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.32s;
}
#all-places-section .all-places-quote cite {
  transition-delay: 0.5s;
}
#all-places-section .all-places-header.revealed .all-places-quote p,
#all-places-section .all-places-header.revealed .all-places-quote cite {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  #all-places-section .all-places-title .apt-word,
  #all-places-section .all-places-quote p,
  #all-places-section .all-places-quote cite {
    transition: opacity 0.4s ease;
    filter: none;
    transform: none;
  }
}

#all-places-section .places-list {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 48px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 6vw;
}

/* ---- Card: a smaller image column beside a larger text column, sides
   alternating card to card. ---- */
#all-places-section .place-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: stretch;
  background: #111;
  border: 1px solid rgba(250, 248, 245, 0.08);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
}
#all-places-section .place-card:nth-child(even) {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}
#all-places-section .place-card:nth-child(even) .place-slideshow {
  order: 2;
}

/* ---- Slideshow: cover + hero/1/2 auto-cycling in the smaller column,
   with manual prev/next arrows in the same circular style as the
   day-frame/carousel nav buttons elsewhere on the site. ---- */
#all-places-section .place-slideshow {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}
#all-places-section .place-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}
#all-places-section .place-slide.is-active {
  opacity: 1;
}
#all-places-section .place-slideshow::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(17,17,17,0) 62%, rgba(17,17,17,0.55) 100%);
  pointer-events: none;
}

/* ---- "Watch Now" - top of the slideshow, only on cards with a film. ---- */
#all-places-section .place-watch-now-btn {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(250, 251, 247, 0.3);
  background: rgba(28, 28, 28, 0.45);
  color: var(--color-cream, #FAF8F5);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
#all-places-section .place-watch-now-btn:hover {
  background: rgba(28, 28, 28, 0.7);
  border-color: var(--color-gold, #C4A45A);
  color: var(--color-gold, #C4A45A);
}
#all-places-section .place-slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(250, 251, 247, 0.3);
  background: rgba(28, 28, 28, 0.4);
  color: var(--color-cream, #FAF8F5);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
#all-places-section .place-slide-nav:hover {
  background: rgba(28, 28, 28, 0.6);
  border-color: var(--color-cream, #FAF8F5);
}
#all-places-section .place-slide-prev { left: 12px; }
#all-places-section .place-slide-next { right: 12px; }

#all-places-section .place-slide-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 6px;
}
#all-places-section .place-slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(250, 248, 245, 0.4);
  transition: background 0.25s ease, width 0.25s ease;
}
#all-places-section .place-slide-dot.is-active {
  background: var(--color-gold, #C4A45A);
  width: 16px;
  border-radius: 4px;
}

/* ---- Text column ---- */
#all-places-section .place-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: clamp(24px, 3.2vw, 40px);
}
#all-places-section .place-card-region {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.55);
}
#all-places-section .place-card-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 34px);
  color: var(--color-cream, #FAF8F5);
  margin: 4px 0 2px;
  line-height: 1.1;
}
#all-places-section .place-epithet {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  color: var(--color-gold, #C4A45A);
  margin: 0 0 10px;
}
#all-places-section .place-narrative {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(250, 248, 245, 0.8);
  margin: 0;
}

@media (max-width: 860px) {
  #all-places-section .place-card,
  #all-places-section .place-card:nth-child(even) {
    grid-template-columns: 1fr;
  }
  #all-places-section .place-card:nth-child(even) .place-slideshow {
    order: 0;
  }
  #all-places-section .place-slideshow { min-height: 240px; }
  #all-places-section .place-body { padding: 22px 24px 28px; }
}

/* ==========================================================================
   WATCH NOW MODAL - a single shared, close-able overlay appended to
   <body> (not scoped under #all-places-section) and reused by every
   place card's "Watch Now" button.
   ========================================================================== */
.place-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}
/* `display: flex` above has higher cascade priority than the UA
   stylesheet's `[hidden] { display: none }` (author styles beat
   user-agent styles at equal specificity), so the modal stayed visible -
   just visually broken, video src cleared - even after JS set
   `modal.hidden = true`. This restores hidden's actual effect. */
.place-video-modal[hidden] {
  display: none;
}
.place-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.88);
}
.place-video-modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
}
.place-video-modal-player {
  display: block;
  width: 100%;
  max-height: 88vh;
  border-radius: 6px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.place-video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(250, 251, 247, 0.35);
  background: rgba(28, 28, 28, 0.6);
  color: var(--color-cream, #FAF8F5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.place-video-modal-close:hover {
  background: rgba(28, 28, 28, 0.85);
  border-color: var(--color-gold, #C4A45A);
  color: var(--color-gold, #C4A45A);
}
@media (max-width: 640px) {
  .place-video-modal-close { top: 8px; right: 8px; width: 32px; height: 32px; }
}
