﻿:root {
  --primary: #d4564e;
  --primary-dark: #a8382f;
  --accent: #f2a950;
  --accent-2: #6fb7a8;
  --bg: #fff8f0;
  --surface: #ffffff;
  --text: #3a2b25;
  --muted: #8a7166;
  --border: #f3e2d0;
  --radius: 28px;
  --shadow: 0 14px 36px rgba(212, 86, 78, 0.12);
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Nunito', 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: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.hidden { display: none !important; }

/* ===== Nav: centered logo bar ===== */
.nav {
  position: sticky; top: 0; z-index: 150;
  background: rgba(255, 248, 240, 0.9); backdrop-filter: blur(14px);
  border-bottom: 2px dashed var(--border);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem; position: relative;
}
.nav-logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--primary-dark);
}
.nav-toggle {
  display: none; position: absolute; right: 1rem; top: 0.9rem;
  background: var(--accent); border: none; color: #fff; width: 40px; height: 40px;
  border-radius: 50%; font-size: 1.1rem; cursor: pointer;
}
.nav-links { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.nav-links a { color: var(--text); font-size: 0.88rem; font-weight: 600; padding: 0.4rem 0.5rem; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { background: var(--accent-2) !important; color: #fff !important; padding: 0.5rem 1.1rem !important; border-radius: 999px; }
.nav-rezervace { background: var(--primary) !important; color: #fff !important; padding: 0.5rem 1.2rem !important; border-radius: 999px; font-weight: 700 !important; }

/* ===== Hero: blobs, brand first ===== */
.hero {
  position: relative; min-height: 72vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden; background: var(--bg); padding: 3rem 1.5rem;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0;
  border-radius: 0 0 45% 45% / 0 0 12% 12%;
}
.hero-bg img { display: none; }
.hero.has-image {
  min-height: 0;
  padding: 0;
}
.hero.has-image .blob { display: none; }
.hero.has-image .hero-bg {
  position: relative;
  inset: auto;
  opacity: 0.85;
  border-radius: 0;
  width: 100%;
}
.hero.has-image .hero-bg img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.hero.has-image .hero-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 3rem);
}
.blob { position: absolute; border-radius: 62% 38% 55% 45% / 55% 45% 58% 42%; z-index: 0; }
.blob-1 { width: 340px; height: 340px; background: var(--accent); opacity: 0.35; top: -80px; left: -80px; animation: float1 9s ease-in-out infinite; }
.blob-2 { width: 260px; height: 260px; background: var(--accent-2); opacity: 0.3; bottom: -60px; right: -40px; animation: float2 11s ease-in-out infinite; }
.blob-3 { width: 160px; height: 160px; background: var(--primary); opacity: 0.15; top: 30%; right: 8%; animation: float1 7s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(14px,-18px) rotate(8deg); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(-16px,14px) rotate(-6deg); } }
.hero-content { position: relative; z-index: 2; max-width: 620px; }
.hero-tag {
  display: inline-block; padding: 0.5rem 1.3rem; background: #fff;
  border-radius: 999px; box-shadow: var(--shadow);
  font-size: 0.82rem; font-weight: 700; margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.4rem, 11vw, 6.5rem); line-height: 0.95; color: var(--primary-dark);
  margin-bottom: 1rem;
}
.hero-desc { font-size: 1.1rem; color: var(--muted); margin-bottom: 2rem; font-weight: 500; }

/* About ribbon */
.about-ribbon { background: var(--primary); padding: 1.5rem 0; text-align: center; }
.about-ribbon .about-text { color: #fff; font-weight: 600; font-size: 1.02rem; max-width: 700px; margin: 0 auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 2.4rem; border-radius: 999px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 800;
  border: none; cursor: pointer; transition: all 0.25s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 28px rgba(212,86,78,0.4); }
.btn-secondary { background: var(--border); color: var(--text); border-radius: 14px; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; border-radius: 999px; }
.btn-icon { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }

/* ===== Sections ===== */
.section { padding: 5rem 0; }
.section-header { margin-bottom: 2.25rem; }
.section-header.center { text-align: center; }
.section-label {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.72rem; color: var(--primary); font-weight: 800; margin-bottom: 0.5rem;
  background: var(--bg); padding: 0.3rem 0.9rem; border-radius: 999px;
}
.section-header h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.7rem); color: var(--primary-dark); margin-top: 0.5rem; }

/* Ceník — rovnoměrná mřížka karet */
.pricing { background: var(--surface); }
.price-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}
.price-card {
  background: var(--bg);
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.85rem;
  min-height: 220px;
  border: 3px solid transparent;
  box-shadow: var(--shadow);
  transition: transform 0.25s, border-color 0.25s;
}
.price-card:nth-child(3n+1) { background: linear-gradient(180deg, #fff3e0, var(--bg)); }
.price-card:nth-child(3n+2) { background: linear-gradient(180deg, #e7f5f1, var(--bg)); }
.price-card:nth-child(3n+3) { background: linear-gradient(180deg, #fdecea, var(--bg)); }
.price-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.price-name { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.price-value { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; color: var(--primary-dark); }

/* Personál — playful circles */
.team-section { background: var(--bg); }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.25rem; }
.team-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 230px; animation: pop 0.5s ease backwards; animation-delay: calc(var(--i) * 0.08s);
}
@keyframes pop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
.team-photo {
  width: 148px; height: 148px; border-radius: 50%; overflow: hidden;
  border: 5px solid #fff; box-shadow: var(--shadow); margin-bottom: 1rem; background: var(--border);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.team-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--primary-dark); }
.team-role { color: var(--primary); font-size: 0.8rem; font-weight: 700; margin: 0.3rem 0 0.6rem; text-transform: uppercase; }
.team-desc { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.6rem; }
.team-hours { font-size: 0.78rem; margin: 0 auto; border-collapse: collapse; }
.team-hours td { padding: 0.15rem 0.5rem; }
.team-hours td:first-child { color: var(--muted); }
.team-empty { 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: 2px solid #3a4550;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  background: #eef1f4;
  box-shadow: none;
}
.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; }

/* Galerie — staggered masonry */
.gallery-section { background: var(--surface); }
.gallery { column-count: 3; column-gap: 1.25rem; }
.gallery-item {
  position: relative; margin-bottom: 1.25rem; break-inside: avoid;
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow); transition: transform 0.3s;
}
.gallery-item:nth-child(2n) { margin-top: 1.5rem; }
.gallery-item:hover { transform: rotate(-1deg) scale(1.02); }
.gallery-item img { width: 100%; display: block; }
.gallery-item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.9rem; background: linear-gradient(transparent, rgba(58,43,37,0.65));
  color: #fff; font-size: 0.85rem;
}
.gallery-empty { text-align: center; color: var(--muted); padding: 2rem; }

/* Novinky — rovné karty, celý obrázek */
.news { background: var(--bg); }
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 760px;
  margin: 0 auto;
}
.news-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: #fff;
  padding: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}
.news-card-media {
  width: 100%;
  margin: 0;
  background: #f3e8dc;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card-media img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  display: block;
}
.news-card-body { padding: 1.5rem 1.75rem 1.75rem; }
.news-card time { font-size: 0.75rem; color: var(--primary); font-weight: 700; }
.news-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin: 0.4rem 0 0.75rem; color: var(--primary-dark); }
.news-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

.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 */
.contact { background: var(--surface); }
.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: 2px dashed var(--border); }
.contact-icon { font-size: 1.3rem; }
.contact-list strong { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.hours-card { background: var(--bg); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.hours-card h3 { font-family: var(--font-display); font-weight: 700; 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: 700; }
.zavreno { color: var(--muted); font-style: italic; }
.map-wrap {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow);
  min-height: 360px;
}
.map-wrap iframe {
  width: 100%;
  height: 360px;
  min-height: 360px;
  border: 0;
  display: block;
}
.map-empty {
  margin: 0;
  padding: 4rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.footer { background: var(--primary); color: rgba(255,255,255,0.85); padding: 2.5rem 0; text-align: center; }
.footer p:first-child { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; 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: 300; 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: 54px; height: 54px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none;
  font-size: 1.3rem; cursor: pointer;
  box-shadow: 0 4px 20px rgba(212,86,78,0.4);
}
.admin-panel { display: none; position: fixed; inset: 0; z-index: 400; 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: 999px; 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 { min-height: 120px; max-height: 220px; 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: auto; max-height: 220px; object-fit: contain; }
.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: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border: 2px solid #3a4550;
  border-radius: 12px;
  background: #eef1f4;
  box-shadow: none;
}
.edit-block .edit-row:last-of-type { border-bottom: none; }
.cenik-img-actions,
.novinka-img-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid #9aa3ad;
}
.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: 960px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 1rem; box-shadow: var(--shadow); border-radius: 0 0 24px 24px;
  }
  .nav-links.open { display: flex; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { column-count: 2; }
}
@media (max-width: 480px) {
  .gallery { column-count: 1; }
  .price-grid { grid-template-columns: 1fr; }
}

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

.price-card-has-image {
  justify-content: flex-start;
}

.price-media {
  width: 88px;
  min-width: 88px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(58, 43, 37, 0.08);
}

.price-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.price-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.cenik-img-preview {
  margin-top: 0.5rem;
  max-width: 180px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--border, #ddd);
  background: rgba(0, 0, 0, 0.03);
}

.cenik-img-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cenik-img-preview .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.8rem;
  color: var(--muted, #666);
}

.cenik-img-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.nav-logo-img {
  display: block;
  max-height: 48px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.color-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.color-row input[type="color"] {
  width: 48px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(128,128,128,0.35);
  background: transparent;
  cursor: pointer;
}

.color-row input[type="text"] {
  flex: 1;
}

.site-banner {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1.1rem;
  background: color-mix(in srgb, var(--gold, #c9a962) 18%, var(--surface, #111));
  border: 1px solid var(--line, rgba(201,169,98,0.25));
  border-left: 3px solid var(--gold, #c9a962);
  color: var(--text, #f2ece4);
  font-size: 0.95rem;
  line-height: 1.45;
}

.admin-sep {
  margin: 1.25rem 0 1rem;
  border: 0;
  border-top: 1px solid var(--line, rgba(255,255,255,0.12));
}
.admin-sub {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold, #c9a962);
}

.role-pill {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #1a1a1a;
  background: var(--gold, #c9a962);
  border: 1px solid var(--gold, #c9a962);
}
