/* Fix for the anchor tag wrapping the card so it doesn't style the text blue */
a:has(> .package-card),
.packages-grid > a,
.trip-list > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.package-card {
  background-color: #efefef; /* Clean white background */
  border-bottom: 3px solid #2c3e20; /* Subtle border */
  border-radius: 12px;
  max-width: 100%;
  width: 100%;
  height: 100%; /* Fill the grid height */
  padding: 0; /* Remove padding to let image reach edges */
  box-sizing: border-box;
  font-family: var(--font-body, sans-serif);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden; /* Ensure image respects border radius */
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.package-card__image-wrapper {
  width: 100%;
  height: 240px; /* Fixed uniform height for all images */
  overflow: hidden;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.package-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.5s ease;
}

.package-card:hover .package-card__image {
  transform: scale(1.05);
}

/* Hide extra elements that are NOT in the reference design */
.package-card__meta,
.package-card__meta svg,
.package-card__stars,
.package-card__destinations {
  display: none;
}

.package-card__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Takes up remaining space, ensuring uniform bottom alignment */
  padding: 24px;
}

.package-card__content h3,
.package-card h3 {
  color: #2c3e20; /* Dark, professional charcoal/olive */
  font-size: 22px;
  font-weight: 400; /* User specifically requested not bold */
  font-family: var(--font-heading, serif); /* Creative font usage */
  text-align: left;
  margin: 0 0 16px 0;
  line-height: 1.4;
  padding: 0;
  transition: color 0.3s ease;
}

.package-card:hover h3 {
  color: #1a2513; /* Slightly darker on hover */
}

.package-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 0 0;
  border-top: 1px solid #c4c4c4; /* Subtle clean divider */
  margin-top: auto; /* Pushes the bottom section to the very end of the card */
}

.package-card__price {
  color: #2c3e20; /* User requested green, not orange */
  font-size: 20px;
  font-weight: 500;
  font-family: var(--font-ui, sans-serif);
}

.package-card__arrow {
  background-color: #2c3e20; /* User requested green, not orange */
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.package-card:hover .package-card__arrow {
  background-color: #F37021; /* Pop of orange only on hover to keep it dynamic */
  transform: scale(1.05);
}

/* Grid layout for displaying multiple cards */
.packages-grid,
.trip-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px 0;
  width: 100%;
  margin: 0 auto;
  align-items: stretch; /* Ensures grid items stretch to match the tallest item */
}
