/* Private tour / train / road trip / motorcycle service pages */

.ts-page {
  --ts-muted: #f3f4f6;
}

.ts-hero {
  position: relative;
  min-height: clamp(320px, 52vh, 520px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.ts-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ts-hero__media--placeholder {
  background: var(--kj-footer) center / cover no-repeat
    url("../images/tour-placeholder.a8c12911f427.svg");
}

.ts-hero__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  aspect-ratio: unset !important;
}

.ts-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, calc(var(--ts-hero-overlay, 0.45)));
}

.ts-hero__content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 3rem;
  max-width: 900px;
}

.ts-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.ts-hero__subtitle {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
  opacity: 0.95;
}

.ts-band {
  padding: 4rem 0;
}

.ts-band--muted {
  background: var(--ts-muted);
}

.ts-section__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--kj-heading);
  line-height: 1.2;
}

.ts-section__title--center {
  text-align: center;
}

.ts-benefit__grid,
.ts-features__grid,
.ts-promo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 42%);
  gap: 2.5rem;
  align-items: center;
}

.ts-features__grid {
  grid-template-columns: minmax(260px, 40%) minmax(0, 1fr);
}

.ts-benefit__heading,
.ts-features__intro {
  font-size: 1.125rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.ts-benefit__heading em,
.ts-features__intro em {
  font-style: italic;
  color: var(--kj-heading);
}

.ts-pillars {
  display: grid;
  gap: 1.25rem;
}

.ts-pillars--compact {
  margin-top: 1rem;
}

.ts-pillar__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--kj-heading);
}

.ts-pillar__body {
  margin: 0;
  line-height: 1.6;
  color: var(--kj-text);
}

.ts-figure__caption {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: #666;
  text-align: center;
}

.ts-benefit__img,
.ts-features__img,
.ts-promo__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.ts-itinerary__list {
  max-width: 920px;
}

.ts-itinerary__item {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.ts-itinerary__item:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ts-itinerary__summary {
  padding: 1.1rem 2rem 1.1rem 0;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  color: var(--kj-heading);
}

.ts-itinerary__summary::-webkit-details-marker {
  display: none;
}

.ts-itinerary__summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}

.ts-itinerary__item[open] .ts-itinerary__summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.ts-itinerary__body {
  padding: 0 0 1.25rem;
  line-height: 1.65;
  font-size: 0.98rem;
}

.ts-pricing__inner {
  max-width: 760px;
}

.ts-pricing__body {
  font-size: 1.05rem;
  line-height: 1.65;
}

.ts-pricing__cta {
  margin: 1.75rem 0 0;
}

.ts-info-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ts-info-card {
  background: #fff;
  border-radius: 4px;
  padding: 1.25rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.ts-info-card__media {
  margin: -1.25rem -1.25rem 1rem;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
}

.ts-info-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ts-info-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.ts-logistics__inner,
.ts-price-guide__inner {
  max-width: 820px;
}

.ts-price-guide__notes {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ts-contact__intro {
  margin: 0 0 1.5rem;
  max-width: 640px;
  line-height: 1.6;
}

.ts-faq__sub {
  margin: 0 0 0.5rem;
  color: #555;
  line-height: 1.55;
}

.ts-faq__ask {
  margin: 1.5rem 0 0;
}

/* Other tours — 3-up card grid (matches live WP layout) */
.ts-cross-sell {
  background: #fff;
  padding: 4rem 0 5rem;
}

.ts-cross-sell__inner {
  max-width: 1280px;
}

.ts-cross-sell__heading {
  margin: 0 0 2.5rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--kj-heading);
  text-align: center;
  line-height: 1.25;
}

.ts-cross-sell__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}

.ts-cross-sell__card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ts-cross-sell__media {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.ts-cross-sell__img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ts-cross-sell__card:hover .ts-cross-sell__img {
  transform: scale(1.04);
}

.ts-cross-sell__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
}

.ts-cross-sell__title {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--kj-heading);
}

.ts-cross-sell__title a {
  color: inherit;
  text-decoration: none;
}

.ts-cross-sell__title a:hover {
  color: var(--kj-accent);
}

.ts-cross-sell__desc {
  margin: 0 0 1.5rem;
  flex: 1;
  line-height: 1.6;
  font-size: 0.9375rem;
  color: #555;
}

.ts-cross-sell__btn {
  display: inline-block;
  margin-top: auto;
  padding: 0.7rem 1.35rem;
  background: var(--kj-accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  transition: filter 0.2s ease;
}

.ts-cross-sell__btn:hover {
  filter: brightness(0.92);
  color: #fff;
}

.btn--primary {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  background: var(--kj-accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
}

.btn--primary:hover {
  filter: brightness(0.92);
  color: #fff;
}

.btn--secondary {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: transparent;
  color: var(--kj-heading);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--kj-heading);
  border-radius: 2px;
}

.btn--secondary:hover {
  background: var(--kj-heading);
  color: #fff;
}

@media (max-width: 900px) {
  .ts-benefit__grid,
  .ts-features__grid,
  .ts-promo__grid {
    grid-template-columns: 1fr;
  }

  .ts-features__grid {
    display: flex;
    flex-direction: column;
  }

  .ts-info-cards__grid {
    grid-template-columns: 1fr;
  }

  .ts-cross-sell__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ts-cross-sell__grid {
    grid-template-columns: 1fr;
  }

  .ts-cross-sell {
    padding: 3rem 0 4rem;
  }
}

/* Group tour pages — hero CTAs and booking shell */
.ts-hero__note {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.92;
}

.ts-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.ts-hero__actions .btn {
  display: inline-block;
  padding: 0.75rem 1.35rem;
  font-weight: 600;
  border-radius: 2px;
  text-decoration: none;
}

.tour-shell__section {
  padding: 0;
}

.tour-shell__section.ts-band {
  padding: 2.5rem 0;
}

.tour-shell .ts-itinerary,
.tour-shell .ts-pricing,
.tour-shell .ts-feature-strip,
.tour-shell .ts-faq,
.tour-shell .ts-contact {
  margin-bottom: 0;
}

.tour-shell .ts-faq,
.tour-shell .ts-contact {
  padding-left: 0;
  padding-right: 0;
}

.ts-feature-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.ts-feature-strip__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--kj-heading);
}

.ts-feature-strip__body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.ts-cross-sell--muted {
  background: var(--ts-muted);
}

.group-tours-showcases .home-travel-row:first-child {
  padding-top: 3rem;
}

@media (max-width: 900px) {
  .ts-feature-strip__grid {
    grid-template-columns: 1fr;
  }
}
