/* Tour Packages Section Styles */
.tour-packages-section {
  background-color: #f9f9f9;
  padding: 60px 0;
}

.tour-container {
  margin: 0 auto;
  padding: 0 15px;
}

.tour-header {
  text-align: center;
  margin-bottom: 30px;
}

.tour-title {
  color: var(--bs-primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.tour-description {
  max-width: 1000px;
  margin: 0 auto 40px;
  text-align: center;
  line-height: 1.8;
  color: #555;
}

.tour-description a {
  color: var(--bs-success);
  text-decoration: none;
  font-weight: 600;
}

.tour-description a:hover {
  text-decoration: underline;
}

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

.destination-card {
  border: 1px solid var(--bs-success);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  cursor: pointer;
}

.destination-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.destination-image {
  position: relative;
  height: 180px;
  overflow: hidden;
  border-radius: 15px;
}

.destination-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.destination-card:hover .destination-image img {
  transform: scale(1.05);
}

.destination-name {
  background-color: var(--bs-primary);
  color: white;
  margin: 20px 30px;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  position: relative; /* Needed for the pseudo-element positioning */
  overflow: hidden; /* To clip the pseudo-element during animation */
  z-index: 1; /* Ensure text is above the pseudo-element */
  transition: color 0.4s ease 0.1s; /* Delay color change slightly for better effect */
}

.destination-name::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0; /* Initially hidden */
  height: 100%;
  background-color: var(--bs-success); /* Target background color */
  transition: width 0.4s ease-in-out; /* Animation for the slide */
  z-index: -1; /* Place it behind the text */
  border-radius: 5px; /* Match parent's border-radius */
}

.destination-card:hover .destination-name::before {
  width: 100%; /* Slide in on hover */
}

/* Responsive styles */
@media (max-width: 992px) {
  .destinations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .tour-title {
    font-size: 2rem;
  }

  .tour-description {
    text-align: left;
  }
}

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

  .destination-image {
    height: 250px;
  }
}
