/* --- General Layout --- */
.package-detail-section {
  padding: 2.5rem 0;
}

.booking-info {
  position: sticky; /* Makes the booking panel stick on scroll on larger screens */
  top: 20px;
}

/* --- Image Gallery --- */
.main-image-wrapper {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  max-width: 100%;
}

.main-image-wrapper img {
  width: 100%;
  display: block;
}

.thumbnail-gallery {
  display: flex;
  gap: 1rem;
  justify-content: center; /* Centers the thumbnail images */
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid #eee;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
  border-color: var(--accent-gold);
}

/* --- Booking Information Panel --- */
.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.breadcrumb-item a {
  text-decoration: none;
  color: var(--primary-maroon);
}

.package-title {
  font-family: var(--font-heading);
  color: var(--primary-maroon);
  font-size: 2.5rem;
  font-weight: 700;
  overflow-wrap: break-word; /* Prevents long words from overflowing */
}

.package-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

/* Booking Configurator */
.booking-configurator {
  background-color: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.config-item {
  margin-bottom: 1.5rem;
}
.config-item:last-child {
  margin-bottom: 0;
}

.config-label {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--dark-text);
}

/* Package Inclusions */
.package-inclusions {
  margin-bottom: 1.5rem;
}
.inclusions-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 1rem;
}
.package-inclusions .inclusions-list {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.8;
}

/* Price Summary */
.price-summary {
  margin-bottom: 1.5rem;
}
.price-line {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: #555;
}
.price-line span:last-child {
  font-weight: 500;
}
.summary-divider {
  border-top: 2px solid #eee;
  margin-top: 1rem;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 700;
}
.grand-total-price {
  font-family: var(--font);
  color: var(--primary-maroon);
  font-size: 2rem;
  font-weight: 800;
}

/* --- Detailed Information Tabs --- */
.detailed-info-tabs {
  padding: 2rem 0 4rem 0;
}

.nav-tabs {
  border-bottom: 2px solid #eee;
}

.nav-tabs .nav-link {
  border: none;
  color: #666;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
}

.nav-tabs .nav-link.active {
  color: var(--primary-maroon);
  border-bottom: 2px solid var(--primary-maroon);
}

.tab-content {
  padding: 2rem;
  border: 1px solid #eee;
  border-top: none;
  border-radius: 0 0 10px 10px;
}

.tab-content h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

.tab-content ul {
  padding-left: 1.2rem;
}
.tab-content p,
.tab-content li {
  line-height: 1.8;
  color: #555;
}

/* --- Responsive Styles for Small Screens --- */
@media (max-width: 991.98px) {
  /* Disable sticky positioning on mobile */
  .booking-info {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .package-detail-section {
    padding: 1.5rem 0;
  }

  /* Reduce font sizes to prevent overflow */
  .package-title {
    font-size: 1.8rem;
  }
  .package-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  /* Convert nav tabs to a vertical list */
  .detailed-info-tabs {
    padding-top: 1rem;
  }
  .nav-tabs {
    flex-direction: column;
    border-bottom: none;
  }
  .nav-tabs .nav-item,
  .nav-tabs .nav-link {
    width: 100%;
  }
  .nav-tabs .nav-link {
    border: 1px solid #eee;
    border-radius: 0 !important;
    margin-bottom: -1px;
    text-align: center;
    background-color: #fdfdfd;
  }
  .nav-tabs .nav-link.active {
    background-color: var(--primary-maroon);
    color: white;
    border-color: var(--primary-maroon);
    border-bottom: 1px solid var(--primary-maroon);
  }
  .nav-tabs .nav-item:first-child .nav-link {
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
  }
  .nav-tabs .nav-item:last-child .nav-link {
    margin-bottom: 0;
  }
  .tab-content {
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 1.5rem;
  }
}
