/* ================================================================
   Pet Memorial Garden — Main Stylesheet
   ================================================================ */

/* ── Design tokens ─────────────────────────────────────────────── */
:root {
  --bg-primary:       #fdfcf8;
  --bg-secondary:     #f4efe5;
  --bg-card:          #ffffff;
  --bg-card-hover:    #faf8f3;
  --border:           #e4ddd0;
  --border-light:     #cfc8ba;

  --gold:             #8a5c1a;
  --gold-light:       #a87228;
  --gold-dark:        #6a4210;
  --gold-muted:       rgba(138,92,26,0.08);
  --gold-glow:        0 0 20px rgba(138,92,26,0.12);

  --text:             #1e1a16;
  --text-secondary:   #4a4438;
  --text-muted:       #88806e;

  --success:          #286e3a;
  --danger:           #aa2e2e;
  --warning:          #a85c18;

  --font-heading:     'Playfair Display', Georgia, serif;
  --font-body:        'Inter', system-ui, sans-serif;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,0.06), 0 2px 8px  rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.09), 0 2px 6px  rgba(0,0,0,0.05);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.07);

  --transition: 0.22s ease;
}

/* ── Reset / base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  color: var(--text);
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; }

.text-gold   { color: var(--gold) !important; }
.link-gold   { color: var(--gold); }
.link-gold:hover { color: var(--gold-light); }

.py-6 { padding-top: 4rem; padding-bottom: 4rem; }
.mt-6 { margin-top: 3rem; }

/* ── Navbar ────────────────────────────────────────────────────── */
.pmg-navbar {
  background: rgba(253,252,248,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.pmg-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.brand-icon { font-size: 1.4rem; }
.brand-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.01em;
}

.pmg-navbar .nav-link {
  color: var(--text-secondary);
  transition: color var(--transition);
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
}
.pmg-navbar .nav-link:hover { color: var(--text); }

.nav-avatar {
  width: 32px; height: 32px;
  background: var(--gold-muted);
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
}

.pmg-dropdown {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 180px;
}
.pmg-dropdown .dropdown-item {
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  transition: all var(--transition);
}
.pmg-dropdown .dropdown-item:hover {
  background: var(--gold-muted);
  color: var(--text);
}
.pmg-dropdown .dropdown-divider { border-color: var(--border); }

/* ── Buttons ───────────────────────────────────────────────────── */
.pmg-btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #ffffff;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.pmg-btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--gold-glow), var(--shadow-md);
}

.pmg-btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.pmg-btn-outline:hover {
  background: var(--gold-muted);
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.pmg-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.pmg-btn-ghost:hover {
  background: var(--bg-card-hover);
  color: var(--text);
  border-color: var(--border-light);
}

.btn-xs { padding: 0.2rem 0.6rem; font-size: 0.75rem; }

/* ── Form inputs ───────────────────────────────────────────────── */
.pmg-input {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pmg-input:focus {
  background: var(--bg-secondary);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
  color: var(--text);
}
.pmg-input::placeholder { color: var(--text-muted); }
.pmg-input option { background: var(--bg-card); }

.form-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

/* ── Sections ──────────────────────────────────────────────────── */
.section-dark   { background: var(--bg-primary); }
.section-darker { background: var(--bg-secondary); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.section-title-sm {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
}
.section-title-xs {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 60%, rgba(140,190,120,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 78% 25%, rgba(210,170,100,0.08) 0%, transparent 50%),
    linear-gradient(165deg, #fdfcf8 0%, #f8f2e7 100%);
}
.hero-mist {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
}
.hero-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8%  12%, rgba(170,130,60,0.22) 0%, transparent 100%),
    radial-gradient(1px   1px   at 22% 32%, rgba(150,110,40,0.18) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 45% 18%, rgba(170,130,60,0.16) 0%, transparent 100%),
    radial-gradient(1px   1px   at 62% 8%,  rgba(150,110,40,0.22) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 78% 38%, rgba(170,130,60,0.18) 0%, transparent 100%),
    radial-gradient(1px   1px   at 88% 22%, rgba(150,110,40,0.14) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 92% 60%, rgba(170,130,60,0.12) 0%, transparent 100%),
    radial-gradient(1px   1px   at 14% 70%, rgba(150,110,40,0.18) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 80%, rgba(170,130,60,0.14) 0%, transparent 100%);
}
.hero-content { position: relative; z-index: 2; padding: 4rem 0; }
.hero-badge {
  display: inline-block;
  background: var(--gold-muted);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 1rem 0;
  color: var(--text);
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}
.hero-stats {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bounce 2s infinite;
  font-size: 1.1rem;
  z-index: 2;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ── Home map ──────────────────────────────────────────────────── */
.map-container-home {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.home-map-el { height: 420px; }
.map-overlay-cta {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
}

/* ── Steps ─────────────────────────────────────────────────────── */
.col-lg-2dot4 { flex: 0 0 20%; max-width: 20%; }
@media (max-width: 991px) { .col-lg-2dot4 { flex: 0 0 50%; max-width: 50%; } }
@media (max-width: 575px) { .col-lg-2dot4 { flex: 0 0 100%; max-width: 100%; } }

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  transition: all var(--transition);
}
.step-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--gold-glow);
}
.step-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--border-light);
  line-height: 1;
}
.step-icon {
  font-size: 1.8rem;
  color: var(--gold);
  margin: 0.5rem 0;
}
.step-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.step-desc { color: var(--text-muted); font-size: 0.85rem; }

/* ── Features ─────────────────────────────────────────────────── */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-card-icon {
  width: 44px; height: 44px;
  background: var(--gold-muted);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.feature-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.feature-card-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.5;
}

/* ── Gravestone showcase (homepage) ────────────────────────────── */
.gravestone-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}
.gs-items-preview {
  display: flex;
  gap: 1rem;
  font-size: 1.8rem;
}

/* ── Item cards ─────────────────────────────────────────────────── */
.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all var(--transition);
}
.item-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.item-emoji { font-size: 2rem; margin-bottom: 0.5rem; }
.item-name  { font-weight: 600; font-size: 0.85rem; }
.item-price { color: var(--gold); font-weight: 700; font-size: 0.95rem; }

/* ── Pricing ───────────────────────────────────────────────────── */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
}
.pricing-card-featured {
  border-color: var(--gold);
  box-shadow: var(--gold-glow);
}
.pricing-badge {
  display: inline-block;
  background: var(--border);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.pricing-badge.gold {
  background: var(--gold-muted);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold);
}
.pricing-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.pricing-price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.pricing-period { font-size: 1.2rem; color: var(--text-muted); }
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  text-align: left;
}
.pricing-features li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }

.upgrade-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all var(--transition);
}
.upgrade-card:hover { border-color: var(--gold); }
.upgrade-name { font-weight: 600; font-size: 0.875rem; margin-top: 0.5rem; }
.upgrade-price { color: var(--gold); font-size: 0.875rem; margin-top: 0.25rem; }

/* ── CTA section ───────────────────────────────────────────────── */
.section-cta {
  background: linear-gradient(135deg, rgba(140,190,120,0.07), var(--bg-secondary));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
}
.cta-subtitle { color: var(--text-secondary); font-size: 1.1rem; }

/* ── Auth pages ────────────────────────────────────────────────── */
.page-auth { background: var(--bg-secondary); }
.auth-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
}
.auth-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.auth-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.auth-header { margin-bottom: 2rem; }
.input-password-wrap { position: relative; }
.input-password-wrap .pmg-input { padding-right: 2.5rem; }
.btn-toggle-pw {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  transition: color var(--transition);
}
.btn-toggle-pw:hover { color: var(--text); }

/* ── Dashboard ─────────────────────────────────────────────────── */
.page-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
}
.page-header .back-link {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.page-header .back-link:hover { color: var(--gold); }

.empty-state .empty-icon { font-size: 4rem; }

.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.dashboard-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.dashboard-card-ribbon {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.status-active   { background: rgba(76,175,120,0.15); color: #4caf78; }
.status-pending  { background: rgba(240,167,66,0.15);  color: #f0a742; }
.status-expired  { background: rgba(232,92,92,0.15);   color: #e85c5c; }
.status-cancelled{ background: rgba(107,105,136,0.2);  color: #8b8fa8; }

.dashboard-stone-preview {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem 0.5rem;
  background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-card));
}
.dashboard-card-body { padding: 1rem 1.25rem 1.25rem; }
.memorial-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.privacy-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  white-space: nowrap;
}
.privacy-badge.public  { background: rgba(76,175,120,0.1);  color: #4caf78;  border: 1px solid rgba(76,175,120,0.3); }
.privacy-badge.private { background: rgba(107,105,136,0.15); color: #8b8fa8; border: 1px solid var(--border); }

.stats-row {
  display: flex;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.stat-item i { color: var(--gold); }

/* ── Gravestone styles ─────────────────────────────────────────── */

/* -- Mini size (dashboard, picker, sidebar) -- */
.gs-mini {
  --size: 60px;
  width: var(--size);
  height: calc(var(--size) * 1.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}
.gs-mini-name {
  font-size: calc(var(--size) * 0.14);
  font-family: var(--font-heading);
  text-align: center;
  font-weight: 700;
  position: relative;
  z-index: 2;
  line-height: 1.1;
}

/* Classic */
.gs-classic .gs-mini-name, .gs-mini.gs-classic .gs-mini-name { color: #e8e6f0; }
.gs-mini.gs-classic::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #5a5e7a, #3e4058);
  border-radius: calc(var(--size)*0.5) calc(var(--size)*0.5) var(--radius-sm) var(--radius-sm);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.1), var(--shadow-sm);
}

/* Marble */
.gs-mini.gs-marble::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e8e4e0, #c8c4c0, #dedad6);
  border-radius: 50% 50% var(--radius-sm) var(--radius-sm);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.4), var(--shadow-sm);
}
.gs-mini.gs-marble .gs-mini-name { color: #3a3836; }

/* Celtic */
.gs-mini.gs-celtic::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4a5a4a, #3a4a3a);
  border-radius: calc(var(--size)*0.5) calc(var(--size)*0.5) var(--radius-sm) var(--radius-sm);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.08), var(--shadow-sm);
}
.gs-mini.gs-celtic::after {
  content: '✟';
  position: absolute;
  top: -10px;
  font-size: calc(var(--size) * 0.45);
  color: #6a8a6a;
  z-index: 1;
}
.gs-mini.gs-celtic .gs-mini-name { color: #c8d8c8; }

/* Angel */
.gs-mini.gs-angel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #7a6a9a, #5a4a7a);
  border-radius: calc(var(--size)*0.5) calc(var(--size)*0.5) var(--radius-sm) var(--radius-sm);
  box-shadow: 0 0 15px rgba(160,120,220,0.3), var(--shadow-sm);
}
.gs-mini.gs-angel::after {
  content: '👼';
  position: absolute;
  top: -14px;
  font-size: calc(var(--size) * 0.5);
  z-index: 1;
}
.gs-mini.gs-angel .gs-mini-name { color: #e8d8f8; }

/* Micro size */
.gs-micro {
  --size: 32px;
  width: var(--size);
  height: calc(var(--size) * 1.4);
  position: relative;
  border-radius: 50% 50% 3px 3px;
  flex-shrink: 0;
}
.gs-micro.gs-classic { background: linear-gradient(135deg, #5a5e7a, #3e4058); }
.gs-micro.gs-marble  { background: linear-gradient(135deg, #e8e4e0, #c8c4c0); }
.gs-micro.gs-celtic  { background: linear-gradient(135deg, #4a5a4a, #3a4a3a); }
.gs-micro.gs-angel   { background: linear-gradient(135deg, #7a6a9a, #5a4a7a); }

/* ── Gravestone display (full memorial page) ────────────────────── */
.gravestone-display {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 240px;
}

.gsd-body {
  width: 200px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem 1rem 1.5rem;
  border-radius: 50% 50% 8px 8px;
}

.gs-display-classic .gsd-body {
  background: linear-gradient(160deg, #5a5e7a 0%, #3e4058 60%, #2e3048 100%);
  box-shadow: inset 0 3px 6px rgba(255,255,255,0.08), var(--shadow-lg);
}
.gs-display-marble .gsd-body {
  background: linear-gradient(160deg, #f0ece8, #d8d4d0, #eae6e2);
  box-shadow: inset 0 3px 6px rgba(255,255,255,0.5), var(--shadow-lg);
}
.gs-display-celtic .gsd-body {
  background: linear-gradient(160deg, #4a5a4a, #3a4a3a, #2a3a2a);
  box-shadow: inset 0 3px 6px rgba(255,255,255,0.06), var(--shadow-lg);
}
.gs-display-angel .gsd-body {
  background: linear-gradient(160deg, #7a6a9a, #5a4a7a, #3a2a5a);
  box-shadow: 0 0 30px rgba(160,120,220,0.3), var(--shadow-lg);
}

.gsd-content { text-align: center; position: relative; z-index: 2; }
.gsd-emoji   { font-size: 2rem; margin-bottom: 0.5rem; }
.gsd-name    {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.gsd-dates        { font-size: 0.85rem; opacity: 0.75; margin-bottom: 0.5rem; }
.gsd-inscription  {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.3;
  max-width: 160px;
}

/* Colours per style */
.gs-display-classic .gsd-name,
.gs-display-classic .gsd-dates,
.gs-display-classic .gsd-inscription { color: #e8e6f0; }
.gs-display-marble  .gsd-name,
.gs-display-marble  .gsd-dates,
.gs-display-marble  .gsd-inscription { color: #2a2826; }
.gs-display-celtic  .gsd-name,
.gs-display-celtic  .gsd-dates,
.gs-display-celtic  .gsd-inscription { color: #c8d8c8; }
.gs-display-angel   .gsd-name,
.gs-display-angel   .gsd-dates,
.gs-display-angel   .gsd-inscription { color: #f0e8ff; }

/* Celtic ring */
.gsd-celtic-ring {
  position: absolute;
  top: -28px;
  width: 56px; height: 56px;
  border: 5px solid #6a8a6a;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 10px rgba(106,138,106,0.3);
}
/* Angel figure */
.gsd-angel-figure {
  position: absolute;
  top: -36px;
  font-size: 2.5rem;
}
.gsd-angel-figure::before { content: '👼'; }

/* Items around the stone */
.stone-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  max-width: 220px;
}
.stone-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  cursor: default;
  animation: floatItem 3s ease-in-out infinite;
  box-shadow: var(--shadow-sm);
}
.stone-item:nth-child(odd)  { animation-delay: 0.5s; }
.stone-item:nth-child(even) { animation-delay: 1s; }

@keyframes floatItem {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

.visit-counter, .location-tag {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ── Memorial page ─────────────────────────────────────────────── */
.page-memorial { background: var(--bg-primary); }

.memorial-hero {
  position: relative;
  background: var(--bg-primary);
  overflow: hidden;
  padding: 4rem 0;
}
.memorial-bg-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(170,130,60,0.18) 0%, transparent 100%),
    radial-gradient(1px   1px   at 50% 15%, rgba(150,110,40,0.14) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 80% 40%, rgba(170,130,60,0.18) 0%, transparent 100%),
    radial-gradient(1px   1px   at 35% 70%, rgba(150,110,40,0.12) 0%, transparent 100%),
    radial-gradient(1px   1px   at 65% 80%, rgba(170,130,60,0.14) 0%, transparent 100%);
}
.memorial-bg-mist {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 150px;
  background: linear-gradient(to top, var(--bg-secondary), transparent);
}
.memorial-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
  position: relative;
  z-index: 2;
}
@media (max-width: 767px) {
  .memorial-layout { grid-template-columns: 1fr; }
  .memorial-stone-col { display: flex; flex-direction: column; align-items: center; }
}
.memorial-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.memorial-name-row { margin-bottom: 1rem; }
.pet-type-badge {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
}
.memorial-dates { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.date-item { font-size: 0.95rem; color: var(--text-secondary); }
.memorial-description {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.share-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.owner-actions { display: flex; justify-content: center; gap: 0.5rem; }

/* Photo gallery */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  position: relative;
  background: var(--bg-card);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
  color: #fff; font-size: 1.3rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Tributes */
.tributes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.tribute-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.tribute-emoji { font-size: 1.8rem; flex-shrink: 0; }
.tribute-type  { font-weight: 600; font-size: 0.9rem; }
.tribute-from  { font-size: 0.85rem; color: var(--text-secondary); }
.tribute-message {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.tribute-expiry { margin-top: 0.25rem; }

/* Tribute form */
.tribute-login-wall {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  max-width: 480px;
  margin: 0 auto;
}
.tlw-icon { color: var(--gold); }

/* Tribute panels (free message + paid gifts) */
.tribute-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
}
.tribute-panel-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.tribute-panel-body {
  padding: 1.25rem;
}

/* Tribute messages list */
.tribute-messages-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tribute-message-card {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
}
.tmc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #c48d2a);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 0.85rem;
}
.tmc-body { flex: 1; min-width: 0; }
.tmc-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.2rem; }
.tmc-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }
.tmc-date { margin-top: 0.3rem; }

.item-catalogue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
.item-catalogue-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: all var(--transition);
}
.item-catalogue-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.item-catalogue-card .item-emoji { font-size: 2rem; }
.item-catalogue-card .item-desc  { margin: 0.25rem 0; }

/* Compact item list (replaces grid on memorial page) */
.item-list { display: flex; flex-direction: column; gap: 0.4rem; }
.item-list-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.875rem;
  transition: border-color var(--transition);
}
.item-list-row:hover { border-color: var(--gold); }
.item-list-emoji { font-size: 1.4rem; flex-shrink: 0; width: 2rem; text-align: center; }
.item-list-details { flex: 1; min-width: 0; }
.item-list-name { font-weight: 600; font-size: 0.85rem; display: block; }
.item-list-sub  { font-size: 0.78rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-list-price { font-weight: 700; font-size: 0.85rem; flex-shrink: 0; white-space: nowrap; }
.item-list-row .btn { flex-shrink: 0; font-size: 0.8rem; padding: 0.3rem 0.7rem; }

/* Tribute delete button */
.tmc-delete {
  flex-shrink: 0;
  align-self: flex-start;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  font-size: 0.75rem;
  line-height: 1.4;
  transition: all var(--transition);
  margin-left: auto;
}
.tmc-delete:hover { border-color: #dc3545; color: #dc3545; }

/* Tributes login gate */
.tributes-login-gate {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* Memorial map */
.memorial-map-el { height: 300px; border-radius: var(--radius-lg); overflow: hidden; }

/* ── Explore page ──────────────────────────────────────────────── */
.page-explore .pmg-navbar { position: relative; }
.explore-layout {
  display: flex;
  height: calc(100vh - 64px);
  overflow: hidden;
}
.explore-sidebar {
  width: 340px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
@media (max-width: 767px) {
  .explore-layout { flex-direction: column; height: auto; }
  .explore-sidebar { width: 100%; max-height: 40vh; }
}
.sidebar-header { padding: 1.25rem; border-bottom: 1px solid var(--border); }
.sidebar-memorials { flex: 1; overflow-y: auto; padding: 0.5rem; }
.sidebar-memorial-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}
.sidebar-memorial-item:hover { background: var(--bg-card-hover); color: var(--text); }
.sidebar-memorial-item.active { background: var(--gold-muted); border-color: rgba(201,168,76,0.3); }
.smi-info { flex: 1; min-width: 0; }
.smi-name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smi-meta, .smi-date { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smi-thumb {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.smi-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-pagination { padding: 1rem 0; }
.sidebar-pagination .pagination { gap: 0.25rem; }
.sidebar-pagination .page-link {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-secondary);
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}
.sidebar-pagination .page-link:hover { background: var(--gold-muted); color: var(--gold); }
.sidebar-pagination .page-item.active .page-link { background: var(--gold); border-color: var(--gold); color: #1a1200; }

.explore-map-wrap { flex: 1; position: relative; }
.explore-map-el { width: 100%; height: 100%; }

.map-controls-overlay {
  position: absolute;
  top: 1rem; left: 1rem; right: 1rem;
  z-index: 1000;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#findNearMeBtn {
  pointer-events: all;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}
.map-search-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  max-width: 400px;
  pointer-events: all;
  box-shadow: var(--shadow-md);
  color: var(--text-muted);
}
.map-search-input {
  background: transparent;
  border: none;
  color: var(--text);
  outline: none;
  font-size: 0.9rem;
  flex: 1;
}
.map-search-input::placeholder { color: var(--text-muted); }

.map-detail-panel {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}
.panel-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
}

/* ── Map markers ───────────────────────────────────────────────── */
.map-marker {
  font-size: 1.5rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  transition: transform 0.2s;
}
.map-marker:hover { transform: scale(1.2); }
.leaflet-popup-content-wrapper {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  color: var(--text) !important;
  box-shadow: var(--shadow-md) !important;
}
.leaflet-popup-tip { background: var(--bg-card) !important; }
.popup-link { color: var(--gold); font-size: 0.875rem; }

/* ── Create/Edit memorial ──────────────────────────────────────── */
.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.form-section-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.form-section-num {
  width: 28px; height: 28px;
  background: var(--gold-muted);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.create-map-el {
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.style-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.style-option {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.style-option:hover { border-color: rgba(201,168,76,0.5); }
.style-option.selected { border-color: var(--gold); background: var(--gold-muted); }
.style-radio { display: none; }
.style-label { font-size: 0.8rem; font-weight: 600; margin-top: 0.4rem; }
.style-price { font-size: 0.75rem; color: var(--text-muted); }
.style-price .included { color: var(--success); }

.privacy-toggle-group { display: flex; flex-direction: column; gap: 0.75rem; }
.privacy-option {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.1rem;
  align-items: center;
  transition: all var(--transition);
}
.privacy-option i { grid-row: 1 / 3; font-size: 1.2rem; color: var(--gold); }
.privacy-option.selected { border-color: var(--gold); background: var(--gold-muted); }
.privacy-option strong { font-size: 0.9rem; }
.privacy-option span { font-size: 0.8rem; color: var(--text-muted); }
.privacy-radio { display: none; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
}
.photo-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-delete-btn {
  position: absolute;
  top: 3px; right: 3px;
  background: rgba(232,92,92,0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 20px; height: 20px;
  font-size: 0.65rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.photo-item:hover .photo-delete-btn { opacity: 1; }

.photo-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition);
}
.photo-upload-zone:hover { border-color: var(--gold); }
.photo-file-input { display: none; }

.char-count { font-size: 0.75rem; }

.form-submit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

/* ── Checkout ──────────────────────────────────────────────────── */
.checkout-card { max-width: 520px; }
.order-summary {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.order-summary-header {
  background: var(--bg-card);
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.order-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.875rem 1rem;
}
.order-price { font-weight: 700; color: var(--gold); white-space: nowrap; }
.order-total {
  display: flex;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-top: 1px solid var(--border);
  font-weight: 700;
}
.stripe-secure-notice {
  background: rgba(76,175,120,0.08);
  border: 1px solid rgba(76,175,120,0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}
.stripe-secure-notice i { color: #635bff; font-size: 1.3rem; }

/* ── Success page ──────────────────────────────────────────────── */
.success-animation { display: flex; justify-content: center; }
.success-circle {
  width: 72px; height: 72px;
  background: rgba(76,175,120,0.15);
  border: 2px solid #4caf78;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #4caf78;
  font-size: 2rem;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ── Footer ────────────────────────────────────────────────────── */
.pmg-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer-heading {
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-links a { color: var(--text-muted); font-size: 0.875rem; }
.footer-links a:hover { color: var(--gold); }
.footer-divider { border-color: var(--border); }
.pmg-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
}

/* ── Toast notifications ───────────────────────────────────────── */
#pmgToastContainer {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pmg-toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  animation: slideInRight 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 240px;
}
.pmg-toast.success { border-left: 3px solid var(--success); }
.pmg-toast.error   { border-left: 3px solid var(--danger);  }
.pmg-toast.info    { border-left: 3px solid var(--gold);    }
.toast-fade { animation: fadeOut 0.3s ease forwards; }
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateX(100%); }
}

/* ── Lightbox ──────────────────────────────────────────────────── */
.pmg-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lightbox-inner img {
  max-width: 80vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: -2rem; right: -0.5rem;
  background: none; border: none;
  color: #fff; font-size: 1.3rem; cursor: pointer;
}
.lightbox-prev, .lightbox-next {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 575px) {
  .auth-card { padding: 1.5rem; }
  .form-submit-bar { flex-direction: column; align-items: stretch; }
  .style-picker { grid-template-columns: 1fr; }
  .memorial-layout { gap: 2rem; }
}

/* ── Bootstrap dark theme overrides ───────────────────────────── */
.alert-success { background: rgba(76,175,120,0.1); border-color: rgba(76,175,120,0.3); color: #a8e8c0; }
.alert-danger  { background: rgba(232,92,92,0.1);  border-color: rgba(232,92,92,0.3);  color: #f0a8a8; }

.form-check-input:checked {
  background-color: var(--gold);
  border-color: var(--gold);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Leaflet cluster icons ────────────────────────────────────────────────── */
.cluster-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.cluster-sm { background: var(--gold); width: 32px; height: 32px; font-size: 0.75rem; }
.cluster-md { background: #c68c1a; width: 40px; height: 40px; font-size: 0.85rem; }
.cluster-lg { background: #9e6a0e; width: 48px; height: 48px; font-size: 1rem; }

.map-popup-mini { min-width: 140px; }
.map-popup-mini a { display: block; margin-top: 4px; color: var(--gold); text-decoration: none; }
