/* =============================================================
   TRAVEL WITH CHANAKA — design tokens
   ============================================================= */
:root {
  /* color */
  --ink-900: #071926;
  /* deep abyssal ocean blue — hero overlay / dark bg */
  --ink-700: #0E293C;
  /* deep sea blue, secondary surfaces */
  --sand-100: #F4EFE6;
  /* warm sand ivory — text on dark, light surfaces */
  --gold-500: #E9C46A;
  /* sunset/beach sand gold — primary accent */
  --coral-500: #E76F51;
  /* warm beach sunset coral — secondary accent / CTA */
  --seafoam-300: #2EC4B6;
  /* bright seafoam/turquoise */
  --line: rgba(244, 239, 230, 0.18);

  /* type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* layout */
  --header-h: 88px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--sand-100);
  background: var(--ink-900);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.btn--ghost {
  border-color: var(--line);
  color: var(--sand-100);
}

.btn--ghost:hover {
  border-color: var(--gold-500);
  color: var(--gold-500);
}

.btn--solid {
  background: var(--coral-500);
  color: var(--ink-900);
  font-weight: 600;
}

.btn--solid:hover {
  transform: translateY(-2px);
  background: var(--gold-500);
}

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* transparent over the hero video */
  background: linear-gradient(to bottom, rgba(7, 25, 38, 0.55), rgba(7, 25, 38, 0));
  transition: 
    top 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    left 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    right 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.4s ease,
    border-radius 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.site-header--scrolled {
  top: 16px;
  left: 24px;
  right: 24px;
  max-width: var(--container);
  margin: 0 auto;
  height: 68px;
  background: rgba(7, 25, 38, 0.45);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 100px;
  border: 1px solid rgba(244, 239, 230, 0.12);
  box-shadow: 
    inset 0 1px 3px rgba(255, 255, 255, 0.12),
    inset 0 -1px 2px rgba(0, 0, 0, 0.4),
    0 12px 32px -4px rgba(7, 25, 38, 0.5);
}

@media (max-width: 860px) {
  .site-header--scrolled {
    top: 12px;
    left: 12px;
    right: 12px;
    height: 60px;
  }
}

.site-header__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.logo span {
  font-style: italic;
  color: var(--gold-500);
}

.main-nav {
  display: flex;
  gap: 2.25rem;
  margin-right: auto;
  margin-left: 3rem;
}

.main-nav a {
  font-size: 0.92rem;
  color: var(--sand-100);
  opacity: 0.85;
  position: relative;
  padding-bottom: 4px;
}

.main-nav a:hover {
  opacity: 1;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold-500);
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--sand-100);
  display: block;
}

/* =============================================================
   HERO — entrance animations on page load
   ============================================================= */
.hero-loading .site-header {
  animation: headerSlideDown 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-loading .hero-bg {
  animation: bgFadeIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-loading .hero-window {
  animation: windowFall 1.3s cubic-bezier(0.34, 1.35, 0.64, 1) both;
  animation-delay: 0.2s;
}

.hero-loading .hero-side-text--left {
  animation: sideTextLeftFall 1.3s cubic-bezier(0.25, 1, 0.5, 1) both;
  animation-delay: 0.4s;
}

.hero-loading .hero-side-text--right {
  animation: sideTextRightFall 1.3s cubic-bezier(0.25, 1, 0.5, 1) both;
  animation-delay: 0.5s;
}

.hero-loading .hero-info-text--left {
  animation: infoTextLeftFall 1.3s cubic-bezier(0.25, 1, 0.5, 1) both;
  animation-delay: 0.6s;
}

.hero-loading .hero-info-text--right {
  animation: infoTextRightFall 1.3s cubic-bezier(0.25, 1, 0.5, 1) both;
  animation-delay: 0.7s;
}

.hero-loading .hero-window__hint {
  animation: hintFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.9s;
}

@keyframes headerSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bgFadeIn {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes windowFall {
  from {
    opacity: 0;
    transform: translateY(-80px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sideTextLeftFall {
  from {
    opacity: 0;
    transform: translateY(-50%) translateY(-40px) translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateY(0) translateX(0);
  }
}

@keyframes sideTextRightFall {
  from {
    opacity: 0;
    transform: translateY(-50%) translateY(-40px) translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateY(0) translateX(0);
  }
}

@keyframes infoTextLeftFall {
  from {
    opacity: 0;
    transform: translateY(-50%) translateY(-20px) translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateY(0) translateX(0);
  }
}

@keyframes infoTextRightFall {
  from {
    opacity: 0;
    transform: translateY(-50%) translateY(-20px) translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateY(0) translateX(0);
  }
}

@keyframes hintFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 0.7;
    transform: translateY(0);
  }
}

/* =============================================================
   HERO — scroll-pinned postcard-window expansion
   ============================================================= */
.hero-scroll-wrapper {
  position: relative;
  height: 250vh;
  /* scroll distance that drives the animation */
}

.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--ink-900);
}

/* full-bleed background video */
.hero-bg {
  position: absolute;
  inset: 0;
  will-change: opacity;
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
}

.hero-bg__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(7, 25, 38, 0.45) 0%,
      rgba(7, 25, 38, 0.25) 45%,
      rgba(7, 25, 38, 0.75) 100%);
}

/* small postcard video window + its caption/hint */
.hero-window-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  z-index: 2;
  pointer-events: none;
}

.hero-window-container {
  position: relative;
  width: 240px;
  height: 320px;
  margin-top: -30px;
  margin-left: -60px; /* Shift a little left and up towards the uneven corner of Sigiriya rock */
}

.hero-side-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--sand-100);
  will-change: opacity, transform;
}

.hero-side-text--left {
  right: 100%;
  margin-right: 32px;
}

.hero-side-text--right {
  left: 100%;
  margin-left: 32px;
}

@media (max-width: 860px) {
  .hero-window-container {
    width: 170px;
    height: 230px;
    margin-top: 0;
    margin-left: 0;
  }
  .hero-side-text {
    font-size: 2.3rem;
  }
  .hero-side-text--left {
    margin-right: 16px;
  }
  .hero-side-text--right {
    margin-left: 16px;
  }
}

/* Side Info Text Blocks */
.hero-info-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 220px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  will-change: opacity, transform;
}

.hero-info-text--left {
  right: 100%;
  margin-right: 200px;
  text-align: right;
  align-items: flex-end;
}

.hero-info-text--right {
  left: 100%;
  margin-left: 310px;
  text-align: left;
  align-items: flex-start;
}

.hero-info-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold-500);
  text-transform: uppercase;
  margin: 0;
}

.hero-info-desc {
  font-family: var(--font-body);
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--sand-100);
  opacity: 0.55;
  margin: 0;
}

.hero-info-line {
  width: 24px;
  height: 1px;
  background: var(--gold-500);
  opacity: 0.3;
  margin: 0.1rem 0;
}

@media (max-width: 1250px) {
  .hero-info-text {
    display: none;
  }
}

.hero-window {
  position: relative;
  width: 240px;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  transform-origin: center center;
  will-change: transform, border-radius;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.hero-window:hover {
  transform: scale(1.03);
  box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(233, 196, 106, 0.25);
}

.hero-window video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.hero-window__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--sand-100);
  opacity: 0.7;
  will-change: opacity, transform;
}

.hero-window__hint span {
  display: inline-block;
  margin-left: 4px;
  animation: bob 1.6s ease-in-out infinite;
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

/* headline text, revealed as scroll progresses */
.hero-text {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

@media (min-width: 861px) {
  .hero-text {
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 42%;
    max-width: 500px;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 860px) {
  .hero-text {
    left: 50%;
    bottom: 8%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 480px;
    align-items: center;
    text-align: center;
  }
}

.hero-text h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-text h1 em {
  font-style: italic;
  color: var(--gold-500);
}

.hero-text p {
  max-width: 44ch;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--sand-100);
  opacity: 0.8;
  margin: 0 0 1.75rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  pointer-events: auto;
}

.hero-actions .btn {
  padding: 0.7rem 1.35rem;
  font-size: 0.88rem;
}

@media (max-width: 860px) {
  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

.hero-text .btn--solid,
.site-header .btn--ghost,
.btn--glass {
  background: rgba(244, 239, 230, 0.12);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  color: var(--sand-100) !important;
  font-weight: 600;
  border: 1px solid rgba(244, 239, 230, 0.25);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.35), 
    inset 0 -1px 2px rgba(7, 25, 38, 0.15),
    0 8px 32px -4px rgba(7, 25, 38, 0.3);
  text-shadow: 0 1px 2px rgba(7, 25, 38, 0.15);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-text .btn--solid:hover,
.site-header .btn--ghost:hover,
.btn--glass:hover {
  background: rgba(244, 239, 230, 0.2);
  border-color: rgba(244, 239, 230, 0.45);
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.45), 
    inset 0 -1px 2px rgba(7, 25, 38, 0.1),
    0 12px 36px -4px rgba(7, 25, 38, 0.4);
  color: var(--sand-100) !important;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 860px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header__inner .btn--ghost {
    display: none;
  }

  .hero-window {
    width: 170px;
    height: 230px;
  }
}

@media (max-width: 480px) {
  .hero-scroll-wrapper {
    height: 220vh;
  }
}

/* respect reduced-motion: skip the pin/scroll choreography,
   hero.js also checks this and short-circuits the JS animation */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-window,
  .hero-text,
  .hero-bg,
  .hero-window__hint span,
  .scroll-reveal,
  .destination-card.scroll-reveal,
  .destination-card.scroll-reveal .destination-card__image,
  .gallery-track,
  .gallery-marquee.scroll-reveal {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================= */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Specific fall-into-place transition for destination, journey and story cards */
.destination-card.scroll-reveal,
.journey-card.scroll-reveal,
.story-card.scroll-reveal {
  opacity: 0;
  transform: translateY(-40px) scale(0.97);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  will-change: opacity, transform;
}

.destination-card.scroll-reveal.revealed,
.journey-card.scroll-reveal.revealed,
.story-card.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Parallax counter-scale on internal image */
.destination-card.scroll-reveal .destination-card__image {
  transform: scale(1.08);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.destination-card.scroll-reveal.revealed .destination-card__image {
  transform: scale(1);
}

/* Ensure hover zoom still functions smoothly on revealed cards */
.destination-card.scroll-reveal.revealed:hover .destination-card__image {
  transform: scale(1.08);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Specific fall-into-place transition for the gallery marquee */
.gallery-marquee.scroll-reveal {
  opacity: 0;
  transform: translateY(-40px);
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-marquee.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggering destinations grid cards */
.destinations-grid .destination-card.scroll-reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.destinations-grid .destination-card.scroll-reveal:nth-child(2) {
  transition-delay: 0.15s;
}
.destinations-grid .destination-card.scroll-reveal:nth-child(3) {
  transition-delay: 0.25s;
}
.destinations-grid .destination-card.scroll-reveal:nth-child(4) {
  transition-delay: 0.35s;
}

/* Staggering journeys grid cards */
.journeys-grid .journey-card.scroll-reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.journeys-grid .journey-card.scroll-reveal:nth-child(2) {
  transition-delay: 0.15s;
}
.journeys-grid .journey-card.scroll-reveal:nth-child(3) {
  transition-delay: 0.25s;
}

/* Staggering stories grid cards */
.stories-grid .story-card.scroll-reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.stories-grid .story-card.scroll-reveal:nth-child(2) {
  transition-delay: 0.15s;
}
.stories-grid .story-card.scroll-reveal:nth-child(3) {
  transition-delay: 0.25s;
}

/* =============================================================
   PAGE SECTIONS & CONTAINER
   ============================================================= */
.section {
  padding: 8rem 2rem;
  position: relative;
  background: var(--ink-900);
}

.container {
  width: 80%;
  max-width: var(--container);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .container {
    width: 90%;
  }
}

.section-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 4.5rem;
}

.section-header-wrap .section-intro {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .section-header-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

.section-intro {
  max-width: 650px;
  margin-bottom: 4.5rem;
}

.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-500);
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--sand-100);
  margin: 0 0 1.25rem;
}

.section-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--sand-100);
  opacity: 0.75;
  margin: 0;
}

/* =============================================================
   DESTINATIONS SECTION styling
   ============================================================= */
.section--destinations {
  border-top: 1px solid var(--line);
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

@media (max-width: 1024px) {
  .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .destinations-grid {
    grid-template-columns: 1fr;
  }
}

.destination-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 440px;
  background: var(--ink-700);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  cursor: pointer;
}

.destination-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.destination-card__image-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.destination-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.destination-card:hover .destination-card__image {
  transform: scale(1.08);
}

.destination-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
    rgba(7, 25, 38, 0.1) 0%, 
    rgba(7, 25, 38, 0.45) 50%, 
    rgba(7, 25, 38, 0.95) 100%);
  z-index: 1;
}

.destination-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.75rem 1.35rem;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.destination-card__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold-500);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.destination-card__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--sand-100);
  margin: 0 0 0.75rem;
}

.destination-card__desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--sand-100);
  opacity: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.35s ease, max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.destination-card:hover .destination-card__desc {
  opacity: 0.8;
  max-height: 100px;
  margin-top: 0.5rem;
}

/* =============================================================
   GALLERY SECTION (Staggered Rotating Marquee)
   ============================================================= */
.section--gallery {
  padding: 4rem 0;
  background: var(--ink-900);
  overflow: hidden;
  border-top: 1px solid var(--line);
  position: relative;
}

.gallery-marquee {
  width: 80%;
  max-width: var(--container);
  margin: 0 auto;
  height: 380px; /* Constrained height to crop the top/bottom corners */
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .gallery-marquee {
    width: 90%;
  }
}

.gallery-track {
  display: flex;
  gap: 0;
  height: 440px; /* Taller than container to force overlap out of bounds */
  width: max-content;
  animation: marqueeFlow 40s linear infinite;
  will-change: transform;
}



@keyframes marqueeFlow {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.gallery-col {
  width: 170px;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  margin: 0 -5px; /* Reduced gap horizontally for a tighter interlocking fit */
  position: relative;
  z-index: 2;
}

.gallery-col--double {
  justify-content: space-between; /* Top and bottom rows */
}

.gallery-col--single {
  justify-content: center; /* Middle row */
}

/* Diamond shape containers */
.gallery-item {
  width: 170px;
  height: 170px;
  transform: rotate(45deg);
  border-radius: 0; /* Sharp cornered diamond squares */
  overflow: hidden;
  border: 3px solid var(--line);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  background: var(--ink-700);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, border-color, box-shadow;
  cursor: pointer;
}

.gallery-item:hover {
  border-color: var(--gold-500);
  box-shadow: 0 20px 48px rgba(233, 196, 106, 0.25);
  transform: rotate(45deg) scale(1.06);
}

.gallery-item__inner {
  width: 100%;
  height: 100%;
  /* Counter-rotate the image container to keep the image upright */
  transform: rotate(-45deg) scale(1.48);
  overflow: hidden;
}

.gallery-item__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-item__inner img {
  transform: scale(1.1);
}

@media (max-width: 860px) {
  .section--gallery {
    padding: 2rem 0;
  }
  .gallery-marquee {
    padding: 0;
    height: 250px;
  }
  .gallery-track {
    height: 290px;
  }
  .gallery-col {
    width: 110px;
    margin: 0 -3px;
  }
  .gallery-item {
    width: 110px;
    height: 110px;
    border-radius: 0;
    border-width: 2px;
  }
}

/* =============================================================
   JOURNEYS SECTION styling
   ============================================================= */
.section--journeys {
  background: var(--ink-700);
  border-top: 1px solid var(--line);
  position: relative;
}

.journeys-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.65rem;
}

@media (max-width: 1024px) {
  .journeys-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
    gap: 2rem;
  }
}

.journey-card {
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.25rem 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Background image crop container */
.journey-card__bg-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  border-radius: 19px; /* Clip background layer inside the card border */
  overflow: hidden;
  pointer-events: none;
}

/* Card background image layer */
.journey-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  opacity: 0.45; /* Increased opacity to make images clearly visible */
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.journey-card__bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(7, 25, 38, 0.15) 0%, rgba(7, 25, 38, 0.6) 100%); /* Lighter overlay */
  z-index: 2;
}

/* Ensure text blocks stay above the background layer */
.journey-card__header,
.journey-card__body,
.journey-card__footer {
  position: relative;
  z-index: 3;
}

.journey-card:hover .journey-card__bg {
  opacity: 0.58; /* Enhanced visibility on hover */
  transform: scale(1.05);
}

.journey-card:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 196, 110, 0.3);
  box-shadow: 0 16px 48px -12px rgba(7, 25, 38, 0.5);
}

.journey-card--highlighted {
  border-color: var(--gold-500);
  background: linear-gradient(135deg, var(--ink-900) 0%, rgba(14, 41, 60, 0.95) 100%);
  box-shadow: 0 12px 36px -8px rgba(233, 196, 110, 0.08);
}

.journey-card__badge-tag {
  position: absolute;
  top: -12px;
  left: 2.5rem;
  background: var(--gold-500);
  color: var(--ink-900);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  box-shadow: 0 4px 12px rgba(233, 196, 110, 0.2);
}

.journey-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--gold-500);
  font-weight: 500;
}

.journey-card__duration {
  background: rgba(244, 239, 230, 0.06);
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  color: var(--sand-100);
  opacity: 0.9;
}

.journey-card__price {
  color: var(--gold-500);
  font-weight: 600;
}

.journey-card__title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--sand-100);
  margin: 0 0 1rem;
}

.journey-card__desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--sand-100);
  opacity: 0.75;
  margin: 0 0 1.75rem;
}

.journey-card__highlights {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.journey-card__highlights li {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--sand-100);
  opacity: 0.85;
  position: relative;
  padding-left: 1.5rem;
}

.journey-card__highlights li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--gold-500);
  font-weight: 600;
}

.journey-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sand-100);
  opacity: 0.65;
  border: 1px solid var(--line);
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
}

.badge--gold {
  color: var(--gold-500);
  border-color: rgba(233, 196, 110, 0.2);
  opacity: 1;
}

.journey-card__footer {
  margin-top: 2rem;
}

.btn--full {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* =============================================================
   STORIES SECTION styling
   ============================================================= */
.section--stories {
  border-top: 1px solid var(--line);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.65rem;
}

@media (max-width: 900px) {
  .stories-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.story-card {
  background: var(--ink-700);
  border-radius: 16px;
  padding: 2.5rem 1.85rem;
  position: relative;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.story-quote-icon {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: 7.5rem;
  line-height: 1;
  color: var(--gold-500);
  opacity: 0.08;
  pointer-events: none;
}

.story-card__quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--sand-100);
  opacity: 0.9;
  margin: 0 0 2.25rem;
}

.story-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sand-100);
  margin: 0 0 0.25rem;
}

.story-card__origin {
  font-size: 0.8rem;
  color: var(--gold-500);
  opacity: 0.9;
  letter-spacing: 0.02em;
}

/* =============================================================
   PLAN A TRIP SECTION styling
   ============================================================= */
.section--plan {
  background: linear-gradient(to bottom, var(--ink-900) 0%, var(--ink-700) 100%);
  border-top: 1px solid var(--line);
}

.plan-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .plan-wrapper {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

.plan-info {
  position: sticky;
  top: 4rem;
}

.plan-info__desc {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--sand-100);
  opacity: 0.8;
  margin: 0 0 3.5rem;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.plan-feature {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.plan-feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(233, 196, 110, 0.15);
  color: var(--gold-500);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-feature__text h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sand-100);
  margin: 0 0 0.35rem;
}

.plan-feature__text p {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--sand-100);
  opacity: 0.7;
  margin: 0;
}

.plan-form-card {
  background: rgba(14, 41, 60, 0.45);
  border: 1px solid var(--line);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 3.5rem;
  box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
  .plan-form-card {
    padding: 2rem 1.5rem;
  }
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1.85rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.85rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--sand-100);
  opacity: 0.9;
  letter-spacing: 0.01em;
}

.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  background: rgba(7, 25, 38, 0.45);
  border: 1px solid rgba(244, 239, 230, 0.15);
  border-radius: 8px;
  padding: 0.95rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--sand-100);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: none;
  background: rgba(7, 25, 38, 0.65);
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(233, 196, 110, 0.15);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 0.25rem;
}

@media (max-width: 600px) {
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--gold-500);
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}

.checkbox-label span {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--sand-100);
  opacity: 0.8;
  user-select: none;
  transition: color 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + span {
  color: var(--gold-500);
  opacity: 1;
}

/* =============================================================
   FOOTER styling
   ============================================================= */
.site-footer {
  background: linear-gradient(180deg, rgba(7, 25, 38, 0.55) 0%, rgba(7, 25, 38, 0.78) 100%), url('../images/gallery-beach.png');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  border-top: 1px solid var(--line);
  padding: 6rem 2rem 4rem;
  position: relative;
  text-shadow: 0 1px 3px rgba(7, 25, 38, 0.5); /* Soft text shadow */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
  gap: 4rem;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.logo--footer {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.footer-brand__desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--sand-100);
  opacity: 0.7;
  max-width: 280px;
  margin: 0 0 2rem;
}

.footer-copyright {
  display: block;
  font-size: 0.8rem;
  color: var(--sand-100);
  opacity: 0.4;
}

.footer-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-500);
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-nav a {
  font-size: 0.92rem;
  color: var(--sand-100);
  opacity: 0.75;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-nav a:hover {
  color: var(--gold-500);
  opacity: 1;
}

.footer-contact-item {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--sand-100);
  opacity: 0.8;
  margin: 0 0 1rem;
}

.footer-contact-item a {
  color: var(--sand-100);
  transition: color 0.2s ease;
}

.footer-contact-item a:hover {
  color: var(--gold-500);
}

.footer-tripadvisor {
  background: rgba(7, 25, 38, 0.65); /* Darker backdrop to keep TripAdvisor card readable over bright sand */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 239, 230, 0.15);
  padding: 1.5rem;
  border-radius: 12px;
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tripadvisor-rating__stars {
  color: #00b087; /* TripAdvisor green */
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-right: 0.5rem;
}

.tripadvisor-rating__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sand-100);
}

.tripadvisor-reviews {
  font-size: 0.8rem;
  color: var(--sand-100);
  opacity: 0.6;
  margin: 0;
}

/* =============================================================
   HOVER SHINE EFFECT FOR IMAGES & CARDS
   ============================================================= */
@keyframes shineSweep {
  0% {
    transform: translateX(-160%) skewX(-25deg);
  }
  100% {
    transform: translateX(160%) skewX(-25deg);
  }
}

/* Base overlay light sweep for cards & image wrappers */
.hero-window::after,
.destination-card::after,
.gallery-item__inner::after,
.journey-card__bg-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0.05) 80%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-160%) skewX(-25deg);
  pointer-events: none;
  z-index: 6;
}

/* Trigger shine effect animation on hover */
.hero-window:hover::after,
.destination-card:hover::after,
.gallery-item:hover .gallery-item__inner::after,
.journey-card:hover .journey-card__bg-container::after {
  animation: shineSweep 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
}