/* ==========================================================================
   Tour Ceylon +94 — Tour package + itinerary
   Ported from the static design's pages.css. Every length, colour and
   duration resolves through a theme.json token, so Global Styles still
   re-skins this section.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Package — a full tour package block
   -------------------------------------------------------------------------- */
.tc94-package + .tc94-package { margin-top: var(--wp--preset--spacing--120); }

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

@media (min-width: 64rem) {
  .tc94-package__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: var(--wp--preset--spacing--110);
    align-items: start;
  }
  /* Alternate which side the summary sits on so the page does not read as
     the same block three times. The columns are uneven, so the widths have
     to mirror too: without that the image lands in the wide column and the
     itinerary is squeezed into the narrow one. */
  .tc94-package--flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .tc94-package--flip .tc94-package__aside { order: 2; }
}

.tc94-package__aside { position: relative; }

@media (min-width: 64rem) {
  .tc94-package__aside {
    position: sticky;
    top: calc(var(--wp--custom--layout--header-height) + var(--wp--preset--spacing--60));
  }
}

.tc94-package__media {
  position: relative;
  border-radius: var(--wp--custom--radius--lg);
  overflow: hidden;
  box-shadow: var(--wp--custom--shadow--media);
}

.tc94-package__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tc94-package__badge {
  position: absolute;
  top: var(--wp--preset--spacing--40);
  left: var(--wp--preset--spacing--40);
}

.tc94-package__summary {
  margin-top: calc(var(--wp--preset--spacing--70) * -1);
  margin-inline: var(--wp--preset--spacing--50);
  position: relative;
  z-index: var(--wp--custom--zindex--raised);
  background-color: var(--wp--preset--color--base);
  border: 1px solid var(--wp--preset--color--line);
  border-top: 3px solid var(--wp--preset--color--accent);
  border-radius: var(--wp--custom--radius--md);
  box-shadow: var(--wp--custom--shadow--lg);
  padding: var(--wp--preset--spacing--60);
}

.tc94-package__summary dl {
  display: grid;
  gap: var(--wp--preset--spacing--40);
}

.tc94-package__summary dt {
  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--preset--color--ocean-deep);
}

.tc94-package__summary dd {
  margin: var(--wp--preset--spacing--10) 0 0;
  font-size: var(--wp--preset--font-size--base);
  color: var(--wp--custom--color--text);
}

.tc94-package__summary .tc94-btn { margin-top: var(--wp--preset--spacing--60); }

.tc94-package__body > * + * { margin-top: var(--wp--preset--spacing--60); }

.tc94-package__title { margin-top: var(--wp--preset--spacing--30); }

/* --------------------------------------------------------------------------
   Itinerary — the numbered route down a page
   -------------------------------------------------------------------------- */
.tc94-itinerary {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.tc94-itinerary > li {
  position: relative;
  padding-left: var(--wp--preset--spacing--90);
  padding-bottom: var(--wp--preset--spacing--70);
}

.tc94-itinerary > li:last-child { padding-bottom: 0; }

/* The connecting line */
.tc94-itinerary > li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: var(--wp--preset--spacing--70);
  bottom: 0;
  width: 2px;
  background-color: var(--wp--preset--color--line);
}

.tc94-itinerary > li:last-child::before { display: none; }

.tc94-itinerary__marker {
  position: absolute;
  left: 0;
  top: var(--wp--preset--spacing--10);
  width: 28px;
  height: 28px;
  border-radius: var(--wp--custom--radius--circle);
  background-color: var(--wp--preset--color--ocean-soft);
  color: var(--wp--preset--color--accent-ink);
  border: 2px solid var(--wp--preset--color--accent);
  display: grid;
  place-items: center;
  font-size: var(--wp--preset--font-size--xxs);
  font-weight: var(--wp--custom--weight--bold);
}

.tc94-itinerary__place {
  font-size: var(--wp--preset--font-size--lg);
  font-weight: var(--wp--custom--weight--bold);
  color: var(--wp--custom--color--text);
  margin: 0;
}

.tc94-itinerary__note {
  margin-top: var(--wp--preset--spacing--20);
  color: var(--wp--custom--color--text-muted);
  font-size: var(--wp--preset--font-size--base);
  max-width: var(--wp--custom--measure--prose);
}

/* On dark sections */
.tc94-section--dark .tc94-itinerary > li::before { background-color: var(--wp--custom--color--border-on-dark); }
.tc94-section--dark .tc94-itinerary__marker {
  background-color: var(--wp--custom--alpha--white-08);
  color: var(--wp--preset--color--highlight);
  border-color: var(--wp--preset--color--highlight);
}
.tc94-section--dark .tc94-itinerary__place { color: var(--wp--custom--color--heading-on-dark); }
.tc94-section--dark .tc94-itinerary__note { color: var(--wp--custom--color--on-dark-muted); }
