/* Tour cards on the homepage, destination pages and search results share this layout. */
.tf-dest-grid, .tf-tour-rail {
  --tf-tour-gap: clamp(16px, 2vw, 26px);
  --tf-tour-columns: 3;
  --tf-tour-width: calc((100% - var(--tf-tour-gap) - var(--tf-tour-gap)) / 3);
}
.tf-dest-grid {
  display: grid;
  grid-template-columns: repeat(var(--tf-tour-columns), minmax(0, 1fr));
  align-items: stretch;
  gap: var(--tf-tour-gap);
  margin-top: 18px;
}
#gygCardSlider.tf-tour-rail {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: var(--tf-tour-width);
  align-items: stretch;
  justify-content: start;
  gap: var(--tf-tour-gap);
  width: 100%;
  overflow-x: auto;
}
.tf-dest-card[hidden], .tf-dest-media img[hidden] { display: none; }
.tf-dest-card-link:focus-visible { outline: 3px solid #2874cc; outline-offset: 3px; }
.tf-card-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.tf-dest-card {
  --dest-ink: #112b48;
  --dest-blue: #145abb;
  --dest-line: #d2e1ec;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  width: 100%;
  margin: 0;
  text-align: left;
  font-family: 'Poppins', Arial, sans-serif;
  min-width: 0;
  border: 1px solid var(--dest-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(22,48,74,.08);
}
.tf-dest-card-link, .tf-dest-card-link:hover {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  border-radius: inherit;
  color: var(--dest-ink);
  text-decoration: none;
}
.tf-dest-media {
  width: 100%;
  flex: none;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(125deg, #acc9dc, #dfedf6);
}
.tf-dest-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tf-dest-media > img {
    transition: transform 320ms ease-in-out;
  }
  .tf-dest-media:hover > img {
    transform: scale(1.10);
  }
}
.tf-dest-meeting {
  position: absolute;
  top: 12px;
  right: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 10px;
  border: 1px solid #d99e69;
  border-radius: 999px;
  background: #ffdbb5;
  color: var(--dest-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.tf-dest-details {
  flex: 1;
  padding: clamp(16px, 1.7vw, 23px);
  border-top: 3px solid #abd4ea;
  background: linear-gradient(155deg, #edf6fb, #fff 80%);
}
.tf-dest-details h3 {
  margin: 0;
  color: var(--dest-ink);
  font: 700 clamp(23px, 2vw, 30px)/1.13 Georgia, serif;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.tf-dest-facts { display: flex; flex-wrap: wrap; gap: 5px 13px; margin-top: 12px; color: #375779; font-size: 13px; font-weight: 600; }
.tf-dest-details .tf-dest-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  overflow-wrap: anywhere;
  margin: 10px 0 0;
  color: #425568;
  font-size: 15px;
  line-height: 1.5;
}
.tf-dest-commission { margin: 10px 0 0; color: #425568; font-size: 13px; }
.tf-dest-booking { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 9px; padding: 13px clamp(16px, 1.7vw, 23px); background: #f2f7fc; border-top: 1px solid var(--dest-line); }
.tf-dest-button { display: inline-flex; align-items: center; gap: 9px; padding: 11px 15px; border-radius: 7px; background: var(--dest-blue); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.5; }
.tf-dest-card-link:hover .tf-dest-button { background: #0e4b9f; }
.tf-dest-price { margin-left: auto; color: #41546a; font-size: 13px; }
.tf-dest-price strong { color: var(--dest-ink); font-size: 19px; font-variant-numeric: tabular-nums; }

@media (max-width: 991px) {
  .tf-dest-grid, .tf-tour-rail {
    --tf-tour-columns: 2;
    --tf-tour-width: calc((100% - var(--tf-tour-gap)) / 2);
  }
}
@media (max-width: 620px) {
  .tf-dest-grid, .tf-tour-rail { --tf-tour-columns: 1; --tf-tour-width: 100%; }
}
