/* Hotel card on the options shelf, and the pieces the hotel dialog shares with it. */
.ho-card,
.ho-sheet,
.ho-saved-view {
  --ho-ink: #0f1d3d;
  --ho-text: #2a3a60;
  --ho-muted: #5f6e94;
  --ho-faint: #8a96b6;
  --ho-line: rgba(16, 40, 90, 0.08);
  --ho-soft: #f4f6fb;
  --ho-accent: #2f6bff;
  --ho-accent-soft: #e9f0ff;
  --ho-good: #10794f;
  --ho-good-soft: #e7f5ee;
  --ho-warm: #a85a06;
  --ho-score: #13734f;
}

.ho-glyph { flex: none; width: 1em; height: 1em; }
.ho-glyph path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.ho-glyph.is-flipped,
[dir="rtl"] .ho-nav .ho-glyph,
[dir="rtl"] .ho-cue .ho-glyph { transform: scaleX(-1); }
[dir="rtl"] .ho-nav .ho-glyph.is-flipped { transform: none; }

.ho-stars { color: #f0a515; font-size: 0.8rem; letter-spacing: 0.06em; line-height: 1; white-space: nowrap; }

.ho-score { display: inline-flex; flex: none; align-items: center; gap: 0.5rem; text-align: end; }

.ho-score-num {
  display: grid;
  place-items: center;
  min-width: 2.35rem;
  height: 2.1rem;
  padding: 0 0.4rem;
  border-radius: 10px 10px 10px 3px;
  background: var(--ho-score);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ho-score-copy { display: grid; gap: 0.05rem; line-height: 1.2; }
.ho-score-word { color: var(--ho-ink); font-size: 0.82rem; font-weight: 750; }
.ho-score-count { color: var(--ho-muted); font-size: 0.72rem; white-space: nowrap; }
.ho-card-head .ho-score { flex-direction: row-reverse; }
.ho-score.is-inline { gap: 0.55rem; text-align: start; }
.ho-score.is-inline .ho-score-num { min-width: 2.1rem; height: 1.85rem; font-size: 0.84rem; }

/* The card. */
.ho-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(16, 40, 90, 0.06);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(24, 52, 102, 0.05), 0 22px 40px -26px rgba(24, 52, 102, 0.42);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ho-card:has(.ho-card-open:focus-visible) { box-shadow: 0 0 0 2px var(--ho-accent), 0 22px 40px -26px rgba(24, 52, 102, 0.42); }

@media (hover: hover) and (pointer: fine) {
  .ho-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(24, 52, 102, 0.06), 0 28px 46px -24px rgba(24, 52, 102, 0.46); }
  .ho-card:hover .ho-nav { opacity: 1; }
  .ho-card:hover .ho-cue { gap: 0.5rem; }
}

.ho-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e4eeff, #f1eaff);
  touch-action: pan-y;
}

.ho-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ho-frame.is-blank { display: grid; place-items: center; aspect-ratio: 16 / 6; }
.ho-blank-glyph { width: 2.4rem; height: 2.4rem; color: #9db3dc; }

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

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

.ho-frame-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ho-frame-hit:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

.ho-stars.is-on-photo {
  position: absolute;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 2;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(10, 18, 40, 0.14);
  pointer-events: none;
}

.ho-dots {
  position: absolute;
  inset: auto 0 0.7rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.32rem;
  pointer-events: none;
}

.ho-dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: rgba(255, 255, 255, 0.55); transition: background 0.2s ease, transform 0.2s ease; }
.ho-dot.is-on { background: #fff; }
.ho-dot.is-edge { transform: scale(0.7); }

.ho-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-top: -1.1rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(10, 18, 40, 0.2);
  color: var(--ho-ink, #0f1d3d);
  cursor: pointer;
  font-size: 1.05rem;
  transition: opacity 0.2s ease;
}

.ho-nav.is-prev { inset-inline-start: 0.7rem; }
.ho-nav.is-next { inset-inline-end: 0.7rem; }
.ho-nav:focus-visible { opacity: 1; outline: 2px solid var(--ho-accent, #2f6bff); outline-offset: 2px; }
.ho-nav[hidden] { display: none; }

@media (hover: hover) and (pointer: fine) {
  .ho-frame .ho-nav { opacity: 0; }
}

.ho-card-open {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.ho-card-open:focus-visible { outline: none; }

.ho-card-body { display: grid; gap: 0.35rem; padding: 0.95rem 1.1rem 1.05rem; }

.ho-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; }

.ho-card-name {
  margin: 0;
  color: var(--ho-ink);
  font-size: 1.12rem;
  font-weight: 760;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.ho-card-where,
.ho-where {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  margin: 0;
  color: var(--ho-text);
  font-size: 0.84rem;
  font-weight: 600;
}

.ho-card-where span,
.ho-where span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ho-card-where .ho-glyph,
.ho-where .ho-glyph { color: var(--ho-faint); font-size: 1rem; }

.ho-card-meta { margin: 0; color: var(--ho-muted); font-size: 0.8rem; }

.ho-signals { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin-top: 0.15rem; }

.ho-signal {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: var(--ho-text);
  font-size: 0.8rem;
  font-weight: 650;
}

.ho-signal .ho-glyph { font-size: 1rem; color: var(--ho-muted); }
.ho-signal.is-free,
.ho-signal.is-free .ho-glyph { color: var(--ho-good); }

.ho-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem 1rem;
  margin-top: 0.55rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--ho-line);
}

.ho-card-room { display: grid; flex: 1 1 13rem; gap: 0.14rem; min-width: 0; }
.ho-card-label { color: var(--ho-faint); font-size: 0.68rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.ho-card-room-name { margin: 0; color: var(--ho-ink); font-size: 0.9rem; font-weight: 700; line-height: 1.3; }

.ho-card-terms { display: flex; flex-wrap: wrap; gap: 0 0.5rem; margin: 0; color: var(--ho-muted); font-size: 0.78rem; }
.ho-card-terms span + span::before { content: "·"; margin-inline-end: 0.5rem; color: var(--ho-faint); }
.ho-card-terms .is-good { color: var(--ho-good); font-weight: 650; }

.ho-card-buy { display: grid; flex: none; justify-items: end; gap: 0.45rem; text-align: end; }

.ho-price { display: grid; gap: 0.1rem; }

.ho-price-total {
  color: var(--ho-ink);
  font-family: var(--round);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.ho-price-unit { color: var(--ho-muted); font-size: 0.74rem; }

.ho-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  padding: 0 1.05rem;
  border-radius: 999px;
  background: var(--ho-accent);
  box-shadow: 0 10px 20px -10px rgba(47, 107, 255, 0.75);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 750;
  white-space: nowrap;
  transition: gap 0.2s ease;
}

.ho-card.is-pending .ho-frame {
  background: linear-gradient(100deg, #e9eefa 30%, #f5f7fd 50%, #e9eefa 70%) 0 0 / 200% 100%;
  animation: ho-shimmer 1.4s linear infinite;
}

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

/* A card drawn from our own copy while the supplier prices the stay. */
.ho-card.is-waiting { box-shadow: 0 1px 2px rgba(24, 52, 102, 0.05), 0 14px 28px -22px rgba(24, 52, 102, 0.36); }

.ho-card-wait {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.3rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: var(--ho-soft);
  color: var(--ho-muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.ho-card-wait-dot { position: relative; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--ho-accent); }
.ho-card-wait-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ho-accent); animation: ho-wait-ping 1.4s ease-out infinite; }
@keyframes ho-wait-ping { to { transform: scale(2.8); opacity: 0; } }

@media (max-width: 420px) {
  .ho-card-body { padding: 0.85rem 0.9rem 0.95rem; }
  .ho-card-buy { flex: 1 1 100%; grid-template-columns: 1fr auto; align-items: end; justify-items: stretch; text-align: start; }
  .ho-cue { justify-self: end; }
  .ho-card-head .ho-score-copy { display: none; }
}

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

/* The button that draws the next page of hotel cards. */
.ho-more {
  justify-self: stretch;
  width: 100%;
  margin: 0.4rem 0 0.8rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(91, 75, 214, 0.3);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  color: #4a3fc4;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.ho-more:hover { background: #fff; border-color: rgba(91, 75, 214, 0.55); }
.ho-more:focus-visible { outline: 2px solid #5b4bd6; outline-offset: 2px; }
