/* The catalogue's card on the home screen (10/11/2026, DECISIONS ו1208, book ch. 75).

   The owner: "the listings on the home page exactly as on the properties page". The markup is the same macro
   (templates/_catalog_card.html); these are the catalogue's own rules for it — templates/catalog_v2.html (the card,
   the before/after, the heart, "עלה החודש") and assets/brand/catalog-v2.css (the track tags, the mint frame that turns
   teal under the mouse, ו1188) — with the catalogue's tokens written out, scoped to .hh-cards so nothing else on the
   home screen is touched. tests/test_home_hub.py holds the values that must stay the catalogue's. */

.hh-cards {
  --cc-line: #ece5da; --cc-teal: #0f7368; --cc-teal-deep: #0c5e58; --cc-navy: #16294a; --cc-body: #4a5364;
  --cc-muted: #70655a; --cc-faint: #6b6459; --cc-photo: #ece5db; --cc-mint: #d9efe6; --cc-mint-ink: #0c5e58;
  --cc-sky: #dbeaf8; --cc-sky-ink: #235a86; --cc-butter: #fbf0d8; --cc-butter-ink: #856010;
  --cc-lift: 0 10px 26px rgba(22, 41, 74, .10);
}
.hh-cards .card { position: relative; background: #fff; border: 2px solid #b9dccd; border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .18s, border-color .18s, transform .18s; }
.hh-cards .card:hover { box-shadow: var(--cc-lift); }
@media (hover: hover) { .hh-cards .card:hover { transform: translateY(-3px); border-color: var(--cc-teal); } }
.hh-cards .card:active { border-color: var(--cc-teal); transform: scale(.99); box-shadow: 0 0 0 3px rgba(15, 115, 104, .14); }
.hh-cards .card-media { position: relative; aspect-ratio: 4 / 3; background: var(--cc-photo); overflow: hidden; }
.hh-cards .card-media img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hh-cards .placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; font-size: 13px; color: var(--cc-teal); background: #e6ede2; }
.hh-cards .placeholder img { width: 78px; height: 104px; object-fit: cover; border-radius: 14px; background: #f7ebdf; }
.hh-cards .placeholder span { background: #fff; border-radius: 99px; padding: 3px 12px; font-weight: 600; }
.hh-cards .save-btn { position: absolute; top: 9px; left: 9px; z-index: 3; width: 34px; height: 34px; border-radius: 99px; background: #fff;
  border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(22, 41, 74, .18); }
.hh-cards .save-btn::before { content: ""; position: absolute; inset: -6px; }
.hh-cards .save-btn svg { width: 17px; height: 17px; fill: none; stroke: var(--cc-teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hh-cards .save-btn.saved svg { fill: var(--cc-teal); }
.hh-cards .ba { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.hh-cards .ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.hh-cards .ba .ba-before { clip-path: inset(0 0 0 calc(100% - var(--pos, 50%))); }
.hh-cards .ba-line { position: absolute; top: 0; bottom: 0; right: var(--pos, 50%); width: 2px; transform: translateX(50%); background: #fff;
  box-shadow: 0 0 3px rgba(22, 41, 74, .35); pointer-events: none; }
.hh-cards .ba-tag { position: absolute; bottom: 8px; color: #fff; border-radius: 99px; padding: 2px 9px; font: 600 12px 'Assistant', sans-serif;
  background: rgba(22, 41, 74, .72); pointer-events: none; white-space: nowrap; }
.hh-cards .ba-tag-before { right: 8px; }
.hh-cards .ba-tag-after { left: 8px; background: rgba(12, 94, 88, .88); }
.hh-cards .ba-handle { position: absolute; top: 50%; right: var(--pos, 50%); width: 44px; height: 44px; transform: translate(50%, -50%);
  display: grid; place-items: center; cursor: ew-resize; touch-action: none; outline: none; }
.hh-cards .ba-handle i { width: 26px; height: 26px; border-radius: 99px; background: #fff; border: 2px solid var(--cc-teal); box-shadow: 0 1px 3px rgba(22, 41, 74, .25);
  display: grid; place-items: center; box-sizing: border-box; }
/* the double chevron in the knob says "drag me" without motion (ו1378) */
.hh-cards .ba-handle svg { width: 16px; height: 16px; fill: none; stroke: var(--cc-teal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hh-cards .ba-handle:focus-visible i { outline: 2px solid var(--cc-teal); outline-offset: 2px; }
.hh-cards .card-fresh { position: absolute; top: 9px; right: 9px; z-index: 3; background: var(--cc-butter); color: var(--cc-butter-ink);
  border-radius: 99px; padding: 4px 11px; font: 700 12.5px 'Assistant', sans-serif; box-shadow: 0 1px 4px rgba(22, 41, 74, .18); }
.hh-cards .card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; color: var(--cc-navy); }
.hh-cards .card-body:focus-visible { outline-offset: -3px; }
.hh-cards .card-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hh-cards .card-body .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 2px; }
.hh-cards .card-tag { border-radius: 99px; padding: 3px 11px; font: 800 12.5px 'Heebo', sans-serif; }
.hh-cards .card-tag.sale { background: var(--cc-mint); color: var(--cc-mint-ink); }
.hh-cards .card-tag.rent { background: var(--cc-sky); color: var(--cc-sky-ink); }
.hh-cards .card-tag.state { background: var(--cc-butter); color: var(--cc-butter-ink); }
.hh-cards .card-where { font: 700 14.5px 'Heebo', sans-serif; color: var(--cc-navy); }
.hh-cards .card-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.hh-cards .card-price { font: 800 22px 'Heebo', sans-serif; letter-spacing: -.2px; color: var(--cc-teal); }
.hh-cards .card-price.none { font: 600 14px 'Assistant', sans-serif; color: var(--cc-faint); }
.hh-cards .card-per { font-size: 13px; color: var(--cc-muted); }
.hh-cards .num { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.hh-cards .card-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 13.5px; color: var(--cc-body); }
.hh-cards .card-stats > span { display: inline-flex; align-items: center; gap: 4px; }
.hh-cards .card-stats svg { width: 16px; height: 16px; fill: none; stroke: var(--cc-teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hh-cards .card-stats .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hh-cards .card-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.hh-cards .chip { background: var(--cc-mint); color: var(--cc-teal-deep); font: 600 12.5px 'Assistant', sans-serif; padding: 3px 9px; border-radius: 99px; }
.hh-cards .card-broker { display: block; margin-top: 6px; font: 400 12.5px/1.5 'Assistant', sans-serif; color: var(--cc-muted); }
@media (prefers-reduced-motion: reduce) { .hh-cards .card, .hh-cards .card:hover { transition: none; transform: none; } }
