/* Frankenstein: make native HivePress listing cards fully clickable
   (without rewriting the card template).
   This is intentionally scoped to the class we add from JS.
*/

.gda-hp-card--clickable{
  position: relative;
  cursor: pointer;
}

.gda-hp-card--clickable .gda-hp-cardlink{
  position: absolute;
  inset: 0;
  /* Must sit ABOVE the card content so the whole card is clickable */
  z-index: 3;
  text-decoration: none !important;
}

/* Keep content normal; overlay is transparent so text stays visible. */
.gda-hp-card--clickable .hp-listing__header,
.gda-hp-card--clickable .hp-listing__content,
.gda-hp-card--clickable .hp-listing__footer{
  position: relative;
  z-index: 1;
}

/* Ensure action buttons/links are always clickable (above overlay). */
.gda-hp-card--clickable .hp-listing__actions,
.gda-hp-card--clickable .hp-listing__action,
.gda-hp-card--clickable .hp-listing__action a,
.gda-hp-card--clickable .hp-listing__action button,
.gda-hp-card--clickable button,
.gda-hp-card--clickable a.hp-listing__action{
  position: relative;
  z-index: 6;
}
