/* Tour Packages Section — section styles
   The three-card grid and the tour card itself.
   Loads with the Tour Ceylon +94 theme. Depends on the shared styles
   snippet for the section shell, the container and the small pieces.
   -------------------------------------------------------------------- */

.tc94-tours__grid {
  display: grid;
  gap: var(--wp--preset--spacing--60);
}

@media (min-width: 48rem) {
  .tc94-tours__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
  .tc94-tours__grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: var(--wp--preset--spacing--70);
      align-items: start;
    }

  .tc94-tours__grid > li:nth-child(2) { transform: translateY(calc(var(--wp--preset--spacing--60) * -1)); }

  .tc94-tours__grid > li:nth-child(2) .tc94-tour-card { box-shadow: var(--wp--custom--shadow--md); }

  .tc94-tours__grid > li:nth-child(2) .tc94-tour-card:hover { box-shadow: var(--wp--custom--shadow--xl); }
}

.tc94-tours__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wp--preset--spacing--50);
  margin-top: var(--wp--preset--spacing--90);
  padding-top: var(--wp--preset--spacing--70);
  border-top: 1px solid var(--wp--preset--color--line-strong);
}

.tc94-tours__foot p {
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--custom--color--text-muted);
  max-width: var(--wp--custom--measure--lede);
  margin-right: auto;
}

.tc94-tour-card {
  display: flex;
  flex-direction: column;
  background-color: var(--wp--preset--color--base);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--wp--custom--radius--md);
  box-shadow: var(--wp--custom--shadow--sm);
  overflow: hidden;
  transition: box-shadow var(--tc94-transition-base),
              transform var(--tc94-transition-base);
}

.tc94-tour-card:hover {
  box-shadow: var(--wp--custom--shadow--lg);
  transform: translateY(-4px);
}

.tc94-tour-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--wp--preset--color--surface-subtle);
}

.tc94-tour-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--wp--custom--duration--slow) var(--wp--custom--ease--out);
}

.tc94-tour-card:hover .tc94-tour-card__media img { transform: scale(1.04); }

.tc94-tour-card__badge {
  position: absolute;
  left: var(--wp--preset--spacing--40);
  bottom: var(--wp--preset--spacing--40);
}

.tc94-tour-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--40);
  padding: var(--wp--preset--spacing--60);
  flex: 1;
}

.tc94-tour-card__title { margin: 0; }

.tc94-tour-card__summary {
  font-size: var(--wp--preset--font-size--sm);
  line-height: var(--wp--custom--leading--relaxed);
  color: var(--wp--custom--color--text-muted);
}

.tc94-tour-card__subhead {
  font-size: var(--wp--preset--font-size--xxs);
  font-weight: var(--wp--custom--weight--bold);
  letter-spacing: var(--wp--custom--tracking--caps);
  text-transform: uppercase;
  color: var(--wp--custom--color--text-subtle);
  margin-bottom: calc(var(--wp--preset--spacing--30) * -1 + var(--wp--preset--spacing--10));
}

.tc94-tour-card__foot {
  margin-top: auto;
  padding-top: var(--wp--preset--spacing--50);
  border-top: 1px solid var(--wp--preset--color--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wp--preset--spacing--40);
}

.tc94-tour-card__price {
  font-size: var(--wp--preset--font-size--xs);
  font-weight: var(--wp--custom--weight--semibold);
  color: var(--wp--custom--color--text-subtle);
}
