/* ---- homepagetours: reuse hp-card system from homepagehotels ---- */

#hp-tours {
  margin-top: 20px;
  margin-bottom: 10px;
}

#hp-tours .hp-card {
  background: #f3f2f2;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#hp-tours .hp-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

#hp-tours .hp-card a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

#hp-tours .hp-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

#hp-tours .hp-img-wrap > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.04);
}

#hp-tours .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;
}

#hp-tours .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;
}

#hp-tours .hp-card-info {
  background: #fff;
  padding: 10px 14px;
  border-top: 1px solid #eee;
}

#hp-tours .hp-title {
  font-weight: 600;
  font-size: 14px;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 18px;
  height: 36px;
}

#hp-tours .hp-sub {
  font-size: 12px;
  color: #777;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 18px;
  min-height: 18px;
}

#hp-tours .hptours-days {
  font-size: 12px;
  color: #555;
  margin-top: 4px;
}

#hp-tours .hp-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

#hp-tours .hp-price {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

#hp-tours .hp-old-price {
  font-size: 12px;
  color: #777;
  text-decoration: line-through;
  margin-left: 6px;
}

#hp-tours .hp-rating-star {
  color: #ffb200;
  font-size: 15px;
}

#hp-tours .hp-count-star {
  color: #ffb200;
  font-size: 13px;
  font-weight: 700;
}

/* Section heading */
#hp-tours .hp-sec-head {
  display: flex;
  align-items: center;
  margin: 8px 0 10px;
  padding: 15px 0;
}

#hp-tours .hp-sec-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

/* Info tooltip (same as hotels) */
#hp-tours .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-tours .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-tours .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-tours .hp-info-tooltip:hover .hp-info-tooltip__content,
#hp-tours .hp-info-tooltip:focus .hp-info-tooltip__content,
#hp-tours .hp-info-tooltip:focus-within .hp-info-tooltip__content {
  opacity: 1;
  visibility: visible;
}

/* Tooltip for card description */
#hp-tours .hp-tooltip-container {
  position: relative;
  display: block;
}

#hp-tours .hp-tooltip {
  display: none;
}

/* Owl carousel nav */
#hp-tours .owl-carousel {
  position: relative;
  display: block !important;
}

#hp-tours .owl-carousel .owl-stage-outer {
  overflow: hidden;
}

#hp-tours .owl-carousel .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

#hp-tours .owl-carousel .owl-nav .owl-prev,
#hp-tours .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;
  pointer-events: auto;
}

#hp-tours .owl-carousel .owl-nav .owl-prev { margin-left: -18px; }
#hp-tours .owl-carousel .owl-nav .owl-next { margin-right: -18px; }

#hp-tours .owl-carousel .owl-nav .owl-prev.disabled,
#hp-tours .owl-carousel .owl-nav .owl-next.disabled {
  opacity: 0;
  visibility: hidden;
}

#hp-tours .owl-carousel .owl-nav svg {
  width: 20px;
  height: 20px;
  display: block;
}

#hp-tours .owl-carousel .item {
  display: block !important;
}

/* Badge on wktourpackages slider cards (Themes / Best Selling / Destinations / Best Deal) */
.element_img_wrapper {
  position: relative;
}

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

@media (max-width: 576px) {
  #hp-tours .owl-carousel .owl-nav { display: none !important; }
  #hp-tours .owl-carousel .owl-item {
    width: 333px !important;
    max-width: 333px !important;
    flex: 0 0 333px !important;
  }
  #hp-tours .hp-card {
    width: 333px !important;
    max-width: 333px !important;
  }
}
