:root {
  --gold: #c39a4d;
  --gold-light: #e0c079;
  --gold-dark: #9c7629;
  --brown: #241a13;
  --brown-mid: #3c2c20;
  --brown-soft: #5c4634;
  --cream: #f6eede;
  --bg: #f4ece0;
  --surface: #fbf5ea;
  --text: #2a1f16;
  --muted: #8a725b;
  --border: #e6d8c2;
  --hero-overlay: linear-gradient(90deg, rgba(24,17,12,0.85) 0%, rgba(24,17,12,0.45) 60%, rgba(24,17,12,0.2) 100%);
  --radius: 4px;
  --shadow: 0 18px 50px rgba(60, 40, 20, 0.12);
  --sidebar-w: 264px;
  --font-display: 'Fraunces', 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.7;
  font-weight: 400;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 2rem; }
.hidden { display: none !important; }

/* ── Pravý sidebar ── */
.sidebar {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: var(--sidebar-w); z-index: 60;
  background: linear-gradient(180deg, var(--brown) 0%, var(--brown-mid) 100%);
  border-left: 3px solid var(--gold);
  display: flex; flex-direction: column;
  padding: 2.6rem 2rem;
  color: var(--cream);
}
.side-top { display: flex; align-items: center; justify-content: space-between; }
.side-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  letter-spacing: 0.04em;
  color: var(--gold-light);
}
.side-logo:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--gold-light); cursor: pointer; }

.nav-links {
  display: flex; flex-direction: column; gap: 0.2rem;
  margin-top: 3.5rem; flex: 1;
}
.nav-links a {
  display: flex; align-items: baseline; gap: 0.7rem;
  color: rgba(246,238,222,0.82);
  font-size: 1rem; font-weight: 500;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(195,154,77,0.16);
  transition: color 0.2s, padding-left 0.2s;
}
.nav-links a:hover { color: var(--gold-light); padding-left: 0.4rem; }
.nav-num {
  font-family: var(--font-display);
  font-size: 0.72rem; color: var(--gold);
  letter-spacing: 0.1em;
}
.side-cta {
  margin-top: 1.6rem;
  border: none !important;
  background: var(--gold);
  color: var(--brown) !important;
  font-weight: 600 !important;
  text-align: center;
  justify-content: center !important;
  padding: 0.85rem 1rem !important;
  border-radius: 2px;
  letter-spacing: 0.03em;
}
.side-cta:hover { background: var(--gold-light); padding-left: 1rem !important; }
.side-foot {
  margin-top: 2rem;
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(195,154,77,0.7);
}

/* ── Stránka posunutá vlevo od sidebaru ── */
.page { margin-right: var(--sidebar-w); }

/* ── Hero (editoriální, zarovnané vlevo) ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(150deg, #241a13 0%, #5c4634 55%, #c39a4d 130%);
  background-size: cover; background-position: center;
}
.hero-bg.has-image { animation: slowZoom 22s ease infinite alternate; }
@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;
  display: flex; align-items: stretch; gap: 2rem;
  max-width: 900px; margin: 0 auto; width: 100%;
  padding: 6rem 2rem;
  animation: fadeUp 1s ease;
}
.hero-rule { width: 3px; background: var(--gold); flex-shrink: 0; align-self: stretch; }
.hero-text { max-width: 620px; }
.hero-tag {
  display: inline-block;
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 1.02; margin-bottom: 1.2rem;
}
.hero-desc { font-size: 1.08rem; opacity: 0.92; margin-bottom: 2.2rem; max-width: 34ch; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ── Tlačítka ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 2rem; border-radius: 2px;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.03em;
  border: none; cursor: pointer; transition: all 0.25s;
}
.btn-primary { background: var(--gold); color: var(--brown); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(195,154,77,0.4); }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-secondary:hover { background: #dcc9ab; }
.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); }

/* ── Sekce ── */
.section { padding: 6rem 0; }
.sec-head {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.4rem;
}
.sec-num {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 400;
  color: var(--gold); line-height: 1;
}
.section-label {
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 0.72rem; color: var(--muted); font-weight: 600;
  padding-top: 0.4rem; border-top: 2px solid var(--gold);
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1.4rem;
}

/* O nás */
.about { background: var(--surface); }
.about-body { display: grid; gap: 1rem; }
@media (min-width: 820px) {
  .about .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
  .about-body { margin-top: 0.5rem; }
}
.about-text { color: var(--muted); font-size: 1.08rem; line-height: 1.9; }

/* Galerie */
.gallery-section { background: var(--bg); }
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 0.9rem;
  margin-top: 1.5rem;
}
.gallery-item {
  position: relative; overflow: hidden; cursor: pointer;
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform 0.35s;
}
.gallery-item:nth-child(4n+1) { grid-column: span 8; aspect-ratio: 16/9; }
.gallery-item:nth-child(4n+2) { grid-column: span 4; aspect-ratio: 3/4; }
.gallery-item:nth-child(4n+3) { grid-column: span 5; aspect-ratio: 4/3; }
.gallery-item:nth-child(4n)   { grid-column: span 7; aspect-ratio: 16/9; }
.gallery-item:hover { transform: translateY(-5px); }
.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(36,26,19,0.8));
  color: var(--cream); font-size: 0.85rem;
}
.gallery-empty { text-align: center; color: var(--muted); padding: 2rem; grid-column: 1 / -1; }

/* Tým */
.team-section { background: var(--brown); color: var(--cream); }
.team-section .sec-num { color: var(--gold-light); }
.team-section .section-label { color: rgba(246,238,222,0.7); }
.team-section h2 { color: #fff; }
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem; margin-top: 1.5rem;
}
.team-card {
  background: var(--brown-mid);
  border: 1px solid rgba(195,154,77,0.25);
  border-radius: var(--radius); overflow: hidden;
  animation: fadeUp 0.5s ease backwards;
  animation-delay: calc(var(--i) * 0.08s);
}
.team-photo { aspect-ratio: 4/5; background: var(--brown-soft); overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--brown-soft), var(--gold-dark)); }
.team-body { padding: 1.3rem; }
.team-body h3 { font-family: var(--font-display); font-size: 1.45rem; color: var(--gold-light); margin-bottom: 0.3rem; }
.team-role { color: var(--gold); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.8rem; }
.team-desc { font-size: 0.94rem; line-height: 1.6; margin-bottom: 1rem; color: rgba(246,238,222,0.85); }
.team-hours { width: 100%; font-size: 0.84rem; border-collapse: collapse; }
.team-hours td { padding: 0.3rem 0; border-bottom: 1px solid rgba(195,154,77,0.18); }
.team-hours td:first-child { color: var(--gold); width: 42%; }
.team-empty { margin-top: 1rem; color: rgba(246,238,222,0.7); 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: 8px; 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 — menu styl se zlatou tečkovanou linkou */
.pricing { background: var(--surface); }
.price-grid { display: flex; flex-direction: column; margin-top: 1.5rem; }
.price-card {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.1rem 0.25rem;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.2s;
}
.price-card:hover { padding-left: 0.6rem; }
.price-name { font-size: 1.12rem; font-weight: 500; color: var(--text); white-space: nowrap; }
.price-card::before {
  content: ""; flex: 1; height: 0;
  border-bottom: 2px dotted var(--border);
  transform: translateY(-4px);
}
.price-value { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold-dark); white-space: nowrap; }

/* Novinky */
.news { background: var(--bg); }
.news-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.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(--gold);
  box-shadow: var(--shadow);
}
.news-card-body { flex: 1; min-width: 0; }
.news-card time { font-size: 0.75rem; color: var(--gold-dark); font-weight: 600; }
.news-card h3 { font-family: var(--font-display); font-size: 1.3rem; margin: 0.4rem 0; }
.news-card p { color: var(--muted); font-size: 0.92rem; 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: 6px; 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: #fbece6; color: #a33; border: none; padding: 0.4rem 0.7rem; border-radius: 6px; font-size: 0.8rem; cursor: pointer; }

/* Kontakt */
.contact { background: var(--surface); }
.contact-grid { display: grid; gap: 2rem; margin-top: 0.5rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-list { list-style: none; margin-top: 1rem; }
.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(--brown); color: var(--cream); padding: 2rem; border-radius: var(--radius); border-top: 3px solid var(--gold); box-shadow: var(--shadow); }
.hours-card h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--gold-light); }
.hours-card .hours-note { color: rgba(246,238,222,0.6); }
.hours-card table { width: 100%; }
.hours-card td { padding: 0.5rem 0; border-bottom: 1px solid rgba(195,154,77,0.2); font-size: 0.92rem; }
.hours-card td:last-child { text-align: right; font-weight: 500; }
.zavreno { color: var(--gold); font-style: italic; }

/* Footer */
.footer { background: var(--brown); color: rgba(246,238,222,0.7); padding: 2.5rem 0; text-align: center; border-top: 3px solid var(--gold); }
.footer p:first-child { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold-light); }

/* 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(--gold); 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(24,17,12,0.94); 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: var(--gold-light); font-size: 1.5rem; cursor: pointer; }

/* Admin */
.admin-fab { position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 90; width: 52px; height: 52px; border-radius: 14px; background: var(--brown); color: var(--gold-light); border: 1px solid var(--gold); font-size: 1.3rem; cursor: pointer; box-shadow: 0 4px 20px rgba(36,26,19,0.4); }
.admin-panel { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(24,17,12,0.45); }
.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(--gold-dark); }
.admin-hint.error { color: #c0392b; }
.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(--gold); }
.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: 8px; 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: 6px; border: 1px solid var(--border); background: transparent; font-size: 0.78rem; cursor: pointer; font-family: inherit; }
.admin-tabs .tab.active { background: var(--gold); color: var(--brown); border-color: var(--gold); }
.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: 8px; 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: 8px; }
.gallery-edit-item img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.btn-delete-img { background: #fbece6; color: #a33; 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; }

/* ── Responsivita: sidebar → horní lišta ── */
@media (max-width: 900px) {
  .page { margin-right: 0; }
  .sidebar {
    left: 0; bottom: auto; width: auto; height: auto;
    flex-direction: row; align-items: center; justify-content: space-between;
    padding: 0.9rem 1.25rem;
    border-left: none; border-bottom: 3px solid var(--gold);
  }
  .side-top { flex: 1; }
  .side-logo { font-size: 1.6rem; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 62px; left: 0; right: 0;
    background: var(--brown-mid);
    margin-top: 0; padding: 1rem 1.5rem; flex: none;
    display: none; border-bottom: 3px solid var(--gold);
  }
  .nav-links.open { display: flex; }
  .side-cta { margin-top: 1rem; }
  .side-foot { display: none; }
  .hero-content { padding: 5rem 1.5rem; }
  .admin-fab { left: auto; right: 1.5rem; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 1.25rem; }
  .gallery-item { grid-column: span 12 !important; aspect-ratio: 16/10 !important; }
  .sec-num { font-size: 1.8rem; }
  .price-card { flex-wrap: wrap; }
  .price-card::before { display: none; }
  .price-value { margin-left: auto; }
}

.creator-bar {
  --creator-bar-bg: var(--brown);
  --creator-bar-border: var(--gold);
  --creator-bar-muted: rgba(246,238,222,0.7);
  --creator-bar-link-hover: var(--gold-light);
  margin-right: var(--sidebar-w);
}
@media (max-width: 900px) {
  .creator-bar { margin-right: 0; }
}
