:root {
  --primary: #3d7a6e;
  --primary-dark: #2a5a50;
  --accent: #a8d5c8;
  --accent-warm: #e8c9a8;
  --bg: #f6faf9;
  --surface: #ffffff;
  --text: #1a2e2a;
  --muted: #5a726c;
  --border: #dce8e4;
  --hero-overlay: rgba(26, 46, 42, 0.5);
  --radius: 20px;
  --shadow: 0 12px 40px rgba(26, 46, 42, 0.07);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-weight: 400;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.hidden { display: none !important; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 1rem 0; transition: all 0.3s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
  padding: 0.6rem 0;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem; color: #fff; transition: color 0.3s;
}
.nav.scrolled .nav-logo { color: var(--text); }
.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.92); font-size: 0.88rem; font-weight: 500; }
.nav.scrolled .nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--accent-warm) !important;
  color: var(--text) !important;
  padding: 0.5rem 1.2rem; border-radius: 12px;
}
.nav-rezervace {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 12px;
  font-weight: 600 !important;
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: #fff; cursor: pointer; }
.nav.scrolled .nav-toggle { color: var(--text); }

/* Hero */
.hero {
  position: relative; min-height: 95vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #1e4a42 0%, #3d7a6e 50%, #a8d5c8 100%);
  background-size: cover; background-position: center;
}
.hero-bg.has-image { animation: slowZoom 20s ease infinite alternate; }
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero-overlay { position: absolute; inset: 0; background: var(--hero-overlay); }
.hero-content { position: relative; z-index: 2; max-width: 680px; padding: 2rem; animation: fadeUp 1s ease; }
.hero-tag {
  display: inline-block; padding: 0.35rem 1rem;
  border: 1px solid rgba(255,255,255,0.4); border-radius: 999px;
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem); line-height: 1.05; margin-bottom: 1rem;
}
.hero-desc { font-size: 1.05rem; opacity: 0.9; margin-bottom: 2rem; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); opacity: 0.5; animation: bounce 2s infinite; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 2rem; border-radius: 12px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.25s;
}
.btn-primary { background: var(--accent-warm); color: var(--text); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(232,201,168,0.5); }
.btn-secondary { background: var(--border); color: var(--text); }
.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); }

/* Sections */
.section { padding: 5.5rem 0; }
.section-header { margin-bottom: 2rem; }
.section-header.center { text-align: center; }
.section-label {
  display: block; text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.7rem; color: var(--primary); font-weight: 600; margin-bottom: 0.5rem;
}
.section-header h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); }

.about { background: var(--surface); }
.about-split { display: grid; gap: 2rem; }
@media (min-width: 768px) { .about-split { grid-template-columns: 1.2fr 0.8fr; align-items: center; } }
.about-text { color: var(--muted); font-size: 1.05rem; line-height: 1.85; margin-top: 1rem; }
.about-deco {
  height: 280px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--primary));
  opacity: 0.25;
}

/* Gallery - masonry style */
.gallery-section { background: var(--bg); }
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow); transition: transform 0.3s;
}
.gallery-item:nth-child(3n+1) { grid-column: span 7; aspect-ratio: 16/10; }
.gallery-item:nth-child(3n+2) { grid-column: span 5; aspect-ratio: 4/5; }
.gallery-item:nth-child(3n) { grid-column: span 12; aspect-ratio: 21/9; max-height: 320px; }
.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: 1rem; background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff; font-size: 0.85rem;
}
.gallery-item { position: relative; }
.gallery-empty { text-align: center; color: var(--muted); padding: 2rem; }

/* Personál / tým */
.team-section { background: var(--surface); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.team-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  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(--border);
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--border));
}
.team-body { padding: 1.25rem; }
.team-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
}
.team-role { color: var(--muted); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.75rem; }
.team-desc { font-size: 0.95rem; line-height: 1.55; margin-bottom: 1rem; }
.team-hours { width: 100%; font-size: 0.85rem; border-collapse: collapse; }
.team-hours td { padding: 0.3rem 0; border-bottom: 1px solid var(--border); }
.team-hours td:first-child { color: var(--muted); width: 40%; }
.team-empty { margin-top: 1rem; color: var(--muted); text-align: center; }
.hours-note { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.75rem; font-style: italic; }

.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; }

/* Pricing - card grid */
.pricing { background: var(--surface); }
.price-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.price-card {
  background: var(--bg); padding: 1.5rem;
  border-radius: var(--radius); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: all 0.25s;
}
.price-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-3px); }
.price-name { font-weight: 500; }
.price-value { font-family: var(--font-display); font-size: 1.6rem; color: var(--primary); }

/* News */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.news-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.75rem;
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
}

.news-card-body {
  flex: 1;
  min-width: 0;
}

.news-card time { font-size: 0.75rem; color: var(--primary); font-weight: 600; }
.news-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0.5rem 0; }
.news-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

.news-card-media {
  flex-shrink: 0;
  width: 240px;
  margin: 0;
}

.news-card-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: contain;
}

@media (max-width: 700px) {
  .news-card {
    flex-direction: column;
    align-items: stretch;
  }
  .news-card-media {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    order: -1;
  }
}

.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;
}

/* Contact */
.contact { background: linear-gradient(180deg, var(--bg), #e8f2ef); }
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-list { list-style: none; margin-top: 1.5rem; }
.contact-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.contact-icon { font-size: 1.2rem; }
.contact-list strong { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.hours-card {
  background: var(--surface); padding: 2rem; border-radius: var(--radius);
  border: 2px solid var(--accent); box-shadow: var(--shadow);
}
.hours-card h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 1rem; color: var(--primary); }
.hours-card table { width: 100%; }
.hours-card td { padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.hours-card td:last-child { text-align: right; font-weight: 500; }
.zavreno { color: var(--muted); font-style: italic; }

/* Footer */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.75); padding: 2.5rem 0; text-align: center; }
.footer p:first-child { font-family: var(--font-display); font-size: 1.3rem; color: #fff; }

/* Loading */
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50vh; 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(0,0,0,0.9); 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 - same structure, themed */
.admin-fab {
  position: fixed; bottom: 1.5rem; 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(61,122,110,0.4);
}
.admin-panel { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,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); }
.admin-body .checkbox { flex-direction: row !important; align-items: center; color: var(--text); margin: 0.75rem 0; }
.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; }

@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 1rem; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text) !important; }
  .nav-toggle { display: block; }
  .gallery-item { grid-column: span 12 !important; aspect-ratio: 16/10 !important; max-height: none !important; }
  .about-deco { display: none; }
}

.creator-bar {
  --creator-bar-bg: var(--bg);
  --creator-bar-border: var(--border);
}
