/* ═══════════════════════════════════════════════════════════
   L&L Wedding — Style Sheet
   ═══════════════════════════════════════════════════════════ */

:root {
  --white:        #ffffff;
  --blush-light:  #fdf0f0;
  --blush-mid:    #f0c8d0;
  --rose:         #c27a8e;
  --rose-dark:    #9e5a72;
  --rose-deep:    #7a3a52;
  --sage:         #8a9e7a;
  --text-dark:    #2e1a1a;
  --text-mid:     #6b4c57;
  --text-light:   #a07a8a;
  --shadow:       rgba(155, 80, 100, 0.12);
  --shadow-strong:rgba(155, 80, 100, 0.25);
  --transition:   0.3s ease;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--rose-deep);
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  /* Sticky footer */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Prevent scroll past footer on mobile */
  overscroll-behavior-y: none;
}

#main-content {
  flex: 1;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
}

a { color: var(--rose); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--rose-dark); }

img { max-width: 100%; display: block; }

/* ── Section Wrapper ─────────────────────────────────────── */
.section-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 90px 0;
}

section:nth-child(even) {
  background: var(--blush-light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--rose-deep);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  font-style: italic;
}

.divider {
  width: 60px;
  height: 2px;
  background: var(--blush-mid);
  margin: 16px auto;
  border-radius: 2px;
}

/* ── Navbar ──────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--blush-mid);
  transition: box-shadow var(--transition);
}

#navbar.scrolled {
  box-shadow: 0 2px 20px var(--shadow);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--rose-dark);
  font-style: italic;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: 6px 10px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}

.nav-links a.active {
  color: var(--rose-dark);
  background: var(--blush-light);
}

.nav-links a:hover {
  color: var(--rose-dark);
  background: var(--blush-light);
}

.lang-switcher {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.lang-switcher button {
  background: none;
  border: 1px solid var(--blush-mid);
  color: var(--text-mid);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Lato', sans-serif;
  line-height: 1.4;
}

.lang-switcher button:hover,
.lang-switcher button.active {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--white);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rose-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--blush-light);
  padding: 100px 24px 60px;
}

.hero-flowers {
  position: absolute;
  top: 0;
  right: 0;
  width: min(55%, 480px);
  opacity: 0.75;
  pointer-events: none;
  user-select: none;
}

.hero-flowers-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: min(40%, 360px);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
  transform: rotate(180deg) scaleX(-1);
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-ll {
  font-family: 'Playfair Display', serif;
  font-size: clamp(5rem, 18vw, 11rem);
  color: var(--rose-deep);
  line-height: 1;
  letter-spacing: -0.02em;
  font-style: italic;
  margin-bottom: 8px;
}

.hero-ampersand {
  color: var(--blush-mid);
}

.hero-names {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--text-mid);
  font-weight: 400;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}

.hero-surnames {
  display: flex;
  justify-content: center;
  gap: 60px;
  font-size: clamp(0.8rem, 2vw, 1rem);
  color: var(--text-light);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-date-badge {
  display: inline-block;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  color: var(--rose-dark);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 48px;
  padding: 8px 24px;
  border: 1px solid var(--blush-mid);
  border-radius: 40px;
}

/* Countdown */
.countdown-label {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 20px;
}

.countdown-grid {
  display: flex;
  gap: clamp(12px, 3vw, 32px);
  justify-content: center;
  flex-wrap: wrap;
}

.countdown-unit {
  text-align: center;
  min-width: 70px;
}

.countdown-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: var(--rose-dark);
  line-height: 1;
  display: block;
}

.countdown-text {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 6px;
}

/* ── Our Story ───────────────────────────────────────────── */
#story { background: var(--white); }

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--blush-mid) 10%, var(--blush-mid) 90%, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  gap: 32px;
  margin-bottom: 56px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
  text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content {
  order: 1;
}

.timeline-item:nth-child(odd) .timeline-dot-col {
  order: 2;
}

.timeline-item:nth-child(even) {
  flex-direction: row;
  text-align: left;
}

.timeline-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 40px;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--rose);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--blush-mid);
  z-index: 1;
  flex-shrink: 0;
  margin-top: 4px;
}

.timeline-content {
  flex: 1;
  background: var(--blush-light);
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid var(--blush-mid);
  transition: box-shadow var(--transition);
}

.timeline-content:hover {
  box-shadow: 0 4px 20px var(--shadow);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 6px;
}

.timeline-content h3 {
  font-size: 1.15rem;
  color: var(--rose-deep);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--text-mid);
}

/* ── Program ─────────────────────────────────────────────── */
#program { background: var(--blush-light); }

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.program-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--blush-mid);
  transition: transform var(--transition), box-shadow var(--transition);
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow);
}

.program-time {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--rose);
  margin-bottom: 8px;
}

.program-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.program-card h3 {
  font-size: 1.1rem;
  color: var(--rose-deep);
  margin-bottom: 8px;
}

.program-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ── Menu ────────────────────────────────────────────────── */
#menu { background: var(--white); }

.menu-container {
  max-width: 800px;
  margin: 0 auto;
}

.menu-section {
  margin-bottom: 40px;
}

.menu-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-section-label::before,
.menu-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--blush-mid);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--blush-mid);
  color: var(--text-mid);
  font-size: 1rem;
}

.menu-item::before {
  content: '✦';
  color: var(--blush-mid);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.menu-note {
  text-align: center;
  font-style: italic;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 32px;
  padding: 16px;
  background: var(--blush-light);
  border-radius: 8px;
}

/* ── Seating ─────────────────────────────────────────────── */
#seating { background: var(--blush-light); }

.seating-container {
  text-align: center;
}

#seating-svg-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 80px;
}

#seating-svg-container svg {
  max-width: 100%;
  height: auto;
}

.seating-note {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 24px;
  font-style: italic;
}

/* ── Transport ───────────────────────────────────────────── */
#transport { background: var(--white); }

.transport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.transport-card {
  background: var(--blush-light);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--blush-mid);
  position: relative;
  overflow: hidden;
}

.transport-card::before {
  content: '🚌';
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2rem;
  opacity: 0.3;
}

.transport-card h3 {
  font-size: 1.15rem;
  color: var(--rose-deep);
  margin-bottom: 20px;
}

.transport-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.transport-row label {
  font-weight: 700;
  color: var(--rose);
  min-width: 48px;
  flex-shrink: 0;
}

.transport-row span {
  color: var(--text-mid);
}

.transport-time-badge {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--rose-dark);
  margin: 8px 0;
}

/* ── Accommodation ───────────────────────────────────────── */
#accommodation { background: var(--blush-light); }

.accommodation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.accommodation-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--blush-mid);
  transition: transform var(--transition), box-shadow var(--transition);
}

.accommodation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow);
}

.accommodation-card h3 {
  font-size: 1.2rem;
  color: var(--rose-deep);
  margin-bottom: 10px;
}

.accommodation-address {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.accommodation-address::before {
  content: '📍';
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.accommodation-note {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ── Invitation ──────────────────────────────────────────── */
#invitation { background: var(--white); }

.invitation-container {
  text-align: center;
}

.invitation-image-wrap {
  display: inline-block;
  margin-top: 8px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 60px var(--shadow-strong);
  max-width: 420px;
  width: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}

.invitation-image-wrap:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 80px var(--shadow-strong);
}

.invitation-image-wrap img {
  width: 100%;
  display: block;
}

/* ── Gallery ─────────────────────────────────────────────── */
#gallery { background: var(--blush-light); }

.gallery-upload-box {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  border: 2px dashed var(--blush-mid);
  margin-bottom: 48px;
  transition: border-color var(--transition);
}

.gallery-upload-box:hover {
  border-color: var(--rose);
}

.gallery-upload-box h3 {
  font-size: 1.2rem;
  color: var(--rose-deep);
  margin-bottom: 20px;
}

.gallery-name-input {
  width: 100%;
  max-width: 360px;
  padding: 10px 16px;
  border: 1px solid var(--blush-mid);
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--blush-light);
  margin-bottom: 20px;
  outline: none;
  transition: border-color var(--transition);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.gallery-name-input:focus {
  border-color: var(--rose);
}

.upload-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 40px;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--rose);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--rose-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--shadow-strong);
}

.btn-outline {
  background: transparent;
  color: var(--rose);
  border: 1.5px solid var(--rose);
}

.btn-outline:hover {
  background: var(--rose);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  border: 1.5px solid var(--blush-mid);
}

.btn-ghost:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.upload-progress-wrap {
  margin-top: 16px;
  display: none;
}

.upload-progress-wrap progress {
  width: 100%;
  max-width: 360px;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
}

progress::-webkit-progress-bar { background: var(--blush-mid); border-radius: 3px; }
progress::-webkit-progress-value { background: var(--rose); border-radius: 3px; }
progress::-moz-progress-bar { background: var(--rose); border-radius: 3px; }

.upload-status {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 8px;
}

.upload-status.success { color: #5a9e5a; }
.upload-status.error { color: #c27070; }

/* Gallery Controls */
.gallery-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
  justify-content: space-between;
}

.gallery-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-filter label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.gallery-filter select,
.gallery-filter input[type="date"] {
  padding: 8px 12px;
  border: 1px solid var(--blush-mid);
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  cursor: pointer;
}

.gallery-filter select:focus,
.gallery-filter input[type="date"]:focus {
  border-color: var(--rose);
}

.gallery-view-btns {
  display: flex;
  gap: 8px;
}

/* Photo Grid */
#photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
#photo-grid.view-single {
  grid-template-columns: 1fr;
}
#photo-grid.view-2col {
  grid-template-columns: repeat(2, 1fr);
}

.photo-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  background: var(--blush-mid);
  transition: transform var(--transition), box-shadow var(--transition);
}

.photo-item:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 24px var(--shadow-strong);
  z-index: 2;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.photo-item:hover img {
  transform: scale(1.05);
}

.photo-like-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(255,255,255,0.82);
  border: none;
  border-radius: 14px;
  padding: 2px 7px;
  font-size: 0.72rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: background 0.2s, transform 0.15s;
  color: var(--text-mid);
  line-height: 1.4;
}
.photo-like-btn:hover { background: var(--blush-light); transform: scale(1.05); }
.photo-like-btn.liked { color: #e05070; background: #fde8ee; }

.like-tooltip {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 8, 12, 0.88);
  color: #fff;
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 8px;
  max-width: 200px;
  max-height: 120px;
  overflow-y: auto;
  white-space: normal;
  word-break: break-word;
  pointer-events: none;
  z-index: 10;
  backdrop-filter: blur(4px);
  line-height: 1.6;
}

.photo-private-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(255,255,255,0.85);
  border-radius: 10px;
  padding: 1px 5px;
  font-size: 0.75rem;
  line-height: 1.5;
}

.photo-uploader {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 6px 4px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  font-size: 0.7rem;
  opacity: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-item {
  position: relative;
}

.video-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  pointer-events: none;
  z-index: 2;
}

.gallery-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  font-style: italic;
  font-size: 1.05rem;
  grid-column: 1 / -1;
}

.gallery-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
  grid-column: 1 / -1;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 8, 12, 0.94);
  z-index: 2000;
  overflow: hidden;
}

#lightbox.active {
  display: block;
}

/* Strip: 3 panels side-by-side, each 100vw. JS sets transform in px. */
#lb-strip {
  position: absolute;
  inset: 0;
  width: 300%;
  display: flex;
  will-change: transform;
}

.lb-panel {
  flex: 0 0 33.333%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 12px 72px;
  overflow: hidden;
}

.lb-panel img,
.lb-panel video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
  z-index: 10;
  transition: color var(--transition);
}
.lightbox-close:hover { color: #fff; }

.lightbox-info {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
  z-index: 10;
  user-select: none;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.18);
  pointer-events: none;
  border-radius: 10px;
}

.video-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(194, 122, 142, 0.92);
  border: 2.5px solid rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 16px rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
}

/* CSS triangle — avoids iOS rendering ▶ as emoji */
.video-play-btn::before {
  content: '';
  width: 0; height: 0;
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent rgba(255,255,255,0.95);
  margin-left: 4px;
}

.video-type-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0,0,0,0.58);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
}

/* ── Lightbox: hide controls on touch devices ────────────── */
@media (hover: none) and (pointer: coarse) {
  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    display: none !important;
  }
}

/* ── Floating heart animation ────────────────────────────── */
.floating-heart {
  position: fixed;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  pointer-events: none;
  z-index: 9999;
  animation: heart-float 1s ease-out forwards;
}
@keyframes heart-float {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
  25%  { opacity: 1; transform: translate(-50%, -50%) scale(1.35); }
  100% { opacity: 0; transform: translate(-50%, -320%) scale(0.9); }
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--rose-deep);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 28px 24px;
}

.footer-ll {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--white);
  font-style: italic;
  margin-bottom: 8px;
}

.footer-date {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush-mid);
  margin-bottom: 12px;
}

.footer-time {
  font-size: 1rem;
  color: var(--rose);
  letter-spacing: 0.15em;
  margin-top: 4px;
}

.footer-venues {
  font-size: 0.85rem;
  line-height: 2;
  color: rgba(255,255,255,0.65);
}

.footer-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  margin: 10px auto;
}

/* ── Toast Notification ──────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--rose-dark);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 40px;
  font-size: 0.9rem;
  z-index: 3000;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: 0 4px 24px var(--shadow-strong);
}

#toast.show {
  transform: translateX(-50%) translateY(0);
}

#toast.success { background: #5a9e5a; }
#toast.error   { background: #b05050; }

/* ── Celebration confetti ────────────────────────────────── */
@keyframes confetti-fall {
  0%   { transform: translateY(-40px) rotate(0deg);   opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
@keyframes confetti-sway {
  0%, 100% { margin-left: 0;    }
  50%       { margin-left: 28px; }
}
#confetti-wrap {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}
#confetti-wrap .cp {
  position: absolute;
  top: -40px;
  will-change: transform, opacity;
  animation: confetti-fall linear infinite, confetti-sway ease-in-out infinite;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--blush-mid);
    box-shadow: 0 8px 24px var(--shadow);
    z-index: 999;
    gap: 0;
  }
  .nav-links.open a {
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--blush-light);
  }
  .nav-hamburger { display: flex; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }

  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: row !important;
    text-align: left !important;
  }
  .timeline-item:nth-child(odd) .timeline-content { order: 2; }
  .timeline-item:nth-child(odd) .timeline-dot-col { order: 1; }
  .timeline-dot-col { width: 40px; }

  .gallery-controls { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-ll { font-size: 5rem; }
  .countdown-grid { gap: 12px; }
  .countdown-number { font-size: 2.5rem; }
  .countdown-unit { min-width: 55px; }

  .program-grid { grid-template-columns: 1fr; }
  .transport-grid { grid-template-columns: 1fr; }
  .accommodation-grid { grid-template-columns: 1fr; }
}

/* ── Scroll animations ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   Multi-page additions
   ═══════════════════════════════════════════════════════════ */

/* Push content below navbar */
#main-content { padding-top: 64px; }

/* ── Admin nav button ────────────────────────────────────── */
.btn-nav-admin {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--rose-deep);
  background: var(--blush-light);
  border: 1.5px solid var(--blush-mid);
  padding: 4px 10px;
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-nav-admin:hover { background: var(--rose-deep); color: #fff; border-color: var(--rose-deep); }

@media (max-width: 700px) {
  .btn-nav-admin { display: none; }
}

/* ── Nav: right section (user + lang) ───────────────────── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-username {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rose-dark);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-nav-logout {
  background: none;
  border: 1px solid var(--blush-mid);
  color: var(--text-mid);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  transition: all var(--transition);
}
.btn-nav-logout:hover { border-color: var(--rose); color: var(--rose); }

.btn-nav-login {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rose-dark);
  padding: 6px 14px;
  border: 1.5px solid var(--rose);
  border-radius: 20px;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-nav-login:hover { background: var(--rose); color: #fff; }

/* ── Hero (home page) ────────────────────────────────────── */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  overflow: hidden;
}

/* CSS rhododendron-inspired hero background */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 80% 20%, #f5d0d8 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 80%, #f0c8d0 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 60% 70%, #fde8ec 0%, transparent 50%),
    linear-gradient(160deg, #fdf8f8 0%, #fdeef2 40%, #f8e0e8 70%, #fdf0f2 100%);
}

/* Petal shapes using pseudo and box decorations */
.hero-bg::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 520px; height: 520px;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: radial-gradient(ellipse at 40% 40%, rgba(224,152,174,0.35) 0%, rgba(240,200,208,0.15) 60%, transparent 80%);
  transform: rotate(-20deg);
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 460px; height: 460px;
  border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%;
  background: radial-gradient(ellipse at 60% 60%, rgba(194,122,142,0.25) 0%, rgba(240,200,208,0.1) 65%, transparent 80%);
  transform: rotate(30deg);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.35);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
}

.hero-cta { margin-top: 40px; }

/* ── Page hero (sub-pages) ───────────────────────────────── */
.page-hero {
  padding: 36px 24px 24px;
  text-align: center;
}
.page-hero--blush { background: var(--blush-light); }
.page-hero--white { background: var(--white); }
.page-hero--story { background: linear-gradient(135deg, var(--blush-light) 0%, #fde8f0 100%); }

.page-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--rose-deep);
  font-style: italic;
  margin-bottom: 4px;
}

.page-hero-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  font-style: italic;
}

/* ── Page section wrapper ────────────────────────────────── */
.page-section { padding: 60px 0 80px; }

/* ── Auth pages ──────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, var(--blush-light) 0%, #fde0e8 100%);
}

.auth-card {
  background: var(--white);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 12px 48px rgba(155,80,100,0.15);
  text-align: center;
}

.auth-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--rose-dark);
  font-style: italic;
  margin-bottom: 8px;
}

.auth-title {
  font-size: 1.3rem;
  color: var(--rose-deep);
  margin-bottom: 6px;
}

.auth-hint {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 24px;
  font-style: italic;
}

.auth-error {
  background: #fde8e8;
  color: #b05050;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  text-align: left;
}

.auth-card .form-group {
  text-align: left;
  margin-bottom: 16px;
}

.auth-card label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auth-card .form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--blush-mid);
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--blush-light);
  outline: none;
  transition: border-color var(--transition);
}
.auth-card .form-control:focus { border-color: var(--rose); background: var(--white); }

.btn-full { width: 100%; justify-content: center; margin-top: 8px; }

.auth-switch {
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--text-light);
}
.auth-switch a { color: var(--rose-dark); font-weight: 700; }

/* ── Gallery: login prompt ───────────────────────────────── */
.gallery-login-prompt {
  text-align: center;
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  border: 2px dashed var(--blush-mid);
  margin-bottom: 40px;
}
.gallery-login-prompt p {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .nav-right { gap: 8px; }
}

@media (max-width: 480px) {
  .auth-card { padding: 32px 24px; }
}
