/* ==========================================================================
   The Ledger Card — signature element.
   Every stay is presented like a guest ticket: a torn stub carries the
   image, the counterfoil carries the details, joined by a perforation.
   ========================================================================== */

.ledger-rail {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-2);
  margin: 0 calc(var(--edge) * -1);
  padding-inline: var(--edge);
  scrollbar-width: none;
}
.ledger-rail::-webkit-scrollbar { display: none; }
.ledger-rail > * { scroll-snap-align: start; flex: 0 0 min(84vw, 340px); }

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3) var(--sp-2);
}
.wishlist-count {
  margin: -0.75rem 0 var(--sp-4);
  color: var(--ink-soft);
  font-size: var(--fs-small);
}
.wishlist-empty {
  padding: clamp(2rem, 7vw, 4rem) var(--sp-4);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--paper);
  text-align: center;
}
.wishlist-empty h2 { font-size: var(--fs-h3); }
.wishlist-empty p {
  max-width: 38ch;
  margin: 0.75rem auto 1.25rem;
  color: var(--ink-soft);
}
.listing-section {
  background: var(--paper);
}
@media (min-width: 640px) {
  .ledger-grid { gap: var(--sp-5); }
}
@media (min-width: 720px) {
  .ledger-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.ledger {
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  transition: transform var(--dur-mid) var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ledger:hover { transform: translateY(-3px); }

.ledger__stub {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.ledger__stub img, .ledger__stub svg {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.ledger:hover .ledger__stub img,
.ledger:hover .ledger__stub svg { transform: scale(1.06); }

.ledger__badge {
  position: absolute;
  top: var(--sp-2); left: var(--sp-2);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(21,19,15,0.18);
}
.ledger__heart {
  position: absolute;
  top: var(--sp-2); right: var(--sp-2);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(21,19,15,0.28);
  backdrop-filter: blur(3px);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-fast);
}
.ledger__heart:hover { transform: scale(1.08); }
.ledger__heart svg { filter: drop-shadow(0 1px 2px rgba(21,19,15,0.4)); }
.ledger__heart.is-saved { color: #8B0000; }
.ledger__heart.is-saved svg { fill: #8B0000; }

.ledger__perf {
  display: none;
}
.ledger__perf::before, .ledger__perf::after {
  content: '';
  position: absolute;
  top: -9px;
  width: 18px; height: 18px;
  background: var(--sand);
  border-radius: 50%;
}
.ledger__perf::before { left: -27px; }
.ledger__perf::after { right: -27px; }

.ledger__body {
  padding: 0.55rem 0.15rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  color: var(--ink);
}
.ledger__loc {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(42, 38, 32, 0.72);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ledger__rating {
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.2;
}
.ledger__rating:first-letter { color: var(--gold); }
.ledger__rating small {
  color: var(--ink-soft);
  font-size: 0.65rem;
}
.ledger__title {
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

.ledger__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}
.ledger__price b { font-family: var(--font-display); font-size: 1.05rem; }
.ledger__price span { font-size: var(--fs-micro); color: var(--ink-soft); margin-left: 0.15rem; }
.ledger__wa {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform var(--dur-fast);
}
.ledger__wa:hover { transform: scale(1.08); }
.ledger__wa svg { width: 16px; height: 16px; fill: #fff; }

@media (max-width: 640px) {
  .ledger__body { padding: 0.55rem 0.15rem 0; gap: 0.2rem; }
  .ledger__perf { display: none; }
  .ledger__title { font-size: 1rem; line-height: 1.3; }
  .ledger__loc { font-size: 0.7rem; }
  .ledger__price b { font-size: 0.95rem; }
  .ledger__wa { width: 30px; height: 30px; }
  .ledger__wa svg { width: 14px; height: 14px; }
}
