.hp-card {
  background: #f3f2f2;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.hp-card a {
  display: flex;
  flex-direction: column;
  height: auto;
  text-decoration: none;
}
.hp-card img {
  width: 100%;
  height: 200px !important;
  display: block;
  object-fit: cover;
  object-position: center;
}
.hp-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.hp-img-wrap > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.04);
}
.hp-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #111;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.hp-badge-promo {
  background: red;
}
.hp-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.hp-price {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}
.hp-old-price {
  font-size: 12px;
  color: #777;
  text-decoration: line-through;
  margin-left: 8px;
}
.hp-rating-star {
  color: #ffb200;
  margin-right: 1px;
  font-size: 17px;
  font-weight: 700;
}
.hp-count-star {
  color: #ffb200;
  font-size: 14px;
  font-weight: 700;
}

.hp-reviews-count {
  color: #777;
  margin-left: 4px;
  font-size: 14px;
}
.hp-card-info {
  background: #fff;
  padding: 10px 14px;
  border-top: 1px solid #eee;
}
.hp-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.hp-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
.hp-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hp-sub {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 18px;
  min-height: 18px;
}
/* Tooltip for short description */
.hp-tooltip-container {
  position: relative;
  display: block;
}
.hp-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  transform: translateX(-50%);
  background: #ffffff;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 20px;
  width: 250px;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 10000;
}
.hp-tooltip-container:hover .hp-tooltip,
.hp-tooltip-container:focus-within .hp-tooltip {
  opacity: 1;
  visibility: visible;
}
.hp-tooltip:empty {
  display: none;
}

/* Ensure tooltips render above adjacent sections without elevating entire carousels */
.hp-tooltip-floating .hp-tooltip-container .hp-tooltip {
  opacity: 0 !important;
  visibility: hidden !important;
}
.hp-tooltip:after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ffffff;
}
.hp-tooltip:before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid #ddd;
  z-index: -1;
}
.hp-like {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #717171;
}
.hp-like:before {
  content: "\2661";
  font-size: 16px;
  line-height: 1;
}
.hp-like:hover {
  color: #e31c5f;
  border-color: #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.hp-score-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e31c5f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.hp-near-msg {
  margin: 6px 0 10px;
  color: #555;
  font-size: 12px;
  padding: 8px 10px;
}
.hp-tags {
  margin-bottom: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.hp-tag {
  display: inline-block;
  font-size: 11px;
  color: #f5f5f5;
  background: #f5f5f5;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 2px 6px;
  background: #1292ff;
}
.hp-rating-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e31c5f;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.hp-rating-circle:before {
  content: "\2605";
  font-size: 12px;
  line-height: 1;
}
.hp-score-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.hp-rating {
  font-size: 12px;
  color: #ffd700;
  font-weight: 600;
  margin-top: 6px;
}
.hp-score {
  background: #003580;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 6px;
  display: inline-block;
  min-width: 34px;
  text-align: center;
}
.hp-score-text {
  font-size: 12px;
  color: #222;
  font-weight: 600;
}
.hp-reviews {
  font-size: 12px;
  color: #777;
}
.hp-title {
  font-weight: 600;
  font-size: 14px;
  color: #222;
}
.hp-sub {
  font-size: 12px;
  color: #777;
}
.hp-stars {
  margin-top: 4px;
  color: #ffd700;
}
.hp-stars .custom-icon {
  color: #ffd700 !important;
  background: none !important;
  display: inline-block;
  font-style: normal;
}
.hp-stars .custom-icon:before {
  color: #ffd700 !important;
}
.hp-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 10px;
  padding: 15px 0;
}
.hp-sec-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.hp-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hp-nav .owl-prev,
.hp-nav .owl-next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #717171;
  border: 1px solid #ddd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease,
    background-color 0.2s ease, border-color 0.2s ease;
}
.hp-nav .owl-prev:hover,
.hp-nav .owl-next:hover {
  background: #fff;
  border-color: #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}
.hp-nav .owl-prev.disabled,
.hp-nav .owl-next.disabled {
  display: none;
}
.hp-nav .owl-prev svg,
.hp-nav .owl-next svg {
  width: 18px;
  height: 18px;
  display: block;
}
.hp-nav .owl-prev:focus,
.hp-nav .owl-next:focus,
.hp-nav .owl-prev:focus-visible,
.hp-nav .owl-next:focus-visible,
.hp-nav .owl-prev:active,
.hp-nav .owl-next:active {
  outline: 0;
  border-color: #bbb;
  box-shadow: 0 0 0 2px rgba(113, 113, 113, 0.35) inset,
    0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Overlay nav on carousel */
.owl-carousel {
  position: relative;
  display: block !important;
}
.owl-carousel .item {
  display: block !important;
}
.owl-carousel .owl-stage-outer {
  overflow: hidden;
}
.owl-carousel .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  pointer-events: none;
}
.owl-carousel .owl-nav .owl-prev,
.owl-carousel .owl-nav .owl-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dfdede;
  color: #686767;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease,
    background-color 0.2s ease;
  pointer-events: auto;
}
.owl-carousel .owl-nav .owl-prev {
  margin-left: -18px;
}
.owl-carousel .owl-nav .owl-next {
  margin-right: -18px;
}
.owl-carousel .owl-nav .owl-prev:hover,
.owl-carousel .owl-nav .owl-next:hover {
  background: rgb(230, 230, 230);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}
.owl-carousel .owl-nav .owl-prev.disabled,
.owl-carousel .owl-nav .owl-next.disabled {
  opacity: 0;
  visibility: hidden;
}
.owl-carousel .owl-nav .owl-prev svg,
.owl-carousel .owl-nav .owl-next svg {
  width: 20px;
  height: 20px;
  display: block;
}
@media (max-width: 576px) {
  .owl-carousel .owl-nav {
    display: none !important;
  }
}
/* Generic grid utility */
.hp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hp-grid .item {
  width: calc(25% - 10px);
}
@media (max-width: 991px) {
  .hp-grid .item {
    width: calc(33.333% - 10px);
  }
}
@media (max-width: 767px) {
  .hp-grid .item {
    width: calc(50% - 10px);
  }
}
@media (max-width: 479px) {
  .hp-grid .item {
    width: 100%;
  }
}
.hp-card img,
.hp-card-img {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

@media (max-width: 576px) {
  .hp-card img,
  .hp-card-img {
    height: 200px !important;
  }
}

/* Ensure images fill carousel items even if hp-card wrapper/class is missing */
#hp-near-you img,
#hp-best img,
#hp-by-province img,
#hp-all img,
#hp-room-types img,
#hp-room-types-promo img,
#hp-room-types-best img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 576px) {
  #hp-near-you img,
  #hp-best img,
  #hp-by-province img,
  #hp-all img,
  #hp-room-types img,
  #hp-room-types-promo img,
  #hp-room-types-best img {
    height: 200px !important;
  }
}
