/* ==========================================================================
   IN MEMORIAM: PDT. DR. ANDOKO E. SETIJO, M.BA., PH.D.
   Dignified, Solemn, Fully Responsive Condolence Website
   Dark & Light Theme Architecture
   ========================================================================== */

/* --- ROOT DESIGN TOKENS --- */
:root {
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-script: 'Great Vibes', cursive;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* --- DARK THEME (DEFAULT SOLEMN PEACE) --- */
[data-theme="dark"] {
  --bg-primary: #0C0E12;
  --bg-surface: #14171E;
  --bg-surface-alt: #1C2029;
  --bg-surface-elevated: #242934;
  --bg-overlay: rgba(12, 14, 18, 0.88);
  --text-primary: #F3F4F6;
  --text-secondary: #B1B7C3;
  --text-muted: #727B8C;
  --accent-gold: #D4AF37;
  --accent-gold-light: #F7E49A;
  --accent-gold-dark: #A5801E;
  --accent-gold-alpha: rgba(212, 175, 55, 0.12);
  --border-color: rgba(212, 175, 55, 0.22);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.65);
  --shadow-hover: 0 18px 45px rgba(212, 175, 55, 0.16);
  --flame-color-1: #FFF8D6;
  --flame-color-2: #FFB300;
  --flame-color-3: #FF6F00;
  --nav-backdrop: rgba(14, 16, 21, 0.85);
  --card-gradient: linear-gradient(145deg, rgba(28, 32, 41, 0.7), rgba(20, 23, 30, 0.9));
}

/* --- LIGHT THEME (SERENE SACRED PARCHMENT) --- */
[data-theme="light"] {
  --bg-primary: #F7F5EE;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #EFECE1;
  --bg-surface-elevated: #FFFFFF;
  --bg-overlay: rgba(247, 245, 238, 0.9);
  --text-primary: #1C1F26;
  --text-secondary: #48505E;
  --text-muted: #7A8494;
  --accent-gold: #9B783E;
  --accent-gold-light: #C9A55C;
  --accent-gold-dark: #745624;
  --accent-gold-alpha: rgba(155, 120, 62, 0.1);
  --border-color: rgba(155, 120, 62, 0.25);
  --border-subtle: rgba(0, 0, 0, 0.07);
  --shadow-card: 0 12px 35px rgba(60, 48, 25, 0.07);
  --shadow-hover: 0 18px 45px rgba(155, 120, 62, 0.14);
  --flame-color-1: #FFF3C4;
  --flame-color-2: #FFA000;
  --flame-color-3: #E65100;
  --nav-backdrop: rgba(247, 245, 238, 0.88);
  --card-gradient: linear-gradient(145deg, #FFFFFF, #F9F7F1);
}

/* --- RESET & GLOBAL STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  position: relative;
}

/* --- BACKGROUND GLOW & DECORATION --- */
.bg-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  transition: background-color var(--transition-normal);
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gold);
}

.bg-glow-2 {
  width: 450px;
  height: 450px;
  top: 60%;
  right: -100px;
  background: var(--accent-gold-dark);
  opacity: 0.15;
}

.bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border-subtle) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.45;
}

/* --- TYPOGRAPHY UTILITIES --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  letter-spacing: 0.03em;
  font-weight: 700;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.text-center {
  text-align: center;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: #0E1014;
  box-shadow: 0 4px 18px var(--accent-gold-alpha);
  border: 1px solid var(--accent-gold-light);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35);
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-surface-alt);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--accent-gold-alpha);
  border: 1px solid var(--border-color);
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-pill:hover {
  background: var(--accent-gold);
  color: #0E1014;
}

/* --- NAVBAR --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-backdrop);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
}

.brand-cross {
  font-size: 1.3rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.action-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.icon {
  width: 18px;
  height: 18px;
}

/* Theme Toggle Icons */
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Sound wave animation */
.sound-wave {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  margin-left: 2px;
}

.sound-wave span {
  width: 2.5px;
  background: var(--accent-gold);
  border-radius: 1px;
  animation: wavePulse 1s ease-in-out infinite;
}

.sound-wave span:nth-child(2) { animation-delay: 0.2s; }
.sound-wave span:nth-child(3) { animation-delay: 0.4s; }

.action-btn.playing .icon-music { display: none; }
.action-btn.playing .sound-wave { display: flex; }

@keyframes wavePulse {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.hamburger-line {
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

/* --- HERO SECTION --- */
.hero-section {
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
}

.sacred-emblem {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.cross-rays {
  position: absolute;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, var(--accent-gold-alpha) 0%, transparent 70%);
  animation: auraPulse 4s ease-in-out infinite alternate;
}

.cross-icon {
  font-size: 2.4rem;
  color: var(--accent-gold);
  text-shadow: 0 0 15px var(--accent-gold);
  position: relative;
  z-index: 1;
}

@keyframes auraPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 1; }
}

.script-subtitle {
  font-family: var(--font-script);
  font-size: 3.2rem;
  color: var(--accent-gold);
  line-height: 1.1;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px var(--accent-gold-alpha);
}

.memorial-subheading {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* Portrait Oval Frame */
.portrait-wrapper {
  position: relative;
  display: inline-block;
  margin: 0 auto 28px;
}

.portrait-glow {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-gold-alpha) 0%, transparent 75%);
  filter: blur(10px);
}

.portrait-frame {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  padding: 7px;
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold), var(--accent-gold-dark));
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform var(--transition-normal);
}

.portrait-frame:hover {
  transform: scale(1.02);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--bg-surface);
  display: block;
}

.floral-decor {
  position: absolute;
  font-size: 1.4rem;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.floral-decor.top-left { top: -2px; left: -2px; transform: rotate(-25deg); }
.floral-decor.top-right { top: -2px; right: -2px; transform: rotate(25deg); }
.floral-decor.bottom-left { bottom: -2px; left: -2px; transform: rotate(-15deg); }
.floral-decor.bottom-right { bottom: -2px; right: -2px; transform: rotate(15deg); }

.portrait-overlay-action {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
}

.view-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
}

.portrait-frame:hover .view-card-badge {
  background: var(--accent-gold);
  color: #0E1014;
}

/* Deceased Titles */
.memorial-titles {
  margin-bottom: 24px;
}

.deceased-name {
  font-size: clamp(1.4rem, 4vw, 2.3rem);
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  line-height: 1.25;
}

.life-span-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
  padding: 6px 18px;
  background: var(--accent-gold-alpha);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  margin-bottom: 8px;
}

.deceased-age {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Scripture Card */
.scripture-card {
  max-width: 680px;
  margin: 0 auto 36px;
  padding: 24px 28px;
  background: var(--card-gradient);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  position: relative;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  line-height: 0.8;
  color: var(--accent-gold);
  opacity: 0.4;
  margin-bottom: 8px;
}

.scripture-text {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 10px;
}

.scripture-ref {
  display: block;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hero Details Grid */
.hero-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 720px;
  margin: 0 auto 36px;
}

.detail-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  text-align: left;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.detail-box:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold);
}

.detail-icon-wrap {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.detail-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.detail-val {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 2px 0;
}

.detail-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--accent-gold);
}

/* Hero CTA */
.hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* --- COUNTDOWN SECTION --- */
.countdown-section {
  padding: 20px 0 40px;
}

.countdown-box {
  background: var(--card-gradient);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-card);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.countdown-tag {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 4px;
}

.countdown-title {
  font-size: 1.35rem;
  margin-bottom: 2px;
}

.countdown-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.time-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  min-width: 72px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.time-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1.1;
}

.time-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-top: 4px;
}

.time-colon {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  opacity: 0.6;
}

.btn-calendar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-calendar:hover {
  background: var(--accent-gold);
  color: #0E1014;
}

/* --- SECTION COMMON --- */
.section {
  padding: 70px 0;
}

.bg-surface {
  background-color: var(--bg-surface);
}

.section-title-wrap {
  max-width: 650px;
  margin: 0 auto 46px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 6px;
}

.section-heading {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 8px;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 12px 0 16px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.section-divider span {
  font-size: 1.1rem;
  color: var(--accent-gold);
}

.section-subtext {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- JADWAL IBADAH / TIMELINE --- */
.schedule-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.schedule-card {
  background: var(--card-gradient);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.schedule-card.highlight-card {
  border-color: var(--border-color);
}

.schedule-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-hover);
}

.schedule-badge {
  display: inline-flex;
  flex-direction: column;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.schedule-badge.gold {
  background: var(--accent-gold-alpha);
  border-color: var(--border-color);
}

.schedule-badge .day-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
}

.schedule-badge .date-str {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.schedule-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.schedule-title {
  font-size: 1.15rem;
  line-height: 1.35;
}

.schedule-status.active {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.schedule-time-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: var(--accent-gold-alpha);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.schedule-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.schedule-meta {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
}

.meta-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-secondary);
}

.schedule-card-actions {
  margin-top: 14px;
}

/* --- LOKASI SECTION --- */
.location-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.location-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card-gradient);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.location-info {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.loc-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: var(--accent-gold-alpha);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.loc-name {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.loc-address {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.loc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.visitor-guide {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

.guide-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.guide-list {
  list-style: none;
  font-size: 0.84rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-list li strong {
  color: var(--accent-gold);
}

.map-card-container {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface-alt);
  min-height: 350px;
  border-left: 1px solid var(--border-subtle);
}

.map-interactive-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--bg-surface-elevated);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.map-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.map-canvas-mockup {
  flex-grow: 1;
  width: 100%;
  height: 100%;
}

/* --- JEJAK PELAYANAN / LEGACY --- */
.legacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.legacy-card {
  background: var(--card-gradient);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.legacy-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-hover);
}

.legacy-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.legacy-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.legacy-desc {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Official Card Banner */
.official-card-banner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  background: var(--card-gradient);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  gap: 30px;
  box-shadow: var(--shadow-card);
}

.banner-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  background: var(--accent-gold-alpha);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.banner-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.banner-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 22px;
}

.banner-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.banner-preview {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  border: 2px solid var(--border-color);
  max-width: 280px;
  margin: 0 auto;
  transition: transform var(--transition-normal);
}

.banner-preview:hover {
  transform: scale(1.03);
}

.banner-thumb {
  width: 100%;
  display: block;
}

.thumb-zoom-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* --- BUKU UCAPAN & DOA (GUESTBOOK) --- */
.guestbook-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
}

.guestbook-form-card,
.guestbook-wall-card {
  background: var(--card-gradient);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}

.form-header, .wall-header {
  margin-bottom: 22px;
}

.form-title, .wall-title {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.form-subtitle {
  font-size: 0.85rem;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.required {
  color: #EF4444;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-gold-alpha);
}

.form-control-sm {
  padding: 8px 12px;
  font-size: 0.82rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

/* Form row helper */
.form-row {
  display: flex;
  gap: 14px;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

@media (max-width: 640px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Messages Wall */
.wall-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wall-title-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wall-count-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: var(--accent-gold-alpha);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip:hover, .chip.active {
  background: var(--accent-gold);
  color: #0E1014;
  border-color: var(--accent-gold);
}

.search-wrap {
  margin-bottom: 16px;
}

.messages-stream {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
}

/* Custom Scrollbar for Stream */
.messages-stream::-webkit-scrollbar {
  width: 5px;
}

.messages-stream::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.message-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: border-color var(--transition-fast);
}

.message-card:hover {
  border-color: var(--border-color);
}

.message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.message-author-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.message-symbol {
  font-size: 1.1rem;
}

.message-author {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.message-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-alt);
  color: var(--accent-gold);
  font-weight: 600;
}

.message-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.message-content {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-line;
}

/* Empty message state */
.empty-stream {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

/* --- TANDA KASIH & KARANGAN BUNGA --- */
.tribute-support-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card-gradient);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.tribute-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.tribute-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.tribute-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto 18px;
}

.tribute-box-info {
  background: var(--bg-surface);
  border: 1px dashed var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  display: inline-block;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.tribute-appreciation {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* --- FOOTER --- */
.memorial-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0 30px;
  text-align: center;
}

.footer-cross {
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: 14px;
}

.footer-blessing {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-style: italic;
  max-width: 680px;
  margin: 0 auto 8px;
  color: var(--text-primary);
  line-height: 1.7;
}

.footer-ref {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.family-tribute {
  margin-bottom: 30px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.family-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.family-names {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 4px 0;
}

.family-sub {
  font-size: 0.85rem;
  color: var(--accent-gold);
}

.footer-share-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.share-prompt {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.share-links {
  display: flex;
  gap: 10px;
}

.share-pill {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-alt);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.share-pill.whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}

.share-pill.copy:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #0E1014;
}

.footer-bottom {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- MODALS --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-dialog.modal-sm {
  max-width: 440px;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 1.15rem;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.modal-full-img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
}

/* Share modal button styles */
.share-buttons-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.share-btn-large {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-alt);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.share-btn-large:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.share-btn-icon {
  font-size: 1.6rem;
}

.share-btn-text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.share-btn-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1), toastOut 0.3s ease 2.7s forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-12px); }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 991px) {
  .guestbook-layout {
    grid-template-columns: 1fr;
  }
  
  .location-card {
    grid-template-columns: 1fr;
  }
  
  .map-card-container {
    min-height: 280px;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }

  .official-card-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .banner-btns {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--nav-backdrop);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
  }

  .nav-links.open {
    transform: translateY(0);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  }

  .portrait-frame {
    width: 210px;
    height: 210px;
  }

  .script-subtitle {
    font-size: 2.6rem;
  }

  .hero-cta-buttons .btn {
    width: 100%;
  }

  .time-block {
    min-width: 60px;
    padding: 10px 12px;
  }

  .time-num {
    font-size: 1.4rem;
  }

  .schedule-timeline {
    grid-template-columns: 1fr;
  }

  .location-info {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   REMEMBERING PAK ANDOKO (MEMORIES & STORIES)
   ========================================================================== */
.remembering-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.remembering-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 16px 20px;
  background: var(--card-gradient);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.remembering-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stats-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: var(--accent-gold-alpha);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.stats-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-share-memory {
  font-size: 0.92rem;
}

/* Memories Grid */
.memories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}

.memory-card {
  background: var(--card-gradient);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

.memory-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-hover);
}

.memory-photo-box {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--bg-surface-alt);
}

.memory-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.memory-card:hover .memory-photo {
  transform: scale(1.05);
}

.memory-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(14, 16, 20, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: var(--accent-gold);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.memory-content {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.memory-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.memory-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.memory-author {
  font-weight: 700;
  color: var(--text-primary);
}

.memory-relation-tag {
  color: var(--accent-gold);
  background: var(--accent-gold-alpha);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
}

.memory-card-story {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.memory-card-action {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.memory-card-action .action-arrow {
  transition: transform var(--transition-fast);
}

.memory-card:hover .memory-card-action .action-arrow {
  transform: translateX(4px);
}

/* Photo Dropzone for Upload */
.photo-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-surface-alt);
  transition: all var(--transition-fast);
  position: relative;
}

.photo-dropzone:hover, .photo-dropzone.dragover {
  border-color: var(--accent-gold);
  background: var(--accent-gold-alpha);
}

.dropzone-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dropzone-icon {
  font-size: 2.2rem;
  margin-bottom: 2px;
}

.dropzone-text {
  font-size: 0.92rem;
  color: var(--text-primary);
  font-weight: 600;
}

.dropzone-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dropzone-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.preview-thumbnail {
  max-height: 190px;
  width: auto;
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  object-fit: contain;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.preview-actions {
  display: flex;
  gap: 8px;
}

.btn-preview-action {
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-preview-action:hover {
  background: var(--accent-gold);
  color: #0E1014;
}

.btn-preview-action.btn-remove {
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-preview-action.btn-remove:hover {
  background: #EF4444;
  color: #fff;
}

/* Modal View Memory */
.view-memory-photo-wrap {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}

.view-memory-full-img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
}

.view-memory-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.view-memory-author {
  font-weight: 700;
  color: var(--text-primary);
}

.view-memory-relation {
  color: var(--accent-gold);
}

.view-memory-story {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-line;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 6px;
}

@media (max-width: 640px) {
  .memories-grid {
    grid-template-columns: 1fr;
  }

  .remembering-action-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .stats-badge {
    align-self: center;
  }
}

/* ==========================================================================
   HIS LAST MOMENT (DOCUMENTATION AT GRAND HEAVEN)
   ========================================================================== */
.nav-link.nav-highlight {
  color: var(--accent-gold);
  font-weight: 700;
  padding: 4px 12px;
  background: var(--accent-gold-alpha);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
}

.nav-link.nav-highlight:hover {
  background: var(--accent-gold);
  color: #0E1014;
}

.btn-hero-last-moment {
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
  font-weight: 700;
}

.his-last-moment-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Video behind the memorial hero */
.hero-section {
  isolation: isolate;
}

.hero-video-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12, 14, 18, 0.65), rgba(12, 14, 18, 0.88));
}

[data-theme="light"] .hero-video-background::after {
  background: linear-gradient(to bottom, rgba(247, 245, 238, 0.78), rgba(247, 245, 238, 0.94));
}

button.portrait-overlay-action {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}

button.portrait-overlay-action:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 5px;
  border-radius: var(--radius-full);
}

.video-dialog {
  margin: auto;
  padding: 0;
  width: min(960px, calc(100% - 32px));
  max-height: 90vh;
  max-height: 90svh;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #000;
  overflow: auto;
}

.video-dialog::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.video-dialog video {
  display: block;
  width: 100%;
  max-height: 80vh;
  max-height: 80svh;
}

.video-dialog-close {
  display: block;
  margin-left: auto;
  padding: 4px 16px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* Gallery Controls & Google Drive Bar */
.gallery-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--card-gradient);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.gallery-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-bar-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.gallery-count-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: var(--accent-gold-alpha);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.btn-gdrive {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-gdrive:hover {
  border-color: #4285F4;
  background: var(--bg-surface-elevated);
  box-shadow: 0 4px 16px rgba(66, 133, 244, 0.2);
  transform: translateY(-2px);
}

.icon-gdrive {
  flex-shrink: 0;
}

/* Documentation Gallery Grid */
.doc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.doc-gallery-item {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.doc-gallery-item:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-hover);
}

.doc-gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.doc-gallery-item:hover .doc-gallery-thumb {
  transform: scale(1.06);
}

.doc-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px 14px;
}

.doc-gallery-item:hover .doc-gallery-overlay {
  opacity: 1;
}

.doc-zoom-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #0E1014;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.doc-item-num {
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.gallery-load-more {
  text-align: center;
  margin-bottom: 36px;
}

/* Google Drive Container Card */
.gdrive-container-card {
  background: var(--card-gradient);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
}

.gdrive-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.gdrive-icon-wrap {
  flex-shrink: 0;
}

.gdrive-text {
  flex: 1;
  min-width: 250px;
}

.gdrive-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.gdrive-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Lightbox Modal for His Last Moment */
.modal.modal-lightbox {
  background: rgba(6, 8, 12, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0;
}

.lightbox-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 20px;
}

.lightbox-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 20;
}

.lightbox-counter {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.lightbox-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox-action-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-action-btn:hover {
  background: var(--accent-gold);
  color: #0E1014;
}

.lightbox-content {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 16px;
  overflow: hidden;
  padding: 10px 0;
}

.lightbox-nav-btn {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.lightbox-nav-btn:hover {
  background: var(--accent-gold);
  color: #0E1014;
  transform: scale(1.08);
}

.lightbox-image-stage {
  flex-grow: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-main-img {
  max-width: 95%;
  max-height: calc(85vh - 100px);
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 45px rgba(0, 0, 0, 0.85);
  user-select: none;
}

.lightbox-bottom-bar {
  padding: 10px 16px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: var(--text-secondary);
  z-index: 20;
}

@media (max-width: 768px) {
  .doc-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-controls-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .btn-gdrive {
    justify-content: center;
  }

  .lightbox-nav-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .doc-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PHOTO GALLERY SLIDER STYLES (SCREENSHOT 2 FEATURE)
   ========================================================================== */
.gallery-view-switcher {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 4px;
}

.view-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-switch-btn.active {
  background: var(--accent-gold);
  color: #0E1014;
}

.doc-gallery-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.slider-main-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 540px;
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.slider-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
  user-select: none;
}

.slider-main-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.65) 100%);
}

.slider-badge {
  align-self: flex-start;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(14, 16, 20, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.slider-zoom-hint {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.stage-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(14, 16, 20, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all var(--transition-fast);
}

.stage-nav-btn.prev { left: 16px; }
.stage-nav-btn.next { right: 16px; }

.stage-nav-btn:hover {
  background: var(--accent-gold);
  color: #0E1014;
  transform: translateY(-50%) scale(1.08);
}

/* Thumbnail Strip Carousel */
.slider-thumb-strip-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-gradient);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.slider-thumb-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior: contain;
}

.slider-thumb-strip::-webkit-scrollbar { display: none; }

.slider-thumb-item {
  width: 100%;
  height: auto;
  min-width: 0;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity var(--transition-fast), border-color var(--transition-fast);
  background: #000;
}

.slider-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-thumb-item:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.slider-thumb-item.active {
  opacity: 1;
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
  transform: none;
}

.thumb-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.thumb-nav-btn:hover {
  background: var(--accent-gold);
  color: #0E1014;
}

/* ==========================================================================
   SCHEDULE SLIDER STYLES (SCREENSHOT 1 FEATURE)
   ========================================================================== */
.schedule-slider-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.schedule-timeline.schedule-slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 16px;
  scrollbar-width: none;
}

.schedule-timeline.schedule-slider-track::-webkit-scrollbar {
  display: none;
}

.schedule-timeline.schedule-slider-track .schedule-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 290px;
  scroll-snap-align: start;
}

@media (max-width: 991px) {
  .schedule-timeline.schedule-slider-track .schedule-card {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 640px) {
  .schedule-timeline.schedule-slider-track .schedule-card {
    flex: 0 0 85%;
    min-width: 260px;
  }
}

.schedule-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}

.slider-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-arrow-btn:hover {
  background: var(--accent-gold);
  color: #0E1014;
  transform: scale(1.08);
}

.schedule-slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-subtle);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.slider-dot:hover {
  border-color: var(--accent-gold);
}

.slider-dot.active {
  background: var(--accent-gold);
  width: 26px;
  border-radius: 13px;
}



/* Consistent interface icons and compact hero actions */
.ui-icon { width: 1.2em; height: 1.2em; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.hero-cta-buttons { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 16px; }
.hero-cta-buttons .hero-icon-button { width: 56px; height: 56px; min-width: 56px; padding: 0; border-radius: 50%; }
.hero-icon-button .ui-icon { width: 24px; height: 24px; }
.floral-decor .ui-icon { width: 28px; height: 28px; color: var(--accent-gold); }
.section-divider .ui-icon { width: 20px; height: 20px; }
.guestbook-layout > * { min-width: 0; }
.guestbook-wall-card { display: flex; flex-direction: column; }
.wall-title-box { flex-wrap: wrap; gap: 12px; align-items: center; }
.wall-title { margin: 0; }
.wall-count-badge { white-space: nowrap; }
.filter-chips { gap: 8px; }
.chip { min-height: 36px; padding: 8px 12px; }
.search-wrap { position: relative; }
.search-wrap > .ui-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-wrap .form-control { padding: 12px 12px 12px 40px; }
.messages-stream { gap: 12px; max-height: 600px; scrollbar-gutter: stable; }
.message-card { padding: 20px; border-radius: 12px; }
.message-meta { display: block; margin-bottom: 14px; }
.message-author-box { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; }
.message-author { line-height: 1.5; overflow-wrap: anywhere; }
.message-badge { max-width: 100%; white-space: normal; }
.message-time { display: block; margin-top: 9px; }
.message-content { line-height: 1.85; overflow-wrap: anywhere; }
.empty-stream { padding: 36px 20px; text-align: center; color: var(--text-secondary); }
.empty-stream > .ui-icon { width: 32px; height: 32px; color: var(--accent-gold); margin-bottom: 12px; }
.empty-stream span { display: block; margin-top: 8px; font-size: .82rem; color: var(--text-muted); }
@media (max-width: 600px) {
  .guestbook-form-card, .guestbook-wall-card { padding: 22px 16px; }
  .guestbook-layout { gap: 20px; }
  .message-card { padding: 16px; }
  .wall-title { font-size: 1.1rem; }
  .messages-stream { padding-right: 2px; }
}

/* Icon-only sharing actions */
.share-links .share-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  text-decoration: none;
}
.share-links .ui-icon { width: 22px; height: 22px; }
.share-pill.email:hover { background: var(--accent-gold); border-color: var(--accent-gold); color: #0E1014; }
.share-pill:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 4px; }

/* Keep the memory invitation simple; render only submitted memories. */
.remembering-action-bar { justify-content: center; margin-bottom: 0; }
.memories-grid:empty { display: none; }
.memories-grid:not(:empty) { margin-top: 32px; }

/* Portrait album slider with readable folder captions. */
.doc-gallery-slider-wrap { width: 100%; max-width: 560px; margin-inline: auto; }
.slider-main-stage { aspect-ratio: 4 / 5; max-height: none; touch-action: pan-y; }
.slider-main-img { object-fit: cover; }
.slider-main-overlay {
  padding: clamp(16px, 4vw, 28px);
  background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, transparent 35%, rgba(0,0,0,.45) 64%, rgba(0,0,0,.94) 100%);
}
.slider-folder-caption { color: #fff; text-align: left; }
.slider-folder-parent { display: block; color: rgba(255,255,255,.75); font-size: .75rem; line-height: 1.5; margin-bottom: 6px; }
.slider-folder-name { color: #fff; font-family: var(--font-body); font-size: clamp(1.2rem, 3vw, 1.65rem); line-height: 1.35; margin-bottom: 16px; overflow-wrap: anywhere; }
.slider-caption-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; pointer-events: auto; }
.slider-drive-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: .8rem; min-height: 44px; }
.slider-expand-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(0,0,0,.3); color: #fff; cursor: pointer; }
.slider-drive-link:focus-visible, .slider-expand-button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.stage-nav-btn.prev { left: 12px; }
.stage-nav-btn.next { right: 12px; }

.slider-thumb-item img { object-fit: cover; }
.loc-actions { flex-direction: row; flex-wrap: nowrap; gap: 12px; }
.loc-actions .btn { width: 48px; height: 48px; min-width: 48px; padding: 0; border-radius: 50%; }
.loc-actions .btn svg { width: 22px; height: 22px; }

/* Gentle zoom restarts with each loaded slide. */
.slider-main-img.is-zooming {
  animation: memorialSlowZoom 14s ease-in-out infinite alternate;
  transform-origin: center;
}
@keyframes memorialSlowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .slider-main-img.is-zooming { animation: none; transform: none; }
}

/* A shared centered heading with a softly illuminated symbol above the label. */
.section-title-wrap { text-align: center; }
.section-emblem {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--accent-gold);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-gold-alpha), transparent 75%);
  box-shadow: 0 0 28px var(--accent-gold-alpha), inset 0 0 18px var(--accent-gold-alpha);
}
.section-emblem span { display: flex; align-items: center; justify-content: center; }
.section-emblem .ui-icon { width: 30px; height: 30px; filter: drop-shadow(0 0 7px var(--accent-gold)); }
.section-title-wrap .section-tag { display: block; margin-bottom: 10px; }
.section-title-wrap .section-subtext { margin: 12px auto 0; }
.hero-cta-buttons .btn-gold { box-shadow: 0 0 28px var(--accent-gold-alpha); }
.slider-folder-caption, .location-info, .legacy-card, .tribute-support-card,
.schedule-body, .form-header, .wall-title-box, .message-card { text-align: center; }
.slider-caption-actions, .loc-actions, .schedule-header, .meta-item, .filter-chips { justify-content: center; }
.slider-caption-actions { position: relative; min-height: 44px; padding-inline: 48px; }
.slider-expand-button { position: absolute; right: 0; }
.loc-badge { align-self: center; }
.wall-title-box { justify-content: center; }
.message-author-box { align-items: center; }
.legacy-icon, .tribute-icon { display: flex; align-items: center; justify-content: center; }
.legacy-icon .ui-icon, .tribute-icon .ui-icon { width: 36px; height: 36px; color: var(--accent-gold); }
.visitor-guide { text-align: center; }
.guide-list { list-style: none; padding-left: 0; }
@media (max-width: 600px) {
  .section-emblem { width: 56px; height: 56px; margin-bottom: 16px; }
  .section-emblem .ui-icon { width: 26px; height: 26px; }
}

/* Automatic gallery: gesture navigation, thumbnails, and one playback control. */
.slider-playback-toggle {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px; display: inline-flex;
  align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
  background: rgba(0,0,0,.5); color: #fff;
  cursor: pointer; pointer-events: auto;
}
.slider-playback-toggle:focus-visible, .slider-thumb-item:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; }
button.slider-thumb-item { padding: 0; background: none; font: inherit; cursor: pointer; }
.slider-thumb-strip { min-width: 0; }

.family-details { display: grid; gap: 18px; margin-top: 22px; text-align: center; font-size: .85rem; line-height: 1.85; color: var(--text-secondary); }
.family-details strong { color: var(--accent-gold); }

/* One consistent name treatment in both themes. */
.memorial-name {
  color: var(--accent-gold);
  font-weight: 800;
  font-style: normal;
  text-shadow: 0 0 8px var(--accent-gold-alpha), 0 0 20px var(--accent-gold-alpha);
  filter: drop-shadow(0 0 3px var(--accent-gold-alpha));
  overflow-wrap: anywhere;
}
.deceased-name .memorial-name { font-weight: 800; }

/* Consistent date, title, and time hierarchy for every service. */
.schedule-card { padding: 26px 22px; }
.schedule-card .schedule-badge { align-self: center; padding: 0; border: 0; background: none; text-align: center; gap: 5px; margin-bottom: 22px; }
.schedule-badge .day-name { font-size: .7rem; letter-spacing: .16em; }
.schedule-badge .date-str { font-family: var(--font-body); font-size: .9rem; font-weight: 600; }
.schedule-body { display: flex; flex-direction: column; align-items: stretch; flex: 1; }
.schedule-header { flex-direction: column; align-items: center; gap: 12px; margin-bottom: 0; }
.schedule-title { font-size: 1.08rem; line-height: 1.5; margin: 0; }
.schedule-time-badge { padding: 6px 14px; font-size: .85rem; }
.schedule-desc { margin: 16px 0 22px; font-size: .85rem; line-height: 1.8; }
.schedule-meta { padding-top: 18px; }
.schedule-meta .meta-item { align-items: center; flex-direction: column; gap: 7px; line-height: 1.7; }
.schedule-room { color: var(--text-muted); font-size: .78rem; }
.schedule-card-actions { margin-top: 20px; }
.schedule-card-actions .btn-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; min-height: 42px; }

/* A text link opens the visitor instructions in a native modal. */
.visitor-guide { padding-top: 18px; }
.visitor-guide-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; padding: 4px 0; background: none; color: var(--accent-gold); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 5px; }
.visitor-guide-link:hover { color: var(--accent-gold-light); }
.visitor-guide-link:focus-visible, .visitor-guide-close:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 5px; border-radius: 4px; }
.visitor-guide-dialog { margin: auto; width: min(520px, calc(100% - 32px)); max-height: 85vh; max-height: 85svh; overflow-y: auto; padding: 28px; border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: var(--bg-surface); color: var(--text-primary); box-shadow: var(--shadow-card); }
.visitor-guide-dialog::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(6px); }
.visitor-guide-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.visitor-guide-dialog-header h3 { font-size: 1.1rem; margin: 0; line-height: 1.5; }
.visitor-guide-close { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--border-subtle); border-radius: 50%; background: none; color: var(--text-secondary); cursor: pointer; }
.visitor-guide-location { color: var(--text-muted); font-size: .8rem; line-height: 1.7; margin-top: 12px; text-align: center; }
.visitor-guide-items { display: grid; gap: 20px; margin: 24px 0 0; text-align: center; }
.visitor-guide-items > div { padding-top: 20px; border-top: 1px solid var(--border-subtle); }
.visitor-guide-items dt { color: var(--accent-gold); font-weight: 700; margin-bottom: 7px; }
.visitor-guide-items dd { margin: 0; color: var(--text-secondary); font-size: .88rem; line-height: 1.8; }
@media (max-width: 600px) { .visitor-guide-dialog { padding: 22px 18px; } .schedule-card { padding: 24px 18px; } }
