/* ================================================================
   Me2You - Home page styles
   Moved out of an inline style attribute on app/index.php.
   Reuses shared design tokens from site.css.
   Dynamic condition-badge colours stay inline (set per listing in PHP).
   ================================================================ */

/* Map-view CTA pin icon */
.idx-pin-icon {
  vertical-align: -2px;
  margin-right: 4px;
}

/* ----------------------------------------------------------------
   Hero secondary destinations (quiet text links)
   The two primary actions stay buttons; everything else is a calm
   inline link so the hero has one clear next step, not a button wall.
   ---------------------------------------------------------------- */
.m2y-hero__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-4);
}
.m2y-hero__link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--ink-700);
  border-bottom: 1px solid transparent;
  min-height: 36px;
  transition: color var(--duration-fast) ease,
              border-color var(--duration-fast) ease;
}
.m2y-hero__link:hover {
  color: var(--brand-orange-800);
  border-bottom-color: currentColor;
}

/* ----------------------------------------------------------------
   Home card sub-rows
   The home grid reuses .card-seller-row / -name / -rating and the
   wishlist heart, but those live in the browse-only stylesheet. Mirror
   that rhythm here so the home and browse grids read as one language.
   ---------------------------------------------------------------- */
.card-seller-row {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: 2px;
  min-height: 18px;
}
.card-seller-name {
  font-size: var(--fs-xs);
  color: var(--ink-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}
.card-seller-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-700);
  white-space: nowrap;
}

/* Wishlist heart, top-right of the card image. Quiet white disc that
   keeps a 36px tap target without shouting for attention. */
.card-wishlist-btn {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-pill);
  background: rgb(255, 255, 255, 0.92);
  color: var(--ink-400);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: color var(--duration-fast) ease,
              transform var(--duration-fast) ease;
}
.card-wishlist-btn:hover {
  color: var(--danger);
  transform: scale(1.06);
}
.card-wishlist-btn.active { color: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  .card-wishlist-btn { transition: none; }
  .card-wishlist-btn:hover { transform: none; }
}

/* ----------------------------------------------------------------
   Branded empty state (Fresh listings, when the grid is empty)
   Mirrors the prototype EmptyState: centred mark, title, one calm
   line, and a single primary action. The brand mark is the ultimate
   fallback here, nicer than a flat alert, and it appears once on the
   page (never per card), so it does not recreate the same-image grid.
   ---------------------------------------------------------------- */
.hp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-7) var(--space-4);
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.hp-empty__mark {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-lg);
  opacity: 0.92;
}
.hp-empty__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  color: var(--ink-900);
  margin: 0;
}
.hp-empty__text {
  font-size: var(--fs-sm);
  color: var(--ink-500);
  max-width: 360px;
  margin: 0 0 var(--space-2);
  line-height: 1.55;
}
