/* Hero Section with Background Image */
.hero-section {
  background-image: url('/images/ha-giang/ma-pi-leng.jpeg');
  background-image: image-set(url('/images/ha-giang/ma-pi-leng.webp') type('image/webp'), url('/images/ha-giang/ma-pi-leng.jpeg') type('image/jpeg'));
}
@media (max-width: 800px) {
  .hero-section { background-image: image-set(url('/images/ha-giang/ma-pi-leng-800.webp') type('image/webp'), url('/images/ha-giang/ma-pi-leng.jpeg') type('image/jpeg')); }
}

/* Tip box */

.tip-content p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.tip-content li {
  font-size: 0.9rem;
  list-style-type: disc;
  list-style-position: inside;
  margin-bottom: 0.5rem;
}

/* Route section */

.route-container {
  max-width: 900px;
  margin: 0 auto;
}

.route-item {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 2rem;
}

.route-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.route-item h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.route-map {
  width:100%;
  height:auto;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


.route-item h3::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary);
}

.route-image {
  width: 60%;
  height: auto;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.route-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.route-item:hover .highlight-image img {
  transform: scale(1.03);
}

.route-overview {
  /* font-size: 0.95rem; */
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.route-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.route-description p {
  margin-bottom: 1.5rem;
}

.route-description a {
  color: var(--primary);
}

.route-description li {
  list-style-type: disc;
  list-style-position: inside;
  margin-bottom: 0.5rem;
}

.route-secondary-list-item li {
  list-style-type: circle;
  list-style-position: inside;
  /* margin-bottom: 0.5rem; */
  margin-left: 0.8rem;
}

/* Accessibility section */
#continue-travel-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-top: 3rem;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.75rem;
}

#continue-travel-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary);
}

/* Media Queries */
@media (min-width: 480px) {
  .route-overview {
    font-size: 1.1rem;
  }

  .route-description {
    font-size: 1.1rem;
  }

  .dish-content h3,
  .day-trip-content h3,
  .where-to-stay-content h3,
  .season-card h3,
  .transport-card h3 {
    font-size: 1.2rem;
  }

  .dish-content p,
  .day-trip-content p,
  .where-to-stay-content p {
    font-size: 1rem;
  }

  #continue-travel-title {
    font-size: 2rem;
  }
}

@media (min-width: 640px) {
  .route-item {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
  }

  .route-image {
    margin-bottom: 1.5rem;
  }

  .dishes-grid,
  .day-trips-grid,
  .where-to-stay-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .route-item h3 {
    font-size: 1.75rem;
  }

  .dish-image,
  .day-trip-image,
  .where-to-stay-image {
    height: 200px;
  }

  .dish-content,
  .day-trip-content,
  .where-to-stay-content {
    padding: 1.5rem;
  }

  .dish-content h3,
  .day-trip-content h3,
  .where-to-stay-content h3 {
    font-size: 1.25rem;
  }
  #continue-travel-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .dishes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .where-to-stay-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
