:root {
  --primary: #a8986a;
  --primary-dark: #776a47;
  --accent: #e7dfcc;
  --accent-warm: #a8986a;
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #171717;
  --muted: #6b6862;
  --border: #e5e2da;
  --hero-overlay: rgba(10, 10, 10, 0.55);
  --radius: 2px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Work 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.7;
  font-weight: 400;
}

img { max-width: 100%; display: block; }
a { color: var(--primary-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }
.container { max-width: 1040px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 660px; margin: 0 auto; padding: 0 1.5rem; }
.hidden { display: none !important; }

/* Nav — centered, minimal, text links with gold underline */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 1.5rem 0; transition: all 0.35s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
  padding: 0.85rem 0;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem; letter-spacing: 0.04em; color: #fff; transition: color 0.35s;
}
.nav.scrolled .nav-logo { color: var(--text); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.88); font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  position: relative; padding-bottom: 0.3rem;
}
.nav.scrolled .nav-links a { color: var(--muted); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--primary); transition: right 0.25s ease;
}
.nav-links a:hover::after { right: 0; }
.nav-links a:hover { color: var(--text); }
.nav.scrolled .nav-links a:hover { color: var(--primary-dark); }
.nav-cta { background: none !important; }
.nav-rezervace {
  background: none !important;
  color: rgba(255,255,255,0.9) !important;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.35rem 1rem !important;
  font-weight: 500 !important;
}
.nav.scrolled .nav-rezervace { color: var(--primary-dark) !important; border-color: var(--primary-dark); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.3rem; color: #fff; cursor: pointer; position: absolute; right: 1.5rem; top: 1.5rem; }
.nav.scrolled .nav-toggle { color: var(--text); }

/* Hero — huge centered brand, minimal chrome */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #0d0d0d 0%, #1c1a15 60%, #3a331f 100%);
  background-size: cover; background-position: center;
}
.hero-bg.has-image { animation: slowZoom 26s ease infinite alternate; filter: saturate(0.75); }
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero-overlay { position: absolute; inset: 0; background: var(--hero-overlay); }
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: 2rem; animation: fadeIn 1.4s ease; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 6.5rem); line-height: 1; margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
.hero-desc { font-size: 1.1rem; opacity: 0.85; margin-bottom: 2.2rem; font-style: italic; font-family: var(--font-display); max-width: 480px; margin-inline: auto; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em;
  border-bottom: 1px solid rgba(255,255,255,0.55); padding-bottom: 0.4rem;
  transition: border-color 0.25s, letter-spacing 0.25s;
}
.hero-cta:hover { color: var(--accent); border-color: var(--accent); letter-spacing: 0.18em; }
.hero-cta span { transition: transform 0.25s; }
.hero-cta:hover span { transform: translateX(4px); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Buttons (admin panel only) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.8rem; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.9rem; 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); }
.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: 6rem 0; }
.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-label {
  display: block; text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 0.7rem; color: var(--primary-dark); font-weight: 600; margin-bottom: 0.7rem;
}
.section-header h2, .container-narrow > h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.6vw, 2.6rem); }

/* Gallery — primary, asymmetric mosaic dominating the page */
.gallery-section { background: var(--bg); padding-top: 7.5rem; }
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 0.6rem;
}
.gallery-item { position: relative; overflow: hidden; cursor: pointer; }
.gallery-item:nth-child(6n+1) { grid-column: span 3; grid-row: span 3; }
.gallery-item:nth-child(6n+2) { grid-column: span 3; grid-row: span 2; }
.gallery-item:nth-child(6n+3) { grid-column: span 3; grid-row: span 2; }
.gallery-item:nth-child(6n+4) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(6n+5) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(6n) { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.4s; filter: saturate(0.85); }
.gallery-item:hover img { transform: scale(1.045); filter: saturate(1); }
.gallery-item figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 0.9rem 1.1rem; background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff; font-size: 0.78rem; letter-spacing: 0.03em;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover figcaption { opacity: 1; }
.gallery-empty { text-align: center; color: var(--muted); padding: 2rem; grid-column: 1 / -1; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 110px; }
  .gallery-item:nth-child(6n+1) { grid-column: span 4; grid-row: span 2; }
  .gallery-item:nth-child(6n+2), .gallery-item:nth-child(6n+3) { grid-column: span 2; grid-row: span 2; }
  .gallery-item:nth-child(6n+4), .gallery-item:nth-child(6n+5), .gallery-item:nth-child(6n) { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery-item { grid-column: span 1 !important; grid-row: span 1 !important; }
}

/* About — minimal centered */
.about { background: var(--surface); text-align: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about .section-label { display: block; }
.about h2 { margin: 0.5rem 0 1.5rem; }
.about-text { color: var(--muted); font-size: 1.08rem; line-height: 1.95; }

/* Personál — small captions under photos, no card chrome */
.team-section { background: var(--bg); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2.5rem 1.5rem; }
.team-card { text-align: center; background: none; animation: fadeIn 0.6s ease backwards; animation-delay: calc(var(--i) * 0.08s); }
.team-photo { aspect-ratio: 4/5; background: var(--border); overflow: hidden; margin-bottom: 1rem; filter: saturate(0.85); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-placeholder { width: 100%; height: 100%; background: linear-gradient(160deg, var(--accent), var(--border)); }
.team-body h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; margin-bottom: 0.2rem; }
.team-role { color: var(--primary-dark); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.team-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.5; margin-bottom: 0.6rem; }
.team-hours { width: 100%; font-size: 0.76rem; border-collapse: collapse; margin-top: 0.4rem; }
.team-hours td { padding: 0.2rem 0; border-bottom: 1px solid var(--border); }
.team-hours td:first-child { color: var(--muted); width: 45%; text-align: left; }
.team-hours td:last-child { text-align: right; }
.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; }

/* Ceník — minimal hairline list */
.pricing { background: var(--surface); }
.price-list { display: flex; flex-direction: column; }
.price-card {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--border);
  background: none;
}
.price-name { font-size: 1rem; font-weight: 400; }
.price-value { font-family: var(--font-display); font-size: 1.1rem; color: var(--primary-dark); white-space: nowrap; }

/* Novinky — minimal editorial */
.news { background: var(--bg); }
.news .section-label, .news h2 { display: block; text-align: center; }
.news h2 { margin: 0.5rem 0 2.5rem; }
.news-list { display: flex; flex-direction: column; gap: 2.2rem; }
.news-card {
  display: flex; flex-direction: row; align-items: flex-start; gap: 1.8rem;
  background: none; padding: 0 0 2.2rem; border-bottom: 1px solid var(--border);
}
.news-card:last-child { border-bottom: none; }
.news-card-body { flex: 1; min-width: 0; }
.news-card time { font-size: 0.72rem; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 0.1em; }
.news-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; margin: 0.5rem 0; }
.news-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.75; }
.news-card-media { flex-shrink: 0; width: 180px; margin: 0; }
.news-card-media img { width: 100%; height: auto; display: block; object-fit: contain; filter: saturate(0.85); }

@media (max-width: 640px) {
  .news-card { flex-direction: column; align-items: stretch; }
  .news-card-media { width: 100%; max-width: 260px; 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; }

/* Kontakt — minimal, negative space */
.contact { background: var(--surface); border-top: 1px solid var(--border); }
.contact-grid { display: grid; gap: 3rem; text-align: center; }
.contact-info h2 { margin: 0.5rem 0 2rem; }
.contact-list { list-style: none; }
.contact-list li { padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
.contact-list strong { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 0.25rem; }
.hours-card { padding-top: 1.5rem; border-top: 1px solid var(--border); }
.hours-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; margin-bottom: 0.3rem; }
.hours-card table { width: 100%; margin: 0 auto; max-width: 320px; }
.hours-card td { padding: 0.4rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.hours-card td:last-child { text-align: right; }
.zavreno { color: var(--muted); font-style: italic; }

/* Footer */
.footer { background: var(--surface); color: var(--muted); padding: 3rem 0 2rem; text-align: center; border-top: 1px solid var(--border); }
.footer p:first-child { font-family: var(--font-display); font-size: 1.2rem; color: var(--text); margin-bottom: 0.3rem; }
.footer-copy { font-size: 0.8rem; }

/* 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.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 - 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-inner { flex-direction: row; justify-content: center; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: center; background: #fff; padding: 1.25rem; box-shadow: var(--shadow);
    gap: 1.1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text) !important; }
  .nav-toggle { display: block; position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}

.creator-bar {
  --creator-bar-bg: var(--surface);
  --creator-bar-border: var(--border);
  --creator-bar-muted: var(--muted);
}
