/**
 * Trending destination cards — shared by home (EXPLORE NOW / Trending) and listing detail (similar listings).
 */
.hp-trending-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.hp-trending-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.hp-trending-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.hp-trending-card .img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.hp-trending-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-trending-card .img-wrap .hp-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ffaa4c;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  z-index: 1;
}

/* Rating on image: hidden on desktop; shown on small screens */
.hp-trending-card .img-wrap .card-rating {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.hp-trending-card .img-wrap .card-rating i {
  color: #ffc107;
}

.hp-trending-card .card-body {
  padding: 1rem 1.1rem 1.1rem;
  position: relative;
}

.hp-trending-card-mainlink {
  text-decoration: none;
  color: inherit;
  display: block;
}

.hp-trending-card-seo-tags {
  padding: 0 1.1rem 1.1rem;
  margin-top: 0.35rem;
}

/* Chips (scoped + !important): Bootstrap / theme link styles otherwise win on <a href>. */
.hp-trending-card .hp-category-seo-tags a.hp-seo-tag-link,
.hp-trending-card .hp-category-seo-tags a.hp-seo-tag-link:visited {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 0.22rem 0.72rem;
  margin: 0.15rem 0.35rem 0 7px;
  border-radius: 6px;
  background: #ecfdf5 !important;
  color: #047857 !important;
  text-decoration: none !important;
  border: 1px solid rgba(4, 120, 87, 0.2);
  vertical-align: middle;
  max-width: 100%;
  word-break: break-word;
}

.hp-trending-card .hp-category-seo-tags a.hp-seo-tag-link:hover {
  background: #d1fae5 !important;
  color: #065f46 !important;
  text-decoration: none !important;
}

.hp-trending-card .card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.hp-trending-card .card-location {
  font-size: 0.875rem;
  color: #5b9bd5;
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hp-trending-card .card-location i {
  font-size: 0.9rem;
  color: #5b9bd5;
  flex-shrink: 0;
}

.hp-trending-card .card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.hp-trending-card .card-body .card-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a1a1a;
  background: #e3f2fd;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.hp-trending-card .card-body .card-rating i {
  color: #ffc107;
  font-size: 0.85rem;
}

.hp-trending-card .card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.hp-trending-card .card-price-wrap {
  margin: 0;
}

.hp-trending-card .card-price-label {
  font-size: 0.75rem;
  color: #6c757d;
  display: block;
  margin-bottom: 0.2rem;
}

.hp-trending-card .card-price-label.card-price-label-short {
  display: none;
}

.hp-trending-card .card-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
}

.hp-trending-card .card-price .price-amount {
  font-weight: 700;
}

.hp-trending-card .card-price .price-suffix {
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
}

.hp-trending-card .hp-card-arrow {
  width: 44px;
  height: 44px;
  margin-top: 0;
  border-radius: 12px;
  background: #ffaa4c;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.hp-trending-card .hp-card-arrow:hover {
  background: #f59e0b;
  color: #fff;
}

.hp-card-keywords {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

a.hp-card-keywords.hp-card-keywords--link {
  text-decoration: none;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.15s ease;
}

a.hp-card-keywords.hp-card-keywords--link:hover {
  color: #64748b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hp-category-seo-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
  margin: 0.5rem 0 0;
}

.hp-meta-kw-tag {
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
}

.hp-focus-kw-tag {
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  background: #ecfdf5;
  color: #047857;
}

@media (max-width: 1199.98px) {
  .hp-trending-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .hp-trending-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .hp-trending-card .img-wrap .card-rating {
    display: inline-flex !important;
    font-size: 0.65rem;
    padding: 0.2rem 0.35rem;
  }

  .hp-trending-card .card-body .card-rating {
    display: none !important;
  }

  .hp-trending-card .card-body {
    padding: 0.5rem 0.65rem 0.6rem;
  }

  .hp-trending-card .card-title {
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hp-trending-card .card-location {
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hp-trending-card .card-price-row {
    margin-top: 0.2rem;
    flex-wrap: wrap;
  }

  .hp-trending-card .card-price-wrap {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  .hp-trending-card .card-price-label:not(.card-price-label-short) {
    display: none !important;
  }

  .hp-trending-card .card-price-label.card-price-label-short {
    display: inline !important;
    margin: 0;
    font-size: 0.65rem;
  }

  .hp-trending-card .card-price {
    font-size: 0.85rem;
    display: inline;
    white-space: nowrap;
  }

  .hp-trending-card .card-price .price-amount {
    font-weight: 700;
  }

  .hp-trending-card .card-price .price-suffix {
    font-size: 0.65rem;
  }

  .hp-trending-card .hp-card-arrow {
    width: 100%;
    height: 38px;
    margin-top: 0.4rem;
    font-size: 0.95rem;
    flex: 1 1 100%;
  }
}

@media (max-width: 575.98px) {
  .hp-trending-grid {
    grid-template-columns: 1fr;
  }
}
