/* Hotel offer cards (Partials/TvIbe/Offer/Show/PackageImagesExtended.html) */
.tov-hcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0 0 1.875rem;
  padding: 0;
}
.tov-hcard {
  display: flex;
  min-width: 0;
  margin: 0;
  list-style: none;
}
.tov-hcard__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border: 1px solid #e6e8ec;
  border-radius: .5rem;
  background: #fff;
  color: #333;
  text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease;
}
.tov-hcard__link:hover,
.tov-hcard__link:focus-visible {
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08), 0 8px 20px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
  color: #333;
}
.tov-hcard__link:focus-visible {
  outline: 2px solid #2c3d51;
  outline-offset: 2px;
}

.tov-hcard__img {
  position: relative;
  display: block;
  flex: none;
  height: 11.25rem; /* same image height in every card */
  overflow: hidden;
  background: #eef0f3;
}
.tov-hcard__img img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}
.tov-hcard__board,
.tov-hcard__badge {
  position: absolute;
  top: .625rem;
  padding: .25rem .5rem;
  border-radius: .25rem;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
}
.tov-hcard__board {
  left: .625rem;
  background: #fdcd0b;
  color: #2c3d51;
}
.tov-hcard__badge {
  right: .625rem;
  background: #2c3d51;
  color: #fff;
}
.tov-hcard__region {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1.25rem .625rem .375rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
  color: #fff;
  font-size: .75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tov-hcard__region:empty {
  display: none;
}

.tov-hcard__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: .75rem;
}
.tov-hcard__name {
  display: block;
  color: #2c3d51;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}
/* hotel category: up to five stars, half stars via width */
.tov-hcard__stars {
  display: inline-block;
  height: .875rem;
  vertical-align: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f5a700' d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") left center / .875rem .875rem repeat-x;
}
.tov-hcard__stars--1-0 { width: .875rem; }
.tov-hcard__stars--1-5 { width: 1.3125rem; }
.tov-hcard__stars--2-0 { width: 1.75rem; }
.tov-hcard__stars--2-5 { width: 2.1875rem; }
.tov-hcard__stars--3-0 { width: 2.625rem; }
.tov-hcard__stars--3-5 { width: 3.0625rem; }
.tov-hcard__stars--4-0 { width: 3.5rem; }
.tov-hcard__stars--4-5 { width: 3.9375rem; }
.tov-hcard__stars--5-0 { width: 4.375rem; }

.tov-hcard svg {
  flex: none;
  width: .8125rem;
  height: .8125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tov-hcard__loc {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-top: .1875rem;
  min-width: 0;
  color: #5f6673;
  font-size: .8125rem;
}
/* location in one line, long names end with "…" (full text in the title attribute) */
.tov-hcard__loc-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tov-hcard__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin: .625rem 0 .75rem;
}
.tov-hcard__chips:empty {
  display: none;
}
.tov-hcard__chip {
  display: inline-flex;
  align-items: center;
  gap: .3125rem;
  padding: .25rem .5625rem;
  border-radius: 999px;
  background: #f1f3f6;
  color: #333;
  font-size: .75rem;
  line-height: 1.2;
}
.tov-hcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: auto;
}
.tov-hcard__price {
  color: #2c3d51;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.tov-hcard__price small {
  display: block;
  margin-top: .25rem;
  color: #5f6673;
  font-size: .6875rem;
  font-weight: 400;
}
.tov-hcard__cta {
  padding: .5rem .625rem;
  border-radius: .375rem;
  background: #2c3d51;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .15s ease;
}
.tov-hcard__link:hover .tov-hcard__cta {
  background: #1d2a39;
}

@media (prefers-reduced-motion: reduce) {
  .tov-hcard__link,
  .tov-hcard__cta {
    transition: none;
  }
  .tov-hcard__link:hover,
  .tov-hcard__link:focus-visible {
    transform: none;
  }
}
