/* One+ Body — popup s rezervačním průvodcem (js/rezervace.js). Velikosti písma jen z tabulky (--fs-*). */
body.rez-open { overflow: hidden; }

.rez {
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  background: #fff;
  color: var(--c-text);
  text-transform: none;
  overflow: hidden;
}
.rez[open] { display: flex; }
.rez::backdrop { background: rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.rez__inner { display: flex; flex-direction: column; width: 100%; min-height: 0; }

.rez__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  }
.rez__progress { flex: 1; display: flex; justify-content: center; gap: 8px; }
.rez__progress span { width: 40px; height: 3px; border-radius: 2px; background: rgba(0, 0, 0, 0.15); }
.rez__progress span.is-on { background: var(--c-accent); }
.rez__icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.rez__icon[hidden] { display: block; visibility: hidden; } /* místo tlačítka zůstane, ať je popisek kroku uprostřed */
@media (hover: hover) { .rez__icon:hover { opacity: 0.65; } }

.rez__body { padding: 8px 32px 36px; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 16px; }
.rez__crumb { margin: 0; }
.rez__title { margin: 0; font-size: var(--fs-h3); line-height: var(--lh); font-weight: 700; text-transform: uppercase; outline: none; }
.rez__dur { margin: 0; }
.rez__lead { margin: 0; font-size: var(--fs-body); line-height: var(--lh); }

/* Krok 1: dlaždice oblastí (základ jako dlaždice služeb na webu: barva nebo fotka a tmavý přechod, název dole) */
.rez__tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 8px; }
.rez__tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 4 / 3;
  padding: 20px;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: var(--c-accent); /* TODO: fotky oblastí, zatím jen barva */
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.rez__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.rez__tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.6) 100%); }
/* logo značky místo názvu (první krok z homepage) */
.rez__logo { display: block; height: 32px; width: auto; max-width: 100%; color: #fff; }
@media (max-width: 767px) { .rez__logo { height: 26px; } }
.rez__tile-name { font-size: var(--fs-h4); font-weight: 700; line-height: var(--lh); text-transform: uppercase; }
@media (hover: hover) { .rez__tile:hover::after { background: linear-gradient(180deg, rgba(0,0,0,0.1) 25%, rgba(0,0,0,0.7) 100%); } }
/* štítek studia na dlaždici: Eyebrow (14 px, Bold, verzálky), bílá pilulka, jemné pulzování */
.rez__badge { position: absolute; top: 14px; right: 14px; z-index: 1; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #000; font-size: var(--fs-eyebrow); font-weight: 700; line-height: var(--lh); text-transform: uppercase; white-space: nowrap; animation: rez-badge-pulse 3s ease-in-out infinite; }
@keyframes rez-badge-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@media (min-width: 768px) { .rez__badge { top: 20px; right: 20px; } }
@media (prefers-reduced-motion: reduce) { .rez__badge { animation: none; } }
/* dlaždice studií Form (mají štítek) jsou vyšší, čtverec; oblasti Body zůstávají 4 / 3 (čtyři dlaždice, aby se popup vešel do okna); na mobilu platí 2 / 1 níže */
@media (min-width: 768px) { .rez__tile:has(.rez__badge) { aspect-ratio: 1 / 1; } }
.rez__tile:focus-visible, .rez__card:focus-visible { outline: 2px solid var(--c-text); outline-offset: 3px; }

/* Krok 2: karty procedur (béžové pozadí jako karty studií) */
.rez__cards { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.rez__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 20px 20px 24px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(220, 208, 206, 0.25);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.rez__opt-name { display: block; font-size: var(--fs-h4); font-weight: 700; line-height: var(--lh); text-transform: uppercase; }
.rez__opt-meta { display: block; margin-top: 6px; }
.rez__go { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; }
@media (hover: hover) { .rez__card:hover { background: rgba(220, 208, 206, 0.45); } }

.rez__choices { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.rez__btn {
  width: 100%;
  gap: 12px;
  padding: 20px 24px;
  background: var(--c-accent);
  color: #fff;
  font-size: var(--fs-menu);
  letter-spacing: var(--ls-menu);
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
}
.rez__btn--ghost { background: transparent; color: var(--c-text); box-shadow: inset 0 0 0 1.5px var(--c-accent); }
.rez__btn:disabled { opacity: 0.6; cursor: progress; }

.rez__form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.rez__field { display: flex; flex-direction: column; gap: 6px; }
.rez__field input, .rez__field select, .rez__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: var(--fs-body);
  text-transform: none;
}
.rez__field textarea { resize: vertical; }
/* E-mail a Telefon vedle sebe (od 768 px; na mobilu pod sebou, Jméno a příjmení je vždy na celou šířku) */
.rez__row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .rez__row { grid-template-columns: 1fr 1fr; } }
.rez__field input:focus, .rez__field select:focus, .rez__field textarea:focus { outline: 2px solid var(--c-accent); outline-offset: 1px; }
.rez__consent { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-small); line-height: var(--lh); }
.rez__consent input { flex: 0 0 auto; margin-top: 3px; width: 18px; height: 18px; accent-color: var(--c-accent); }
.rez__consent a { text-decoration: underline; }
.rez__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rez__error { margin: 0; padding: 10px 14px; border-radius: var(--radius); background: rgba(160, 30, 30, 0.08); color: #8a1f1f; font-size: var(--fs-small); line-height: var(--lh); }
.rez__error[hidden] { display: none; }
.rez__turnstile:empty { display: none; }

/* Mobil: popup jako spodní list přes celou šířku */
@media (max-width: 767px) {
  .rez { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: var(--radius) var(--radius) 0 0; max-height: 92dvh; }
  .rez__body { padding: 4px 20px 28px; }
  .rez__tiles { grid-template-columns: 1fr; } /* na telefonu jedna dlaždice na řádek, aby se název vešel */
  .rez__tile { aspect-ratio: 2 / 1; padding: 16px 20px; }
  .rez__card { padding: 16px 16px 16px 20px; }
}
