/* ============================================================
   ASIA & KUBA WEDDING – DESIGN SYSTEM
   Fonts: Dancing Script (script) · Cormorant Garant (serif)
   Palette: warm cream · gold/bronze · dark brown
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;600;700&family=Cormorant+Garant:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Lato:wght@300;400;700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #faf6f0;
  --bg-alt:      #f3ebe0;
  --bg-card:     #fdf9f4;
  --gold:        #c4a26b;
  --gold-dark:   #9e7a4e;
  --gold-light:  #e8d5b4;
  --brown:       #6b4c30;
  --text:        #2e1b0e;
  --text-mid:    #7a5c42;
  --text-light:  #b09278;
  --border:      #ddd0ba;
  --white:       #ffffff;

  --font-script: 'Dancing Script', cursive;
  --font-serif:  'Cormorant Garant', Georgia, serif;
  --font-sans:   'Lato', system-ui, sans-serif;

  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(46, 27, 14, 0.09);
  --shadow-lg:  0 8px 48px rgba(46, 27, 14, 0.14);
  --transition: 0.3s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--font-serif); background: var(--bg); color: var(--text); line-height: 1.75; -webkit-font-smoothing: antialiased; }
img   { display: block; max-width: 100%; height: auto; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button, input, select, textarea { font: inherit; }

/* ── Utilities ─────────────────────────────────────────────── */
.container {
  width: min(1140px, 90%);
  margin-inline: auto;
}
.text-center { text-align: center; }
.text-script  { font-family: var(--font-script); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2.4rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: var(--transition);
}
.btn--primary {
  background: var(--gold);
  color: var(--white);
}
.btn--primary:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline {
  background: transparent;
  color: var(--gold-dark);
  border: 2px solid var(--gold);
}
.btn--outline:hover { background: var(--gold); color: var(--white); }
.btn--ghost {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255,255,255,.3); }

/* ── Section title ─────────────────────────────────────────── */
.section-label {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: block;
  margin-bottom: .5rem;
}
.section-title {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: .5rem;
}
.section-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: .75rem 0 1.75rem;
  justify-content: center;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--gold-light);
}
.section-divider span { color: var(--gold); font-size: 1rem; }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 0;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(253, 249, 244, 0.95);
  backdrop-filter: blur(8px);
  padding: .8rem 0;
  box-shadow: 0 2px 16px rgba(46,27,14,.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--white);
  transition: var(--transition);
}
.nav.scrolled .nav__brand { color: var(--text); }
.nav__links {
  display: flex;
  gap: 2rem;
}
.nav__links a {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  transition: var(--transition);
}
.nav.scrolled .nav__links a { color: var(--text-mid); }
.nav__links a:hover { color: var(--white); }
.nav.scrolled .nav__links a:hover { color: var(--gold-dark); }
.nav__back {
  display: none;
  align-items: center;
  gap: .35rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-mid);
  background: var(--bg-card);
}
.nav__back:hover { color: var(--gold-dark); border-color: var(--gold-light); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Default gradient – replace with actual photo using inline style="background-image:url('assets/hero.jpg')" */
  background: linear-gradient(160deg, #1a0f07 0%, #3d200e 40%, #5c3218 70%, #2d1408 100%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
@media (max-width: 768px) {
  .hero { min-height: 60vh; }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,10,4,.35) 0%,
    rgba(20,10,4,.5) 60%,
    rgba(20,10,4,.8) 100%
  );
}
.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 2rem;
  animation: fadeInDown .9s ease both;
}
.hero__names {
  font-family: var(--font-script);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.hero__divider {
  font-size: 1.5rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
  letter-spacing: .5rem;
}
.hero__date {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: .25em;
  color: rgba(255,255,255,.9);
  margin-bottom: 2.5rem;
}
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.6);
  font-family: var(--font-sans);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero__scroll svg { width: 20px; height: 20px; }
.hero__wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  z-index: 1;
  line-height: 0;
}
.hero__wave svg { width: 100%; fill: var(--bg); }

/* ── Historia section ──────────────────────────────────────── */
.historia {
  padding: 6rem 0 4rem;
  background: var(--bg);
}
.historia__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 1rem;
}
.historia__intro {
  font-size: 1.1rem;
  color: var(--text-mid);
  margin-bottom: 2.5rem;
  font-style: italic;
}

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: .55rem;
  top: .4rem;
  bottom: .4rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold-light), transparent);
}
.timeline__item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1.2rem;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .5s ease, transform .5s ease;
}
.timeline__item.visible { opacity: 1; transform: none; }
.timeline__item::before {
  content: '';
  position: absolute;
  left: -1.45rem;
  top: .55rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--gold-light);
}
.timeline__icon {
  position: absolute;
  left: -1.75rem;
  top: .3rem;
  font-size: 1rem;
  display: none; /* shown on wider screens */
}
.timeline__date {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold-dark);
  margin-bottom: .15rem;
}
.timeline__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .2rem;
}
.timeline__desc {
  font-size: .9rem;
  color: var(--text-mid);
  font-style: italic;
}
.historia__footer {
  margin-top: 2rem;
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--gold-dark);
}

/* Gallery CTA panel */
.gallery-cta {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}
.gallery-cta__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  font-size: 1.8rem;
}
.gallery-cta__title {
  font-family: var(--font-script);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.gallery-cta__body { font-size: .95rem; color: var(--text-mid); margin-bottom: 1.25rem; }
.gallery-cta__cta {
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 2rem;
}
.gallery-cta__icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.gallery-cta__step { text-align: center; }
.gallery-cta__step-icon { font-size: 1.6rem; margin-bottom: .4rem; }
.gallery-cta__step p {
  font-size: .8rem;
  color: var(--text-mid);
  line-height: 1.4;
}
.gallery-cta__step strong { display: block; font-size: .85rem; color: var(--text); margin-bottom: .15rem; }

/* ── Quiz teaser section ───────────────────────────────────── */
.quiz-teaser {
  padding: 5rem 0;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.quiz-teaser::before,
.quiz-teaser::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='%23c4a26b' fill-opacity='.08' d='M100,10 Q130,60 190,40 Q160,100 190,160 Q130,140 100,190 Q70,140 10,160 Q40,100 10,40 Q70,60 100,10Z'/%3E%3C/svg%3E") no-repeat center/contain;
}
.quiz-teaser::before { top: -50px; left: -80px; }
.quiz-teaser::after  { bottom: -50px; right: -80px; transform: rotate(180deg); }
.quiz-teaser__header { text-align: center; margin-bottom: 2.5rem; position: relative; }
.quiz-teaser__desc { font-size: 1rem; color: var(--text-mid); max-width: 520px; margin: 0 auto 2rem; }
.quiz-teaser__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.quiz-q-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .88rem;
  color: var(--text-mid);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(12px);
}
.quiz-q-card.visible { opacity: 1; transform: none; }
.quiz-q-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.quiz-q-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--brown);
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quiz-teaser__cta { text-align: center; position: relative; }
.quiz-teaser__luck {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--gold-dark);
  margin-top: 1.5rem;
  display: block;
}

/* ── Photos teaser section ─────────────────────────────────── */
.photos-teaser {
  padding: 5rem 0;
  background: var(--bg);
}
.photos-teaser__header { text-align: center; margin-bottom: 2.5rem; }
.photos-teaser__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .75rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 900px) {
  .photos-teaser__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .photos-teaser__grid { grid-template-columns: repeat(3, 1fr); }
}
.photos-teaser__thumb {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
}
.photos-teaser__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.photos-teaser__thumb:hover img { transform: scale(1.05); }
.photos-teaser__cta { text-align: center; }

/* ── Seating teaser ───────────────────────────────────────── */
.seating-teaser {
  padding: 5rem 0;
  background: var(--bg);
}
.seating-teaser__wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
}
.seating-teaser__desc {
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}
.seating-teaser__mini {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .75rem;
}
.seating-teaser__mini-table {
  background: #efe4c8;
  border: 1px solid #dbcba6;
  border-radius: 10px;
  min-height: 130px;
}

/* ── Feedback section ─────────────────────────────────────── */
.feedback {
  padding: 5rem 0;
  background: var(--bg-alt);
}
.feedback__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 0 auto;
}
.feedback__desc {
  color: var(--text-mid);
  text-align: center;
  margin-bottom: 1.6rem;
}
.feedback__form {
  display: grid;
  gap: 1rem;
}
.feedback__form label {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.feedback__form input,
.feedback__form textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  padding: .85rem 1rem;
  font-size: 1rem;
}
.feedback__form input:focus,
.feedback__form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 162, 107, 0.2);
}
.feedback__form textarea {
  min-height: 150px;
  resize: vertical;
}
.feedback__status {
  min-height: 1.4em;
  text-align: center;
  font-size: .9rem;
}
.feedback__status--ok { color: #2f8a55; }
.feedback__status--error { color: #c44343; }

/* ── Seating map page ─────────────────────────────────────── */
.seating-page {
  padding: 5rem 0;
  background: var(--bg);
}
.seating-search {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1.2rem;
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
}
.seating-search input {
  flex: 1;
  min-width: 220px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: .75rem 1rem;
}
.seating-suggestions {
  width: 100%;
  display: grid;
  gap: .35rem;
}
.seating-suggestion {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 10px;
  padding: .55rem .75rem;
  text-align: left;
  cursor: pointer;
  font-size: .86rem;
  color: var(--text-mid);
}
.seating-suggestion strong {
  color: var(--text);
}
.seating-suggestion:hover {
  border-color: var(--gold);
  background: var(--bg-alt);
}
.seating-search__status {
  width: 100%;
  font-size: .9rem;
  color: var(--text-mid);
  min-height: 1.4rem;
}
.seat-map {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #f4f4f4;
  padding: 1.25rem;
  overflow: auto;
}
.seat-map__canvas {
  position: relative;
  width: 1100px;
  height: 650px;
  background: #e7e7e7;
  border-radius: var(--radius);
  border: 1px solid #d8d8d8;
}
.seat-zone {
  position: absolute;
  background: #d7e5d0;
  border: 1px solid #b8ccb1;
  border-radius: 8px;
  color: #1e2c1a;
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: .25rem;
}
.map-table {
  position: absolute;
  background: #efe4c8;
  border: 1px solid #d0be95;
  border-radius: 8px;
  padding: .35rem;
  display: grid;
  gap: .2rem;
}
.map-table--long {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.map-table--head {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.map-table__title {
  position: absolute;
  top: -1.2rem;
  left: 0;
  font-size: .75rem;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text-mid);
}
.seat {
  border: 1px solid #dccca8;
  border-radius: 4px;
  background: #f8f0d7;
  min-height: 18px;
  font-size: .62rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7d603e;
  padding: 0 .2rem;
}
.seat--match {
  background: #ffd86a;
  border-color: #d3a82a;
  color: #5c420b;
  box-shadow: 0 0 0 3px rgba(211, 168, 42, .25);
}
.seat-legend {
  margin-top: .8rem;
  display: flex;
  gap: .8rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--text-mid);
}
.seat-legend span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.seat-legend i {
  display: inline-block;
  width: 16px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid #dccca8;
  background: #f8f0d7;
}
.seat-legend i.match {
  background: #ffd86a;
  border-color: #d3a82a;
}
.seat-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(46, 27, 14, 0.95);
  color: #fff;
  padding: .7rem 1rem;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: .85rem;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: var(--shadow);
}
.seat-toast.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Seating admin page ───────────────────────────────────── */
.seating-admin {
  padding: 5rem 0;
  background: var(--bg);
}
.admin-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  align-items: center;
  margin-bottom: 1.2rem;
}
.admin-toolbar input {
  flex: 1;
  min-width: 240px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: .75rem 1rem;
}
.admin-status {
  width: 100%;
  min-height: 1.3rem;
  color: var(--text-mid);
  font-size: .9rem;
}
.admin-tables {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.admin-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem;
}
.admin-table-card__title {
  font-family: var(--font-sans);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: .55rem;
}
.admin-seat-grid {
  display: grid;
  gap: .45rem;
}
.admin-seat {
  border: 1px solid #dccca8;
  background: #fff9e7;
  border-radius: 8px;
  padding: .45rem;
  display: grid;
  gap: .25rem;
  cursor: grab;
}
.admin-seat--taken {
  background: #f5ecd4;
}
.admin-seat--dragging {
  opacity: .45;
}
.admin-seat--drop {
  border-color: #bf9941;
  box-shadow: 0 0 0 2px rgba(191, 153, 65, .25);
}
.admin-seat__number {
  font-family: var(--font-sans);
  font-size: .68rem;
  color: #8b6d45;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.admin-seat__guest {
  font-size: .88rem;
  color: var(--text);
  line-height: 1.2;
}
.admin-seat__edit {
  justify-self: end;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--text-mid);
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  cursor: pointer;
}
.admin-seat__edit:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 4, .55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 600;
  padding: 1rem;
}
.admin-modal-overlay.active {
  display: flex;
}
.admin-modal {
  width: min(460px, 100%);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
}
.admin-modal__title {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--text);
  margin-bottom: .25rem;
}
.admin-modal__meta {
  font-size: .9rem;
  color: var(--text-mid);
  margin-bottom: .7rem;
}
.admin-modal input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .75rem .9rem;
  font-size: 1rem;
}
.admin-modal input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 162, 107, 0.2);
}
.admin-modal__hint {
  color: var(--text-light);
  font-size: .82rem;
  margin-top: .45rem;
}
.admin-modal__actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.65);
  text-align: center;
  padding: 2.5rem 1rem;
  font-family: var(--font-sans);
  font-size: .8rem;
}
.footer__brand {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--gold-light);
  display: block;
  margin-bottom: .5rem;
}
.footer__date { letter-spacing: .15em; margin-bottom: .75rem; }

/* ══════════════════════════════════════════════════════════════
   QUIZ PAGE
   ══════════════════════════════════════════════════════════════ */
.page-header {
  background: linear-gradient(160deg, #1a0f07, #4a2c18);
  color: var(--white);
  text-align: center;
  padding: 6rem 1rem 4rem;
}
.page-header .section-title { color: var(--white); }
.page-header .section-label { color: var(--gold-light); }
.page-header p { color: rgba(255,255,255,.75); font-size: 1rem; max-width: 520px; margin: .75rem auto 0; }

.quiz-form-section {
  padding: 4rem 0 6rem;
  background: var(--bg);
}
.quiz-progress {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.quiz-progress__label {
  font-family: var(--font-sans);
  font-size: .82rem;
  color: var(--text-mid);
  white-space: nowrap;
}
.quiz-progress__bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.quiz-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 999px;
  transition: width .3s ease;
  width: 0%;
}
.quiz-progress__count {
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold-dark);
  white-space: nowrap;
}
.quiz-questions-grid {
  display: grid;
  gap: 1.5rem;
}
.quiz-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  transition: border-color .2s;
}
.quiz-card.answered { border-color: var(--gold-light); }
.quiz-card__q {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.quiz-card__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--brown);
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quiz-card__text {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  padding-top: .3rem;
}
.quiz-card__options { display: flex; flex-direction: column; gap: .6rem; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .95rem;
  color: var(--text-mid);
  transition: var(--transition);
  background: var(--white);
}
.quiz-option:hover { border-color: var(--gold); color: var(--text); background: var(--bg-alt); }
.quiz-option input[type="radio"] { accent-color: var(--gold-dark); width: 16px; height: 16px; flex-shrink: 0; }
.quiz-option.selected { border-color: var(--gold); background: linear-gradient(90deg, var(--bg-alt), var(--white)); color: var(--text); font-weight: 500; }
.quiz-live {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: .9rem;
}
.quiz-live__verdict {
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .45rem;
}
.quiz-live__verdict--ok { color: #1b7f3d; }
.quiz-live__verdict--wrong { color: #b02a37; }
.quiz-live__meta {
  font-size: .8rem;
  color: var(--text-light);
  margin-bottom: .6rem;
}

/* Quiz submit area */
.quiz-submit {
  text-align: center;
  margin-top: 3rem;
}
.quiz-submit p {
  font-size: .9rem;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
}

/* Results */
.quiz-results {
  display: none;
  padding: 4rem 0 6rem;
  background: var(--bg-alt);
}
.quiz-results.active { display: block; }
.score-card {
  background: linear-gradient(135deg, var(--brown), #8b5a35);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-lg);
}
.score-card__label {
  font-family: var(--font-sans);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: .75rem;
}
.score-card__number {
  font-family: var(--font-script);
  font-size: 6rem;
  line-height: 1;
  color: var(--white);
}
.score-card__total { font-size: 1.8rem; color: var(--gold-light); margin-left: .25rem; }
.score-card__sub { font-size: 1rem; color: rgba(255,255,255,.75); margin-top: .5rem; }
.score-card__guests { font-family: var(--font-sans); font-size: .8rem; color: var(--gold-light); margin-top: 1rem; letter-spacing: .05em; }

/* Result items */
.result-items { display: grid; gap: 1.5rem; }
.result-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
}
.result-card__q {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.result-card__badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.result-card__badge--correct { background: #d4edda; }
.result-card__badge--wrong   { background: #f8d7da; }
.result-card__text { font-size: 1rem; font-weight: 500; color: var(--text); padding-top: .2rem; }
.result-option { margin-bottom: .6rem; }
.result-option__labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .25rem;
  gap: .5rem;
}
.result-option__name {
  font-size: .9rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: .4rem;
  flex: 1;
}
.result-option__name .tag {
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 700;
  padding: .1em .45em;
  border-radius: 4px;
  letter-spacing: .05em;
}
.tag--correct { background: #d4edda; color: #155724; }
.tag--yours   { background: #cce5ff; color: #004085; }
.tag--wrong   { background: #f8d7da; color: #721c24; }
.result-option__pct {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-mid);
  min-width: 38px;
  text-align: right;
}
.result-bar {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.result-bar__fill {
  height: 100%;
  border-radius: 999px;
  transition: width .6s ease;
}
.result-bar__fill--gold   { background: linear-gradient(90deg, var(--gold-light), var(--gold)); }
.result-bar__fill--green  { background: linear-gradient(90deg, #a8d5b3, #4caf7d); }
.result-bar__fill--blue   { background: linear-gradient(90deg, #a8c8e8, #5b9bd5); }

/* ══════════════════════════════════════════════════════════════
   GALLERY PAGE
   ══════════════════════════════════════════════════════════════ */
.galeria-upload-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
}
.galeria-upload-bar p {
  font-size: .95rem;
  color: var(--text-mid);
  margin-bottom: .75rem;
}
.galeria-upload-actions {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.guest-gallery {
  padding: 4rem 0;
  background: var(--bg);
}
.guest-gallery--videos {
  padding-top: 0;
}
.guest-gallery__header { text-align: center; margin-bottom: 2.5rem; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .875rem;
}
@media (max-width: 900px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;          /* strict uniform format */
  background: var(--bg-alt);
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;            /* crop to fill, never stretch */
  object-position: center;
  transition: transform .4s ease;
  display: block;
}
.photo-card:hover img { transform: scale(1.06); }
/* Shown when image fails to load (missing asset) */
.photo-card__placeholder {
  font-size: 2rem;
  color: var(--text-light);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.photo-card--missing img           { display: none; }
.photo-card--missing .photo-card__placeholder { opacity: 1; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .875rem;
}
@media (max-width: 1100px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #141414;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,.8);
  background: linear-gradient(135deg, #2f2f2f, #101010);
  opacity: 0;
}
.video-card--missing .video-card__placeholder { opacity: 1; }
.video-card__play {
  position: absolute;
  inset: auto auto .6rem .6rem;
  background: rgba(20, 10, 4, .72);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .35rem .6rem;
}
.modal--video-player {
  width: min(960px, 100%);
}
.video-player {
  width: 100%;
  max-height: 72vh;
  border-radius: 10px;
  background: #000;
}
.modal--photo-lightbox {
  width: min(1100px, 100%);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  position: relative;
}
.modal--photo-lightbox .modal__header {
  position: absolute;
  top: .55rem;
  right: .55rem;
  margin: 0;
  z-index: 3;
}
.modal--photo-lightbox .modal__close {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(20, 10, 4, .65);
  color: var(--white);
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.modal--photo-lightbox .modal__close:hover {
  background: rgba(20, 10, 4, .82);
  color: var(--white);
}
.photo-lightbox__image {
  width: 100%;
  max-height: calc(90vh - 24px);
  object-fit: contain;
  border-radius: 12px;
  background: var(--bg-alt);
  box-shadow: var(--shadow);
}
.photo-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-light);
  grid-column: 1 / -1;
}
.photo-empty__icon { font-size: 3rem; margin-bottom: 1rem; }
.photo-empty p { font-size: .95rem; }

.gallery-end-text {
  background: var(--bg-alt);
  text-align: center;
  padding: 3rem 1rem;
  border-top: 1px solid var(--border);
}
.gallery-end-text p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto;
}

/* Historia w zdjęciach */
.historia-photos {
  padding: 5rem 0 6rem;
  background: var(--bg);
}
.historia-photos__header { text-align: center; margin-bottom: 3rem; }
.historia-timeline-photos { max-width: 760px; margin: 0 auto; }
.historia-photo-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
  align-items: start;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.historia-photo-item.visible { opacity: 1; transform: none; }
.historia-photo-item:nth-child(even) { grid-template-columns: 1fr 80px; }
.historia-photo-item:nth-child(even) .historia-photo__img-wrap { order: 2; }
.historia-photo-item:nth-child(even) .historia-photo__content { order: 1; text-align: right; }
.historia-photo__year {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}
.historia-photo__year-num {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold-dark);
  writing-mode: vertical-lr;
  text-orientation: mixed;
  transform: rotate(180deg);
  background: var(--bg-alt);
  padding: .4rem .3rem;
  border-radius: 4px;
}
.historia-photo__line {
  flex: 1;
  width: 1px;
  background: var(--gold-light);
  min-height: 60px;
}
.historia-photo__img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  box-shadow: var(--shadow);
  grid-column: span 1;
}
.historia-photo__img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.historia-photo__content { padding-top: .5rem; }
.historia-photo__caption {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ── Upload Modal ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,10,4,.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: min(520px, 100%);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform .3s ease;
}
.modal-overlay.active .modal { transform: none; }
.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.modal__title {
  font-family: var(--font-script);
  font-size: 1.9rem;
  color: var(--text);
}
.modal__close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
  padding: .2rem;
  transition: color .2s;
}
.modal__close:hover { color: var(--text); }
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg);
}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--gold); background: var(--bg-alt); }
.drop-zone__icon { font-size: 2.5rem; margin-bottom: .75rem; }
.drop-zone__text { font-size: .95rem; color: var(--text-mid); margin-bottom: .4rem; }
.drop-zone__hint { font-size: .8rem; color: var(--text-light); }
.upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: .5rem;
  margin-top: 1rem;
}
.upload-preview__thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt);
}
.upload-preview__thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-actions { margin-top: 1.5rem; display: flex; gap: .75rem; justify-content: flex-end; }
.upload-status { margin-top: 1rem; font-size: .9rem; text-align: center; min-height: 1.4em; }
.upload-status--ok    { color: #28a745; }
.upload-status--error { color: #dc3545; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 800px) {
  .nav {
    background: rgba(253, 249, 244, 0.95);
    backdrop-filter: blur(8px);
    padding: .75rem 0;
    box-shadow: 0 2px 16px rgba(46,27,14,.08);
  }
  .nav__brand { color: var(--text); }
  .historia__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .nav__links { display: none; }
  .nav__back { display: inline-flex; }
  .historia-photo-item { grid-template-columns: 1fr; }
  .historia-photo-item:nth-child(even) { grid-template-columns: 1fr; }
  .historia-photo-item:nth-child(even) .historia-photo__img-wrap { order: unset; }
  .historia-photo-item:nth-child(even) .historia-photo__content  { order: unset; text-align: left; }
  .historia-photo__year { display: none; }
  .seating-teaser__wrap { grid-template-columns: 1fr; }
  .seating-teaser__mini { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .quiz-teaser__grid { grid-template-columns: 1fr; }
  .score-card__number { font-size: 4rem; }
}
