/* ══════════════════════════════════════════════════════
   WadiMaps — app.v7.css
   Single authoritative stylesheet. No !important wars.
   Written clean from scratch — June 2026
   ══════════════════════════════════════════════════════ */

/* ── 1. VARIABLES ── */
:root {
  /* Colors */
  --bg:          #0a0614;
  --bg-1:        #0f0818;
  --bg-2:        #06030e;
  --gold:        #C49B39;
  --gold-bright: #F0C830;
  --gold-dim:    rgba(196,155,57,0.4);
  --text-100:    #ffffff;
  --text-90:     rgba(255,255,255,0.92);
  --text-80:     rgba(255,255,255,0.82);
  --text-70:     rgba(255,255,255,0.70);
  --text-60:     rgba(255,255,255,0.60);
  --text-50:     rgba(255,255,255,0.50);
  --text-40:     rgba(255,255,255,0.40);
  --text-30:     rgba(255,255,255,0.30);
  --gold-text:   rgba(220,180,70,0.80);

  /* Glass layers */
  --glass-xs:    rgba(255,255,255,0.03);
  --glass-sm:    rgba(255,255,255,0.05);
  --glass-md:    rgba(255,255,255,0.07);
  --glass-lg:    rgba(255,255,255,0.10);
  --glass-border:rgba(255,255,255,0.10);
  --glass-gold:  rgba(196,155,57,0.25);

  /* Borders */
  --border-soft: rgba(255,255,255,0.06);
  --border-mid:  rgba(255,255,255,0.10);
  --border-strong: rgba(196,155,57,0.40);

  /* Typography */
  --font-ar: 'Amiri', 'Cinzel', serif;
  --font-en: 'Cinzel', Georgia, serif;
  --font-ticker: 'Cinzel', serif;

  /* Spacing & shape */
  --r: 14px;
  --r-lg: 20px;
  --header-h: 124px; /* ticker 52px + nav 72px */

  /* Transitions */
  --transition: all 0.2s ease;
}

/* ── 2. RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-ar);
  font-size: 1rem;
  color: var(--text-80);
  background: radial-gradient(ellipse at 20% 20%, #140820 0%, #0a0614 45%, #06030e 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--gold-bright); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-ar); }

/* ── 3. FIXED HEADER WRAPPER ── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  pointer-events: none;
}

#site-header-inner {
  pointer-events: auto;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(40px) saturate(200%) brightness(1.08);
  -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(1.08);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(255,255,255,0.04),
    0 8px 40px rgba(0,0,0,0.35);
}

/* ── 4. TICKER ── */
.ticker-bar {
  position: relative;
  height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: transparent;
  border-bottom: 1px solid rgba(196,155,57,0.15);
  direction: ltr;
}

#ticker-inner {
  display: inline-flex;
  gap: 60px;
  white-space: nowrap;
  align-items: center;
  direction: rtl;
  will-change: transform;
}

.ticker-item {
  font-family: var(--font-ticker);
  font-size: 22px;
  font-weight: 700;
  color: #FFE566;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(255,220,80,0.3);
}

.ticker-sep {
  font-family: var(--font-ticker);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,180,60,0.70);
  white-space: nowrap;
}

/* ── 5. NAV ── */
nav.site-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  padding: 0 40px;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav-links {
  grid-column: 1;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-start;
}

.nav-logo {
  grid-column: 2;
  font-family: var(--font-en);
  font-size: 21px;
  letter-spacing: 7px;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(90deg, #C49B39 0%, #F0CE72 40%, #C49B39 60%, #F0CE72 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gold-shimmer 5s linear infinite;
  text-decoration: none;
}

@keyframes gold-shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.nav-spacer { grid-column: 3; }

.nav-links a {
  font-family: var(--font-ar);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-80);
  padding: 7px 16px;
  border-radius: 50px;
  border: 1px solid transparent;
  transition: var(--transition);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--gold-bright);
  background: rgba(196,155,57,0.09);
  border-color: rgba(196,155,57,0.22);
}

/* ── 6. GLASS CARD UTILITY ── */
.glass-card {
  background: var(--glass-sm);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 32px rgba(0,0,0,0.3);
}

/* ── 7. HERO SECTION ── */
.wm-hero {
  position: relative;
  overflow: visible;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wm-search-zone {
  padding: 5rem 2rem 2.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.wm-eyebrow {
  font-family: var(--font-ticker);
  font-size: 14px;
  color: rgba(220,180,70,0.80);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.wm-title {
  font-family: var(--font-en);
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.95), 0 8px 40px rgba(0,0,0,0.8);
  margin: 0 0 16px;
}

.wm-title em {
  font-style: normal;
  color: var(--gold-bright);
  position: relative;
}

.wm-title em::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(196,155,57,0.6), transparent);
}

.wm-subtitle {
  font-family: var(--font-ar);
  font-size: 18px;
  color: var(--text-70);
  letter-spacing: 3px;
  margin-bottom: 32px;
}

/* Search bar */
.wm-search {
  display: flex;
  max-width: 600px;
  margin: 0 auto 20px;
  border-radius: 50px;
  overflow: hidden;
  background: var(--glass-md);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 8px 32px rgba(0,0,0,0.3);
  backdrop-filter: blur(20px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wm-search:focus-within {
  border-color: rgba(196,155,57,0.60);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 0 0 4px rgba(196,155,57,0.08), 0 8px 32px rgba(0,0,0,0.4);
}
.wm-search input {
  flex: 1;
  padding: 16px 24px;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-ar);
  font-size: 18px;
  font-weight: 600;
}
.wm-search input::placeholder { color: rgba(255,255,255,0.35); }
.wm-search button {
  padding: 16px 28px;
  background: linear-gradient(135deg, #C49B39, #8B6914);
  border: none;
  color: #0a0614;
  font-family: var(--font-ar);
  font-size: 16px;
  font-weight: 700;
  transition: opacity 0.2s;
}
.wm-search button:hover { opacity: 0.88; }

.wm-add-link {
  display: inline-block;
  font-size: 16px;
  color: var(--text-60);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 20px;
  border-radius: 50px;
  transition: var(--transition);
}
.wm-add-link:hover { color: var(--gold-bright); border-color: rgba(196,155,57,0.35); }

/* ── 8. STATS STRIP ── */
.wm-stats-strip {
  display: flex;
  flex-direction: row;
  width: 100%;
  background: var(--glass-sm);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 4px 32px rgba(0,0,0,0.2);
}

.wm-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 8px;
  border-left: 1px solid rgba(255,255,255,0.06);
}
html[lang="ar"] .wm-stat:first-child { border-left: 1px solid rgba(255,255,255,0.06); }
html[lang="ar"] .wm-stat:last-child  { border-left: none; }

.wm-stat-num {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1;
  text-shadow: 0 0 30px rgba(240,200,48,0.35);
}

.wm-stat-label {
  font-family: var(--font-ar);
  font-size: 15px;
  color: var(--text-60);
  margin-top: 6px;
}

/* ── 9. MAP SECTION ── */
.wm-map-section { background: transparent; }

.wm-map-wrap {
  margin: 0 48px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 24px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.05);
}

.wm-map-controls {
  background: rgba(8,4,16,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 32px rgba(0,0,0,0.5);
}
.wm-map-controls .wm-map-search-bar input {
  color: #ffffff;
  font-size: 15px;
}
.wm-map-controls .wm-map-stats {
  color: rgba(220,180,70,0.80);
  font-size: 14px;
}

.map-ri {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-80);
  font-family: var(--font-ar);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.15s;
}
.map-ri:hover { background: rgba(255,255,255,0.06); color: #ffffff; }
.map-ri-year { color: rgba(196,155,57,0.45); font-size: 12px; font-family: var(--font-en); }

/* ── 10. SECTION LABELS ── */
.wm-section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 32px 48px 16px;
  background: transparent;
}
.wm-section-label::before,
.wm-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
}
.wm-section-label::before { background: linear-gradient(90deg, transparent, rgba(196,155,57,0.25)); }
.wm-section-label::after  { background: linear-gradient(90deg, rgba(196,155,57,0.25), transparent); }
.wm-section-label span {
  font-family: var(--font-ticker);
  font-size: 12px;
  font-weight: 700;
  color: rgba(220,180,70,0.85);
  letter-spacing: 5px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── 11. CEMETERY CARDS ── */
.wm-cem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0 48px 32px;
  width: 100%;
}

.wm-cem-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  min-height: 80px;
  background: linear-gradient(135deg, rgba(100,70,200,0.08) 0%, rgba(196,155,57,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  width: 100%;
}
.wm-cem-card::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, rgba(196,155,57,0.45), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.wm-cem-card:hover::after { opacity: 1; }
.wm-cem-card:hover {
  background: linear-gradient(135deg, rgba(100,70,200,0.14) 0%, rgba(196,155,57,0.08) 100%);
  border-color: rgba(196,155,57,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 12px 40px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.wm-cem-icon {
  display: flex;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(196,155,57,0.10);
  border: 1px solid rgba(196,155,57,0.25);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.wm-cem-icon svg {
  width: 22px; height: 22px;
  fill: rgba(196,155,57,0.70);
  display: block;
}
.wm-cem-card:hover .wm-cem-icon {
  background: rgba(196,155,57,0.18);
  border-color: rgba(196,155,57,0.45);
}
.wm-cem-card:hover .wm-cem-icon svg { fill: var(--gold-bright); }

.wm-cem-info {
  flex: 1;
  text-align: right;
  margin: 0 16px;
}
.wm-cem-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  margin: 0 0 4px;
}
.wm-cem-info p {
  font-size: 14px;
  color: rgba(220,180,70,0.75);
  margin: 0;
}

.wm-cem-arrow {
  font-size: 24px;
  color: rgba(196,155,57,0.50);
  flex-shrink: 0;
}

/* RTL cemetery card */
html[lang="ar"] .wm-cem-card { flex-direction: row; }
.wm-cem-icon  { order: 1; }
.wm-cem-info  { order: 2; }
.wm-cem-arrow { order: 3; margin-right: auto; margin-left: 0; }
html[lang="ar"] .wm-cem-arrow { order: 0; margin-right: 0; margin-left: auto; }

/* ── 12. RECENT GRAVES GRID ── */
#recent-grid,
.wm-recent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: transparent;
  padding: 0 48px 40px;
}

#recent-grid a,
.wm-recent-grid a {
  display: block;
  background: linear-gradient(160deg, rgba(60,35,120,0.25) 0%, rgba(8,5,18,0.90) 100%);
  border: 1px solid rgba(196,155,57,0.15);
  border-radius: var(--r);
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
}
#recent-grid a::before,
.wm-recent-grid a::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,155,57,0.5), transparent);
}
#recent-grid a:hover,
.wm-recent-grid a:hover {
  background: linear-gradient(160deg, rgba(80,50,160,0.35) 0%, rgba(15,10,30,0.95) 100%);
  border-color: rgba(196,155,57,0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.wm-grave-card {
  background: var(--glass-xs);
  border: 1px solid rgba(196,155,57,0.15);
  border-radius: var(--r);
  transition: var(--transition);
}
.wm-grave-card:hover {
  background: var(--glass-md);
  border-color: rgba(196,155,57,0.35);
}

.wm-grave-name {
  display: block;
  font-family: var(--font-ar);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-90);
  margin-bottom: 6px;
  line-height: 1.4;
}

.wm-grave-date {
  display: block;
  font-family: var(--font-en);
  font-size: 13px;
  color: rgba(196,155,57,0.70);
  margin-bottom: 4px;
}

.wm-grave-fatiha {
  display: block;
  font-size: 12px;
  color: rgba(196,155,57,0.40);
}

/* ── 13. AD STRIP ── */
.wm-ad-strip {
  padding: 0 48px;
  background: var(--glass-xs);
  border-bottom: 1px solid var(--border-soft);
}

/* ── 14. GRAVE DETAIL PAGE ── */
.grave-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 24px 60px;
  background: transparent;
}

.grave-hero {
  background: linear-gradient(135deg, rgba(80,40,160,0.15) 0%, rgba(10,6,20,0.80) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 24px 60px rgba(0,0,0,0.4);
  padding: 40px;
  margin-bottom: 16px;
  text-align: center;
}

.grave-identity h1 {
  font-family: var(--font-ar);
  font-size: 2.4rem;
  color: #ffffff;
  margin: 0 0 8px;
}
.grave-name-alt {
  font-size: 15px;
  color: var(--text-50);
  letter-spacing: 3px;
}
.grave-dates {
  font-size: 16px;
  color: var(--gold-bright);
  margin-top: 8px;
}
.grave-cemetery-link {
  font-size: 15px;
  color: var(--text-60);
}

/* Grave sections */
.fatiha-section {
  background: rgba(196,155,57,0.08);
  border: 1px solid rgba(196,155,57,0.25);
  border-radius: var(--r-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 1px 0 rgba(196,155,57,0.10), 0 8px 40px rgba(196,155,57,0.06);
  padding: 40px;
  margin-bottom: 16px;
  text-align: center;
}

.grave-map-section,
.memorial-section,
.khatma-section,
.qr-section,
.share-section,
.services-section {
  background: var(--glass-sm);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 8px 32px rgba(0,0,0,0.25);
  padding: 32px;
  margin-bottom: 16px;
}

.memorial-section { background: rgba(60,30,120,0.12); border-color: rgba(100,60,200,0.18); }
.khatma-section   { background: rgba(80,120,255,0.06); border-color: rgba(80,120,255,0.15); }
.qr-section       { background: rgba(196,155,57,0.06); border-color: rgba(196,155,57,0.18); }
.share-section    { background: rgba(37,211,102,0.05); border-color: rgba(37,211,102,0.14); }
.services-section { background: linear-gradient(135deg, rgba(196,155,57,0.07) 0%, rgba(8,5,18,0.85) 100%); border-color: rgba(196,155,57,0.18); padding: 28px 24px; }

.grave-page h2 {
  font-family: var(--font-ar);
  font-size: 13px;
  color: rgba(196,155,57,0.65);
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: 20px;
}

/* Fatiha */
.fatiha-num {
  font-family: var(--font-en);
  font-size: 5rem;
  font-weight: 700;
  color: var(--gold-bright);
  text-shadow: 0 0 40px rgba(240,200,48,0.3);
  line-height: 1;
}
.fatiha-label {
  font-size: 13px;
  color: var(--text-50);
  letter-spacing: 5px;
  margin-top: 8px;
}

/* Memorial */
.memorial-bio {
  font-family: var(--font-ar);
  font-size: 18px;
  color: var(--text-80);
  line-height: 2.2;
  text-align: center;
}

/* Location */
.grave-location-text { font-size: 15px; color: var(--text-60); }

/* Khatma */
.khatma-desc { font-size: 16px; color: var(--text-65, rgba(255,255,255,0.65)); text-align: center; margin-bottom: 16px; }
.khatma-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.khatma-card {
  background: var(--glass-xs);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 12px 16px;
  backdrop-filter: blur(12px);
}
.khatma-parts { font-size: 14px; color: var(--text-50); }
.khatma-empty { font-size: 15px; color: var(--text-40); text-align: center; }

/* QR */
.qr-block { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }
.qr-code-wrap {
  background: #07050a;
  border: 2px solid rgba(196,155,57,0.30);
  border-radius: var(--r);
  padding: 12px;
  display: flex; align-items: center; justify-content: center;
}
.qr-info { flex: 1; min-width: 200px; text-align: right; }
.qr-desc { font-size: 15px; color: var(--text-60); line-height: 1.8; margin-bottom: 12px; }

/* Share */
.share-block, .share-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}
.service-btn {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 12px;
  background: var(--glass-xs);
  border: 1px solid rgba(196,155,57,0.15);
  border-radius: var(--r);
  text-decoration: none;
  transition: var(--transition);
  gap: 6px;
}
.service-btn:hover {
  background: rgba(196,155,57,0.10);
  border-color: rgba(196,155,57,0.40);
  transform: translateY(-2px);
}
.service-btn-icon { font-size: 24px; }
.service-btn-name { font-size: 15px; font-weight: 700; color: #fff; font-family: var(--font-ar); text-align: center; }
.service-btn-price { font-size: 12px; color: rgba(196,155,57,0.70); font-family: var(--font-en); text-align: center; }

/* ── 15. BUTTONS ── */
.btn-fatiha {
  background: linear-gradient(135deg, #C49B39 0%, #8B6914 100%);
  border: none;
  color: #0a0614;
  font-family: var(--font-ar);
  font-size: 18px;
  font-weight: 700;
  padding: 15px 48px;
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(196,155,57,0.35);
  width: 100%;
  max-width: 320px;
  transition: var(--transition);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-fatiha:hover { box-shadow: 0 8px 32px rgba(196,155,57,0.50); transform: translateY(-1px); }
.btn-fatiha:disabled { opacity: 0.55; transform: none; cursor: default; }

.btn-navigate {
  background: rgba(196,155,57,0.10);
  border: 1px solid rgba(196,155,57,0.30);
  color: var(--gold-bright);
  font-family: var(--font-ar);
  font-size: 15px;
  padding: 11px 24px;
  border-radius: 50px;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-navigate:hover { background: rgba(196,155,57,0.20); }

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #1DA851);
  border: none;
  color: #fff;
  font-family: var(--font-ar);
  font-size: 16px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.20);
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition);
  text-decoration: none;
  flex: 1;
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,0.30); }

.btn-copy {
  background: var(--glass-sm);
  border: 1px solid var(--glass-border);
  color: var(--text-70);
  font-family: var(--font-ar);
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 50px;
  transition: var(--transition);
  flex: 1;
}
.btn-copy:hover { background: var(--glass-md); color: #fff; }

.btn-copy-coords {
  background: var(--glass-sm);
  border: 1px solid var(--glass-border);
  color: var(--text-60);
  font-family: var(--font-ar);
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-print-qr {
  background: rgba(196,155,57,0.08);
  border: 1px solid rgba(196,155,57,0.25);
  color: var(--gold-bright);
  font-family: var(--font-ar);
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 50px;
  transition: var(--transition);
}
.btn-print-qr:hover { background: rgba(196,155,57,0.18); }

.btn-new-khatma {
  background: var(--glass-xs);
  border: 1px dashed rgba(196,155,57,0.25);
  color: rgba(196,155,57,0.65);
  font-family: var(--font-ar);
  font-size: 15px;
  padding: 14px;
  border-radius: var(--r);
  width: 100%;
  display: block;
  text-align: center;
  transition: var(--transition);
}
.btn-new-khatma:hover { background: rgba(196,155,57,0.08); border-color: rgba(196,155,57,0.40); }

.btn-join-khatma {
  background: rgba(196,155,57,0.10);
  border: 1px solid rgba(196,155,57,0.22);
  color: var(--gold-bright);
  font-family: var(--font-ar);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 50px;
  transition: var(--transition);
}

/* Generic primary form button */
.btn-primary-form {
  width: 100%;
  padding: 15px;
  background: var(--gold);
  color: var(--bg);
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-family: var(--font-ar);
  font-weight: 700;
  cursor: pointer;
  margin-top: 22px;
  letter-spacing: 1px;
  transition: var(--transition);
}
.btn-primary-form:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(196,155,57,0.25); }
.btn-primary-form:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: none; }

/* GPS button */
.btn-gps {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--border-mid);
  border-radius: 50px;
  color: var(--text-50);
  font-family: var(--font-ar);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.btn-gps:hover { border-color: rgba(196,155,57,0.40); color: var(--gold-bright); transform: translateY(-1px); }

/* ── 16. FORMS ── */
.form-card {
  background: var(--glass-sm);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 36px 40px 48px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 24px 80px rgba(0,0,0,0.4);
}
.form-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 1px;
  margin-bottom: 24px;
  text-align: center;
}

.field-label {
  display: block;
  font-size: 13px;
  color: var(--text-60);
  margin-bottom: 6px;
  margin-top: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.field-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r);
  color: #ffffff;
  font-family: var(--font-ar);
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field-input:focus {
  background: rgba(255,255,255,0.10);
  border-color: rgba(196,155,57,0.50);
  box-shadow: 0 0 0 3px rgba(196,155,57,0.07);
}
.field-input::placeholder { color: var(--text-30); }
select.field-input option { background: var(--bg-1); color: #ffffff; }
textarea.field-input { resize: vertical; min-height: 100px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.alert { padding: 13px 16px; border-radius: var(--r); margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.alert-err  { color: #ffbbbb; background: rgba(220,50,50,0.08); border: 1px solid rgba(220,50,50,0.18); }
.alert-ok   { color: #bbffcc; background: rgba(50,200,100,0.06); border: 1px solid rgba(50,200,100,0.18); }
.alert-warn { color: #ffd88a; background: rgba(196,155,57,0.06); border: 1px solid var(--border-mid); }

/* Map picker for form */
#pick-map { height: 240px; border-radius: var(--r); border: 1px solid var(--border-mid); display: none; margin-top: 10px; }
#pick-map.show { display: block; }

/* Photo preview */
.photo-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.photo-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--border-mid); }

/* ── 17. SEARCH PAGE ── */
.search-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px;
}
.search-page h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 28px;
  text-align: center;
}

.cemetery-page { max-width: 720px; margin: 0 auto; padding: 40px 24px; }
.cemetery-cover {
  width: 100%; height: 220px;
  object-fit: cover;
  border-radius: var(--r);
  display: block;
  margin-bottom: 22px;
  filter: brightness(0.5) saturate(0.45);
  border: 1px solid var(--border-mid);
}
.cemetery-search input {
  width: 100%;
  padding: 13px 20px;
  background: var(--bg-1);
  border: 1px solid var(--border-mid);
  border-radius: 50px;
  color: #ffffff;
  font-size: 15px;
  font-family: var(--font-ar);
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cemetery-search input:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(196,155,57,0.06);
}

.grave-list { list-style: none; padding: 0; margin: 0; }
.grave-list-item { border-bottom: 1px solid var(--border-soft); transition: background 0.15s; }
.grave-list-item:hover { background: rgba(255,255,255,0.03); }
.grave-list-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 8px;
  text-decoration: none;
  color: var(--text-80);
  gap: 12px;
}
.grave-list-name { flex: 1; font-size: 18px; font-weight: 700; color: var(--text-90); }
.grave-list-date { font-family: var(--font-en); font-size: 14px; color: rgba(196,155,57,0.60); white-space: nowrap; }
.grave-list-fatiha { font-size: 13px; color: rgba(196,155,57,0.45); white-space: nowrap; font-weight: 700; }

.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8px;
  border-bottom: 1px solid var(--border-soft);
  text-decoration: none;
  color: var(--text-70);
  transition: color 0.15s, background 0.15s;
}
.search-result-item:hover { color: #ffffff; background: rgba(255,255,255,0.03); }
.sr-name { font-size: 16px; font-weight: 700; }
.sr-date { font-family: var(--font-en); font-size: 12px; color: rgba(196,155,57,0.45); }
.no-results { color: var(--text-30); font-size: 15px; padding: 24px 0; font-weight: 600; }
.wm-map-panel { display: none; }

/* ── 18. STATIC PAGES ── */
.static-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 32px 60px;
  width: 100%;
  direction: rtl;
  text-align: right;
}

.static-hero {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-soft);
}
.static-hero h1 {
  font-size: 2.4rem;
  color: #ffffff;
  margin-bottom: 10px;
}
.static-subtitle {
  font-size: 15px;
  color: rgba(196,155,57,0.65);
  letter-spacing: 2px;
}

.static-content { display: flex; flex-direction: column; gap: 16px; }

.static-section {
  padding: 24px 28px;
  background: var(--glass-xs);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  backdrop-filter: blur(12px);
  box-sizing: border-box;
  width: 100%;
}
.static-section h2 { font-size: 19px; color: var(--gold-bright); margin-bottom: 12px; font-family: var(--font-ar); }
.static-section p  { font-size: 16px; color: var(--text-78, rgba(255,255,255,0.78)); line-height: 2; font-family: var(--font-ar); margin: 0; }
.static-section a  { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }

.static-list { list-style: none; padding: 0; margin: 0; }
.static-list li {
  font-size: 15px; color: var(--text-78, rgba(255,255,255,0.78));
  padding: 8px 0; border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-ar);
}
.static-list li:last-child { border-bottom: none; }
.static-list li::before { content: '◈ '; color: rgba(196,155,57,0.50); font-size: 11px; }

/* ── 19. LEADERBOARD ── */
.podium-wrap {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  margin: 0 auto 24px;
  max-width: 600px;
  flex-wrap: wrap;
}

.podium-card {
  flex: 1;
  min-width: 140px;
  max-width: 180px;
  background: var(--glass-sm);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: transform 0.2s;
}
.podium-card:hover { transform: translateY(-4px); }
.podium-1 { order: 2; transform: translateY(-12px); border-color: rgba(240,200,48,0.40); background: rgba(240,200,48,0.06); }
.podium-2 { order: 1; border-color: rgba(192,192,192,0.30); background: rgba(192,192,192,0.04); }
.podium-3 { order: 3; border-color: rgba(205,127,50,0.30); background: rgba(205,127,50,0.04); }
.podium-rank { font-size: 32px; margin-bottom: 8px; }
.podium-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(196,155,57,0.20); border: 2px solid rgba(196,155,57,0.30);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: var(--gold-bright);
  margin: 0 auto 10px;
}
.podium-name   { font-size: 16px; color: #ffffff; font-weight: 700; margin-bottom: 6px; }
.podium-points { font-size: 18px; color: var(--gold-bright); font-weight: 700; font-family: var(--font-en); }
.podium-graves { font-size: 12px; color: var(--text-50); margin-top: 4px; }

.leaderboard-table { width: 100%; border-collapse: collapse; }
.leaderboard-table th {
  font-size: 13px; color: rgba(196,155,57,0.60);
  letter-spacing: 2px; padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  text-align: right;
}
.leaderboard-table td { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.leaderboard-table tr:hover td { background: rgba(255,255,255,0.03); }
.top-row td { background: rgba(240,200,48,0.04); }

.rank-cell   { color: var(--text-40); font-size: 14px; font-family: var(--font-en); width: 40px; }
.name-cell   { display: flex; flex-direction: row-reverse; align-items: center; justify-content: flex-end; gap: 10px; color: var(--text-88, rgba(255,255,255,0.88)); font-size: 16px; font-weight: 600; }
.lb-avatar   { width: 32px; height: 32px; border-radius: 50%; background: rgba(196,155,57,0.15); border: 1px solid rgba(196,155,57,0.25); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--gold-bright); flex-shrink: 0; }
.stat-cell   { color: var(--text-60); font-size: 15px; text-align: center; }
.points-cell { color: var(--gold-bright); font-size: 16px; font-weight: 700; font-family: var(--font-en); text-align: center; }

/* ── 20. FOOTER ── */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 48px;
  font-size: 14px;
  color: var(--text-45, rgba(255,255,255,0.45));
  background: rgba(0,0,0,0.40);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-soft);
}

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: 14px; color: var(--text-45, rgba(255,255,255,0.45)); transition: color 0.2s; }
.footer-links a:hover { color: rgba(196,155,57,0.80); }

/* ── 21. ENTRANCE ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wm-eyebrow { animation: fadeInUp 0.6s ease both; }
.wm-title   { animation: fadeInUp 0.7s ease 0.1s both; }
.wm-subtitle{ animation: fadeInUp 0.7s ease 0.2s both; }
.wm-search  { animation: fadeInUp 0.7s ease 0.3s both; }

/* ── 22. RESPONSIVE ── */
@media (max-width: 900px) {
  #recent-grid, .wm-recent-grid { grid-template-columns: repeat(2,1fr); padding: 0 16px 24px; }
}

@media (max-width: 768px) {
  :root { --header-h: 104px; }
  nav.site-nav { height: 52px; padding: 0 20px; }
  .nav-logo { font-size: 16px; letter-spacing: 4px; }
  .nav-links { gap: 8px; }
  .nav-links a { font-size: 13px; padding: 5px 10px; }
  .wm-search-zone { padding: 3rem 1.25rem 1.5rem; }
  .wm-title { font-size: 2.4rem; }
  .wm-map-wrap { margin: 0; border-radius: 0; }
  .wm-cem-grid { padding: 0 16px 24px; }
  .wm-section-label { padding: 24px 20px 12px; }
  .site-footer { padding: 22px 20px; flex-direction: column; text-align: center; gap: 10px; }
  .grave-hero { flex-direction: column; align-items: center; text-align: center; }
  .grave-page { padding: 16px 16px 48px; }
  .share-block, .grave-nav-btns { flex-direction: column; }
  .qr-block { flex-direction: column; align-items: flex-start; }
  .services-grid { grid-template-columns: 1fr; }
  .static-page { padding: 32px 20px 48px; }
  .podium-wrap { flex-direction: row; }
  .form-card { padding: 24px 18px 36px; }
  .grid2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .ticker-bar { height: 44px; }
  .ticker-item { font-size: 18px; }
  #recent-grid, .wm-recent-grid { grid-template-columns: 1fr; }
  .wm-stats-strip { flex-wrap: wrap; }
  .wm-stat { min-width: 50%; }
  .podium-card { min-width: 100px; }
}

@media (max-width: 600px) {
  .wm-cem-grid { padding: 0 16px 24px; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ── v7 PATCH 1 ── */
/* Hero: reduce top space */
.wm-hero { min-height: auto; }
.wm-search-zone { padding: 3rem 2rem 2.5rem; }

/* Map: force height so Leaflet renders */
.wm-map-wrap { height: 420px; }
#cemetery-map, #wm-map { width: 100%; height: 100%; min-height: 420px; }

/* Cemetery icon: ensure visible */
.wm-cem-icon {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Grave cards: slightly brighter */
#recent-grid a, .wm-recent-grid a {
  background: linear-gradient(160deg, rgba(80,50,160,0.22) 0%, rgba(15,10,35,0.92) 100%);
}

/* Map height fix */
#home-map { width: 100%; height: 420px; }

/* Hero background image */
.wm-shrine-bg {
  position: absolute;
  inset: 0;
  background: url('/storage/site/shrine-hero.jpg') center center / cover no-repeat;
  z-index: 0;
}
.wm-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,6,20,0.55) 0%, rgba(10,6,20,0.75) 60%, rgba(10,6,20,0.97) 100%);
  z-index: 1;
}
.wm-hero-content {
  position: relative;
  z-index: 2;
}
.wm-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Map */
.wm-map-section { padding: 0 0 32px; }
.wm-map-wrap { height: 460px; position: relative; }
#home-map { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ── MOBILE 390px FIXES ── */
@media (max-width: 480px) {
  /* Show ticker on mobile */
  .ticker-bar { height: 40px; }
  .ticker-item { font-size: 16px; letter-spacing: 1px; }
  .ticker-sep { font-size: 11px; }

  /* Header height adjustment */
  :root { --header-h: 100px; }

  /* Hero less tall */
  .wm-hero { min-height: 80vh; }
  .wm-search-zone { padding: 2rem 1.25rem 2rem; }
  .wm-title { font-size: 2.2rem; line-height: 1.2; }
  .wm-eyebrow { font-size: 11px; letter-spacing: 3px; }
  .wm-subtitle { font-size: 15px; letter-spacing: 1px; }

  /* Search — show button */
  .wm-search { border-radius: 14px; flex-direction: row; }
  .wm-search input { font-size: 16px; padding: 14px 16px; }
  .wm-search button { padding: 14px 20px; font-size: 15px; border-radius: 0 14px 14px 0; }

  /* Stats 2x2 tighter */
  .wm-stats-strip { flex-wrap: wrap; }
  .wm-stat { min-width: 50%; padding: 14px 8px; }
  .wm-stat-num { font-size: 26px; }
  .wm-stat-label { font-size: 13px; }

  /* Cemetery cards padding */
  .wm-cem-grid { padding: 0 12px 24px; gap: 6px; }
  .wm-cem-card { padding: 16px 16px; }
  .wm-cem-info h3 { font-size: 17px; }

  /* Grave cards single col with better height */
  #recent-grid, .wm-recent-grid {
    grid-template-columns: 1fr;
    padding: 0 12px 24px;
    gap: 6px;
  }
  #recent-grid a, .wm-recent-grid a { padding: 16px 14px; }
  .wm-grave-name { font-size: 16px; }

  /* Section labels */
  .wm-section-label { padding: 20px 16px 10px; }

  /* Footer */
  .site-footer { padding: 20px 16px; font-size: 13px; }
  .footer-links { gap: 12px; justify-content: center; }
  .footer-links a { font-size: 13px; }

  /* Nav tighter */
  nav.site-nav { padding: 0 8px; height: 56px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .nav-logo { font-size: 16px; letter-spacing: 4px; }
  .nav-links a { font-size: 13px; padding: 5px 10px; }
}

/* ── MOBILE HERO BG + MAP FIX ── */
@media (max-width: 768px) {
  .wm-shrine-bg {
    background-attachment: scroll !important;
    background-position: center top !important;
  }
  .wm-hero {
    min-height: 70vh;
  }
  #home-map {
    height: 320px !important;
    position: relative !important;
    width: 100% !important;
  }
  .wm-map-wrap {
    height: 320px !important;
    position: relative !important;
  }
}

/* ── HERO BG HEIGHT FIX ── */
.wm-hero { position: relative; }
.wm-shrine-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  min-height: 100%;
  background: url('/storage/site/shrine-hero.jpg') center center / cover no-repeat;
  background-attachment: scroll;
  z-index: 0;
}
.wm-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(10,6,20,0.5) 0%, rgba(10,6,20,0.75) 60%, rgba(10,6,20,0.97) 100%);
  z-index: 1;
}
.wm-hero-content { position: relative; z-index: 2; }

/* ══ GRAVE PAGE RICHNESS ══ */

/* Hero — bigger and more dramatic */
.grave-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 32px 40px;
  background: linear-gradient(135deg, rgba(80,40,160,0.18) 0%, rgba(196,155,57,0.06) 50%, rgba(10,6,20,0.9) 100%);
  border: 1px solid rgba(196,155,57,0.15);
  position: relative;
  overflow: hidden;
}
.grave-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(196,155,57,0.6), transparent);
}

/* Photo circle */
.grave-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(196,155,57,0.4);
  box-shadow: 0 0 0 6px rgba(196,155,57,0.08), 0 8px 32px rgba(0,0,0,0.4);
  margin-bottom: 20px;
}
.grave-photo--placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(196,155,57,0.08);
  border: 3px solid rgba(196,155,57,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 6px rgba(196,155,57,0.05);
}

.grave-identity h1 {
  font-family: 'Amiri', serif;
  font-size: 2.2rem;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.3;
}
.grave-name-alt {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 3px;
  margin: 0 0 10px;
}
.grave-dates {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  color: #F0C830;
  margin: 0 0 8px;
  letter-spacing: 2px;
}
.grave-cemetery-link {
  font-family: 'Amiri', serif;
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(196,155,57,0.2);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.grave-cemetery-link:hover { color: #F0C830; }

/* Fatiha — glowing counter */
.fatiha-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.fatiha-num {
  font-family: 'Cinzel', serif;
  font-size: 5rem;
  font-weight: 700;
  color: #F0C830;
  line-height: 1;
  text-shadow: 0 0 60px rgba(240,200,48,0.5), 0 0 20px rgba(240,200,48,0.3);
  transition: all 0.3s ease;
}
.fatiha-num.pulse {
  transform: scale(1.15);
  text-shadow: 0 0 80px rgba(240,200,48,0.8), 0 0 30px rgba(240,200,48,0.5);
}
.fatiha-label {
  font-family: 'Amiri', serif;
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 3px;
}

/* Grave map height */
.grave-map {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Location info */
.grave-location-info { display: flex; flex-direction: column; gap: 12px; }
.grave-location-text {
  font-family: 'Amiri', serif;
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  text-align: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px 16px;
}
.grave-nav-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.grave-nav-btns .btn-navigate { flex: 1; justify-content: center; }
.grave-nav-btns .btn-copy-coords { flex: 1; justify-content: center; }

/* Services grid — always 3 col */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .service-btn { padding: 12px 6px; }
  .service-btn-icon { font-size: 20px; }
  .service-btn-name { font-size: 12px; }
  .service-btn-price { font-size: 10px; }
}

/* QR block — centered on mobile */
@media (max-width: 480px) {
  .qr-block { flex-direction: column; align-items: center; text-align: center; }
  .qr-info { text-align: center; }
}

/* Share buttons full width on mobile */
@media (max-width: 480px) {
  .share-block { flex-direction: column; }
  .btn-whatsapp, .btn-copy { width: 100%; justify-content: center; }
}

/* Section h2 labels */
.grave-page h2 {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: rgba(196,155,57,0.65);
  letter-spacing: 4px;
  text-align: center;
  margin: 0 0 20px;
  text-transform: uppercase;
}

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}
.photo-thumb {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* ── ORDER FORM QUANTITY ROW ── */
.qty-row, [id="qty-input"] {
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Force the +/- row to never wrap */
div:has(> #qty-input) {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
}
div:has(> #qty-input) button {
  width: 44px !important;
  height: 44px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
div:has(> #qty-input) input {
  flex: 1 !important;
  min-width: 0 !important;
  text-align: center !important;
}

/* ── SERVICES GRID TEXT FIX ── */
.service-btn-name {
  font-size: 11px !important;
  line-height: 1.3 !important;
  text-align: center !important;
  word-break: break-word !important;
}
.service-btn-price {
  font-size: 9px !important;
  text-align: center !important;
  white-space: nowrap !important;
}
.service-btn-icon { font-size: 18px !important; }

/* ── GRAVE MAP HEIGHT ── */
#grave-map {
  width: 100% !important;
  height: 260px !important;
  min-height: 260px !important;
  display: block !important;
  border-radius: 12px !important;
}

/* ── GRAVE HERO PHOTO FIX ── */
.grave-hero img.grave-photo,
.grave-hero .grave-photo {
  width: 100px !important;
  height: 100px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid rgba(196,155,57,0.4) !important;
  box-shadow: 0 0 0 6px rgba(196,155,57,0.08), 0 8px 32px rgba(0,0,0,0.4) !important;
  margin: 0 auto 20px !important;
  display: block !important;
}

/* ── TICKER FONT + SPEED ── */
.ticker-item {
  font-family: 'Cinzel', 'Amiri', serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #FFE566 !important;
  letter-spacing: 1.5px !important;
  cursor: pointer !important;
}
.ticker-item:hover {
  color: #F0C830 !important;
  text-shadow: 0 0 20px rgba(240,200,48,0.6) !important;
}

/* ══ FINAL AUTHORITY — HERO + SHRINE + MAP ══ */
.wm-hero {
  position: relative !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  overflow: visible !important;
}
.wm-shrine-bg {
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  background: url('/storage/site/shrine-hero.jpg') center center / cover no-repeat !important;
  background-attachment: scroll !important;
  z-index: 0 !important;
  min-height: 100% !important;
}
.wm-hero-overlay {
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  background: linear-gradient(180deg, rgba(10,6,20,0.5) 0%, rgba(10,6,20,0.75) 60%, rgba(10,6,20,0.97) 100%) !important;
  z-index: 1 !important;
}
.wm-hero-content {
  position: relative !important;
  z-index: 2 !important;
}
@media (max-width: 768px) {
  .wm-hero { min-height: 70vh !important; }
  .wm-shrine-bg { background-attachment: scroll !important; }
  #home-map { height: 320px !important; position: relative !important; width: 100% !important; }
  .wm-map-wrap { height: 320px !important; position: relative !important; }
}

/* ══ TICKER FINAL ══ */
.ticker-item, a.ticker-item {
  font-family: 'Cinzel', serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #FFE566 !important;
  letter-spacing: 1px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  padding: 0 24px !important;
  transition: color 0.2s !important;
}
a.ticker-item:hover {
  color: #ffffff !important;
  text-shadow: 0 0 16px rgba(255,220,80,0.6) !important;
}
.ticker-sep {
  font-family: 'Cinzel', serif !important;
  font-size: 13px !important;
  color: rgba(255,180,60,0.6) !important;
  padding: 0 8px !important;
}

/* ══ TICKER ABSOLUTE FINAL ══ */
.ticker-item, a.ticker-item, span.ticker-item {
  font-family: 'Amiri', serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #FFE566 !important;
  letter-spacing: 1px !important;
  padding: 0 20px !important;
  text-decoration: none !important;
  display: inline-block !important;
  line-height: 48px !important;
}
.ticker-sep {
  font-family: 'Amiri', serif !important;
  font-size: 14px !important;
  color: rgba(255,180,60,0.6) !important;
  padding: 0 8px !important;
  display: inline-block !important;
  line-height: 48px !important;
}

/* ══ HERO + MAP EMERGENCY RESTORE ══ */
.wm-hero {
  position: relative !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  overflow: visible !important;
}
.wm-shrine-bg {
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  background: url('/storage/site/shrine-hero.jpg') center center / cover no-repeat !important;
  background-attachment: scroll !important;
  z-index: 0 !important;
}
.wm-hero-overlay {
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  background: linear-gradient(180deg, rgba(10,6,20,0.5) 0%, rgba(10,6,20,0.75) 60%, rgba(10,6,20,0.97) 100%) !important;
  z-index: 1 !important;
}
.wm-hero-content { position: relative !important; z-index: 2 !important; }
.wm-map-wrap { height: 460px !important; position: relative !important; }
#home-map { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; }
@media (max-width: 768px) {
  .wm-hero { min-height: 70vh !important; }
  .wm-map-wrap { height: 320px !important; }
  #home-map { height: 320px !important; position: relative !important; }
}

/* ══ FINAL FIXES ══ */
/* Hero content visible */
.wm-hero-content {
  position: relative !important;
  z-index: 2 !important;
  padding-top: 80px !important;
}
.wm-search-zone {
  padding: 3rem 2rem 2.5rem !important;
}

/* Map */
.wm-map-wrap { height: 460px !important; position: relative !important; overflow: hidden !important; }
#home-map { width: 100% !important; height: 460px !important; }

/* Ticker font - force Amiri */
.ticker-item, span.ticker-item, a.ticker-item {
  font-family: 'Amiri', 'Arial', sans-serif !important;
  font-size: 20px !important;
  color: #FFE566 !important;
}

/* Hero title restore */
.wm-title {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-size: clamp(3rem, 7vw, 5.6rem) !important;
  color: #ffffff !important;
  margin-bottom: 16px !important;
}
.wm-eyebrow, .wm-subtitle {
  display: block !important;
  visibility: visible !important;
}

/* Ticker font absolute override */
#ticker-inner .ticker-item,
#ticker-inner span,
#ticker-inner a {
  font-family: 'Amiri', serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #FFE566 !important;
}

/* Ticker text stroke for readability */
#ticker-inner .ticker-item,
#ticker-inner span,
#ticker-inner a {
  text-shadow: 0 0 8px rgba(0,0,0,0.9), 0 1px 3px rgba(0,0,0,1), -1px 0 2px rgba(0,0,0,0.8), 1px 0 2px rgba(0,0,0,0.8) !important;
}

/* ── AD CARD ── */
.wm-ad-card {
  background: linear-gradient(135deg, rgba(196,155,57,0.06) 0%, rgba(10,6,20,0.85) 100%) !important;
  border: 1px solid rgba(196,155,57,0.2) !important;
  border-radius: 16px !important;
  padding: 16px 20px !important;
  margin: 16px 48px !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  position: relative !important;
  overflow: hidden !important;
}
@media (max-width: 768px) {
  .wm-ad-card { margin: 12px 16px !important; }
}

/* ── AD STRIP STYLING ── */
.wm-ad-strip {
  margin: 0 48px 8px !important;
  background: linear-gradient(135deg, rgba(196,155,57,0.06) 0%, rgba(10,6,20,0.85) 100%) !important;
  border: 1px solid rgba(196,155,57,0.2) !important;
  border-radius: 16px !important;
  padding: 14px 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  position: relative !important;
}
.wm-ad-tag {
  font-family: 'Cinzel', serif !important;
  font-size: 9px !important;
  color: rgba(196,155,57,0.45) !important;
  letter-spacing: 2px !important;
  position: absolute !important;
  top: 6px !important;
  left: 12px !important;
}
.wm-ad-item {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  text-decoration: none !important;
  flex: 1 !important;
}
.wm-ad-item img {
  width: 52px !important;
  height: 52px !important;
  border-radius: 10px !important;
  object-fit: cover !important;
  border: 1px solid rgba(196,155,57,0.2) !important;
  flex-shrink: 0 !important;
}
.wm-ad-text h4 {
  font-family: 'Amiri', serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.90) !important;
  margin: 0 0 4px !important;
}
.wm-ad-text p {
  font-family: 'Amiri', serif !important;
  font-size: 13px !important;
  color: rgba(255,255,255,0.50) !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}
.wm-ad-wa {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(37,211,102,0.15) !important;
  border: 1px solid rgba(37,211,102,0.35) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  flex-shrink: 0 !important;
  margin-right: auto !important;
}
@media (max-width: 768px) {
  .wm-ad-strip { margin: 0 12px 8px !important; }
}

/* ── LOGO PROTRUDE OVER NAV ── */
.nav-logo {
  grid-column: 2 !important;
  position: relative !important;
  z-index: 10 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.nav-logo img {
  height: 80px !important;
  width: auto !important;
  display: block !important;
  filter: drop-shadow(0 4px 16px rgba(196,155,57,0.4)) !important;
  transition: filter 0.3s !important;
  margin-top: -20px !important;
}
.nav-logo img:hover {
  filter: drop-shadow(0 6px 24px rgba(196,155,57,0.7)) !important;
}

/* ── LOGO PROTRUDE V2 ── */
nav.site-nav .nav-logo img,
.nav-logo img {
  height: 110px !important;
  width: auto !important;
  margin-top: -30px !important;
  margin-bottom: -10px !important;
  filter: drop-shadow(0 4px 20px rgba(196,155,57,0.5)) !important;
  position: relative !important;
  z-index: 100 !important;
}
nav.site-nav {
  overflow: visible !important;
}
#site-header-inner {
  overflow: visible !important;
}

/* ── LOGO MEDALLION ── */
nav.site-nav .nav-logo img,
.nav-logo img {
  height: 140px !important;
  width: auto !important;
  margin-top: -45px !important;
  margin-bottom: -20px !important;
  filter: drop-shadow(0 6px 24px rgba(196,155,57,0.6)) drop-shadow(0 2px 8px rgba(0,0,0,0.8)) !important;
  position: relative !important;
  z-index: 9999 !important;
}
nav.site-nav,
#site-header,
#site-header-inner {
  overflow: visible !important;
}
@media (max-width: 768px) {
  .nav-logo img {
    height: 90px !important;
    margin-top: -25px !important;
    margin-bottom: -10px !important;
  }
}

/* ── LOGO PROTRUDE DOWN INTO HERO ── */
nav.site-nav .nav-logo img,
.nav-logo img {
  height: 160px !important;
  width: auto !important;
  margin-top: 0 !important;
  margin-bottom: -60px !important;
  filter: drop-shadow(0 8px 32px rgba(196,155,57,0.7)) drop-shadow(0 2px 12px rgba(0,0,0,0.9)) !important;
  position: relative !important;
  z-index: 9999 !important;
}
nav.site-nav {
  overflow: visible !important;
  align-items: flex-start !important;
  padding-top: 14px !important;
}
#site-header,
#site-header-inner {
  overflow: visible !important;
}

/* ── LOGO DOMINANT ── */
nav.site-nav .nav-logo img,
.nav-logo img {
  height: 220px !important;
  width: auto !important;
  margin-top: 0 !important;
  margin-bottom: -100px !important;
  filter: 
    drop-shadow(0 0 40px rgba(196,155,57,0.8))
    drop-shadow(0 0 80px rgba(196,155,57,0.4))
    drop-shadow(0 8px 32px rgba(0,0,0,1))
    drop-shadow(0 16px 48px rgba(0,0,0,0.9)) !important;
  position: relative !important;
  z-index: 9999 !important;
}

/* ── LOGO PINNED DOMINANT ── */
nav.site-nav .nav-logo img,
.nav-logo img {
  height: 280px !important;
  width: auto !important;
  margin-top: -80px !important;
  margin-bottom: -120px !important;
  filter: 
    drop-shadow(0 0 50px rgba(196,155,57,0.9))
    drop-shadow(0 0 100px rgba(196,155,57,0.5))
    drop-shadow(0 12px 40px rgba(0,0,0,1))
    drop-shadow(0 24px 60px rgba(0,0,0,0.95)) !important;
  position: relative !important;
  z-index: 9999 !important;
}

/* ── NAV TEXT EFFECTS ── */
nav.site-nav .nav-links a {
  text-shadow: 
    0 1px 4px rgba(0,0,0,0.9),
    0 2px 8px rgba(0,0,0,0.7) !important;
}
nav.site-nav .nav-links a:hover {
  text-shadow: 
    0 0 12px rgba(196,155,57,0.6),
    0 1px 4px rgba(0,0,0,0.9) !important;
}

/* ── LOGO ALWAYS VISIBLE ── */
nav.site-nav .nav-logo img,
.nav-logo img {
  filter: 
    drop-shadow(0 0 2px rgba(0,0,0,1))
    drop-shadow(0 0 4px rgba(0,0,0,1))
    drop-shadow(0 0 8px rgba(0,0,0,0.95))
    drop-shadow(0 0 60px rgba(196,155,57,0.8))
    drop-shadow(0 0 120px rgba(196,155,57,0.4)) !important;
}

/* ── TICKER LINKS CLICKABLE ── */
#site-header { pointer-events: none !important; }
#site-header-inner { pointer-events: auto !important; }
.ticker-bar { pointer-events: auto !important; }
#ticker-inner { pointer-events: auto !important; }
#ticker-inner a.ticker-item { 
  pointer-events: auto !important;
  position: relative !important;
  z-index: 99999 !important;
}


/* ── MOBILE NAV FINAL CLEAN ── */
@media (max-width: 768px) {
  nav.site-nav {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    padding: 0 10px !important;
    height: 64px !important;
    overflow: visible !important;
  }
  .nav-links {
    grid-column: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 4px !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
  .nav-links a {
    font-family: 'Amiri', serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,0.85) !important;
    padding: 5px 10px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(196,155,57,0.3) !important;
    background: rgba(196,155,57,0.08) !important;
    white-space: nowrap !important;
    text-decoration: none !important;
  }
  .nav-logo {
    grid-column: 2 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .nav-logo img {
    height: 44px !important;
    width: auto !important;
  }
  .nav-spacer {
    grid-column: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }
  .nav-login-btn {
    font-family: 'Amiri', serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,0.85) !important;
    padding: 5px 10px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(196,155,57,0.3) !important;
    background: rgba(196,155,57,0.08) !important;
    white-space: nowrap !important;
    text-decoration: none !important;
  }
}

/* ── NAV FINAL v23 ── */
@media (max-width: 768px) {
  nav.site-nav {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 10px !important;
    height: 64px !important;
    overflow: visible !important;
  }
  .nav-links {
    display: flex !important;
    flex-direction: row !important;
    gap: 4px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    z-index: 2 !important;
    position: relative !important;
  }
  .nav-logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1 !important;
    pointer-events: auto !important;
  }
  .nav-spacer {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    z-index: 2 !important;
    position: relative !important;
  }
}

/* ── NAV LOGO IMG FIX v24 ── */
@media (max-width: 768px) {
  .nav-logo img {
    height: 44px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
  }
}

/* ── NAV LOGO TOUCH v26 ── */

/* ── SEARCH BUTTON MOBILE FIX v29 ── */
@media (max-width: 480px) {
  .wm-search {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    flex-direction: row !important;
    overflow: hidden !important;
  }
  .wm-search input {
    flex: 1 !important;
    min-width: 0 !important;
    width: 0 !important;
  }
  .wm-search button {
    flex-shrink: 0 !important;
    padding: 14px 16px !important;
    font-size: 14px !important;
    display: block !important;
  }
}

/* ── SEARCH BUTTON STYLE FIX v30 ── */
@media (max-width: 480px) {
  .wm-search {
    direction: rtl !important;
  }
  .wm-search button {
    background: linear-gradient(135deg, #C49B39, #8B6914) !important;
    color: #0a0614 !important;
    font-family: var(--font-ar) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 14px 18px !important;
    border: none !important;
    border-radius: 0 14px 14px 0 !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
  }
  .wm-search input {
    border-radius: 14px 0 0 14px !important;
    text-align: right !important;
  }
}

/* ── SEARCH BUTTON POSITION FIX v31 ── */
@media (max-width: 480px) {
  .wm-search {
    flex-direction: row-reverse !important;
  }
  .wm-search button {
    border-radius: 14px 0 0 14px !important;
  }
  .wm-search input {
    border-radius: 0 14px 14px 0 !important;
  }
}
