/* WST component — content card.
 * Portable card for blog posts, archives, search results and (later)
 * Tourfic tour/car listings. The homepage `.exp-card` stays in home.css;
 * this `.wst-card` is the globally-loaded sibling so non-home pages get
 * the same look without depending on home.css. */

.wst-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.wst-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.wst-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 50px -30px rgba(10, 40, 40, .3);
}
/* Whole-card click target — the title link is stretched over the entire
 * card, so a click anywhere opens the product. The media is already a
 * link to the same URL; decorative children sit below this overlay. */
.wst-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.wst-card__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  background: #0a3838;
  overflow: hidden;
}
.wst-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.wst-card__badge {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 99px;
  background: var(--paper);
  color: var(--ink);
}
.wst-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 22px;
  flex: 1;
}
.wst-card__meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.wst-card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}
.wst-card__title a { color: inherit; text-decoration: none; }
.wst-card__title a:hover { color: var(--terra); }
.wst-card__excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}
.wst-card__foot { margin-top: auto; padding-top: 4px; }

@media (max-width: 1100px) {
  .wst-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wst-card-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* =====================================================================
 * Tour & car listing cards — used on search, archives, taxonomy and the
 * single-tour "similar" rail. Built on the .wst-card shell above.
 * ================================================================== */

/* Badge colour variants (set by _wst_build_tour_card / wst_build_car_card). */
.wst-card__badge.is-recommend { background: var(--terra); color: #fff; }
.wst-card__badge.is-first     { background: var(--teal); color: #fff; }
.wst-card__badge.is-sunset    { background: var(--gold); color: #fff; }
.wst-card__badge.is-family    { background: var(--terra-soft); color: #fff; }
.wst-card__badge.is-fav       { background: var(--paper); color: var(--ink); }

/* Region tag on the media. */
.wst-card__region {
  position: absolute;
  left: 14px; bottom: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

.wst-tour-card .wst-card__media,
.wst-car-card .wst-card__media { aspect-ratio: 4 / 3; }
.wst-tour-card .wst-card__body,
.wst-car-card .wst-card__body { gap: 8px; padding: 18px 20px 20px; }
.wst-tour-card .wst-card__meta,
.wst-car-card .wst-card__meta { font-size: 10px; }

/* Rating / duration meta row. */
.wst-tour-card__metarow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.wst-tour-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-weight: 600;
}
.wst-tour-card__rating .star { color: var(--gold); }
.wst-tour-card__dur {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
}
.wst-tour-card__ico { font-size: 13px; line-height: 1; }

/* Footer — price on the left, round CTA on the right. */
.wst-tour-card__foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--rule);
}
.wst-tour-card__price { display: flex; flex-direction: column; line-height: 1.15; }
.wst-tour-card__price-from {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.wst-tour-card__price-num {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
}
.wst-tour-card__price-unit {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--muted);
  margin-left: 3px;
}
.wst-tour-card__cta {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  transition: background .2s ease;
}
.wst-card:hover .wst-tour-card__cta { background: var(--terra); }

/* Car card specs. */
.wst-car-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.wst-car-card__specs li {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 99px;
  padding: 4px 9px;
}

/* Wishlist heart — shared button (position-agnostic; context class places it). */
.wst-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: var(--ink-2);
  background: rgba(245, 239, 230, .95);
  transition: color .15s ease, transform .15s ease;
}
.wst-heart svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.wst-heart:hover { color: var(--terra); }
.wst-heart.is-saved { color: var(--terra); }
.wst-heart.is-saved svg { fill: currentColor; }
.wst-heart:active { transform: scale(.88); }
.wst-heart.is-busy { opacity: .55; pointer-events: none; }

/* WhatsApp enquiry link on listing cards — sits below the price row.
 * z-index: 2 lifts it above the stretched .wst-card__title a::after overlay. */
.wst-card__wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  position: relative;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .05em;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 0 2px;
  border-top: 1px solid var(--rule);
  transition: color .15s ease;
}
.wst-card__wa:hover { color: #25d366; }
.wst-card__wa svg { width: 14px; height: 14px; flex-shrink: 0; fill: currentColor; }

/* Heart placement on listing cards — above the stretched title link. */
.wst-card__heart {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 34px; height: 34px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(10, 40, 40, .22);
}
