@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --cream: #faf6f0;
  --cream-2: #f2e9dd;
  --ink: #3a332c;
  --ink-soft: #6b6156;
  --gold: #b8935f;
  --gold-dark: #8f6f45;
  --line: #e3d8c6;
  --radius: 14px;
  --max-width: 960px;
}

* { box-sizing: border-box; }

/* Always reserve the vertical scrollbar so content width is stable
   (prevents the auto-fit head row from mis-measuring). */
html { overflow-y: scroll; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 .5em;
}

a { color: var(--gold-dark); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 14px 24px;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nav a:hover { color: var(--gold-dark); }

/* Hero */
.hero {
  text-align: center;
  padding: 90px 24px 70px;
  background:
    radial-gradient(circle at 50% 0%, var(--cream-2) 0%, var(--cream) 65%);
}
.hero .kicker {
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: 13px;
  color: var(--gold-dark);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.15;
}
.hero .amp {
  display: inline-block;
  font-style: italic;
  color: var(--gold);
  margin: 0 .15em;
}
.hero .date {
  margin-top: 18px;
  font-size: 1.2rem;
  color: var(--ink-soft);
  letter-spacing: .03em;
}
.hero .divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 26px auto;
  border: none;
}

/* Sections */
section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
section .eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 12px;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

/* Info cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.card p { margin: 4px 0; color: var(--ink-soft); }
.card p:has(+ .map-preview) { margin-bottom: 14px; }
.card .icon { font-size: 1.6rem; margin-bottom: 10px; display: block; }
.map-preview {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  text-decoration: none;
  background-color: #eef1ea;
  background-size: cover;
  background-position: center;
  transition: filter .2s ease, transform .2s ease;
}
.map-preview::before {
  content: "📍";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  font-size: 2rem;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.35));
}
.map-preview::after {
  content: "Otvoriť v mapách ↗";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 10px;
  font-size: .8rem;
  color: #fff;
  background: rgba(58,51,44,.72);
  text-align: center;
}
.map-preview:hover { filter: brightness(1.03); transform: translateY(-1px); }

/* Timeline */
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 560px;
}
.timeline li {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.timeline li:last-child { border-bottom: none; }
.timeline .time {
  flex: 0 0 90px;
  font-family: 'Playfair Display', serif;
  color: var(--gold-dark);
  font-weight: 600;
}

/* Seating search */
.seating-box {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.seating-box input {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-family: 'Lato', sans-serif;
}
.seating-box input:focus {
  outline: none;
  border-color: var(--gold);
}
#seating-results {
  margin-top: 18px;
  min-height: 24px;
}
.seating-result {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.seating-result .table-badge {
  background: var(--cream-2);
  color: var(--gold-dark);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .9rem;
}
.seating-hint, .seating-empty {
  color: var(--ink-soft);
  font-size: .92rem;
}

/* Seating chart (tables) */
.table-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.table-main-bar {
  height: 18px;
  border-radius: 8px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.guest-chip.highlight {
  border-color: var(--gold) !important;
  background: var(--cream-2) !important;
  box-shadow: 0 0 0 2px var(--gold);
}

/* One long head table — never wrap; auto-shrink to fit width */
.main-row-fit {
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

/* Admin editable seating */
.edit-seats {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 0;
  white-space: nowrap;
}
.edit-seats .edit-chip {
  flex: 0 0 auto;
  white-space: nowrap;
}
.seat-gap {
  flex: 0 0 auto;
  align-self: stretch;
  width: 8px;
  min-height: 40px;
  border-radius: 6px;
  transition: background .12s ease, width .12s ease;
}
.seat-gap.active {
  background: var(--gold);
  width: 14px;
}
.guest-chip.dragging { opacity: .35; }
.guest-chip.swap-target {
  border-color: var(--gold) !important;
  background: var(--cream-2) !important;
  box-shadow: 0 0 0 2px var(--gold);
}
.seat-gap-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px dashed var(--gold);
  background: transparent;
  opacity: .5;
  transition: opacity .12s ease, transform .12s ease, background .12s ease;
}
.seat-gap-dot.active {
  opacity: 1;
  background: var(--gold);
  border-style: solid;
  transform: scale(1.5);
}

/* App CTA */
.app-cta {
  text-align: center;
}
.app-cta p { color: var(--ink-soft); max-width: 480px; margin: 0 auto 26px; }
.btn {
  display: inline-block;
  background: var(--gold-dark);
  color: #fff;
  text-decoration: none;
  padding: 15px 34px;
  border-radius: 999px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  letter-spacing: .03em;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--gold); transform: translateY(-1px); }

/* Footer */
footer {
  text-align: center;
  padding: 40px 24px 60px;
  color: var(--ink-soft);
  font-size: .9rem;
}

@media (max-width: 560px) {
  .nav .container { gap: 16px; }
  section { padding: 48px 0; }
}
