/* .itinerary-hero {
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-hero); 
}  */
.itinerary-hero {
  height: 72vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 80px;
  overflow: hidden;
}

/* background layer */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;

  transform: scale(1.08);
  animation: slowPan 18s ease-in-out infinite alternate;
}

/* fallback gradient */
.hero-bg.gradient-mode {
  background:
    linear-gradient(
      120deg,
      var(--accent-dark),
      var(--accent),
      var(--bg-secondary)
    );

  background-size: 200% 200%;
  animation: gradientMove 14s ease infinite;
}

/* luxury overlay */
.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to right,
      rgba(20,20,20,0.55),
      rgba(20,20,20,0.18)
    );

  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}

.hero-inner h1 {
  margin-top: 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  line-height: 1.02;
  color: white;
}

.hero-sub {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,0.78);
  max-width: 680px;
}

/* subtle image movement */
@keyframes slowPan {
  0% {
    transform: scale(1.08) translateX(0px) translateY(0px);
  }

  100% {
    transform: scale(1.15) translateX(-20px) translateY(-10px);
  }
}

/* gradient animation */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.itinerary-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
}

/* GRID */
.day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 60px;
}

/* TILE */
.day-tile {
  background: var(--bg-card-body);
  border: 1px solid var(--border);
  padding: 20px;
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* HOVER EFFECT */
.day-tile:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* DAY NUMBER */
.day-number {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

/* TITLE */
.day-title {
  font-size: 18px;
  margin-top: 6px;
}

/* DESCRIPTION */
.day-desc {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0;
  max-height: 0;
  transition: all 0.3s ease;
}

/* EXPAND ON HOVER */
.day-tile:hover .day-desc {
  opacity: 1;
  max-height: 200px;
}
.itinerary-hero {
  height: 70vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 60px;

  background: linear-gradient(
    120deg,
    var(--accent-dark),
    var(--accent),
    var(--bg-secondary)
  );

  background-size: 200% 200%;
  animation: gradientMove 12s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% }
  50% { background-position: 100% }
  100% { background-position: 0% }
}

.hero-inner h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  color: #fff;
}

.hero-sub {
  margin-top: 10px;
  color: rgba(255,255,255,0.7);
}

.timeline-section {
  padding: 80px 0;
  overflow-x: auto;
}

.timeline-scroll {
  display: flex;
  gap: 24px;
  padding: 0 60px;
}

/* CARD */
.day-card {
  min-width: 320px;
  height: 360px;
  padding: 24px;
  border-radius: 12px;

  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(14px);

  border: 1px solid var(--border);

  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Hover = luxury effect */
.day-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

/* Accent glow line */
.day-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: var(--accent);
}

/* Content */
.day-number {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.day-title {
  font-size: 20px;
  margin-top: 8px;
}

/* .day-desc {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.8;
} */
.day-desc {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  opacity: 0.9;

  max-height: 170px;
  overflow-y: auto;
  overflow-x: hidden;

  padding-right: 8px;

  white-space: normal;
  word-break: break-word;
}
.day-desc::-webkit-scrollbar {
  width: 5px;
}

.day-desc::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 20px;
}

.day-desc::-webkit-scrollbar-track {
  background: transparent;
}

.itinerary-enquire-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 28px;
  padding: 14px 26px;

  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.12);
  color: #fff;

  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  backdrop-filter: blur(8px);

  transition: all 0.3s ease;
}

.itinerary-enquire-btn:hover {
  background: #fff;
  color: var(--text-primary);
  transform: translateY(-2px);
}
/* subtle hover reveal */
.day-card:hover .day-desc {
  opacity: 1;
}
/* smooth scroll */
html {
  scroll-behavior: smooth;
}

/* scrollbar styling */
.timeline-section::-webkit-scrollbar {
  height: 6px;
}
.timeline-section::-webkit-scrollbar-thumb {
  background: var(--accent);
}
@media (max-width: 768px) {
  .itinerary-hero {
    height: 52vh;
    padding: 0 20px;
  }

  .hero-inner h1 {
    font-size: 36px;
  }

  .hero-sub {
    font-size: 14px;
  }

  .timeline-scroll {
    padding: 0 20px;
  }

  .day-card {
    min-width: 90%;
  }
}
/* =========================================================
   ITINERARY PAGE â€” RESTORE HERO + DAY CARDS
========================================================= */

.itinerary-hero {
  position: relative;
  min-height: 548px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      90deg,
      rgba(45, 31, 21, 0.72) 0%,
      rgba(70, 49, 33, 0.48) 45%,
      rgba(70, 49, 33, 0.20) 100%
    );
}

.hero-inner {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 1500px;

  margin: 0 auto;
  padding: 90px 66px 75px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-bottom: 22px;

  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;

  color: rgba(255,255,255,0.82);
}

.hero-eyebrow::before {
  content: "";

  width: 32px;
  height: 1px;

  background: rgba(255,255,255,0.65);
}

.hero-inner h1 {
  max-width: 1000px;

  margin: 0;

  font-family: "Cormorant Garamond", serif;
  font-size: clamp(54px, 6vw, 82px);
  line-height: 0.98;
  font-weight: 500;

  color: #fff;
}

.hero-sub {
  max-width: 720px;

  margin-top: 22px;

  font-size: 17px;
  line-height: 1.7;

  color: rgba(255,255,255,0.86);
}


/* =========================================================
   ENQUIRE BUTTON
========================================================= */

.itinerary-enquire-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 30px;
  padding: 15px 28px;

  border: 1px solid rgba(255,255,255,0.75);

  background: rgba(255,255,255,0.10);

  color: #fff;

  text-decoration: none;

  font-size: 11px;
  font-weight: 500;

  letter-spacing: 0.14em;
  text-transform: uppercase;

  backdrop-filter: blur(8px);

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.itinerary-enquire-btn:hover {
  background: #fff;
  color: #35271d;

  transform: translateY(-2px);
}


/* =========================================================
   TIMELINE SECTION
========================================================= */

.timeline-section {
  position: relative;

  padding: 90px 0 120px;

  background: var(--bg);
}

.timeline-scroll {
  display: flex;

  gap: 24px;

  width: 100%;

  padding: 10px 60px 35px;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;

  scrollbar-width: thin;
}

.timeline-scroll::-webkit-scrollbar {
  height: 6px;
}

.timeline-scroll::-webkit-scrollbar-thumb {
  background: rgba(70,50,35,0.25);
}


/* =========================================================
   DAY CARD
========================================================= */

.day-card {
  flex: 0 0 390px;

  min-height: 420px;

  padding: 30px;

  background: rgba(255,255,255,0.72);

  border: 1px solid var(--border);

  border-radius: 4px;

  box-shadow:
    0 12px 35px rgba(0,0,0,0.06);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.day-card:hover {
  transform: translateY(-6px);

  box-shadow:
    0 22px 50px rgba(0,0,0,0.10);
}

.day-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 26px;
}

.day-number {
  font-size: 10px;
  font-weight: 600;

  letter-spacing: 0.18em;
  text-transform: uppercase;

  color: var(--accent);
}

.day-index {
  font-family: "Cormorant Garamond", serif;

  font-size: 42px;
  line-height: 1;

  color: rgba(80,60,45,0.16);
}

.day-title {
  margin: 0;

  font-family: "Cormorant Garamond", serif;

  font-size: 34px;
  line-height: 1.08;
  font-weight: 500;

  color: var(--text-primary);
}

.day-divider {
  width: 42px;
  height: 1px;

  margin: 24px 0;

  background: var(--accent);
}

.day-description {
  margin: 0;

  font-size: 14px;
  line-height: 1.85;

  color: var(--text-mid);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

  .itinerary-hero {
    min-height: 620px;
  }

  .hero-inner {
    padding: 80px 24px 60px;
  }

  .hero-inner h1 {
    font-size: 52px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .timeline-section {
    padding: 60px 0 80px;
  }

  .timeline-scroll {
    padding-left: 20px;
    padding-right: 20px;
  }

  .day-card {
    flex-basis: 310px;
    min-height: 400px;
    padding: 25px;
  }

  .day-title {
    font-size: 30px;
  }

}

/* =========================================================
   FINAL ITINERARY FIXES
   - Keep the hero image fitted normally (no zoom / pan)
   - Preserve horizontal day-by-day scrolling
   - Add optional previous / next controls
========================================================= */

/* HERO: override the older scale/animation rules above */
.itinerary-hero {
  position: relative;
  min-height: 548px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  /* Prevent the older .hero-bg transform / slowPan rules from zooming the photo */
  transform: none !important;
  animation: none !important;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

/* DAY-BY-DAY SECTION */
.timeline-section {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

/* Optional arrow controls used by itinerary.js */
.timeline-controls {
  max-width: 1400px;
  margin: 0 auto 28px;
  padding: 0 60px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timeline-label {
  text-align: center;
}

.timeline-label span {
  display: block;
  margin-bottom: 5px;

  font-size: 9px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent);
}

.timeline-label strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
}

.timeline-arrow {
  width: 44px;
  height: 44px;

  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  line-height: 1;
  cursor: pointer;

  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.timeline-arrow:hover {
  background: var(--text-primary);
  color: #fff;
  transform: translateY(-1px);
}

.timeline-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  width: 100%;

  padding: 10px 60px 35px;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;

  scrollbar-width: thin;
  scrollbar-color: rgba(70,50,35,0.25) transparent;
  cursor: grab;
}

.timeline-scroll:active {
  cursor: grabbing;
}

.timeline-scroll::-webkit-scrollbar {
  height: 6px;
}

.timeline-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.timeline-scroll::-webkit-scrollbar-thumb {
  background: rgba(70,50,35,0.25);
  border-radius: 20px;
}

/* Prevent the flex items from shrinking so every day remains a separate card */
.day-card {
  flex: 0 0 390px;
  min-width: 390px;
  min-height: 420px;
  scroll-snap-align: start;
}

@media (max-width: 768px) {
  .itinerary-hero {
    min-height: 620px;
  }

  .timeline-controls {
    padding: 0 20px;
  }

  .timeline-scroll {
    padding-left: 20px;
    padding-right: 20px;
    gap: 16px;
  }

  .day-card {
    flex-basis: 310px;
    min-width: 310px;
  }
}

/* =========================================================
   HERO IMAGE — FIT (show the whole photo, no cropping)
   itinerary.js sets --hero-image and --hero-ratio from the
   loaded photo so the hero takes the image's proportions.
========================================================= */

.itinerary-hero {
  --hero-ratio: 1.7778;
  height: clamp(480px, calc(100vw / var(--hero-ratio)), 88vh);
  min-height: 0;
  background: #2d1f15;
}

/* blurred copy of the photo fills any leftover space */
.itinerary-hero::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: 0;

  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;

  filter: blur(28px) brightness(0.75);
}

.hero-bg {
  background-image: var(--hero-image);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .itinerary-hero {
    height: auto;
    min-height: 560px;
  }
}


/* =========================================================
   DAY CARDS — FIXED HEIGHT, SCROLLABLE DESCRIPTION
========================================================= */

.day-card {
  display: flex;
  flex-direction: column;
  height: 480px;
  min-height: 0;
}

.day-card-top,
.day-title,
.day-divider {
  flex-shrink: 0;
}

.day-description {
  flex: 1 1 auto;
  min-height: 0;

  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;

  padding-right: 10px;
  cursor: auto;
  user-select: text;

  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.day-description::-webkit-scrollbar {
  width: 5px;
}

.day-description::-webkit-scrollbar-track {
  background: transparent;
}

.day-description::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 20px;
}

/* allow vertical touch scrolling inside cards as well as horizontal between them */
.timeline-scroll {
  touch-action: pan-x pan-y;
}

@media (max-width: 768px) {
  .day-card {
    height: 440px;
  }
}


/* =========================================================
   DAY CARD — SUGGESTED OPTIONAL ACTIVITIES
========================================================= */

.day-description p {
  margin: 0;
}

.day-optional {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.day-optional-label {
  display: block;
  margin-bottom: 8px;

  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: var(--accent);
}

.day-optional ul {
  margin: 0;
  padding-left: 18px;
}

.day-optional li {
  margin-bottom: 4px;
}


/* =========================================================
   Start the hero below the fixed top menu bar so the top of
   the photo isn't hidden behind it (itinerary.js measures
   the bar and sets --nav-h; 88px is the desktop fallback)
========================================================= */
.itinerary-hero {
  margin-top: var(--nav-h, 88px);
}
