:root {
  --bg: #080808;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --text: #f2ece4;
  --muted: #8a8278;
  --gold: #c9a962;
  --gold-dim: #8a7340;
  --line: rgba(201, 169, 98, 0.2);
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Syne', system-ui, sans-serif;
  --sidebar-w: 220px;
}

*, *::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.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text); }

.hidden { display: none !important; }

/* Film grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Sidebar nav */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.25rem;
  z-index: 100;
}

.sidebar-brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 3rem;
  line-height: 1;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid transparent;
  transition: all 0.25s;
}

.sidebar-nav a span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-dim);
  min-width: 1.5rem;
}

.sidebar-nav a:hover {
  color: var(--text);
  border-bottom-color: var(--line);
}

.sidebar-rezervace {
  display: block;
  text-align: center;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: 1px solid var(--line);
  color: var(--text) !important;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: border-color 0.2s, color 0.2s;
}

.sidebar-rezervace:hover {
  border-color: var(--gold);
  color: var(--gold) !important;
}

.sidebar-cta {
  display: block;
  text-align: center;
  padding: 0.85rem;
  background: var(--gold);
  color: var(--bg) !important;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: auto;
  transition: background 0.2s, transform 0.2s;
}

.sidebar-cta:hover {
  background: var(--text);
  transform: translateY(-2px);
}

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 1rem; left: 1rem;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 1.25rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

/* Main page offset */
.page {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

/* Loading */
.loading {
  position: fixed;
  inset: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 50;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.loading-bar {
  width: 120px;
  height: 2px;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}

.loading-bar::after {
  content: '';
  position: absolute;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: loadbar 1.2s ease infinite;
}

@keyframes loadbar {
  to { left: 100%; }
}

/* Hero — split editorial */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4rem 3rem 4rem 4rem;
  border-right: 1px solid var(--line);
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 400px;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.hero-link { color: var(--gold); }
.hero-dot { color: var(--gold-dim); }

.hero-visual {
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero-frame {
  flex: 1;
  min-height: 60vh;
  background: linear-gradient(135deg, var(--surface-2) 0%, #2a2218 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-frame.has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 40%);
}

.hero-caption {
  padding: 2rem 3rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.hero-caption p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.hero-address {
  margin-top: 0.75rem;
  color: var(--gold) !important;
  font-weight: 600;
  font-size: 0.8rem !important;
  letter-spacing: 0.05em;
}

/* Sections */
.section {
  padding: 5rem 4rem;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.section-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold-dim);
  line-height: 1;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

/* Gallery — horizontal filmstrip */
.section-gallery { padding-right: 0; overflow: hidden; }

.gallery-track-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) var(--surface);
  padding-bottom: 1rem;
}

.gallery-track {
  display: flex;
  gap: 1.25rem;
  padding-right: 4rem;
}

.gallery-slide {
  flex: 0 0 auto;
  width: clamp(260px, 35vw, 420px);
  cursor: pointer;
  position: relative;
  animation: fadeUp 0.6s ease both;
  animation-delay: calc(var(--i) * 0.08s);
}

.gallery-slide img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
  transition: filter 0.4s, transform 0.4s;
}

.gallery-slide:hover img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.gallery-slide figcaption {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.gallery-empty {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Pricing — editorial dotted list */
.price-list {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.price-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  animation: fadeUp 0.5s ease both;
  animation-delay: calc(var(--i) * 0.06s);
}

.price-idx {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-dim);
}

.price-name {
  font-size: 1rem;
  font-weight: 500;
}

.price-dots {
  border-bottom: 1px dotted var(--gold-dim);
  opacity: 0.4;
  min-width: 2rem;
}

.price-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* News — stacked editorial */
.news-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  animation: fadeUp 0.6s ease both;
  animation-delay: calc(var(--i) * 0.1s);
}

.news-item:last-child { border-bottom: 1px solid var(--line); }

.news-item:not(.has-img) .news-content {
  grid-column: 1 / -1;
}

.news-visual {
  overflow: hidden;
  border-right: 1px solid var(--line);
  min-height: 280px;
}

.news-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter 0.4s, transform 0.6s;
}

.news-item:hover .news-visual img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.news-content {
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-content time {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.news-content h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.news-content p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Contact */
.section-contact {
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.contact-block h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0.5rem 0 1rem;
}

.contact-brand {
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 2rem;
}

.contact-lines {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-lines li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.contact-lines span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.contact-lines strong,
.contact-lines a {
  color: var(--text);
  font-weight: 500;
}

.hours-block h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hours-note { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.75rem; font-style: italic; }

.hours-block table { width: 100%; }

.hours-block td {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.hours-block td:last-child {
  text-align: right;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.zavreno { color: var(--muted); font-style: italic; font-family: var(--font-body) !important; font-size: 0.9rem !important; }

.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox img {
  max-height: 90vh;
  max-width: 100%;
  border: 1px solid var(--line);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 1.25rem;
  width: 44px; height: 44px;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-close:hover { background: var(--surface); }

/* Personál / tým */
.section-team { padding-bottom: 4rem; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.team-card {
  border: 1px solid var(--line);
  background: var(--surface);
  animation: fadeUp 0.6s ease backwards;
  animation-delay: calc(var(--i) * 0.08s);
}
.team-photo {
  aspect-ratio: 4/5;
  background: var(--surface-2);
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--surface-2), var(--line));
}
.team-body { padding: 1.25rem; }
.team-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.team-role { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.team-desc { font-size: 0.95rem; line-height: 1.55; margin-bottom: 1rem; color: var(--text); }
.team-hours { width: 100%; font-size: 0.85rem; border-collapse: collapse; }
.team-hours td { padding: 0.25rem 0; border-bottom: 1px solid var(--line); }
.team-hours td:first-child { color: var(--muted); width: 40%; }
.team-empty { margin-top: 1rem; color: var(--muted); }

.personel-edit-card {
  border: 1px solid var(--line);
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--surface-2);
}
.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: 1px solid var(--line); }
.admin-rozvrh { font-size: 0.8rem; margin: 0.5rem 0; }
.admin-rozvrh input[type="time"] { width: 100%; padding: 0.2rem; background: var(--bg); border: 1px solid var(--line); color: var(--text); }

/* Admin — unchanged structure, dark theme */
.admin-fab {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 90;
  width: 52px; height: 52px;
  border-radius: 0;
  background: var(--gold);
  color: var(--bg);
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.admin-fab:hover { transform: scale(1.08); }

.admin-panel {
  display: none;
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.admin-panel.open { display: flex; justify-content: flex-end; }

.admin-drawer {
  width: 100%; max-width: 440px;
  height: 100%;
  background: #141414;
  color: var(--text);
  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(--line);
}

.admin-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.admin-body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }
.admin-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--line); }

.admin-hint { color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; }
.admin-hint.success { color: var(--gold); }
.admin-body .checkbox { flex-direction: row !important; align-items: center; color: var(--text); text-transform: none; 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.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.75rem;
}

.admin-body input,
.admin-body textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  margin-top: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: inherit;
  border-radius: 0;
}

.admin-body input:focus,
.admin-body textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.admin-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }

.admin-tabs .tab {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
}

.admin-tabs .tab.active {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: var(--text); }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.78rem; }
.btn-icon { background: none; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.btn-upload { cursor: pointer; display: inline-block; }

.upload-box { margin-bottom: 1.5rem; }
.upload-box h4 { font-size: 0.85rem; color: var(--gold); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }

.hero-preview {
  height: 120px;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 0.75rem;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-preview img { width: 100%; height: 100%; object-fit: cover; }
.hero-preview .placeholder { color: var(--muted); font-size: 0.85rem; }

.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(--line);
}

.gallery-edit-item img { width: 64px; height: 48px; object-fit: cover; }

.btn-delete-img {
  background: transparent;
  color: #e74c3c;
  border: 1px solid #e74c3c;
  padding: 0.35rem 0.6rem;
  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(--line);
}

.edit-row input { flex: 1; min-width: 80px; }
.edit-block { margin-bottom: 0.75rem; }

.novinka-img-preview {
  min-height: 90px;
  max-height: 160px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.novinka-img-preview img { max-width: 100%; max-height: 160px; object-fit: contain; }
.novinka-img-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }

.btn-remove-novinka-img {
  background: transparent;
  color: #e74c3c;
  border: 1px solid #e74c3c;
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.status-msg { margin-top: 0.75rem; font-size: 0.85rem; text-align: center; }
.status-msg.error { color: #e74c3c; }
.status-msg.success { color: var(--gold); }

/* Responsive */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-text { border-right: none; border-bottom: 1px solid var(--line); padding: 3rem 2rem; }
  .hero-frame { min-height: 45vh; }
  .news-item { grid-template-columns: 1fr; }
  .news-visual { border-right: none; border-bottom: 1px solid var(--line); min-height: 220px; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    transition: transform 0.3s;
  }

  .sidebar.open { transform: translateX(0); }

  .sidebar-toggle { display: block; }

  .page { margin-left: 0; }
  .loading { margin-left: 0; }

  .section { padding: 3rem 1.5rem; }
  .hero-text { padding: 5rem 1.5rem 2rem; }
  .hero-caption { padding: 1.5rem; }
  .news-content { padding: 1.5rem; }
}

.creator-bar {
  --creator-bar-bg: var(--surface);
  --creator-bar-border: var(--line);
  --creator-bar-link-hover: var(--gold);
}
