/* Horse card — layered surface, concentric radii, pointer-following glow.
   The whole horse photo is always visible; only a small tag and heart touch the photo corners. */
.stall { --mx: 50%; --my: 0%; position: relative; display: flex; flex-direction: column; height: 100%; padding: 8px; cursor: pointer; isolation: isolate;
  border-radius: 30px 30px 30px 10px;
  background: linear-gradient(165deg, #fffefa 0%, #fff4df 100%);
  box-shadow: var(--shadow-2), var(--highlight);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out); }
/* light that follows the pointer */
.stall::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(229, 72, 58, .20), transparent 60%); transition: opacity var(--t-med); }
@media (hover: hover) {
  .stall:hover { transform: translateY(-7px); box-shadow: var(--shadow-3), var(--highlight); }
  .stall:hover::before { opacity: 1; }
  .stall:hover .arch img { transform: scale(1.045); }
  .stall:hover .stall-go { background: var(--grad-primary); color: #fff; transform: rotate(-45deg) scale(1.08); }
  .stall:hover .stall-open h3 { color: var(--ember-600); }
}
.stall:active { transform: translateY(-3px) scale(.995); transition-duration: var(--t-fast); }
.stall:has(.stall-open:focus-visible) { box-shadow: var(--ring), var(--shadow-3); }

/* photo window: radius = outer 30 - padding 8 */
.arch { position: relative; aspect-ratio: 4 / 3; overflow: hidden; isolation: isolate; border-radius: 22px 22px 22px 4px; background: #5a1a14; }
.arch::before { content: ""; position: absolute; inset: -14px; z-index: -1; background: var(--bg-img) center / cover; filter: blur(16px) brightness(.85); }
.arch img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform .9s var(--ease-out); }

.stall-no { position: absolute; top: 10px; left: 10px; z-index: 3; padding: 6px 12px; border-radius: var(--r-pill); font: 700 .74rem/1 var(--font-body); color: var(--ink-strong);
  background: rgba(255, 251, 243, .72); -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); box-shadow: var(--highlight), 0 2px 8px rgba(42,20,8,.18); }

.heart { position: absolute; top: 8px; right: 8px; z-index: 6; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--ink-strong);
  background: rgba(255, 251, 243, .72); -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); box-shadow: var(--highlight), 0 2px 8px rgba(42,20,8,.18);
  transition: transform var(--t-med) var(--ease-spring), background var(--t-fast), color var(--t-fast); }
.heart:hover { transform: scale(1.12); background: #fff; }
.heart:active { transform: scale(.9); }
.heart svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform var(--t-med) var(--ease-spring); }
.heart[aria-pressed="true"] { color: var(--danger); background: #fff; } .heart[aria-pressed="true"] svg { fill: currentColor; animation: beat .5s var(--ease-spring); }
@keyframes beat { 0% { transform: scale(.7); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }

.stall-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 14px 12px 8px; }
.stall-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.stall-open { color: inherit; text-decoration: none; min-width: 0; }
.stall-open:focus-visible { box-shadow: none; }
/* browsers without :has() cannot ring the whole card, so the title link shows its own ring */
@supports not selector(:has(*)) { .stall-open:focus-visible { box-shadow: var(--ring); border-radius: 8px; } }
.stall-open h3 { margin: 0; font-size: 1.5rem; letter-spacing: -.04em; line-height: 1.02; overflow-wrap: anywhere; transition: color var(--t-fast); }
.color-tag { display: inline-flex; align-items: center; gap: 7px; flex: none; max-width: 50%; margin-top: 3px; padding: 5px 11px; border-radius: var(--r-pill); background: var(--surface-tint); font-size: .74rem; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.color-tag i { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.stall-sub { margin: 0; font-size: .9rem; color: var(--muted); }

/* spec strip: three labelled values */
.spec { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 8px 0 2px; padding: 0; }
.spec div { padding: 0 16px; position: relative; display: flex; flex-direction: column-reverse; }
.spec div:first-child { padding-left: 0; }
.spec div + div::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--hairline); }
.spec dd { margin: 0; font: 700 .98rem/1.2 var(--font-display); letter-spacing: -.02em; color: var(--ink-strong); }
.spec dt { font-size: .72rem; color: var(--muted); }

.stall-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.stall-price { font: italic 400 2.5rem/.9 var(--font-editorial); letter-spacing: -.02em; color: var(--primary); }
.stall-brand { font: italic 400 1.2rem var(--font-editorial); color: var(--muted); }
.stall-go { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-tint); color: var(--ember-600); font-size: 1.15rem;
  transition: transform var(--t-med) var(--ease-spring), background var(--t-med), color var(--t-med); }

/* sold status */
.sold-flag { position: absolute; left: 0; right: 0; top: 50%; z-index: 4; transform: translateY(-50%) rotate(-6deg); padding: 10px 0; text-align: center; font: 800 1.6rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(127, 22, 16, .86); }
.stall.is-sold .arch img { filter: grayscale(.55) brightness(.9); }
.stall.is-sold .stall-price { text-decoration: line-through; opacity: .55; }
