.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: 12px;
  left: 12px;
  background: #f13340;
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.hp-badge-promo {
  background: #f13340;
}

.hp-card img.hp-affiliate-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px !important;
  height: 40px !important;
  display: block;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transform: none !important;
}

@media (max-width: 576px) {
  .hp-badge {
    font-size: 12px;
    padding: 5px 10px;
    top: 10px;
    left: 10px;
  }

  .hp-card img.hp-affiliate-badge {
    top: 10px;
    right: 10px;
  }
}

.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;
  line-height: 18px;
  height: 36px;
}

.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: var(--primary-base);
}

.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;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.hp-info-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: #222;
  cursor: default;
}

.hp-info-tooltip:hover,
.hp-info-tooltip:focus,
.hp-info-tooltip:focus-within {
  color: #1ca89e;
}

.hp-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
  font-family: Arial, sans-serif;
}

.hp-info-tooltip__content {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 20;
  width: 220px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #555;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hp-info-tooltip__content:before {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  width: 12px;
  height: 12px;
  border-left: 1px solid #ddd;
  border-top: 1px solid #ddd;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

.hp-info-tooltip:hover .hp-info-tooltip__content,
.hp-info-tooltip:focus .hp-info-tooltip__content,
.hp-info-tooltip:focus-within .hp-info-tooltip__content {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 576px) {
  .hp-info-tooltip__content {
    left: 50%;
    right: auto;
    top: calc(100% + 8px);
    transform: translateX(-50%);
    width: min(220px, calc(100vw - 32px));
  }
}

.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;
}

/* Before owlCarousel() runs (it initializes on DOMContentLoaded) the cards are
   plain full-width blocks stacked on top of each other, which flashed one
   oversized card per row until the carousel took over. The rule above keeps
   them visible - owl.carousel.css hides .owl-carousel until .owl-loaded - so
   lay them out here exactly like the carousel's first page instead: same widths,
   same gap, overflow clipped. Nothing moves when owl then takes over, and the
   cards still read correctly if its JS never runs at all.
   Widths mirror the responsive breakpoints in homepagehotels.js (4/3/2 items,
   and the fixed 333px mobile card below). */

#hp-hotels .owl-carousel:not(.owl-loaded) {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 10px;
  overflow: hidden;
}

#hp-hotels .owl-carousel:not(.owl-loaded) > .item {
  flex: 0 0 calc((100% - 30px) / 4);
  min-width: 0;
}

@media (max-width: 991px) {
  #hp-hotels .owl-carousel:not(.owl-loaded) > .item {
    flex-basis: calc((100% - 20px) / 3);
  }
}

@media (max-width: 767px) {
  #hp-hotels .owl-carousel:not(.owl-loaded) > .item {
    flex-basis: 333px;
    max-width: 333px;
  }
}

.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;
  }
}

@media (max-width: 767px) {
  #hp-hotels .owl-carousel .owl-item {
    width: 333px !important;
    max-width: 333px !important;
    flex: 0 0 333px !important;
  }

  #hp-hotels .owl-carousel .hp-card {
    width: 333px !important;
    max-width: 333px !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;
  }
}
.hp-why-book-hero {
  background: #fff;
  padding: 20px 0 60px;
}

.hp-why-book-hero__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.hp-why-book-hero__title {
  margin: 0 0 28px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: #111;
}

.hp-why-book-hero__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 56px;
  row-gap: 28px;
}

.hp-why-book-hero__feature {
  min-width: 0;
}

.hp-why-book-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #e7f5f3;
}

.hp-why-book-hero__badge svg {
  width: 22px;
  height: 22px;
  stroke: #23b3ab;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.hp-why-book-hero__feature-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: #111;
}

.hp-why-book-hero__feature-copy {
  margin: 0;
  max-width: 310px;
  font-size: 15px;
  line-height: 1.65;
  color: #222;
}

@media (max-width: 991px) {
  .hp-why-book-hero {
    padding-bottom: 24px;
  }

  .hp-why-book-hero__title {
    margin-bottom: 22px;
  }

  .hp-why-book-hero__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
}

@media (max-width: 767px) {
  .hp-why-book-hero {
    padding: 8px 0 20px;
  }

  .hp-why-book-hero__title {
    margin-bottom: 18px;
    font-size: 20px;
  }

  .hp-why-book-hero__grid {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .hp-why-book-hero__feature-title {
    font-size: 17px;
  }

  .hp-why-book-hero__feature-copy {
    max-width: none;
    font-size: 14px;
  }
}
