/* Hotel cards on the options shelf. Loaded after app.css, which holds the base rules. */
.stay-card {
  padding: 0;
  border-radius: 24px;
  border: 1px solid rgba(16, 40, 90, 0.06);
  box-shadow: 0 1px 2px rgba(24, 52, 102, 0.05), 0 22px 40px -24px rgba(24, 52, 102, 0.4);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .stay-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(24, 52, 102, 0.06), 0 28px 44px -22px rgba(24, 52, 102, 0.45);
  }
}

.stay-card:has(:focus-visible) { box-shadow: 0 0 0 2px #2f6bff, 0 22px 40px -24px rgba(24, 52, 102, 0.4); }

.stay-card .stay-frame {
  aspect-ratio: 16 / 10;
  border-radius: 0;
  background: linear-gradient(135deg, #e4eeff, #f1eaff);
}

.stay-card .stay-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(to top, rgba(10, 18, 40, 0.42), transparent);
  pointer-events: none;
}

.stay-card .stay-frame.is-blank {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 6;
}

.stay-card .stay-frame.is-blank::after { display: none; }

.stay-blank-glyph {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  color: #9db3dc;
}

.stay-stars.on-photo {
  position: absolute;
  z-index: 2;
  inset-block-start: 0.65rem;
  inset-inline-start: 0.65rem;
  margin: 0;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 12px rgba(12, 22, 48, 0.18);
  line-height: 1;
}

.stay-card .stay-count { inset-block-end: 0.65rem; inset-inline-end: 0.65rem; }

.stay-card.is-pending .stay-frame {
  aspect-ratio: 16 / 10;
  background: linear-gradient(100deg, #e4ecf9 30%, #f5f8fe 50%, #e4ecf9 70%) 0 0 / 200% 100%;
  animation: stay-shimmer 1.5s linear infinite;
}

@keyframes stay-shimmer { to { background-position: -200% 0; } }

.stay-card .stay-copy {
  gap: 0.42rem;
  padding: 1rem 1.1rem 1.1rem;
}

.stay-card .stay-name {
  font-size: 1.14rem;
  line-height: 1.22;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stay-card .stay-address,
.stay-card .stay-meta { font-size: 0.82rem; color: #66769b; }

.stay-card .stay-address { color: #4a5b82; font-weight: 600; }

.stay-card .stay-offer {
  gap: 0.75rem;
  margin-top: 0.3rem;
  padding: 0.5rem;
  border-radius: 16px;
  background: #f4f6fb;
}

.stay-card .stay-offer-photo { width: 4.8rem; height: 3.5rem; border-radius: 11px; }

.stay-card .stay-offer-name { font-size: 0.88rem; }

.stay-card .stay-buy {
  margin-top: 0.55rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(16, 40, 90, 0.07);
}

.stay-card .stay-buy .stay-price-total { font-size: 1.75rem; }

.stay-card .stay-cue {
  gap: 0.4rem;
  padding: 0.68rem 1.05rem;
  border: 0;
  background: #2f6bff;
  color: #fff;
  font-size: 0.84rem;
  box-shadow: 0 10px 20px -10px rgba(47, 107, 255, 0.8);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.stay-card:hover .stay-cue,
.stay-card:has(:focus-visible) .stay-cue {
  background: #2458d6;
  box-shadow: 0 12px 22px -10px rgba(36, 88, 214, 0.9);
}

@media (prefers-reduced-motion: reduce) {
  .stay-card,
  .stay-card .stay-cue { transition: none; }
  .stay-card:hover { transform: none; }
  .stay-card.is-pending .stay-frame { animation: none; }
}
