@import url("../../../homepagehotels/views/css/homepagehotels.css");

#hp-hotels .owl-carousel.hp-grid {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
}

#hp-hotels .owl-carousel.hp-grid .item {
  float: none;
}

#hp-hotels .owl-carousel.hp-grid[data-item-count="1"] .item {
  width: min(100%, 420px);
}

#hp-hotels .owl-carousel.hp-grid[data-item-count="2"] .item {
  width: calc(50% - 10px);
}

#hp-hotels .owl-carousel.hp-grid[data-item-count="3"] .item {
  width: calc(33.333% - 10px);
}

#hp-hotels .hp-empty-state {
  padding: 32px 18px;
  text-align: center;
  color: #777777;
}

#hp-hotels .hp-empty-state h3 {
  margin: 0 0 8px;
  color: #515151;
}

#hp-hotels .hp-empty-state p {
  margin: 0;
}

#hp-hotels .hp-card.hp-card-room {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.14);
  height: 300px;
  overflow: hidden;
  padding: 8px;
}

#hp-hotels .hp-card.hp-card-room:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  transform: translateY(-3px);
}

#hp-hotels .hp-card.hp-card-room > a {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
}

#hp-hotels .hp-card.hp-card-room .hp-img-wrap {
  background: #f5f5f5;
  border-radius: 12px;
  height: 176px;
  margin-bottom: 14px;
  overflow: hidden;
  width: 100%;
}

#hp-hotels .hp-card.hp-card-room .hp-img-wrap > img {
  border-radius: 12px;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  width: 100% !important;
}

#hp-hotels .hp-card.hp-card-room .hp-img-wrap.is-placeholder {
  align-items: center;
  background: #f5f5f5;
  display: flex;
  justify-content: center;
}

#hp-hotels .hp-card.hp-card-room .hp-img-wrap > img.is-placeholder-img {
  background: transparent;
  border-radius: 0;
  height: auto !important;
  max-height: 82%;
  max-width: 82%;
  object-fit: contain;
  width: auto !important;
}

#hp-hotels .hp-card.hp-card-room .hp-badge,
#hp-hotels .hp-card.hp-card-room .hp-badge-promo {
  background: #111;
  border-radius: 9px;
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 700;
  left: 12px;
  line-height: 1;
  padding: 8px 10px;
  top: 12px;
}

#hp-hotels .hp-card.hp-card-room .hp-card-info {
  background: transparent;
  border-top: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  padding: 0 8px 8px;
}

#hp-hotels .hp-card.hp-card-room .hp-title {
  color: #515151;
  display: flex;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
  min-height: 35px;
  overflow: hidden;
  text-align: center;
  align-items: center;
}

#hp-hotels .hp-card.hp-card-room .hp-tooltip-container {
  margin-bottom: 8px;
}

#hp-hotels .hp-card.hp-card-room .hp-sub {
  color: #777777;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 10px;
  min-height: 0;
  opacity: 0.6;
}

#hp-hotels .hp-card.hp-card-room .hp-price-row {
  align-items: flex-end;
  gap: 8px;
  justify-content: space-between;
  margin-top: auto;
}

#hp-hotels .hp-card.hp-card-room .hp-price-row > div:first-child,
#hp-hotels .hp-card.hp-card-room .hp-price-row > div:last-child {
  align-items: flex-end;
  display: flex;
}

#hp-hotels .hp-card.hp-card-room .hp-price {
  color: #515151;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

#hp-hotels .hp-card.hp-card-room .hp-price::after {
  color: #777777;
  content: "/day";
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  margin-left: 1px;
}

#hp-hotels .hp-card.hp-card-room .hp-old-price {
  color: #777777;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  margin-left: 8px;
  opacity: 0.6;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

#hp-hotels .hp-card.hp-card-room .hp-rating-star {
  color: #ffb200;
  font-size: 15px;
  margin-right: 4px;
}

#hp-hotels .hp-card.hp-card-room .hp-count-star {
  color: #ffb200;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

#hp-hotels .hp-card.hp-card-room .hp-reviews-count {
  color: #515151;
  font-size: 13px;
  margin-left: 4px;
  opacity: 0.6;
}

@media (max-width: 767px) {
  #hp-hotels .hp-card.hp-card-room {
    border-radius: 18px;
    height: auto;
    padding: 8px;
  }

  #hp-hotels .hp-card.hp-card-room .hp-img-wrap {
    height: 176px;
    margin-bottom: 12px;
  }

  #hp-hotels .hp-card.hp-card-room .hp-title {
    font-size: 16px;
  }

  #hp-hotels .hp-card.hp-card-room .hp-sub {
    font-size: 13px;
  }

  #hp-hotels .hp-card.hp-card-room .hp-price {
    font-size: 16px;
  }

  #hp-hotels .hp-card.hp-card-room .hp-old-price,
  #hp-hotels .hp-card.hp-card-room .hp-count-star,
  #hp-hotels .hp-card.hp-card-room .hp-reviews-count {
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  #hp-hotels .owl-carousel.hp-grid[data-item-count="2"] .item,
  #hp-hotels .owl-carousel.hp-grid[data-item-count="3"] .item {
    width: calc(50% - 10px);
  }
}

@media (max-width: 479px) {
  #hp-hotels .owl-carousel.hp-grid[data-item-count="1"] .item,
  #hp-hotels .owl-carousel.hp-grid[data-item-count="2"] .item,
  #hp-hotels .owl-carousel.hp-grid[data-item-count="3"] .item {
    width: 100%;
  }
}
