/* Картки результатів пошуку (за референсом модуля Otpusk): фото з кільцем рейтингу + опис + плашка ціни */
.hc {
  --hc-blue: #3d8fd6;
  --hc-orange: #f7941d;
  --hc-text: #555;
  --hc-muted: #8a8f96;
  position: relative;
  display: grid;
  grid-template-columns: 46% 1fr;
  min-height: 165px;
  background: #fff;
  border-radius: .25rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .12);
  transition: box-shadow .2s;
  color: var(--hc-text);
}
.hc:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .18); }

.hc__photo { position: relative; overflow: hidden; border-radius: .25rem 0 0 .25rem; background: #e9ecef; }
.hc__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Кільце рейтингу: кількість оцінок + рейтинг, заповнення = рейтинг / 10 */
.hc__rating { position: absolute; top: 10px; right: 10px; width: 58px; height: 58px; border-radius: 50%; background: #fff; }
.hc__rating svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.hc__rating-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.hc__rating-count { font-size: .6rem; color: var(--hc-blue); text-align: center; }
.hc__rating-count small { display: block; font-size: .5rem; }
.hc__rating-value { font-size: .95rem; color: #555; margin-top: .15rem; }

.hc__body { display: flex; flex-direction: column; padding: .8rem .9rem; min-width: 0; }
.hc__title { display: flex; align-items: baseline; gap: .35rem; margin: 0 0 .15rem; font-size: 1.1rem; font-weight: 600; color: #555; min-width: 0; }
.hc__stars { color: #f5b301; font-size: .75rem; letter-spacing: -1px; flex: none; }
.hc__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc__name a { color: inherit; text-decoration: none; }
.hc__name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }   /* уся картка — посилання на тур */
.hc__name a:focus-visible { outline: 0; }
.hc:has(.hc__name a:focus-visible) { outline: 2px solid var(--hc-blue); outline-offset: 2px; }

.hc__line { display: flex; align-items: center; gap: .4rem; font-size: .85rem; margin-bottom: .2rem; min-width: 0; }
.hc__line i, .hc__line svg { flex: none; width: 1.1rem; text-align: center; }
.hc__line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc__place { color: var(--hc-blue); }
.hc__place span { text-decoration: underline; text-underline-offset: 2px; }
.hc__food { color: var(--hc-muted); }
.hc__food svg { color: #9aa0a8; height: 14px; }
.hc__trip { margin-top: auto; padding-right: 6.9rem; }
.hc__trip .hc__line { font-size: .8rem; }
.hc__trip .hc__line i { color: var(--hc-blue); font-size: 1rem; }

/* Плашка ціни, притиснута до правого краю */
.hc__price {
  position: absolute; right: 0; bottom: 18px; z-index: 2; pointer-events: none;
  background: var(--hc-orange); color: #fff; text-align: right; line-height: 1.1;
  padding: .4rem .75rem .4rem 1rem; border-radius: 1.5rem 0 0 1.5rem;
}
.hc__price strong { display: block; font-size: 1.05rem; white-space: nowrap; }
.hc__price small { font-size: .65rem; font-weight: 600; }
.hc__price-orig { display: block; font-size: .65rem; opacity: .85; }

@media (max-width: 575.98px) {
  .hc { grid-template-columns: 1fr; }
  .hc__photo { aspect-ratio: 16 / 9; border-radius: .25rem .25rem 0 0; }
  .hc__price { right: 0; border-radius: 1.5rem 0 0 1.5rem; }
}

/* Бейдж у кутку фото (гарячі тури: «Виліт завтра») */
.hc__badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .6rem; border-radius: 1rem;
  background: linear-gradient(90deg, #ff512f, #f7941d); color: #fff;
  font-size: .72rem; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
