/* --- Global Styles & Resets --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Container (Global & Section Specific) --- */
.container {
  width: 100%;
  max-width: 1200px; /* Max width cho nội dung thông thường */
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px; /* Padding mặc định */
  padding-right: 15px;
  position: relative; /* Context mặc định */
}

/* --- Section Title --- */
.section-title {
  font-size: 2.5em;
  color: #333;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

/* --- Video Section --- */
.video {
  width: 100%;
  height: 90vh;
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
}

.video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Why Vietnam Section --- */
.why-vietnam {
  padding-top: 40px;
  padding-bottom: 40px;
  background-color: #f9f9f9;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-item {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-item .image-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 20px;
}

.feature-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.feature-item h3 {
  font-size: 1.5em;
  color: #333;
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 1em;
  color: #555;
}

/* --- Featured Tours, Featured Destinations & Exciting Activities Sections (Nơi chứa Slider) --- */
.featured-tours,
.featured-destinations,
.exciting-activities-slider {
  /* Added .exciting-activities-slider here */
  padding-top: 80px;
  padding-bottom: 80px;
  padding-left: 70px;
  padding-right: 70px;
  overflow: hidden;
}

.featured-tours {
  background: #fff;
}
.featured-destinations {
  background: #f9f9f9; /* Example background, adjust as needed */
}
.exciting-activities-slider {
  background: #fff; /* Example background, or #f9f9f9 like destinations */
}

/* Container bên trong các section slider: FULL WIDTH và là CONTEXT ĐỊNH VỊ */
.featured-tours .container,
.featured-destinations .container,
.exciting-activities-slider .container {
  /* Added .exciting-activities-slider .container */
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  position: relative;
}

/* --- Custom Slider Styles (chung cho tour, destination, activity) --- */
.swiper {
  margin-top: 40px;
  margin-bottom: 40px;
}

.swiper-wrapper {
  height: auto;
}

.swiper-slide {
  box-sizing: border-box;
  height: 100%;
}

/* --- Tour Item Styles --- */
.tour-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.tour-image-container {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.tour-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.tour-item:hover .tour-image-container img {
  transform: scale(1.05);
}

.tour-duration {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 500;
}

.tour-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tour-title {
  font-size: 1.25em;
  margin-bottom: 10px;
  color: #333;
  font-weight: 600;
}

.tour-excerpt {
  color: #555;
  font-size: 0.9em;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

.tour-price-wrapper {
  margin-top: auto;
}

.tour-price {
  color: #2980b9;
  font-weight: bold;
  font-size: 1.15em;
}

/* --- Activity Card Styles (Mimicking Tour Item) --- */
.activity-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.activity-image-container {
  position: relative;
  height: 250px; /* Same as tour image */
  overflow: hidden;
}

.activity-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.activity-card:hover .activity-image-container img {
  transform: scale(1.05);
}

.activity-content-details {
  padding: 20px; /* Same as tour content */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.activity-card-title {
  font-size: 1.25em; /* Same as tour title */
  margin-bottom: 10px;
  color: #333;
  font-weight: 600;
}

.activity-card-excerpt {
  color: #555; /* Same as tour excerpt */
  font-size: 0.9em;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

/* --- Destination Item Styles --- */
.destination-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.destination-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.destination-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.destination-item:hover img {
  transform: scale(1.1);
}

.destination-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 15px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    transparent 100%
  );
  color: #fff;
  font-size: 1.3em;
  font-weight: 600;
  text-align: center;
}

/* --- Slider Navigation Buttons (External - Common for all sliders) --- */
.tour-nav-prev,
.tour-nav-next,
.destination-nav-prev,
.destination-nav-next,
.activity-nav-prev,
.activity-nav-next {
  /* Added activity nav classes */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, box-shadow 0.3s ease,
    transform 0.2s ease, opacity 0.3s ease;
  opacity: 1;
}

.tour-nav-prev:hover,
.tour-nav-next:hover,
.destination-nav-prev:hover,
.destination-nav-next:hover,
.activity-nav-prev:hover,
.activity-nav-next:hover {
  /* Added activity nav classes */
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.tour-nav-prev svg,
.tour-nav-next svg,
.destination-nav-prev svg,
.destination-nav-next svg,
.activity-nav-prev svg,
.activity-nav-next svg {
  /* Added activity nav classes */
  width: 22px;
  height: 22px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: "" !important;
}

.tour-nav-prev[disabled],
.tour-nav-next[disabled],
.destination-nav-prev[disabled],
.destination-nav-next[disabled],
.activity-nav-prev[disabled],
.activity-nav-next[disabled] {
  /* Added activity nav classes */
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.tour-nav-prev,
.destination-nav-prev,
.activity-nav-prev {
  /* Added activity nav class */
  left: -60px;
}
.tour-nav-next,
.destination-nav-next,
.activity-nav-next {
  /* Added activity nav class */
  right: -60px;
}

/* --- Slider Pagination (Common for all sliders) --- */
.swiper-pagination {
  position: absolute !important;
  bottom: -30px;
  left: 50% !important;
  transform: translateX(-50%);
  display: flex !important;
  justify-content: center;
  align-items: center;
  padding-top: 10px;
  z-index: 5;
}

.swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  opacity: 0.6;
}

.swiper-pagination-bullet:hover {
  background-color: #aaa;
  transform: scale(1.1);
}

.swiper-pagination-bullet-active {
  background-color: #2980b9; /* Common active color */
  opacity: 1;
  transform: scale(1.1);
}
/* Specific classes for pagination divs in HTML ensure JS targets them correctly,
   but common .swiper-pagination-bullet-active style is applied. */

/* --- Buttons (View All) --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 0.95em;
}

.btn-primary {
  background: #2980b9;
  color: #fff;
}
.btn-secondary {
  background: #2980b9; /* Made secondary same as primary for consistency, adjust if needed */
  color: #fff;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.view-all-tours,
.view-all-destinations,
.view-all-activities {
  /* Added .view-all-activities */
  text-align: center;
  margin-top: 50px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1200px) {
  .featured-tours,
  .featured-destinations,
  .exciting-activities-slider {
    padding-left: 40px;
    padding-right: 40px;
  }
  .tour-nav-prev,
  .destination-nav-prev,
  .activity-nav-prev {
    left: -55px;
  }
  .tour-nav-next,
  .destination-nav-next,
  .activity-nav-next {
    right: -55px;
  }
}

@media (max-width: 992px) {
  .section-title {
    font-size: 2.2em;
  }
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .featured-tours,
  .featured-destinations,
  .exciting-activities-slider {
    padding-left: 20px;
    padding-right: 20px;
  }
  .tour-nav-prev,
  .tour-nav-next,
  .destination-nav-prev,
  .destination-nav-next,
  .activity-nav-prev,
  .activity-nav-next {
    width: 40px;
    height: 40px;
  }
  .tour-nav-prev,
  .destination-nav-prev,
  .activity-nav-prev {
    left: -15px;
  }
  .tour-nav-next,
  .destination-nav-next,
  .activity-nav-next {
    right: -15px;
  }
}

@media (max-width: 768px) {
  .video {
    height: 60vh;
  }
  .section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .featured-tours,
  .featured-destinations,
  .exciting-activities-slider {
    padding-left: 15px;
    padding-right: 15px;
    overflow: visible;
  }
  .tour-nav-prev,
  .tour-nav-next,
  .destination-nav-prev,
  .destination-nav-next,
  .activity-nav-prev,
  .activity-nav-next {
    display: none; /* Hide all external nav buttons on smaller screens */
  }
  .swiper-pagination {
    bottom: -20px; /* Adjust if needed, or make relative */
    /* To make pagination relative and below slider on mobile:
    position: relative !important;
    bottom: auto !important;
    transform: none !important;
    left: auto !important;
    margin-top: 20px;
    */
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.7em;
  }
  .tour-title,
  .activity-card-title {
    /* Added activity title */
    font-size: 1.1em;
  }
  .destination-name {
    font-size: 1.15em;
    padding: 15px 10px;
  }
  .btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}

/* timeline */
.timeline-section {
    position: relative;
    padding: 50px 20px;
    color: white;
}

.timeline-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.timeline-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.timeline-title {
    font-size: 2rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.timeline-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.timeline-month {
    background: #ffd54f;
    border: none;
    padding: 8px 16px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.timeline-month.active,
.timeline-month:hover {
    background: #f57c00;
    color: white;
}

.timeline-events {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.month-events {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.event-card {
    background: white;
    color: black;
    width: 230px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.event-info {
    padding: 10px;
}

.event-date {
    font-size: 0.85rem;
    color: #555;
}

.event-title {
    font-size: 1rem;
    font-weight: bold;
}