/* Rooms of the hotel dialog, the waiting state, reviews and the photo viewer. */
.ho-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.ho-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.3rem;
  padding: 0 0.95rem;
  border: 1px solid rgba(16, 40, 90, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--ho-text);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
}

.ho-filter .ho-glyph { font-size: 1rem; color: var(--ho-muted); }
.ho-filter:hover { border-color: rgba(47, 107, 255, 0.45); }
.ho-filter[aria-pressed="true"] { border-color: var(--ho-accent); background: var(--ho-accent-soft); color: var(--ho-accent); }
.ho-filter[aria-pressed="true"] .ho-glyph { color: var(--ho-accent); }
.ho-filter:focus-visible { outline: 2px solid var(--ho-accent); outline-offset: 2px; }

.ho-rooms { display: grid; gap: 1rem; }
.ho-empty { margin: 0; padding: 1rem; border-radius: 16px; background: var(--ho-soft); color: var(--ho-muted); font-size: 0.88rem; }
.ho-empty[hidden] { display: none; }

.ho-room {
  display: grid;
  border: 1px solid rgba(16, 40, 90, 0.1);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 30px -24px rgba(24, 52, 102, 0.55);
  overflow: hidden;
}

.ho-room-top { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: 0.8rem; }

.ho-room-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #e8eef9;
  cursor: zoom-in;
}

.ho-room-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.ho-room-photo:hover img { transform: scale(1.04); }
.ho-room-photo:focus-visible { outline: 3px solid var(--ho-accent); outline-offset: 2px; }

.ho-room-photo.is-blank {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.3rem;
  padding: 0.6rem;
  color: #8ea3cc;
  cursor: default;
  font-size: 0.7rem;
  text-align: center;
}

.ho-room-photo.is-blank .ho-glyph { font-size: 1.8rem; }

.ho-photo-count {
  position: absolute;
  inset: auto 0.4rem 0.4rem auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(10, 18, 40, 0.68);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.ho-room-info { display: grid; align-content: start; gap: 0.4rem; min-width: 0; padding-top: 0.15rem; }
.ho-room-name { margin: 0; color: var(--ho-ink); font-size: 1.05rem; font-weight: 770; line-height: 1.25; }
.ho-room-facts { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; margin: 0; }
.ho-fact { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--ho-text); font-size: 0.82rem; font-weight: 600; }
.ho-fact .ho-glyph { font-size: 1rem; color: var(--ho-faint); }
.ho-fact.is-warm { color: var(--ho-warm); font-weight: 700; }
.ho-tax-note { display: flex; align-items: center; gap: 0.4rem; margin: 0; color: var(--ho-muted); font-size: 0.8rem; }
.ho-tax-note .ho-glyph { font-size: 1rem; color: var(--ho-faint); }
.ho-room-amen { margin: 0; color: var(--ho-muted); font-size: 0.8rem; line-height: 1.5; }
.ho-room-amen .ho-link { margin-inline-start: 0.35rem; padding: 0; font-size: 0.78rem; }

.ho-add,
.ho-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 8.4rem;
  min-height: 2.6rem;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--ho-accent);
  box-shadow: 0 10px 20px -12px rgba(47, 107, 255, 0.8);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  white-space: nowrap;
}

.ho-add:hover { background: #2559e0; }
.ho-add:focus-visible,
.ho-quiet:focus-visible { outline: 2px solid var(--ho-accent); outline-offset: 3px; }
.ho-add:disabled { cursor: default; opacity: 0.85; }
.ho-add.is-busy { background: #7fa3ff; box-shadow: none; }
.ho-add.is-done { background: var(--ho-good-soft); box-shadow: none; color: var(--ho-good); opacity: 1; }
.ho-add.is-done .ho-glyph { font-size: 1rem; }
.ho-add[hidden] { display: none; }
.ho-quiet { background: transparent; box-shadow: none; color: var(--ho-text); border: 1px solid rgba(16, 40, 90, 0.16); }

.ho-moved { grid-column: 1 / -1; display: grid; gap: 0.55rem; padding: 0.75rem 0.9rem; border-radius: 14px; background: #fff6e8; color: #6b4206; font-size: 0.84rem; font-weight: 600; }
.ho-moved p { margin: 0; }
.ho-moved-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }


/* Waiting for live prices. */
.ho-wait { display: grid; gap: 0.9rem; }
.ho-wait-line { display: flex; align-items: center; gap: 0.6rem; margin: 0; color: var(--ho-text); font-size: 0.88rem; font-weight: 650; }
.ho-wait-pulse { position: relative; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--ho-accent); }
.ho-wait-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ho-accent); animation: ho-ping 1.4s ease-out infinite; }
@keyframes ho-ping { to { transform: scale(2.8); opacity: 0; } }

.ho-ghost { display: grid; gap: 0.7rem; padding: 0.8rem; border: 1px solid rgba(16, 40, 90, 0.08); border-radius: 22px; }
.ho-ghost-top { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; }
.ho-ghost-lines { display: grid; align-content: start; gap: 0.55rem; padding-top: 0.2rem; }

.ho-bone {
  display: block;
  height: 0.8rem;
  border-radius: 8px;
  background: linear-gradient(100deg, #edf1f9 30%, #f8f9fd 50%, #edf1f9 70%) 0 0 / 200% 100%;
  animation: ho-shimmer 1.4s linear infinite;
}

.ho-bone.is-photo { height: auto; aspect-ratio: 4 / 3; border-radius: 14px; }
.ho-bone.is-title { width: 62%; height: 1.05rem; }
.ho-bone.is-short { width: 38%; }
.ho-ghost-cols { display: flex; gap: 0.75rem; overflow: hidden; }
.ho-bone.is-col { flex: 0 0 13.6rem; height: 11rem; border-radius: 16px; }
.ho-ghost:nth-child(3) .ho-bone { animation-delay: 0.15s; }
.ho-ghost:nth-child(4) .ho-bone { animation-delay: 0.3s; }

/* Reviews. */
.ho-review-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem; align-items: center; }
.ho-review-score { display: flex; align-items: center; gap: 0.75rem; }
.ho-review-score > b { display: grid; place-items: center; width: 3.6rem; height: 3.4rem; border-radius: 14px 14px 14px 4px; background: var(--ho-score); color: #fff; font-size: 1.35rem; font-weight: 850; }
.ho-review-word { margin: 0; color: var(--ho-ink); font-size: 1rem; font-weight: 760; }
.ho-review-count { margin: 0; color: var(--ho-muted); font-size: 0.8rem; }
.ho-bars { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.55rem 1.4rem; }
.ho-bar { display: grid; grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr) 2rem; align-items: center; gap: 0.6rem; font-size: 0.8rem; }
.ho-bar-name { overflow: hidden; color: var(--ho-text); text-overflow: ellipsis; white-space: nowrap; }
.ho-bar-track { height: 0.4rem; overflow: hidden; border-radius: 999px; background: #e9edf6; }
.ho-bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--ho-score); }
.ho-bar b { color: var(--ho-ink); text-align: end; }
.ho-review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.8rem; }
.ho-review-list .is-extra { display: none; }
.ho-review-list.is-open .is-extra { display: grid; }
.ho-review { display: grid; align-content: start; gap: 0.5rem; padding: 0.9rem 1rem; border-radius: 16px; background: var(--ho-soft); }
.ho-review-head { display: flex; align-items: center; gap: 0.5rem; color: var(--ho-muted); font-size: 0.78rem; }
.ho-review-mark { padding: 0.1rem 0.4rem; border-radius: 6px; background: var(--ho-score); color: #fff; font-size: 0.76rem; }
.ho-review-line { display: grid; gap: 0.1rem; margin: 0; color: var(--ho-text); font-size: 0.84rem; line-height: 1.5; }
.ho-review-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.ho-review-line.is-plus .ho-review-label { color: var(--ho-good); }
.ho-review-line.is-minus .ho-review-label { color: #a3283b; }

/* Photo viewer: a frosted light layer over the page, the photo as large as the screen allows. */
.ho-look {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 0.7rem;
  padding: 0.9rem clamp(0.8rem, 3vw, 2rem) 1rem;
  background: rgba(242, 246, 253, 0.82);
  -webkit-backdrop-filter: blur(26px) saturate(1.3);
  backdrop-filter: blur(26px) saturate(1.3);
  color: var(--ho-ink);
  animation: ho-fade 0.2s ease;
}

.ho-look[hidden] { display: none; }
.ho-look-top { display: flex; align-items: center; gap: 1rem; }
.ho-look-title { flex: 1; min-width: 0; overflow: hidden; font-size: 1.02rem; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.ho-look-count { padding: 0.3rem 0.65rem; border-radius: 999px; background: rgba(255, 255, 255, 0.8); color: var(--ho-muted); font-size: 0.82rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.ho-look-x { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; padding: 0; border: 1px solid var(--ho-line); border-radius: 50%; background: #fff; box-shadow: 0 6px 18px -8px rgba(16, 28, 58, 0.35); color: var(--ho-ink); cursor: pointer; font-size: 1.15rem; }
.ho-look-x:hover { color: var(--ho-accent); }
.ho-look-x:focus-visible { outline: 2px solid var(--ho-accent); outline-offset: 2px; }
/* One definite cell, so a tall photo is fitted to the stage instead of overflowing it. */
.ho-look-stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; padding: 0 3.4rem; touch-action: pan-y; }
.ho-look-stage img { width: 100%; height: 100%; max-width: 76rem; border-radius: 18px; object-fit: contain; }
.ho-look-stage.is-loading::after {
  content: "";
  position: absolute;
  inset-block-end: 1rem;
  inset-inline-start: 50%;
  width: 1.6rem;
  height: 1.6rem;
  margin-inline-start: -0.8rem;
  border: 3px solid rgba(255, 255, 255, 0.55);
  border-top-color: var(--ho-accent);
  border-radius: 50%;
  animation: ho-look-spin 0.8s linear infinite;
  pointer-events: none;
}
@keyframes ho-look-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ho-look-stage.is-loading::after { animation: none; } }
.ho-look-stage .ho-nav { opacity: 1; }
.ho-look-stage .ho-nav.is-prev { inset-inline-start: 0; }
.ho-look-stage .ho-nav.is-next { inset-inline-end: 0; }
.ho-look-note { margin: 0; color: var(--ho-muted); font-size: 0.8rem; text-align: center; }
.ho-look-film { display: flex; gap: 0.45rem; justify-content: safe center; padding: 0.2rem; overflow-x: auto; scrollbar-width: none; }
.ho-look-thumb { flex: none; width: 4.6rem; height: 3.2rem; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 10px; background: #e8eef9; cursor: pointer; opacity: 0.6; transition: opacity 0.2s ease, border-color 0.2s ease; }
.ho-look-thumb:hover { opacity: 0.9; }
.ho-look-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ho-look-thumb.is-on { border-color: var(--ho-accent); opacity: 1; }
.ho-look-thumb:focus-visible { outline: 2px solid var(--ho-accent); outline-offset: 2px; }

@media (max-width: 640px) {
  .ho-room-top,
  .ho-ghost-top { grid-template-columns: 6.6rem minmax(0, 1fr); gap: 0.75rem; }
  .ho-room-name { font-size: 0.98rem; }
  .ho-bone.is-col { flex-basis: 74vw; max-width: 15rem; }
  .ho-price.is-rate { justify-items: start; text-align: start; }
  .ho-review-top { grid-template-columns: 1fr; }
  .ho-look-thumb { width: 3.6rem; height: 2.6rem; }
  .ho-look-stage { padding: 0; }
  .ho-look-stage .ho-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ho-bone,
  .ho-wait-pulse::after { animation: none; }
  .ho-room-photo img,
  .ho-more .ho-glyph { transition: none; }
  .ho-room-photo:hover img { transform: none; }
  .ho-look,
  .ho-look-thumb { animation: none; transition: none; }
}
