/* More beds, and a bed tonight: Watch my place, swaps, Stranded, Open Door. Same tokens as app.css. */

/* ---- trips strip */
.inv-strip { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.inv-strip:has([data-inv-urgent]:empty) { gap: 0; }
.inv-chips .chip .i { color: var(--muted); }
.inv-hot { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.inv-hot .i { color: currentColor !important; }
.inv-urgent-list { padding: 4px; }
.inv-urgent > .i { flex: none; width: 44px; height: 44px; padding: 12px; border-radius: 50%; background: var(--warn-soft); color: var(--warn); box-sizing: border-box; }

/* ---- small icon well, needs, pets */
.inv-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); color: var(--ink); flex: none; }
.inv-need { padding: 6px 0; }
.inv-pet { padding: 16px; border-radius: var(--r-well); background: var(--well); }
.textarea.inv-short { min-height: 64px; }

/* ---- watch cards (search, asks, the list) */
.inv-wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.inv-wcard { display: flex; gap: 14px; padding: 10px; align-items: flex-start; border-radius: var(--r-card); min-width: 0;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease); }
@media (hover: hover) { .inv-wcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); } }
.inv-wcard:active { transform: scale(.98); }
.inv-wcard .t { font-size: 15px; font-weight: 500; letter-spacing: -.01em; padding-top: 4px; }
.inv-tasks { display: flex; flex-wrap: wrap; gap: 6px; }
.inv-tasks .pill { font-size: 12px; }
.inv-wstrip { margin-top: 8px; }
.inv-hrow { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.inv-hrow:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---- kind badges on a stay */
.inv-kind { gap: 6px; }
a.inv-kind { transition: background-color var(--dur-quick) var(--ease); }
@media (hover: hover) { a.inv-kind:hover { background: var(--chip-hover); } }

/* ---- swap: two places, one arrow */
.inv-swap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.inv-swapcard { display: flex; flex-direction: column; padding: 8px; border-radius: var(--r-card); min-width: 0;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease); }
@media (hover: hover) { .inv-swapcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); } }
.inv-swapimg { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-well); overflow: hidden; background: var(--well); }
.inv-swapimg img, .inv-swapimg .art { width: 100%; height: 100%; object-fit: cover; }
.inv-swapic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); color: var(--muted); }
@media (max-width: 640px) {
  .inv-swap { grid-template-columns: 1fr; }
  .inv-swapic { justify-self: center; transform: rotate(90deg); }
}

/* ---- stranded */
.inv-nudge > .i { color: #EC4899; flex: none; }
.inv-safety { flex-direction: row; align-items: flex-start; gap: 12px; }
.inv-safety > .i { flex: none; color: var(--ok); margin-top: 2px; }

/* ---- open door */
.inv-od-note > .i { flex: none; color: var(--muted); }
.inv-odgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.inv-od { display: flex; flex-direction: column; padding: 8px; border-radius: var(--r-card); min-width: 0;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease); }
@media (hover: hover) { .inv-od:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); } }
.inv-od:active { transform: scale(.98); }
.inv-odart { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-well); overflow: hidden; }
.inv-odart .art { width: 100%; height: 100%; }
.inv-odart .pill { position: absolute; left: 10px; bottom: 10px; }
.inv-odt { font-size: 20px; font-weight: 500; letter-spacing: -.015em; }
.inv-od .small .i { width: 12px; height: 12px; vertical-align: -1px; color: var(--ok); }

@media (prefers-reduced-motion: reduce) {
  .inv-wcard, .inv-swapcard, .inv-od { transition: none; }
  .inv-wcard:hover, .inv-swapcard:hover, .inv-od:hover { transform: none; }
}

/* On a phone the stay header wraps (app.js), so the badge keeps its words: an icon alone explains nothing on touch. */
