.demo-hero { padding: 44px 0 8px; text-align: center; }
.demo-hero .wrap { max-width: 640px; }
.demo-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 16px 0 0; text-wrap: balance; }
.demo-hero .lede { color: var(--ink-soft); margin: 12px 0 0; font-size: 16px; }

.demo-stage { padding: 34px 0 70px; }
.demo-wrap { display: flex; gap: 36px; align-items: flex-start; justify-content: center; flex-wrap: wrap; }

/* SEARCH */
.deck-panel { width: 420px; max-width: 100%; }
.search-bar { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.search-bar .field { position: relative; }
.search-bar .field input {
  width: 100%; font-family: inherit; font-size: 14px; padding: 11px 38px 11px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.search-bar .field input:focus { outline: 2px solid var(--brand-2); outline-offset: -1px; border-color: var(--brand-2); }
.search-bar .field .mag { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-size: 15px; opacity: .55; }
.search-bar .chips { display: flex; gap: 7px; flex-wrap: wrap; }
.search-bar .chip {
  font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 15px; cursor: pointer; transition: all .15s;
}
.search-bar .chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.search-bar .count { font-size: 11.5px; color: var(--ink-faint); font-weight: 600; }

/* DECK */
.deck { position: relative; height: 460px; isolation: isolate; margin-bottom: 16px; }
.swipe-card {
  position: absolute; inset: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .4s cubic-bezier(.22,.61,.36,1), opacity .35s; touch-action: none;
}
.swipe-card .photo { height: 52%; position: relative; color: #fff; }
.swipe-card .photo .scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5), transparent 45%); }
.swipe-card .badge { position: absolute; top: 13px; right: 13px; background: var(--gold); color: #23180a; font-weight: 800; font-size: 13.5px; padding: 6px 12px; border-radius: 12px; }
.swipe-card .fresh { position: absolute; top: 13px; left: 13px; background: rgba(0,0,0,.4); font-weight: 700; font-size: 11px; padding: 4px 9px; border-radius: 999px; display: flex; align-items: center; gap: 5px; }
.swipe-card .fresh i { width: 6px; height: 6px; border-radius: 50%; background: #63e6a0; font-style: normal; }
.swipe-card .loc { position: absolute; bottom: 10px; right: 14px; font-size: 20px; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,.5); z-index: 1; }
.swipe-card .type { position: absolute; bottom: 13px; left: 14px; font-size: 11.5px; font-weight: 700; background: rgba(255,255,255,.22); padding: 3px 9px; border-radius: 999px; z-index: 1; }
.swipe-card .body { padding: 13px 16px; flex: 1; display: flex; flex-direction: column; }
.swipe-card .top { display: flex; justify-content: space-between; align-items: baseline; }
.swipe-card .price { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.swipe-card .rooms { font-size: 12.5px; font-weight: 700; color: var(--ink-faint); }
.swipe-card .addr { font-size: 13px; color: var(--ink-soft); margin-top: 1px; }
.swipe-card .fee { margin-top: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; }
.swipe-card .fee .old { font-size: 11.5px; color: var(--ink-faint); }
.swipe-card .fee .new { text-align: left; }
.swipe-card .fee .new b { display: block; font-size: 17px; font-weight: 800; color: var(--like); font-variant-numeric: tabular-nums; }
.swipe-card .fee .new span { font-size: 10.5px; font-weight: 700; color: var(--brand-2); }

.stamp { position: absolute; top: 22px; font-size: 26px; font-weight: 900; padding: 5px 14px; border: 4px solid; border-radius: 10px; opacity: 0; z-index: 2; pointer-events: none; }
.stamp.like { right: 18px; color: var(--like); border-color: var(--like); transform: rotate(-14deg); }
.stamp.nope { left: 18px; color: var(--nope, #C0442A); border-color: var(--nope, #C0442A); transform: rotate(14deg); }

.deck-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.deck-empty b { font-size: 17px; }
.deck-empty p { margin: 0; color: var(--ink-faint); font-size: 13.5px; max-width: 26ch; }

.actions { display: flex; justify-content: center; gap: 20px; }
.act { width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 23px; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; transition: transform .12s; }
.act:active { transform: scale(.9); }
.act.nope { color: var(--nope, #C0442A); }
.act.like { color: var(--like); }

/* NOTES */
.notes { width: 280px; max-width: 100%; display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.notes .note { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 15px 17px; box-shadow: var(--shadow); }
.notes .note b { display: block; font-size: 14.5px; font-weight: 800; margin-bottom: 4px; }
.notes .note p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

/* MATCH OVERLAY */
.match-overlay { position: fixed; inset: 0; background: rgba(15,42,43,.6); z-index: 50; display: none; align-items: center; justify-content: center; padding: 20px; }
.match-overlay.show { display: flex; }
.match-card { background: var(--brand); color: #fff; border-radius: 22px; padding: 30px 26px; max-width: 380px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.match-card .mk { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; color: var(--gold); }
.match-card h2 { font-size: 27px; font-weight: 800; margin: 4px 0 16px; }
.match-savings { background: rgba(255,255,255,.12); border-radius: 14px; padding: 14px 16px; text-align: right; }
.ms-row { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; padding: 6px 0; }
.ms-row .strike { text-decoration: line-through; opacity: .75; font-variant-numeric: tabular-nums; }
.ms-row.highlight { border-top: 1px solid rgba(255,255,255,.2); margin-top: 4px; padding-top: 10px; font-weight: 800; font-size: 15px; }
.ms-row.highlight em { font-style: normal; color: var(--gold); font-weight: 800; }
.ms-row.highlight b { font-variant-numeric: tabular-nums; font-size: 20px; }
.match-btns { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.match-btns .btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }

@media (max-width: 460px) {
  .deck { height: 420px; }
}
