/* Detail hotelu ze znalostní báze (hotel-info.js). Vzhled LP ladí proměnnými na :root:
   --okb-font, --okb-ink, --okb-muted, --okb-bg, --okb-soft, --okb-line, --okb-accent, --okb-radius.
   Písmo se dědí ze stránky. Na mobilu panel zespodu, od 760 px okno uprostřed. */

html.okb-open { overflow: hidden; }

/* Proměnné pro okno i obsah vložený do stránky (slot data-kb-hotel → .okb-info). */
.okb-dialog, .okb-info {
  --_ink: var(--okb-ink, #1f314f);
  --_muted: var(--okb-muted, #5b6778);
  --_bg: var(--okb-bg, #fff);
  --_soft: var(--okb-soft, #f4f1ea);
  --_line: var(--okb-line, #e3e0d8);
  --_accent: var(--okb-accent, #a3824b);
  --_radius: var(--okb-radius, 16px);
}
.okb-dialog {
  position: fixed; inset: auto 0 0 0; margin: 0; padding: 0; border: 0;
  width: 100%; max-width: 100%; max-height: min(92dvh, 92vh);
  background: transparent; color: var(--_ink);
  font-family: var(--okb-font, inherit); font-size: 16px; line-height: 1.45;
}
.okb-dialog::backdrop { background: rgb(15 22 33 / .55); }
.okb-dialog[open] { display: flex; animation: okb-up .22s ease-out; }
@keyframes okb-up { from { transform: translateY(24px); opacity: 0; } }

.okb-sheet {
  display: flex; flex-direction: column; width: 100%; max-height: inherit;
  background: var(--_bg); border-radius: var(--_radius) var(--_radius) 0 0;
  box-shadow: 0 -8px 32px rgb(0 0 0 / .18); overflow: hidden;
}
.okb-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 18px 16px 12px; border-bottom: 1px solid var(--_line);
}
.okb-eyebrow { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--_accent); }
.okb-title { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 700; color: var(--_ink); }
.okb-tagline { margin: 6px 0 0; color: var(--_muted); font-size: 15px; }
.okb-close {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -6px 0 0;
  border: 0; border-radius: 50%; background: var(--_soft); color: var(--_ink); cursor: pointer;
}
.okb-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.okb-close:focus-visible, .okb-cta:focus-visible { outline: 2px solid var(--_accent); outline-offset: 2px; }

.okb-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 20px; outline: none; -webkit-overflow-scrolling: touch; }
.okb-photo { margin: 12px -16px 4px; aspect-ratio: 16 / 9; background: var(--_soft); overflow: hidden; }
.okb-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.okb-sub { margin: 20px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--_muted); }
.okb-check, .okb-facts, .okb-amen, .okb-hl { list-style: none; margin: 0; padding: 0; }
.okb-check li { position: relative; padding: 4px 0 4px 28px; font-weight: 600; }
.okb-check li::before {
  content: ''; position: absolute; left: 2px; top: 9px; width: 14px; height: 8px;
  border: solid var(--_accent); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg);
}
.okb-amen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.okb-amen li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 10px; background: var(--_soft); font-size: 14px; }
.okb-amen span { min-width: 0; overflow-wrap: anywhere; }
.okb-ico { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--_accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.okb-facts li { padding: 8px 0; border-bottom: 1px solid var(--_line); font-size: 15px; }
.okb-facts li:last-child { border-bottom: 0; }
.okb-facts a, .okb-source { color: var(--_ink); text-decoration: underline; text-underline-offset: 3px; }
.okb-source { display: inline-block; margin-top: 18px; font-size: 15px; font-weight: 600; }
.okb-source::after { content: ' ↗'; }

.okb-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--_line); background: var(--_bg);
}
.okb-cta { margin-left: auto; min-height: 48px; }
.okb-cta:not([class*=" btn"]):not([class*=" button"]) {
  display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--_ink); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}

/* Krátký výpis highlights pro kartu / hlavičku hotelu (highlightsHtml). */
.okb-hl { display: flex; flex-wrap: wrap; gap: 6px; }
.okb-hl li { padding: 4px 10px; border-radius: 999px; background: var(--okb-soft, #f4f1ea); color: var(--okb-ink, #1f314f); font-size: 13px; font-weight: 600; }

@media (min-width: 760px) {
  .okb-dialog { inset: 0; margin: auto; width: min(640px, calc(100% - 48px)); max-height: min(86vh, 860px); }
  .okb-dialog[open] { animation-name: okb-in; }
  .okb-sheet { border-radius: var(--_radius); box-shadow: 0 24px 64px rgb(0 0 0 / .25); }
  .okb-head { padding: 24px 24px 16px; }
  .okb-body { padding: 4px 24px 24px; }
  .okb-photo { margin: 16px 0 4px; border-radius: 12px; }
  .okb-amen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .okb-foot { padding: 14px 24px; }
}
@keyframes okb-in { from { transform: scale(.97); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .okb-dialog[open] { animation: none; } }
