/* ==========================================================
   Centrum Rosenbaum — designový systém rezervačního webu
   (čistý, vzdušný vzhled: krémové pozadí, zlatavý akcent)
   ========================================================== */

:root {
  --bg: #FFFEFC;
  --surface: #FFFFFF;
  --surface-warm: #FBF7F2;
  --text: #292929;
  --muted: #927E70;
  --border: #E4D9D0;
  --border-soft: #F0E9E2;
  --accent: #FFC45F;
  --accent-hover: #F2B347;
  --accent-soft: #FFF4DE;
  --disabled: #F4F1ED;
  --danger: #C4574E;
  --danger-soft: #FBEeec;
  --success: #5E8C61;
  --success-soft: #EDF4EE;
  --shadow: 0 6px 24px rgba(146, 126, 112, 0.10);
  --shadow-soft: 0 2px 10px rgba(146, 126, 112, 0.07);
  --radius: 20px;
  --radius-sm: 12px;
  --font: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button { font-family: inherit; }

/* viditelné focus stavy (přístupnost) */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow { max-width: 860px; }

/* ---------- hlavička webu ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 254, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-header__logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  color: #292929;
}

.site-header__nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.site-header__nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-header__nav a:hover { background: var(--accent-soft); }
.site-header__nav a.is-active { background: var(--accent); }

/* ---------- patička ---------- */

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--border-soft);
  background: var(--surface-warm);
  padding: 40px 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.site-footer strong { color: var(--text); }

.site-footer a { color: var(--muted); }

/* ---------- obecné prvky ---------- */

.eyebrow {
  display: inline-block;
  background: var(--accent);
  color: #292929;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
}

.section { padding: 44px 0 12px; }

.section-head { margin-bottom: 22px; }

.h-section {
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.2;
  margin: 14px 0 8px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.muted { color: var(--muted); }

.lead { font-size: 17px; color: var(--muted); max-width: 640px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card__body { padding: 26px; }

/* ---------- tlačítka ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}

.btn:active { transform: translateY(1px); }

.btn--accent { background: var(--accent); color: #292929; }
.btn--accent:hover { background: var(--accent-hover); }

.btn--outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn--outline:hover { border-color: var(--accent); background: var(--accent-soft); }

.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { filter: brightness(0.95); }

.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--accent-soft); }

.btn:disabled {
  background: var(--disabled);
  color: #A9A19B;
  cursor: not-allowed;
  border-color: transparent;
  transform: none;
}

.btn--block { width: 100%; }

/* ---------- rezervační widget ---------- */

.booking-section { scroll-margin-top: 90px; padding: 40px 0 8px; }

.booking-section__desc {
  color: var(--muted);
  max-width: 720px;
  margin: 6px 0 20px;
}

.bw-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 30px);
}

.bw-card + .bw-card { margin-top: 18px; }

.bw-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.bw-head h3 { margin: 0; font-size: 20px; font-weight: 750; }

.bw-head .bw-sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

.bw-state { color: var(--muted); font-size: 14px; font-weight: 600; }
.bw-state.is-set { color: var(--text); }

/* --- ovládání měsíce --- */

.cal-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 10px;
  flex-wrap: wrap;
}

.cal-controls__selects { display: flex; gap: 8px; }

.cal-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, border-color 0.15s;
}

.cal-nav:hover { background: var(--accent-soft); border-color: var(--accent); }

.select {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23927E70' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  border-radius: 999px;
  min-height: 44px;
  padding: 8px 34px 8px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

/* --- mřížka kalendáře --- */

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-weekday {
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 8px 0 6px;
}

.cal-day {
  position: relative;
  aspect-ratio: 1 / 0.82;
  min-height: 44px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.12s, border-color 0.12s;
}

.cal-day:hover:not(:disabled) { background: var(--accent-soft); }

.cal-day:disabled { cursor: not-allowed; }

.cal-day.is-outside { color: #C9BFB7; font-weight: 500; }

.cal-day.is-unavailable,
.cal-day.is-past {
  color: #C2BAB3;
  background: var(--disabled);
  opacity: 0.68;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: #B9AFA7;
}

.cal-day.is-full {
  color: #B9AFA7;
  background: var(--disabled);
  opacity: 0.8;
  text-decoration: line-through;
}

.cal-day.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(255, 196, 95, 0.25);
}

.cal-day.is-today::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-hover);
}

.cal-day .cal-day__badge {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--muted);
}

.cal-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }

.cal-legend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
  border: 1px solid var(--border);
}

.cal-legend .i-free { background: var(--surface); }
.cal-legend .i-full { background: var(--disabled); }
.cal-legend .i-selected { background: var(--accent-soft); border-color: var(--accent); }

/* --- sloty --- */

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.slot {
  min-height: 46px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.12s, background 0.12s;
  position: relative;
}

.slot:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }

.slot.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(255, 196, 95, 0.25);
}

.slot.is-selected::before {
  content: "✓";
  position: absolute;
  top: 2px;
  right: 7px;
  font-size: 10px;
  color: var(--accent-hover);
}

.slot:disabled {
  background: var(--disabled);
  color: #B4ACA5;
  cursor: not-allowed;
  border-color: var(--border-soft);
}

.slot:disabled .slot__note { display: block; }

.slot__time { line-height: 1.1; }

.slot__note {
  font-size: 10px;
  font-weight: 600;
  color: #A99F97;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* první termín vybraného rozsahu (rezervace více hodin najednou) */
.slot.is-range-start::before { content: "▶"; font-size: 9px; }

/* vysvětlivka nad mřížkou časů */
.slots-hint {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.slots-hint--warn {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--surface-warm);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.slots-empty {
  margin: 18px 0 4px;
  padding: 16px 18px;
  background: var(--surface-warm);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 15px;
}

.slots-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13.5px;
}

.slots-error {
  margin: 16px 0 4px;
  padding: 14px 18px;
  background: var(--danger-soft);
  border: 1px solid #EBC5C1;
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 14.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* skeleton */

@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #F3EEE8 25%, #FAF6F1 50%, #F3EEE8 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
}

/* --- lišta s tlačítkem Rezervovat --- */

.bw-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.bw-footer__summary { font-size: 14.5px; color: var(--muted); }
.bw-footer__summary strong { color: var(--text); }

/* ---------- modální okno ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(41, 41, 41, 0.45);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 100;
}

.modal {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(41, 41, 41, 0.25);
  padding: 26px 26px 24px;
}

.modal h3 { margin: 0 0 4px; font-size: 21px; }

.modal__close {
  float: right;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--surface-warm);
  border-radius: 50%;
  font-size: 17px;
  cursor: pointer;
}

.modal__summary {
  display: flex;
  gap: 10px 18px;
  flex-wrap: wrap;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 14px 0 18px;
  font-size: 14.5px;
}

.modal__summary strong { font-weight: 750; }

/* ---------- formuláře ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-grid .span-2 { grid-column: span 2; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label { font-size: 14px; font-weight: 650; }

.field .req { color: var(--danger); }

.input, .textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 46px;
  padding: 10px 14px;
  font-size: 15.5px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  width: 100%;
}

.textarea { min-height: 84px; resize: vertical; }

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 196, 95, 0.25);
}

.input.is-invalid, .textarea.is-invalid { border-color: var(--danger); }

.field-error { color: var(--danger); font-size: 13px; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
}

.checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent-hover);
  flex-shrink: 0;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* rekapitulace */

.recap-list { margin: 14px 0 4px; padding: 0; list-style: none; }

.recap-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14.5px;
}

.recap-list li span:first-child { color: var(--muted); }
.recap-list li span:last-child { font-weight: 650; text-align: right; }

/* úspěch */

.success-box {
  border: 1px solid #CBDCCB;
  background: var(--success-soft);
  border-radius: var(--radius);
  padding: 26px;
}

.success-box h3 {
  margin: 0 0 4px;
  color: var(--success);
  font-size: 21px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- karty akcí ---------- */

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

/*
 * Karta akce: fotka nahoře, pod ní název, podtitul a řádky s údaji
 * (termín, lektor, místo, cena), úplně dole tlačítko a odkaz na detail.
 * Tlačítka jsou zarovnaná na spodní hranu i u karet s různě dlouhým
 * textem — o to se stará „margin-top: auto" u patičky.
 */
.event-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}

.event-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.event-card__body { padding: 20px 22px 4px; }

.event-card__nazev { margin: 0 0 6px; font-size: 20px; line-height: 1.25; font-weight: 700; }

/*
 * Podtitul na kartě je nejvýš tři řádky — u akcí, kterým se podtitul
 * doplnil automaticky z popisu, by jinak karta přerostla ostatní.
 * Celý text je vždycky vidět v detailu akce.
 */
.event-card p.event-card__subtitle {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* řádky s údaji — ikona vlevo, text vpravo, nikdy se nerozejdou */
.event-card__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.event-card__facts li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 15px;
  line-height: 1.4;
}

.event-card__facts .ico {
  width: 19px;
  height: 19px;
  margin-top: 1px;
  color: var(--accent-hover);
}

.event-card__facts .je-termin { font-weight: 650; }

.event-card__actions {
  margin-top: auto;
  padding: 18px 22px 20px;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.btn--sirka { width: 100%; justify-content: center; }

.event-card__more {
  color: var(--accent-hover);
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 8px;
}

.event-card__more:hover { text-decoration: underline; }

/* stránkový hero */

.pagehero {
  background: linear-gradient(180deg, var(--accent-soft), var(--bg));
  border-bottom: 1px solid var(--border-soft);
  padding: 52px 0 40px;
}

.pagehero h1 {
  margin: 14px 0 6px;
  font-size: clamp(30px, 4.5vw, 44px);
  letter-spacing: -0.01em;
}

.pagehero p { margin: 0; color: var(--muted); font-size: 17px; }

/* podtitul akce — krátká věta hned pod názvem */
.pagehero__podtitul {
  margin: 0 0 10px !important;
  color: var(--text) !important;
  font-size: 18px !important;
  line-height: 1.45;
}

/* rychlá navigace mezi kalendáři */

.service-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.service-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  padding: 9px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}

.service-nav a:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- responzivita ---------- */

@media (max-width: 760px) {
  .site-header__inner { flex-wrap: wrap; padding: 10px 0; gap: 6px; }
  .site-header__nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-header__nav::-webkit-scrollbar { display: none; }
  .site-header__nav a { white-space: nowrap; min-height: 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .cal-controls { flex-direction: column; align-items: stretch; }
  .cal-controls__selects { justify-content: space-between; }
  .cal-controls__selects .select { flex: 1; }
  .cal-nav-row { display: flex; justify-content: space-between; }
  .slots-grid { grid-template-columns: repeat(2, 1fr); }
  .bw-footer { flex-direction: column; align-items: stretch; }
  .bw-footer .btn { width: 100%; }
  .cal-day { font-size: 13.5px; }
  .site-header__nav a { padding: 8px 10px; font-size: 13.5px; }
}

@media (max-width: 420px) {
  .slots-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 14px; }
}

/* redukce pohybu (přístupnost) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skeleton { animation: none; }
  .event-card, .btn { transition: none; }
}

/* ---------- oddělení jednotlivých rezervačních kalendářů ---------- */

/* Nadpis kalendáře — výrazný oranžový štítek, aby bylo na první pohled
   zřejmé, do kterého kalendáře se rezervuje. */
.booking-section__title {
  display: inline-block;
  margin: 0 0 10px;
  background: var(--accent);
  color: #292929;
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  padding: 10px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

/* Mezi kalendáři víc místa a vodorovná čára, ať je jasné, kde jeden končí. */
.booking-section { padding: 46px 0 10px; }

.booking-section + .booking-section {
  border-top: 1px solid var(--border);
  margin-top: 34px;
  padding-top: 46px;
}

@media (max-width: 640px) {
  .booking-section { padding: 34px 0 8px; }
  .booking-section + .booking-section { margin-top: 24px; padding-top: 34px; }
  .booking-section__title { padding: 8px 16px; }
}

/* ---------- fotky kalendářů a akcí ---------- */

/* Záhlaví kalendáře s fotkou v pozadí: fotka je jen kulisa, text musí
   zůstat čitelný — proto tmavý přechod přes celou plochu. */
.section-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-warm);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
}

.section-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(41, 41, 41, 0.15) 0%, rgba(41, 41, 41, 0.55) 55%, rgba(41, 41, 41, 0.82) 100%);
}

.section-photo__inner {
  position: relative;
  padding: 26px clamp(18px, 3vw, 30px) 22px;
  width: 100%;
}

.section-photo .booking-section__title { margin-bottom: 8px; }

.section-photo__desc {
  color: #FFFFFF;
  margin: 0;
  max-width: 720px;
  font-size: 15.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/*
 * Fotka na kartě akce. Je to VÝŘEZ — vyplní celou šířku karty a přebytek
 * se ořízne (background-size: cover). Obrázky z galerie akce se naproti
 * tomu neořezávají nikdy, viz .galerie níže.
 */
.event-card__photo {
  display: block;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-warm);
}

/*
 * Akce, ke které ještě není nahraná fotka. Místo obrázku je teplý pruh
 * ve stejné výšce — díky tomu jsou všechny karty v řádce stavěné stejně
 * a názvy začínají na jedné lince.
 */
.event-card__photo--prazdna {
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.75), transparent 55%),
    linear-gradient(140deg, var(--accent-soft) 0%, var(--surface-warm) 60%, #F6EEE4 100%);
  border-bottom: 1px solid var(--border-soft);
}

/* Fotka jako pozadí záhlaví samostatné stránky kalendáře. */
.pagehero--photo {
  position: relative;
  background-size: cover;
  background-position: center;
}

.pagehero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 254, 252, 0.86) 0%, rgba(255, 254, 252, 0.93) 100%);
}

.pagehero--photo > * { position: relative; }

@media (max-width: 640px) {
  .section-photo { min-height: 170px; }
  .event-card__photo { height: 165px; }

}

/* =======================================================================
 *  Doplňky verze 9
 *  – šipka zpět na hlavní web v záhlaví,
 *  – výrazný odkaz „Více informací",
 *  – poznámka o uzávěrce,
 *  – odkaz z nadpisu kalendáře na jeho samostatnou stránku,
 *  – mobilně přívětivá tlačítka dnů a časů.
 * ===================================================================== */

/* text jen pro odečítače obrazovky */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------
 *  Záhlaví veřejné části:
 *    [ logo + název hlavního webu ]  │  Rezervační systém        menu
 *  Logo i název tvoří jeden odkaz na hlavní web (parent_site_url),
 *  za tenkou svislou čarou vede název aplikace na index.php.
 * ------------------------------------------------------------------- */
.site-header__inner { justify-content: flex-start; gap: 12px; }
.site-header__inner .site-header__nav { margin-left: auto; }

/* levá skupina drží pohromadě: logo + název webu │ Rezervační systém */
.site-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 1 auto;
}

.site-header__brand { min-width: 0; }

.site-header__brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header__divider {
  display: inline-block;
  width: 1px;
  height: 26px;
  flex: 0 0 auto;
  background: var(--border);
}

.site-header__app {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.12s, border-color 0.12s;
}

.site-header__app:hover,
.site-header__app:focus-visible {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* --- odkaz „Více informací" --- */
.info-link-row { margin: 16px 0 18px; }

.info-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  padding: 9px 18px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  min-height: 44px;
  transition: background 0.12s, transform 0.12s;
}

.info-link:hover,
.info-link:focus-visible {
  background: var(--accent);
  transform: translateY(-1px);
}

.info-link__arrow { font-weight: 700; }

/* --- poznámka o uzávěrce rezervací / přihlášek --- */
.deadline-note {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  background: var(--surface-warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14.5px;
  color: var(--text);
}

/* --- nadpis kalendáře jako odkaz na samostatnou stránku --- */
.booking-section__link {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.booking-section__link:hover,
.booking-section__link:focus-visible { border-bottom-color: var(--accent); }

.booking-section__more {
  margin: 16px 0 0;
  font-size: 14.5px;
  font-weight: 600;
}

.booking-section__more a { color: var(--muted); text-decoration: none; }
.booking-section__more a:hover { color: var(--text); }

/* -----------------------------------------------------------------------
 *  Mobilně přívětivá tlačítka dnů
 *  Velikost čtverečku dne se plynule přizpůsobuje šířce displeje
 *  (clamp), takže na úzkých telefonech nikdy nepřeteče a přitom
 *  zůstává dost velký na pohodlné ťuknutí prstem.
 * --------------------------------------------------------------------- */
.cal-grid { gap: clamp(4px, 1.2vw, 6px); }

.cal-day {
  aspect-ratio: auto;
  min-height: clamp(42px, 11.5vw, 52px);
  font-size: clamp(14px, 3.6vw, 16px);
  padding: 0;
  touch-action: manipulation;
}

.cal-weekday { font-size: clamp(10.5px, 2.8vw, 12.5px); padding: 6px 0 4px; }

.slots-grid { grid-template-columns: repeat(auto-fill, minmax(clamp(84px, 26vw, 108px), 1fr)); }

.slot { min-height: clamp(46px, 12vw, 54px); touch-action: manipulation; }

@media (max-width: 760px) {
  /* na mobilu má den víc místa a čitelnější číslo než dřív */
  .cal-day { font-size: clamp(14px, 4vw, 16px); font-weight: 700; }
  .cal-grid { gap: 5px; }
  .slots-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .info-link { width: 100%; justify-content: center; }
  .site-header__inner { gap: 8px; }
  .site-header__left { gap: 9px; width: 100%; }
  .site-header__app { font-size: 13.5px; }
  .site-header__divider { height: 22px; }
}

@media (max-width: 420px) {
  .slots-grid { grid-template-columns: 1fr 1fr; }
  .cal-day { min-height: 44px; }
  /* na nejužších displejích se zkrátí název webu, ať zbyde místo na odkaz */
  .site-header__brand-name { max-width: 34vw; font-size: 14.5px; }
  .site-header__app { font-size: 13px; }
}

/* =======================================================================
 *  Verze 12 — termíny akcí a akce bez volného termínu
 * ===================================================================== */

/* --- seznam termínů nad kalendářem (a proběhlé pod ním) --- */
.terms-box {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 20px;
  margin: 0 0 22px;
}

.terms-box--past {
  background: transparent;
  border-style: dashed;
  margin: 26px 0 0;
}

.terms-box__title {
  font-size: 17px;
  font-weight: 750;
  margin: 0 0 10px;
}

.terms-box--past .terms-box__title { font-size: 15px; color: var(--muted); }

.terms-box__hint { margin: 10px 0 0; font-size: 13.5px; }

.terms-list { list-style: none; margin: 0; padding: 0; }

.terms-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
}

.terms-list__item:last-child { border-bottom: 0; }

.terms-list__date { font-weight: 650; font-size: 15px; }

.terms-list__item--full .terms-list__date { color: var(--muted); }

.terms-list__item--past .terms-list__date {
  color: var(--muted);
  font-weight: 500;
  text-decoration: line-through;
}

/* --- karta akce, na kterou se nyní nelze přihlásit --- */
.events-off__title { margin: 44px 0 6px; font-size: 22px; }
.events-off__note { margin: 0 0 18px; font-size: 14.5px; }

.event-card--off { opacity: 0.72; }
.event-card--off .event-card__facts .ico { color: var(--muted); }

.event-card__title { color: inherit; text-decoration: none; }
.event-card__title:hover { text-decoration: underline; }

.btn--off {
  background: var(--disabled);
  color: var(--muted);
  border-color: var(--border);
  cursor: default;
}

.btn--off:hover { background: var(--disabled); }

/* štítek u termínu (na veřejné části, kde nejsou administrátorské odznaky) */
.term-tag {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.term-tag--free { background: var(--success-soft); border-color: #BCD4BE; color: #3E6B41; }
.term-tag--full { background: var(--danger-soft); border-color: #E7C0BC; color: #9C4038; }

/* =======================================================================
 *  FORMÁTOVANÝ POPIS AKCE
 *
 *  Text, který správce napsal v editoru. Písmo je vždy stejné jako
 *  na zbytku webu — mění se jen velikost, a to jen na tři předvolené
 *  stupně, aby stránka zůstala jednotná a čitelná i na telefonu.
 * ===================================================================== */

.rich > *:first-child { margin-top: 0; }
.rich > *:last-child { margin-bottom: 0; }

.rich p { margin: 0 0 12px; }

.rich ul, .rich ol { margin: 0 0 12px; padding-left: 22px; }

.rich li { margin-bottom: 5px; }

.rich a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.rich strong, .rich b { font-weight: 750; }

/*
 * Nadpisy v popisu akce. V editoru se jim říká „Nadpis 1" a „Nadpis 2",
 * ve stránce z nich jsou <h2> a <h3> — <h1> patří názvu akce.
 */
.rich h2, .rich h3, .rich h4 {
  margin: 22px 0 8px;
  line-height: 1.28;
  font-weight: 750;
}

.rich h2 { font-size: 1.32em; }
.rich h3 { font-size: 1.15em; }
.rich h4 { font-size: 1.05em; }

/* tři předvolené velikosti + zvýraznění */
.rt-vetsi { font-size: 1.15em; }

.rt-nadpis {
  display: inline-block;
  font-size: 1.32em;
  font-weight: 750;
  line-height: 1.3;
}

.rt-zvyrazneno {
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-soft);
  border-radius: 3px;
}

/* v záhlaví akce je text na fotce — odsazení odstavců je tam menší */
.pagehero .rich p { margin-bottom: 8px; }

/* =======================================================================
 *  AKCE PO DOMLUVĚ
 *  Místo rezervačního formuláře jen vysvětlení a tlačítko na kontakt.
 * ===================================================================== */

.dohoda-box {
  text-align: center;
  padding: 26px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-warm);
}

.dohoda-box h3 { margin: 0 0 8px; font-size: 20px; }

.dohoda-box p {
  margin: 0 auto 18px;
  max-width: 520px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.dohoda-box .btn { min-height: 52px; font-size: 16.5px; padding: 0 26px; }

/* akce, na kterou se přes systém vůbec nerezervuje — jen informace */
.dohoda-box--info { background: var(--accent-soft); border-color: #F0CE8E; }
.dohoda-box--info p:last-child { margin-bottom: 0; }
.dohoda-box__platnost { font-weight: 700; color: var(--text) !important; }

/* =======================================================================
 * GALERIE DALŠÍCH OBRÁZKŮ AKCE
 *
 * Náhledy jsou čtvercové výřezy, aby řádka pěkně seděla. Zvětšenina
 * (assets/js/galerie.js) naproti tomu ukazuje obrázek CELÝ a bez ořezu,
 * takže zůstane čitelný i plakát na výšku.
 * ===================================================================== */

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 6px 0 0;
}

.galerie__polozka {
  position: relative;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--surface-warm);
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
}

.galerie__polozka:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.galerie__polozka img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.galerie__popisek {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 10px 8px;
  background: linear-gradient(180deg, rgba(41, 41, 41, 0), rgba(41, 41, 41, 0.78));
  color: #fff;
  font-size: 12.5px;
  line-height: 1.35;
}

@media (max-width: 480px) {
  .galerie { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
}

/* štítek na kartě akce, která se domlouvá individuálně */
.event-card__dohoda {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-hover);
}
