/* Only Tanzania itinerary previews; the Kenya cards and full itinerary text
   continue to use the original theme. The 240px photo and 25px copy padding
   match the existing country card design. */
:is(.legacy-country-tanzania .legacy-country-journey, .leo-tanzania-card) {
  height: auto;
  min-height: 0;
}
:is(.legacy-country-tanzania .legacy-country-journey, .leo-tanzania-card) :is(h2, h3, .safari-name, .luxury-tour-image > strong) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 0;
}
:is(.legacy-country-tanzania .legacy-country-journey, .leo-tanzania-card) :is(p, .safari-route) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  min-height: 0;
  max-height: 4.8em;
  line-height: 1.6;
}
:is(.legacy-country-tanzania .legacy-country-journey, .legacy-country-journey.leo-tanzania-card) > img {
  width: 100%;
  height: 240px;
  flex: 0 0 240px;
  object-fit: cover;
}
:is(.legacy-country-tanzania .legacy-country-journey, .legacy-country-journey.leo-tanzania-card) > div {
  padding: 25px;
  min-height: 0;
  flex: 0 0 auto;
}
.legacy-country-tanzania .legacy-country-journey-grid {
  align-items: stretch;
}
/* Remove leftover minimum-height reserves from other Tanzania card variants. */
.leo-tanzania-card :is(.safari-body, .tz-tour-copy, .northern-itinerary-copy) {
  min-height: 0;
  padding: 25px;
  flex: 0 0 auto;
}
.leo-tanzania-card :is(.safari-photo, .tz-tour-image, .northern-itinerary-image, .luxury-tour-image) {
  height: 240px;
  min-height: 0;
  flex: 0 0 240px;
}
