/* -------------------------- General Layout -------------------------- */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: #222;
  background: #fff;
  overflow-x: hidden;
}

.tour-container {
  width: 100%;
  overflow: hidden;
}

/* -------------------------- Hero Section -------------------------- */
.hero-tour {
  height: 100vh;
  background: url('/img/BJ/BJ_the_great_wall_bluesky.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.hero-tour-title {
  font-size: 3rem;
  font-weight: 700;
}

.hero-tour-subtitle {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}


/* -------------------------- Day Sections -------------------------- */
.day {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 4rem 2rem;
  min-height: 100vh;
  box-sizing: border-box;
}

.day:nth-child(even) {
  flex-direction: row-reverse;
}

.day-text {
  flex: 1 1 40%;
  padding: 1rem;
}

.day-text p .stay,
.stay {
  font-weight: bold;
}

/* -------------------------- Image & Gallery -------------------------- */
.day-image,
.day-gallery {
  flex: 1 1 60%;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.day-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* -------------------------- Horizontal Scroll Gallery -------------------------- */
.day-gallery {
  flex-wrap: nowrap;          /* keep images in a single row */
  overflow-x: auto;           /* horizontal scroll */
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  scrollbar-width: thin;      /* Firefox */
}

.day-gallery::-webkit-scrollbar {
  height: 8px;
}

.day-gallery::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
}

.day-gallery img {
  flex: 0 0 auto;             /* prevent shrinking */
  width: 300px;               /* fixed width */
  height: 200px;              /* fixed height */
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  cursor: grab;
  transition: transform 0.3s ease;
}

.day-gallery img:active {
  cursor: grabbing;
  transform: scale(0.95);
}

/* -------------------------- Fade-in Animation -------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------- Transition Sections -------------------------- */
.transition {
  text-align: center;
  font-size: 2rem;
  font-weight: 500;
  padding: 3rem 1rem;
  background: linear-gradient(to right, #fff, #f9f9f9, #fff);
  color: #333;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlide 1.2s ease forwards;
}

@keyframes fadeSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------------- Responsive -------------------------- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .day {
    flex-direction: column !important;
    padding: 2rem 1rem;
  }

  .day-text,
  .day-image,
  .day-gallery {
    flex: 1 1 100%;
  }

  .day-gallery img {
    width: 100%;   /* full width on mobile */
    height: auto;
  }
}
