:root {
  --baby: #bfe3fb;
  --baby-soft: #e7f4fd;
  --baby-deep: #9fd2f5;
  --primary: #4aa3d9;
  --primary-dark: #2f7fb5;
  --accent: #cdeafd;
  --accent-warm: #ffe6c9;
  --bg: #eaf5fd;
  --surface: #ffffff;
  --text: #21384a;
  --muted: #5f7788;
  --border: #d3e7f3;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 14px 40px rgba(47, 127, 181, 0.12);
  --shadow-sm: 0 6px 18px rgba(47, 127, 181, 0.10);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --bottombar-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 500px at 100% -10%, var(--baby-soft), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-weight: 400;
  padding-bottom: calc(var(--bottombar-h) + 1rem);
}

img { max-width: 100%; display: block; }
a { color: var(--primary-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }
.hidden { display: none !important; }

/* ============ Vysoký header ============ */
.topbar {
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(700px 300px at 15% 0%, #ffffff88, transparent 70%),
    linear-gradient(160deg, var(--baby) 0%, var(--baby-deep) 55%, var(--primary) 120%);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem clamp(1.25rem, 4vw, 4rem);
}
.topbar-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.topbar-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(47, 127, 181, 0.35);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.topbar-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.98;
  color: #fff;
  text-shadow: 0 4px 24px rgba(47, 127, 181, 0.35);
}
.topbar-reserve {
  flex-shrink: 0;
  font-size: 1.05rem;
  padding: 1rem 2rem;
  box-shadow: 0 10px 30px rgba(47, 127, 181, 0.35);
}

/* ============ Dvousloupcový layout ============ */
.layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 3rem) clamp(1.25rem, 4vw, 4rem);
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
}

.col { display: flex; flex-direction: column; gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.col-right { position: sticky; top: 1.5rem; }
@media (max-width: 900px) {
  .col-right { position: static; }
}

/* ============ Bloky ============ */
.block { scroll-margin-top: 1.5rem; }
.block-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.block-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.1;
  margin-bottom: 1.1rem;
}
.block-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.lead { font-size: 1.08rem; color: var(--muted); line-height: 1.85; }

/* Hero obrázek */
.block-hero { margin-bottom: 0.5rem; }
.hero-bg {
  height: clamp(240px, 38vw, 420px);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--baby) 0%, var(--baby-deep) 55%, var(--primary) 120%);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 2rem; border-radius: 14px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.25s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(47,127,181,0.4); }
.btn-secondary { background: var(--baby-soft); color: var(--primary-dark); }
.btn-secondary:hover { background: var(--accent); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.btn-icon { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }

/* ============ Tým ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.5s ease backwards;
  animation-delay: calc(var(--i) * 0.08s);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.team-photo { aspect-ratio: 4/5; background: var(--accent); overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--baby), var(--primary)); }
.team-body { padding: 1.15rem; }
.team-body h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--primary-dark); margin-bottom: 0.3rem; }
.team-role { color: var(--muted); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.7rem; }
.team-desc { font-size: 0.92rem; line-height: 1.55; margin-bottom: 0.9rem; }
.team-hours { width: 100%; font-size: 0.82rem; border-collapse: collapse; }
.team-hours td { padding: 0.28rem 0; border-bottom: 1px solid var(--border); }
.team-hours td:first-child { color: var(--muted); width: 42%; }

/* ============ Ceník ============ */
.price-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.price-card {
  background: var(--surface); padding: 1.4rem;
  border-radius: var(--radius); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.4rem;
  transition: all 0.25s;
}
.price-card:hover { border-color: var(--baby-deep); box-shadow: var(--shadow); transform: translateY(-3px); }
.price-name { font-weight: 600; }
.price-value { font-family: var(--font-display); font-size: 1.5rem; color: var(--primary-dark); }

/* ============ Otevírací doba ============ */
.hours-card {
  background: var(--surface); padding: 1.75rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.hours-note { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.9rem; font-style: italic; }
.hours-card table { width: 100%; }
.hours-card td { padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.hours-card tr:last-child td { border-bottom: none; }
.hours-card td:last-child { text-align: right; font-weight: 600; }
.zavreno { color: var(--muted); font-style: italic; font-weight: 400 !important; }

/* ============ Kontakt (pravý sloupec) ============ */
.contact-list { list-style: none; }
.contact-list li { display: flex; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
.contact-list li:last-child { border-bottom: none; }
.contact-icon { font-size: 1.15rem; }
.contact-list strong { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 0.15rem; }

/* ============ Novinky ============ */
.news-list { display: flex; flex-direction: column; gap: 1rem; }
.news-card {
  background: var(--surface);
  padding: 1.25rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--baby-deep);
  box-shadow: var(--shadow-sm);
}
.news-card-media { margin: 0 0 0.85rem; }
.news-card-media img { width: 100%; height: auto; border-radius: 12px; object-fit: cover; }
.news-card time { font-size: 0.72rem; color: var(--primary-dark); font-weight: 700; }
.news-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0.35rem 0; }
.news-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* ============ Galerie (pravý sloupec, jednoduchá mřížka) ============ */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.gallery-item {
  position: relative;
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform 0.3s;
  aspect-ratio: 1/1;
}
.gallery-item:hover { transform: translateY(-4px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.75rem; background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff; font-size: 0.8rem;
}

/* ============ Spodní fixní lišta s velkými tlačítky ============ */
.bottombar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(47, 127, 181, 0.12);
}
.bottombar .nav-links {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem clamp(0.75rem, 3vw, 2rem);
  overflow-x: auto;
  scrollbar-width: none;
}
.bottombar .nav-links::-webkit-scrollbar { display: none; }
.bottombar .nav-links a {
  flex: 1 0 auto;
  min-width: 92px;
  text-align: center;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: var(--baby-soft);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: all 0.2s;
}
.bottombar .nav-links a:hover { background: var(--accent); transform: translateY(-2px); }
.bottombar .nav-rezervace {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(47,127,181,0.35);
}
.bottombar .nav-rezervace:hover { background: var(--primary-dark) !important; }

/* ============ Footer ============ */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.footer p:first-child { font-family: var(--font-display); font-size: 1.3rem; color: #fff; margin-bottom: 0.25rem; }
.footer-copy { font-size: 0.85rem; }

/* ============ Loading ============ */
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 40vh; color: var(--muted); gap: 1rem; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Lightbox ============ */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 30, 45, 0.92); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.lightbox img { max-height: 90vh; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ============ Admin (drawer) ============ */
.admin-fab {
  position: fixed; bottom: calc(var(--bottombar-h) + 1rem); right: 1.5rem; z-index: 90;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--primary); color: #fff; border: none;
  font-size: 1.3rem; cursor: pointer;
  box-shadow: 0 4px 20px rgba(47,127,181,0.45);
}
.admin-panel { display: none; position: fixed; inset: 0; z-index: 210; background: rgba(10, 30, 45, 0.4); }
.admin-panel.open { display: flex; justify-content: flex-end; }
.admin-drawer {
  width: 100%; max-width: 440px; height: 100%; background: var(--surface);
  display: flex; flex-direction: column; animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.admin-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.admin-header h2 { font-family: var(--font-display); font-size: 1.4rem; }
.admin-body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }
.admin-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); }
.admin-hint { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.admin-hint.success { color: var(--primary-dark); }
.admin-hint.error { color: #c0392b; }
.admin-body .checkbox { flex-direction: row !important; align-items: center; color: var(--text); margin: 0.75rem 0; display: flex; }
.admin-body .checkbox input { width: auto; margin-right: 0.5rem; accent-color: var(--primary); }
.admin-body label { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.75rem; font-weight: 600; }
.admin-body input, .admin-body textarea {
  width: 100%; padding: 0.6rem 0.75rem; margin-top: 0.25rem;
  border: 1px solid var(--border); border-radius: 10px; font-family: inherit;
}
.admin-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }
.admin-tabs .tab {
  padding: 0.35rem 0.7rem; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; font-size: 0.78rem; cursor: pointer; font-family: inherit;
}
.admin-tabs .tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.upload-box { margin-bottom: 1.5rem; }
.upload-box h4 { font-size: 0.9rem; margin-bottom: 0.75rem; }
.hero-preview { height: 120px; border-radius: 10px; overflow: hidden; background: var(--bg); margin-bottom: 0.75rem; display: flex; align-items: center; justify-content: center; }
.hero-preview img { width: 100%; height: 100%; object-fit: cover; }
.btn-upload { cursor: pointer; display: inline-block; }
.bunny-hint { font-size: 0.8rem; color: var(--muted); margin-top: 0.75rem; }
.gallery-edit { display: grid; gap: 0.75rem; margin-bottom: 0.75rem; }
.gallery-edit-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.5rem; align-items: center; padding: 0.5rem; border: 1px solid var(--border); border-radius: 10px; }
.gallery-edit-item img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.btn-delete-img { background: #fee; color: #c0392b; border: none; padding: 0.35rem 0.6rem; border-radius: 6px; font-size: 0.75rem; cursor: pointer; }
.edit-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.edit-row input { flex: 1; min-width: 80px; }
.edit-block { margin-bottom: 0.75rem; }
.status-msg { margin-top: 0.75rem; font-size: 0.85rem; text-align: center; }
.status-msg.error { color: #c0392b; }
.status-msg.success { color: #27ae60; }

.personel-edit-card { border: 1px solid var(--border); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; background: var(--bg); }
.personel-edit-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.personel-edit-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.p-foto-preview { margin: 0.5rem 0; max-height: 120px; overflow: hidden; }
.p-foto-preview img { max-height: 120px; width: auto; border-radius: 8px; }
.admin-rozvrh { font-size: 0.8rem; margin: 0.5rem 0; width: 100%; border-collapse: collapse; }
.admin-rozvrh th, .admin-rozvrh td { border: 1px solid var(--border); padding: 0.35rem 0.5rem; text-align: left; }
.admin-rozvrh input[type="time"] { width: 100%; padding: 0.25rem; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; }
.novinka-img-preview { min-height: 90px; max-height: 160px; border-radius: 8px; overflow: hidden; background: var(--bg); margin: 0.5rem 0; display: flex; align-items: center; justify-content: center; }
.novinka-img-preview img { max-width: 100%; max-height: 160px; width: auto; height: auto; object-fit: contain; }
.novinka-img-preview .placeholder { font-size: 0.8rem; color: var(--muted); }
.novinka-img-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.btn-remove-novinka-img { background: #fee; color: #c0392b; border: none; padding: 0.4rem 0.7rem; border-radius: 6px; font-size: 0.8rem; cursor: pointer; }

/* ============ Responsive ============ */
@media (max-width: 600px) {
  .topbar { min-height: 220px; padding: 1.75rem 1.25rem; }
  .topbar-reserve { width: 100%; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .bottombar .nav-links a { min-width: 78px; padding: 0.7rem 0.8rem; font-size: 0.85rem; }
}

.creator-bar {
  --creator-bar-bg: var(--surface);
  --creator-bar-border: var(--border);
}
