/* ============================================
   INNER PAGE STYLES
   ============================================ */

/* ---- Page Hero (non-home pages) ---- */
.page-hero {
  position: relative;
  height: 55vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
}
.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(250,247,242,0.5) 0%, rgba(250,247,242,0.75) 60%, var(--cream) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 720px;
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.page-hero__subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal-light);
  line-height: 1.7;
  max-width: 560px;
}

/* ---- Page header (no bg image) ---- */
.page-header {
  padding: calc(var(--nav-height) + 4rem) 2.5rem 3rem;
  text-align: center;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.page-header .section-title { margin: 0; }

/* ---- Two-column section ---- */
.two-col-section {
  padding: 7rem 2.5rem;
  background: var(--warm-white);
}
.two-col-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.two-col-section__image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  max-height: 580px;
}
.two-col-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.two-col-section__image:hover img { transform: scale(1.03); }
.two-col-section__text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.prose {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.prose p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--charcoal-light);
}

/* ---- Timeline ---- */
.timeline-section {
  padding: 7rem 2.5rem;
  background: var(--cream);
}
.timeline-section__inner {
  max-width: 780px;
  margin: 0 auto;
}
.timeline-section__header {
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--sand);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--warm-white);
}
.timeline-item__icon svg {
  width: 20px; height: 20px;
  stroke: var(--charcoal-light);
}
.timeline-item__content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.timeline-item__content p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--charcoal-light);
}

/* ---- Journal page ---- */
.journal-page {
  padding: 4rem 2.5rem 7rem;
  background: var(--cream);
}
.journal-page__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.journal-filters {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--sand);
  padding-bottom: 0;
}
.filter-btn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 1rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  color: var(--charcoal);
  border-bottom-color: var(--charcoal);
}

/* Alternating journal entries */
.journal-entries {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.journal-entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 5rem 0;
  border-bottom: 1px solid var(--sand);
}
.journal-entry:last-child { border-bottom: none; }
.journal-entry:nth-child(even) .journal-entry__image { order: 2; }
.journal-entry:nth-child(even) .journal-entry__text { order: 1; }

.journal-entry__image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.journal-entry__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.journal-entry__image:hover img { transform: scale(1.04); }
.journal-entry__text { display: flex; flex-direction: column; gap: 1rem; }
.journal-entry__meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--charcoal-light);
}
.journal-entry__meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.journal-entry__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}
.journal-entry__excerpt {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--charcoal-light);
}

/* ---- Route page ---- */
.route-page {
  padding: 4rem 2.5rem 7rem;
  background: var(--cream);
}
.route-page__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.route-stats {
  display: flex;
  justify-content: center;
  gap: 5rem;
  margin-bottom: 3rem;
}
.route-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.route-stat svg {
  width: 22px; height: 22px;
  stroke: var(--charcoal-light);
}
.route-stat__number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1;
}
.route-stat__label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--charcoal-light);
}
.route-filter-btns {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.route-map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--sand);
  height: 520px;
  background: var(--sand-light);
  position: relative;
}
#route-map {
  width: 100%;
  height: 100%;
}
.route-map-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--charcoal-light);
  margin-top: 1rem;
  font-style: italic;
}
.route-last-location {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--warm-white);
  border-radius: var(--radius);
  border: 1px solid var(--sand);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  max-width: 560px;
}
.route-last-location__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--sand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.route-last-location__icon svg { width: 20px; height: 20px; stroke: var(--charcoal-light); }
.route-last-location__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal-light);
  margin-bottom: 0.3rem;
}
.route-last-location__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.2;
}
.route-last-location__post {
  font-size: 0.88rem;
  color: var(--charcoal-light);
  margin-top: 0.25rem;
  font-style: italic;
}

/* ---- Gallery page ---- */
.gallery-page {
  padding: 4rem 2.5rem 7rem;
  background: var(--cream);
}
.gallery-page__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.gallery-grid {
  columns: 3;
  column-gap: 1.25rem;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(44,44,44,0);
  transition: background var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.gallery-item:hover .gallery-item__overlay { background: rgba(44,44,44,0.25); }
.gallery-item__caption {
  font-size: 0.8rem;
  color: white;
  opacity: 0;
  transition: opacity var(--transition);
  transform: translateY(4px);
}
.gallery-item:hover .gallery-item__caption { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
}
.lightbox__close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox__close:hover { background: rgba(255,255,255,0.2); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .two-col-section__inner { grid-template-columns: 1fr; gap: 3rem; }
  .two-col-section__image { aspect-ratio: 16/9; max-height: none; }
  .journal-entry { grid-template-columns: 1fr; gap: 2rem; }
  .journal-entry:nth-child(even) .journal-entry__image { order: 0; }
  .journal-entry:nth-child(even) .journal-entry__text { order: 1; }
  .route-stats { gap: 2.5rem; }
  .gallery-grid { columns: 2; }
}
@media (max-width: 600px) {
  .gallery-grid { columns: 1; }
  .route-stats { gap: 1.5rem; flex-wrap: wrap; }
}
