/* The hotel dialog: header with tabs, photos, key facts and the sections below the rooms. */
.ho-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(226, 233, 248, 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  animation: ho-fade 0.22s ease;
}

.ho-panel {
  display: flex;
  flex-direction: column;
  width: min(60rem, 100%);
  height: min(94vh, 60rem);
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 6px rgba(24, 52, 102, 0.06), 0 40px 90px -30px rgba(24, 52, 102, 0.45);
  color: var(--ho-text);
  animation: ho-rise 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes ho-fade { from { opacity: 0; } }
@keyframes ho-rise { from { opacity: 0; transform: translateY(14px) scale(0.985); } }

.ho-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 1rem;
  padding: 1rem 1.3rem 0;
  border-bottom: 1px solid var(--ho-line);
  background: #fff;
}

.ho-head-copy { display: grid; gap: 0.25rem; min-width: 0; }
.ho-head-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; }
.ho-name { margin: 0; color: var(--ho-ink); font-size: 1.3rem; font-weight: 780; letter-spacing: -0.015em; line-height: 1.2; }
.ho-where { font-weight: 550; color: var(--ho-muted); }

.ho-x {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--ho-line);
  border-radius: 50%;
  background: #fff;
  color: var(--ho-ink);
  cursor: pointer;
  font-size: 1.15rem;
}

.ho-x:hover { background: var(--ho-soft); }
.ho-x:focus-visible,
.ho-tab:focus-visible { outline: 2px solid var(--ho-accent); outline-offset: 2px; }

.ho-tabs {
  grid-column: 1 / -1;
  display: flex;
  gap: 1.4rem;
  margin-top: 0.7rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.ho-tabs::-webkit-scrollbar { display: none; }

.ho-tab {
  position: relative;
  flex: none;
  padding: 0.55rem 0 0.7rem;
  border: 0;
  background: none;
  color: var(--ho-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
}

.ho-tab::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ho-accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.ho-tab:hover { color: var(--ho-ink); }
.ho-tab[aria-current="true"] { color: var(--ho-ink); }
.ho-tab[aria-current="true"]::after { transform: scaleX(1); }

.ho-body { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1.2rem 1.3rem 2rem; }

.ho-top { display: grid; gap: 1.1rem; }

.ho-closed { margin: 0; padding: 0.75rem 0.95rem; border-radius: 14px; background: #fff1f2; color: #a3283b; font-size: 0.86rem; font-weight: 650; }

/* Photos: one large and four small on wide screens, one swipeable tile on phones. */
.ho-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  height: clamp(14rem, 34vw, 22rem);
  overflow: hidden;
  border-radius: 20px;
}

.ho-mosaic.is-1 { grid-template-columns: 1fr; }
.ho-mosaic.is-2 { grid-template-columns: 2fr 1fr; }
.ho-mosaic.is-2 .ho-tile:not(.is-main) { grid-row: 1 / -1; }
.ho-mosaic.is-3 { grid-template-columns: 2fr 1fr; }
.ho-mosaic.is-4 .ho-tile:nth-child(4) { grid-column: 2 / -1; }

.ho-tile { position: relative; overflow: hidden; padding: 0; border: 0; background: #e8eef9; cursor: zoom-in; }
.ho-tile.is-main { grid-row: 1 / -1; }
.ho-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ho-tile:hover img { transform: scale(1.03); }
.ho-tile.is-broken img { visibility: hidden; }
.ho-tile:focus-visible { outline: 3px solid var(--ho-accent); outline-offset: -3px; }

.ho-mosaic-all {
  position: absolute;
  inset: auto 0.8rem 0.8rem auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px rgba(10, 18, 40, 0.18);
  color: var(--ho-ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
}

[dir="rtl"] .ho-mosaic-all { inset: auto auto 0.8rem 0.8rem; }

@media (max-width: 640px) {
  .ho-mosaic { grid-template-columns: 1fr; height: auto; aspect-ratio: 4 / 3; border-radius: 18px; }
  .ho-tile:not(.is-main) { display: none; }
}

/* Key facts: label above, value below, in one tidy grid. */
.ho-key-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid var(--ho-line);
  border-radius: 18px;
  overflow: hidden;
}

.ho-key-fact { display: grid; align-content: start; gap: 0.3rem; padding: 0.8rem 0.95rem; box-shadow: 1px 1px 0 var(--ho-line); }
.ho-key-fact dt { display: flex; align-items: center; gap: 0.35rem; color: var(--ho-muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.ho-key-fact dt .ho-glyph { font-size: 0.95rem; color: var(--ho-faint); }
.ho-key-fact dd { margin: 0; color: var(--ho-ink); font-size: 0.92rem; font-weight: 700; line-height: 1.3; }
.ho-key-fact.is-rating .ho-score-count { font-weight: 500; }

.ho-mini-title { margin: 0 0 0.55rem; color: var(--ho-ink); font-size: 0.95rem; font-weight: 760; }

.ho-checks { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.ho-checks li { display: flex; align-items: flex-start; gap: 0.5rem; color: var(--ho-text); font-size: 0.86rem; line-height: 1.35; }
.ho-checks .ho-glyph { margin-top: 0.12em; color: var(--ho-good); font-size: 1rem; }
.ho-checks.is-columns { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.5rem 1.2rem; }
.ho-checks li.is-extra { display: none; }
.ho-checks.is-open li.is-extra { display: flex; }
.ho-checks.is-plain li { display: list-item; margin-inline-start: 1.1rem; list-style: disc; }
.ho-checks.is-plain li::marker { color: var(--ho-faint); }

/* Sections below the rooms. */
.ho-section { display: grid; gap: 0.9rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--ho-line); }
.ho-section.is-rooms { margin-top: 1.6rem; }
.ho-section[hidden] { display: none; }
.ho-section-head { display: grid; gap: 0.2rem; }
.ho-section-title { margin: 0; color: var(--ho-ink); font-family: var(--round); font-size: 1.3rem; font-weight: 900; letter-spacing: -0.01em; }
.ho-section-sub { margin: 0; color: var(--ho-muted); font-size: 0.82rem; }
.ho-section-body { display: grid; gap: 1.1rem; }

.ho-prose { display: grid; gap: 0.55rem; color: var(--ho-text); font-size: 0.9rem; line-height: 1.6; }
.ho-prose p { margin: 0; }
.ho-prose.is-small { font-size: 0.84rem; line-height: 1.55; }
.ho-prose-title { margin: 0.3rem 0 0; color: var(--ho-ink); font-size: 0.92rem; font-weight: 760; }
.ho-prose.is-folded { max-height: 9.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.ho-clamp { display: grid; gap: 0.4rem; justify-items: start; }

.ho-more,
.ho-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  color: var(--ho-accent);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
}

.ho-more .ho-glyph { transition: transform 0.2s ease; }
.ho-more[aria-expanded="true"] .ho-glyph { transform: rotate(180deg); }
.ho-more:hover span,
.ho-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ho-more:focus-visible,
.ho-link:focus-visible { outline: 2px solid var(--ho-accent); outline-offset: 2px; border-radius: 6px; }

.ho-amen-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1.3rem 1.6rem; }
.ho-amen-group { display: grid; align-content: start; gap: 0.5rem; }
.ho-amen-name { margin: 0; color: var(--ho-ink); font-size: 0.9rem; font-weight: 760; }
.ho-amen-group .ho-link { justify-self: start; padding: 0; }
.ho-paid { margin: 0; color: var(--ho-muted); font-size: 0.78rem; line-height: 1.45; }

.ho-rows { display: grid; margin: 0; border: 1px solid var(--ho-line); border-radius: 16px; overflow: hidden; }
.ho-row { display: grid; grid-template-columns: minmax(8rem, 0.8fr) minmax(0, 1.2fr); gap: 1rem; padding: 0.7rem 0.95rem; }
.ho-row + .ho-row { border-top: 1px solid var(--ho-line); }
.ho-row dt { color: var(--ho-muted); font-size: 0.84rem; font-weight: 600; }
.ho-row dd { margin: 0; color: var(--ho-ink); font-size: 0.86rem; font-weight: 650; }

@media (max-width: 640px) {
  .ho-sheet { padding: 0; place-items: end stretch; }
  .ho-panel { width: 100%; height: calc(var(--app-h, 100dvh) - var(--safe-t, 0px) - 0.6rem); border-radius: 22px 22px 0 0; animation-name: ho-slide; }
  .ho-head { padding: 0.85rem 1rem 0; }
  .ho-name { font-size: 1.12rem; }
  .ho-body { padding: 1rem 1rem calc(1.6rem + var(--safe-b, 0px)); }
  .ho-tabs { gap: 1.1rem; }
  .ho-row { grid-template-columns: 1fr; gap: 0.15rem; }
}

@keyframes ho-slide { from { transform: translateY(40px); opacity: 0.4; } }

@media (prefers-reduced-motion: reduce) {
  .ho-sheet,
  .ho-panel { animation: none; }
  .ho-tab::after,
  .ho-tile img,
  .ho-more .ho-glyph { transition: none; }
  .ho-tile:hover img { transform: none; }
}
