/* =========================================================================
   travels.css — page-specific styles for the Travels page
   Reuses palette, fonts, and shared components from styles.css.
   Signature: train-window hero with infinitely scrolling landscape.
   ========================================================================= */


/* ── HERO: title above + train window below ────────────────────── */
.travels-hero {
  max-width: 1280px;
  margin: 2rem auto 4rem;
  padding: 0 2rem;
  position: relative;
  z-index: 5;
  text-align: center;
}

.travels-hero__kicker {
  font-family: var(--hand);
  font-size: 1.5rem;
  color: var(--brass);
  margin: 0 0 0.4rem;
  display: inline-block;
  transform: rotate(-1deg);
}
.travels-hero__title {
  font-family: var(--hand);
  font-weight: 500;
  font-size: clamp(3.4rem, 9vw, 6.5rem);
  line-height: 1;
  color: var(--ink);
  margin: 0 0 2.5rem;
  transform: rotate(-1deg);
}


/* ── TRAIN WINDOW ──────────────────────────────────────────────── */
.window {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--cream);
  border-radius: 14px;
  padding: 22px;
  box-shadow:
    0 36px 72px -36px rgba(43, 38, 32, 0.32),
    0 1px 3px rgba(43, 38, 32, 0.08);
  border: 1px solid rgba(107, 98, 86, 0.08);
}
/* Inner window pane */
.window__pane {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(
    180deg,
    #FBE3D6 0%,
    #FBD5D5 30%,
    #E6E0EE 70%,
    #D4E5D2 100%);
}
/* The scrolling landscape — single coherent layer, one tempo */
.landscape {
  position: absolute;
  top: 0; left: 0;
  width: 200%; height: 100%;
  display: flex;
  animation: train-scroll 28s linear infinite;
  will-change: transform;
  z-index: 1;
}
.landscape svg {
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  display: block;
}
@keyframes train-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Cabin frame — gives the feeling of looking out from inside a train compartment */
.cabin-frame {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    /* Left edge — dark cabin wall fading out */
    linear-gradient(
      90deg,
      rgba(20, 16, 12, 0.85) 0%,
      rgba(20, 16, 12, 0.55) 3%,
      rgba(20, 16, 12, 0.15) 6%,
      transparent 9%
    ),
    /* Top-left corner shadow (overhead canopy) */
    radial-gradient(
      ellipse 240px 80px at 0% 0%,
      rgba(20, 16, 12, 0.55) 0%,
      transparent 70%
    );
}
/* Subtle window-pane reflection — a soft diagonal sheen */
.window__pane::after {
  content: "";
  position: absolute;
  top: 0; left: -20%;
  width: 60%; height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 45%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 55%,
    transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* Washi-tape strips at the top of the window frame */
.window__tape {
  position: absolute;
  top: -12px;
  width: 110px; height: 24px;
  opacity: 0.78;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.3) 0 4px,
    transparent 4px 10px);
  box-shadow: 0 2px 5px rgba(43,38,32,0.1);
  z-index: 5;
}
.window__tape--left  { left: 10%;  transform: rotate(-8deg); background: var(--mint); }
.window__tape--right { right: 10%; transform: rotate(8deg);  background: var(--blush); }

/* Caption beneath the window */
.travels-hero__caption {
  margin: 1.6rem auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--driftwood);
  opacity: 0.88;
  max-width: 540px;
}


/* ── SECTION SHELL (reused) ─────────────────────────────────────── */
.travels-section {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 2rem;
  position: relative;
  z-index: 5;
}
.travels-section__head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.travels-section__kicker {
  font-family: var(--hand);
  font-size: 1.3rem;
  color: var(--brass);
  margin: 0;
  display: inline-block;
  transform: rotate(-1deg);
}
.travels-section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin: 0.3rem 0 0;
  color: var(--ink);
}
.travels-section__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 1.5px;
  background: var(--brass);
  margin: 0.8rem auto 0;
  opacity: 0.6;
}


/* ── INDIA MAP SECTION (illustrated image + states list) ─────────── */
.india-map-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: flex-start;
  max-width: 1180px;
  margin: 0 auto;
}
.india-map-figure {
  margin: 0;
  position: relative;
  transform: rotate(-1deg);
}
.india-map-figure::before,
.india-map-figure::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 22px;
  z-index: 3;
  opacity: 0.78;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.3) 0 4px,
    transparent 4px 10px);
  box-shadow: 0 2px 5px rgba(43,38,32,0.1);
}
.india-map-figure::before {
  top: -10px; left: 8%;
  transform: rotate(-6deg);
  background-color: var(--mint);
}
.india-map-figure::after {
  top: -10px; right: 8%;
  transform: rotate(7deg);
  background-color: var(--blush);
}
.india-map-img {
  display: block;
  width: 100%;
  height: auto;
  background: #f4ecdf;
  box-shadow:
    0 28px 56px -24px rgba(43, 38, 32, 0.28),
    0 1px 3px rgba(43, 38, 32, 0.08);
  border: 8px solid #FDFBF6;
}
.india-map-figure__cap {
  font-family: var(--hand);
  font-size: 1.3rem;
  color: var(--brass);
  text-align: center;
  margin-top: 0.9rem;
  transform: rotate(-1deg);
}

.places-by-state {
  font-family: var(--serif);
  color: var(--ink);
  padding-top: 0.5rem;
}
.places-intro {
  font-family: var(--hand);
  font-size: 1.4rem;
  color: var(--brass);
  margin: 0 0 1.8rem;
  line-height: 1.3;
}
.state-block {
  margin-bottom: 1.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px dashed rgba(178, 93, 67, 0.28);
}
.state-block:last-child {
  border-bottom: none;
}
.state-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.state-count {
  font-family: var(--hand);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--brass);
  background: rgba(184, 134, 11, 0.1);
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  line-height: 1.2;
}
.state-places {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--driftwood);
  margin: 0;
  opacity: 0.92;
}


/* ── THEMED PILLARS ─────────────────────────────────────────────── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
.pillar {
  position: relative;
  background: var(--cream);
  padding: 0;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 20px 40px -22px rgba(43, 38, 32, 0.2);
  border: 1px solid rgba(107, 98, 86, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.pillar:nth-child(odd)  { transform: rotate(-0.5deg); }
.pillar:nth-child(even) { transform: rotate(0.4deg); }
.pillar:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 32px 56px -24px rgba(43, 38, 32, 0.28);
}
.pillar__cover {
  height: 240px;
  background: var(--mint);
  position: relative;
  overflow: hidden;
}
.pillar__cover svg {
  width: 100%; height: 100%; display: block;
}
.pillar__body {
  padding: 1.4rem 1.3rem 1.5rem;
}
.pillar__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.pillar__title::after {
  content: "";
  display: block;
  width: 24px; height: 1.5px;
  background: var(--brass);
  margin-top: 0.4rem;
  opacity: 0.6;
}
.pillar__desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--driftwood);
  margin: 0.7rem 0 0;
  opacity: 0.9;
}


/* ── PHOTO SERIES ──────────────────────────────────────────────── */
.series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}
.series {
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.series__cluster {
  position: relative;
  height: 320px;
  margin-bottom: 1rem;
}
.series__cluster img {
  position: absolute;
  width: 80%;
  height: 80%;
  object-fit: cover;
  background: var(--cream);
  border: 8px solid #FDFBF6;
  box-shadow: 0 20px 36px -20px rgba(43, 38, 32, 0.22);
  cursor: zoom-in;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.series__cluster img:hover {
  box-shadow: 0 28px 44px -20px rgba(43, 38, 32, 0.35);
  z-index: 10;
}
.series__cluster img:nth-child(1):hover { transform: rotate(-2deg) scale(1.04); }
.series__cluster img:nth-child(2):hover { transform: rotate(1deg) scale(1.04); }
.series__cluster img:nth-child(3):hover { transform: rotate(0deg) scale(1.04); }
.series__link {
  background: transparent;
  border: none;
  cursor: pointer;
}
/* Three overlapping photo "polaroids" per cluster */
.series__cluster img:nth-child(1) { top: 0;   left: 0;   transform: rotate(-4deg); z-index: 1; }
.series__cluster img:nth-child(2) { top: 8%; right: 0;   transform: rotate(3deg);  z-index: 2; }
.series__cluster img:nth-child(3) { bottom: 0; left: 18%; transform: rotate(-2deg); z-index: 3; }

/* Two-photo cluster variant — balanced overlap, no empty bottom */
.series__cluster--two img:nth-child(1) { top: 5%;  left: 4%;   transform: rotate(-4deg); }
.series__cluster--two img:nth-child(2) { top: 18%; right: 4%;  transform: rotate(3deg); }
.series__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 0 0 0.3rem;
  color: var(--ink);
}
.series__count {
  font-family: var(--hand);
  font-size: 1.05rem;
  color: var(--brass);
  margin: 0 0 0.6rem;
}
.series__link {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--driftwood);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 1px;
}


/* ── PLANNED TRIPS ─────────────────────────────────────────────── */
.planned-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.planned {
  position: relative;
  background: var(--cream);
  padding: 1.6rem 1.2rem 1.4rem;
  border-radius: 3px;
  border: 1px dashed rgba(107, 98, 86, 0.3);
  text-align: left;
  transform: rotate(0deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.planned:nth-child(odd) { transform: rotate(-0.5deg); }
.planned:nth-child(even){ transform: rotate(0.4deg); }
.planned__date {
  font-family: var(--hand);
  font-size: 1.1rem;
  color: var(--brass);
  margin: 0 0 0.4rem;
}
.planned__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.planned__note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--driftwood);
  margin: 0;
  opacity: 0.9;
}


/* ── ALL TRAVEL ESSAYS LINK ────────────────────────────────────── */
.all-travels {
  text-align: center;
  margin: 4rem auto 6rem;
  z-index: 5;
  position: relative;
  padding: 0 2rem;
}
.all-travels a {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 0.2rem;
  opacity: 0.9;
}


/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .india-map-wrap { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .pillar-grid    { grid-template-columns: repeat(2, 1fr); }
  .series-grid    { grid-template-columns: 1fr 1fr; }
  .planned-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .travels-hero { padding: 0 1rem; margin: 1rem auto 3rem; }
  .travels-hero__title { font-size: clamp(2.6rem, 14vw, 4rem); }
  .window { padding: 14px; border-radius: 10px; }
  .window__tape { width: 70px; height: 18px; top: -8px; }
  .india-map-wrap { gap: 1.5rem; }
  .india-map-img { max-height: 75vh; width: auto; margin: 0 auto; }
  .india-map-figure { text-align: center; }
  .pillar-grid    { grid-template-columns: 1fr; gap: 1.4rem; }
  .pillar         { transform: none !important; }
  .pillar__cover  { height: 200px; }
  .series-grid    { grid-template-columns: 1fr; gap: 1.8rem; }
  .series__cluster{ height: 280px; }
  .planned-grid   { grid-template-columns: 1fr; gap: 1rem; }
  .planned        { transform: none !important; }
  .travels-section{ margin: 3rem auto; padding: 0 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .landscape { animation: none; }
  .india-map .pulse { animation: none; }
}


/* ── IMAGE LIGHTBOX ─────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: lb-fade 0.25s ease;
}
.lightbo

/* ── PHOTO SERIES EMPTY STATE (v1.0.12) ─────────────────────────── */
.series-empty {
  max-width: 540px;
  margin: 1.5rem auto;
  padding: 1.5rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--driftwood);
  opacity: 0.75;
}
