/* A room's tariffs: columns in a row that scrolls sideways, with arrows on wide screens. */
/* Grids around the row must not grow to its full width, or nothing scrolls. */
.ho-section,
.ho-rooms,
.ho-room { grid-template-columns: minmax(0, 1fr); }

.ho-strip { position: relative; min-width: 0; border-top: 1px solid var(--ho-line); background: #f8faff; }

.ho-strip-track {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.9rem;
  padding: 0.9rem;
  scrollbar-width: none;
}

.ho-strip-track::-webkit-scrollbar { display: none; }

.ho-strip::before,
.ho-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 2.6rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.ho-strip::before { inset-inline-start: 0; background: linear-gradient(to right, #f8faff, rgba(248, 250, 255, 0)); }
.ho-strip::after { inset-inline-end: 0; background: linear-gradient(to left, #f8faff, rgba(248, 250, 255, 0)); }
[dir="rtl"] .ho-strip::before { background: linear-gradient(to left, #f8faff, rgba(248, 250, 255, 0)); }
[dir="rtl"] .ho-strip::after { background: linear-gradient(to right, #f8faff, rgba(248, 250, 255, 0)); }
.ho-strip.can-back::before,
.ho-strip.can-more::after { opacity: 1; }

.ho-strip-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-top: -1.2rem;
  padding: 0;
  border: 1px solid var(--ho-line);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px -6px rgba(16, 28, 58, 0.35);
  color: var(--ho-ink);
  cursor: pointer;
  font-size: 1.05rem;
}

.ho-strip-nav.is-back { inset-inline-start: 0.4rem; }
.ho-strip-nav.is-more { inset-inline-end: 0.4rem; }
.ho-strip-nav[hidden] { display: none; }
.ho-strip-nav:hover { color: var(--ho-accent); }
.ho-strip-nav:focus-visible { outline: 2px solid var(--ho-accent); outline-offset: 2px; }
[dir="rtl"] .ho-strip-nav .ho-glyph { transform: scaleX(-1); }
[dir="rtl"] .ho-strip-nav .ho-glyph.is-flipped { transform: none; }

@media (hover: none) {
  .ho-strip-nav { display: none; }
}

.ho-rate {
  position: relative;
  display: flex;
  flex: 0 0 13.6rem;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem 0.9rem;
  border: 1px solid rgba(16, 40, 90, 0.1);
  border-radius: 16px;
  background: #fff;
  scroll-snap-align: start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ho-rate:hover { border-color: rgba(47, 107, 255, 0.35); box-shadow: 0 10px 22px -16px rgba(24, 52, 102, 0.55); }
.ho-rate.is-best { border-color: rgba(16, 121, 79, 0.4); box-shadow: inset 0 0 0 1px rgba(16, 121, 79, 0.18); }
.ho-rate-terms { display: grid; flex: 1; align-content: start; gap: 0.35rem; min-width: 0; }

.ho-term { display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.45rem; margin: 0; color: var(--ho-text); font-size: 0.84rem; font-weight: 650; line-height: 1.3; }
.ho-term .ho-glyph { font-size: 1.05rem; color: var(--ho-faint); }
.ho-term.is-meal,
.ho-term.is-meal .ho-glyph,
.ho-term.is-free,
.ho-term.is-free .ho-glyph { color: var(--ho-good); }
.ho-term.is-firm { color: var(--ho-muted); font-weight: 600; }
.ho-term-when { flex-basis: 100%; padding-inline-start: 1.5rem; color: var(--ho-muted); font-size: 0.74rem; font-weight: 500; }

.ho-rate-variant { margin: 0; padding-inline-start: 1.5rem; color: var(--ho-muted); font-size: 0.74rem; line-height: 1.35; }

.ho-rate-info {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.3rem;
  margin-inline-start: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ho-accent);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
}

.ho-rate-info:focus-visible { outline: 2px solid var(--ho-accent); outline-offset: 2px; border-radius: 4px; }
.ho-rate-fees { display: grid; gap: 0.2rem; padding: 0.55rem 0.65rem; border-radius: 10px; background: var(--ho-soft); color: var(--ho-text); font-size: 0.74rem; line-height: 1.4; }
.ho-rate-fees p { margin: 0; }
.ho-rate-fees[hidden] { display: none; }

.ho-rate-buy { display: grid; gap: 0.6rem; padding-top: 0.7rem; border-top: 1px dashed rgba(16, 40, 90, 0.12); }
.ho-price.is-rate .ho-price-total { font-size: 1.3rem; }
.ho-price-tax { color: var(--ho-muted); font-size: 0.72rem; line-height: 1.35; }
.ho-rate-buy .ho-add { width: 100%; min-width: 0; }

.ho-rate-best {
  align-self: flex-start;
  margin-bottom: -0.2rem;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  background: var(--ho-good-soft);
  color: var(--ho-good);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .ho-rate { flex-basis: 74vw; max-width: 15rem; }
  .ho-strip-track { padding: 0.8rem; scroll-padding-inline: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ho-rate,
  .ho-strip::before,
  .ho-strip::after { transition: none; }
}
