:root{
  --red:#7A1E24; --red-d:#5E161B; --ink:#1A1414; --night:#1C1012; --night2:#2A1517;
  --gold:#D9AE5B; --gold-d:#8A6420; --sand:#F6F1E7; --sand2:#EFE8D8; --line:#E5DAC4;
  --muted:#5C5050; --white:#fff; --r:16px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:16px}
body{margin:0;overflow-x:hidden;background:var(--sand);color:var(--ink);font:16px/1.55 Inter,system-ui,sans-serif;-webkit-text-size-adjust:100%}
h1,h2,h3,p{margin:0}
h2{font:400 clamp(28px,4vw,38px)/1.15 Marcellus,serif}
h3{font-size:19px}
a{color:var(--red)}
svg{flex:none}
.wrap{max-width:1200px;margin:0 auto;padding:0 20px}
.muted{color:var(--muted)} .small{font-size:14px}
.eyebrow{font-size:13px;letter-spacing:.14em;font-weight:700;color:var(--gold-d)}
.skip{position:absolute;top:0;inset-inline-start:8px;background:#fff;padding:10px;z-index:9;transform:translateY(-120%)}
.skip:focus{transform:none}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:11px 18px;border-radius:12px;font:600 15px Inter,sans-serif;text-decoration:none;border:1px solid transparent;cursor:pointer}
.btn.lg{padding:15px 26px;font-size:16px}
.btn.red{background:var(--red);color:#FFF7E8}.btn.red:hover{background:var(--red-d)}
.btn.gold{background:var(--gold);color:var(--night);font-weight:700}
.btn.ghost{color:var(--sand);border-color:#5A4446}
.btn.outline{color:var(--gold);border-color:var(--gold)}
.btn.cream{background:#FFF7E8;color:var(--red);font-weight:700}
.btn.outline-cream{background:none;color:#FFF7E8;border-color:#F3DCCB}
.btn.dark{background:var(--night);color:var(--sand)}
.btn.ghostdark{background:#fff;color:var(--ink);border-color:var(--line)}

/* live bar */
.live{background:var(--red);color:#FFF7E8;font-size:14px;padding:10px 20px;display:flex;flex-wrap:wrap;gap:8px 14px;justify-content:center;align-items:center;text-align:center}
.live-tag{background:#FFF7E8;color:var(--red);font-weight:700;font-size:12px;letter-spacing:.08em;padding:3px 8px;border-radius:4px}

/* header */
.top{background:var(--night);color:var(--sand)}
.top-row{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;padding-top:16px;padding-bottom:16px}
.brand{display:flex;align-items:center;gap:10px;color:var(--sand);text-decoration:none;font:22px Marcellus,serif;letter-spacing:.04em}
.pills{display:flex;flex-wrap:wrap;gap:8px}
.pills a{display:flex;align-items:center;gap:8px;min-height:44px;color:var(--sand);background:#2E1C1E;border:1px solid #4A3436;padding:10px 14px;border-radius:999px;font-weight:600;font-size:14px;text-decoration:none}
.pills a:hover{border-color:var(--gold)}
.pills svg,.tiles svg,.help svg{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pills svg{width:16px;height:16px;stroke:var(--gold)}
.top-cta{display:flex;gap:10px;flex-wrap:wrap}
@media (max-width:760px){.pills{order:3;width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.pills a{white-space:nowrap}}

/* hero */
.hero{background:var(--night);color:var(--sand);text-align:center;padding:64px 0 104px;
  background-image:radial-gradient(ellipse at 50% 120%,rgba(122,30,36,.55),transparent 60%)}
.hero-in{max-width:860px;display:flex;flex-direction:column;align-items:center;gap:20px}
.ar{font:700 clamp(26px,4vw,34px)/1.5 Amiri,serif;color:var(--gold)}
.hero h1{font:400 clamp(38px,6vw,72px)/1.05 Marcellus,serif}
.hero-date{font-size:20px;color:#E9DFCC}
.hero-count{font-size:14px;font-weight:700;letter-spacing:.06em;color:var(--gold);min-height:1em}
.hero-lead{font-size:17px;color:#BFB2A0;max-width:620px}
.hero-btns{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:6px}

/* jump tiles */
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:-44px;position:relative}
.tiles a{background:#fff;border-radius:var(--r);padding:16px;display:flex;align-items:center;gap:14px;text-decoration:none;color:var(--ink);box-shadow:0 6px 24px rgba(28,16,18,.12)}
.tiles a:hover{box-shadow:0 8px 28px rgba(28,16,18,.2)}
.ti{width:48px;height:48px;border-radius:12px;background:#F6EBD3;display:flex;align-items:center;justify-content:center;flex:none}
.tiles svg{width:24px;height:24px;stroke:var(--red)}
.tiles b{display:block;font-size:16px}.tiles small{display:block;font-size:13px;color:var(--muted)}
@media (max-width:480px){.tiles{grid-template-columns:1fr 1fr}.tiles a{flex-direction:column;align-items:flex-start;gap:10px}}

/* sections */
.sec{padding-top:80px;display:flex;flex-direction:column;gap:20px}
.sec-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:8px 16px}
.split{flex-direction:row;flex-wrap:wrap;gap:40px}
.split>div{flex:1 1 320px;display:flex;flex-direction:column;gap:12px}
.timeline{flex:2 1 480px;list-style:none;margin:0;padding:0;border-inline-start:2px solid #D9C9A8}
.timeline li{padding:0 0 24px;padding-inline-start:28px;position:relative}
.timeline li:last-child{padding-bottom:0}
.timeline li::before{content:"";position:absolute;inset-inline-start:-8px;top:5px;width:14px;height:14px;border-radius:50%;background:var(--gold)}
.timeline li.procession::before{background:var(--red)}
.timeline li.ziyarat::before{background:var(--night)}
.timeline .t{font-weight:700;color:var(--red)}
.timeline .n{font-size:19px;font-weight:600;margin-top:2px}

.salat{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}
.salat div{background:#fff;border-radius:14px;padding:16px;text-align:center;display:flex;flex-direction:column;gap:2px}
.salat span{font-size:13px;font-weight:600;color:var(--muted)}
.salat b{font-size:24px}
.salat .main b{color:var(--red)}

.cards3{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.card{background:#fff;border-radius:var(--r);padding:20px;display:flex;flex-direction:column;gap:6px}
.card.row{flex-direction:row;align-items:center;gap:16px}
.avatar{width:60px;height:60px;border-radius:50%;background:#E9DFCC;flex:none}
.card .nm{font-weight:700;font-size:17px}
.tag{align-self:flex-start;font-size:12px;font-weight:700;letter-spacing:.06em;padding:4px 8px;border-radius:4px;text-transform:uppercase}

/* map */
.legend{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:14px}
.legend span{display:flex;align-items:center;gap:6px}
.legend i{width:12px;height:12px;border-radius:50%;display:inline-block}
.legend i.dash{border-radius:0;height:0;width:18px;border-top:3px dotted var(--red)}
.map{height:min(70vh,520px);border-radius:20px;border:1px solid #D9C9A8;background:var(--sand2);z-index:0}
.pin{display:flex;align-items:center;justify-content:center;border-radius:50%;border:2px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.35);color:#fff;font:700 12px Inter,sans-serif}
.leaflet-container{font-family:Inter,sans-serif}
.leaflet-popup-content{font-size:14px;margin:12px 14px}

/* stalls */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips button{font:600 14px Inter,sans-serif;min-height:44px;background:#fff;color:var(--ink);border:1px solid #D9C9A8;padding:10px 18px;border-radius:999px;cursor:pointer}
.chips button[aria-pressed="true"]{background:var(--night);color:var(--sand);border-color:var(--night)}
.panel{background:#fff;border-radius:20px;padding:24px;display:flex;flex-direction:column;gap:14px}
.grid-scroll{overflow-x:auto;padding-bottom:4px}
.stallgrid{min-width:680px;display:grid;gap:6px}
.stallgrid .h{font-size:12px;color:var(--muted);text-align:center}
.stallgrid .rl{font-weight:700;font-size:13px;color:var(--muted);display:flex;align-items:center;justify-content:center}
.stallgrid .free{height:52px;border:1.5px dashed #C8B994;border-radius:6px}
.stallgrid button{height:52px;border:0;border-radius:6px;font:700 13px Inter,sans-serif;cursor:pointer}
.stallgrid button.dim{opacity:.25}
.charities{flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px 28px;padding:18px 24px}
#charity-list{display:flex;flex-wrap:wrap;gap:8px 24px;font-weight:600;color:var(--muted)}
.link-strong{font-weight:700;align-self:flex-start}

/* volunteer band */
.band{background:var(--red);color:#FFF7E8;border-radius:24px;padding:44px 32px;display:flex;flex-wrap:wrap;gap:24px;align-items:center;justify-content:space-between;
  background-image:radial-gradient(ellipse at 100% 0,rgba(217,174,91,.25),transparent 55%)}
.band>div:first-child{flex:1 1 420px;display:flex;flex-direction:column;gap:10px}
.band p{color:#F3DCCB;font-size:17px}
.band-btns{display:flex;flex-wrap:wrap;gap:12px}

/* help */
.helpgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.help{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:22px;display:flex;flex-direction:column;gap:8px;text-align:start;color:var(--ink);text-decoration:none;font:inherit;cursor:pointer}
.help:hover{border-color:var(--red)}
.help svg{width:28px;height:28px;stroke:var(--red)}
.help b{font-size:18px}.help span{font-size:14px;color:var(--muted)}
.emerg{text-align:center;font-size:15px;color:var(--muted)}.emerg strong{color:var(--red)}

/* lost */
.lost{flex-direction:row;flex-wrap:wrap;padding-bottom:80px}
.lost .panel{flex:1 1 400px}
.rows{list-style:none;margin:0;padding:0}
.rows li{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid #EEE5D3}
.rows li span{font-size:14px;color:var(--muted);text-align:right}
.darkpanel{background:var(--night2);color:var(--sand)}
.darkpanel p{color:#D8CCBA;font-size:15px}
.alert{border:1px solid #5A4446;border-radius:12px;padding:14px 16px;font-size:15px;color:#E9DFCC}
.alert+.alert{margin-top:8px}
.lost .btn{align-self:flex-start}

/* footer */
.foot{background:var(--night);color:#BFB2A0;padding:36px 0;font-size:14px}
.foot-row{display:flex;flex-wrap:wrap;gap:14px 40px;justify-content:space-between;align-items:center}
.foot strong{color:var(--sand)} .foot a{color:var(--gold)}
.brandtxt{font:20px Marcellus,serif;color:var(--sand)}

/* dialog */
dialog{border:0;border-radius:20px;padding:0;width:min(560px,calc(100% - 24px));max-height:calc(100% - 24px);color:var(--ink)}
dialog::backdrop{background:rgba(28,16,18,.6)}
#dlg-form{padding:22px;display:flex;flex-direction:column;gap:14px}
.dlg-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.dlg-head h2{font-size:26px}
.x{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:#fff;font-size:24px;line-height:1;cursor:pointer;color:var(--ink)}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-weight:600;font-size:14px}
.field input,.field textarea,.field select{font:16px Inter,sans-serif;padding:12px;border:1px solid #CDBFA5;border-radius:10px;background:#fff;color:var(--ink);min-height:44px}
.field textarea{min-height:84px;resize:vertical}
.note{background:#FBEFE0;border-radius:10px;padding:12px 14px;font-size:14px}
.note.red{background:#F8E1E1;color:#5E161B}
.seg{display:flex;gap:8px}.seg label{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid #CDBFA5;border-radius:10px;min-height:44px;cursor:pointer;font-weight:600}
.dlg-msg{font-size:14px;color:var(--red);min-height:1em}
.dlg-actions{display:flex;gap:10px;justify-content:flex-end}

/* ios tip + toast */
.ios-tip{position:fixed;left:12px;right:12px;bottom:12px;z-index:50;background:var(--night);color:var(--sand);border-radius:16px;padding:14px 56px 14px 16px;box-shadow:0 8px 30px rgba(0,0,0,.3);font-size:14px}
.ios-tip svg{width:16px;height:16px;vertical-align:-3px;fill:none;stroke:var(--gold);stroke-width:2}
.ios-tip .x{position:absolute;right:8px;top:8px;background:none;color:var(--sand);border-color:#5A4446}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:60;background:var(--night);color:var(--sand);padding:12px 18px;border-radius:12px;font-size:14px;max-width:calc(100% - 32px);box-shadow:0 8px 30px rgba(0,0,0,.3)}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* language picker */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.lang{display:flex;align-items:center;gap:6px;min-height:44px;padding:0 10px;border:1px solid #5A4446;border-radius:12px;color:var(--sand);cursor:pointer}
.lang svg{width:18px;height:18px;fill:none;stroke:var(--gold);stroke-width:1.8}
.lang select{background:transparent;color:var(--sand);border:0;font:600 14px Inter,sans-serif;min-height:42px;cursor:pointer}
.lang select option{color:var(--ink)}

/* right-to-left languages */
html[lang="ur"] body{font-family:"Noto Nastaliq Urdu",Inter,serif;line-height:2.1}
html[lang="ar"] body{font-family:Amiri,Inter,serif;font-size:17px}
html[lang="fa"] body{font-family:Vazirmatn,Inter,sans-serif}
html[lang="ur"] h1,html[lang="ur"] h2,html[lang="ur"] .brandtxt{font-family:"Noto Nastaliq Urdu",serif;line-height:1.9}
html[lang="ar"] h1,html[lang="ar"] h2{font-family:Amiri,serif;font-weight:700}
html[lang="fa"] h1,html[lang="fa"] h2{font-family:Vazirmatn,sans-serif;font-weight:700}
html[lang="ur"] .btn,html[lang="ur"] .pills a,html[lang="ur"] .chips button,html[lang="ur"] .field input,html[lang="ur"] .field textarea{font-family:"Noto Nastaliq Urdu",serif;line-height:1.9}
html[lang="ar"] .btn,html[lang="ar"] .pills a,html[lang="ar"] .chips button{font-family:Amiri,serif;font-size:16px}
html[lang="fa"] .btn,html[lang="fa"] .pills a,html[lang="fa"] .chips button,html[lang="fa"] .field input,html[lang="fa"] .field textarea{font-family:Vazirmatn,sans-serif}
html[dir="rtl"] .arrow{display:inline-block;transform:scaleX(-1)}
html[dir="rtl"] .eyebrow{letter-spacing:0}
.dlg-head h2{line-height:1.4}

/* map layer chips */
.layers button{display:flex;align-items:center;gap:8px}
.layers i{width:12px;height:12px;border-radius:50%;display:inline-block;flex:none}
.layers i.dash{border-radius:0;height:0;width:18px;border-top:3px dotted var(--red)}
.layers button[aria-pressed="true"]{background:#fff;color:var(--ink);border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.layers button[aria-pressed="false"]{opacity:.55}
.livepin{width:22px;height:22px;border-radius:50%;background:#C0392B;border:3px solid #fff;box-shadow:0 0 0 0 rgba(192,57,43,.6);animation:pulse 1.8s infinite}
@keyframes pulse{70%{box-shadow:0 0 0 18px rgba(192,57,43,0)}100%{box-shadow:0 0 0 0 rgba(192,57,43,0)}}

/* tabarruk */
.tab{flex-direction:row;flex-wrap:wrap;gap:28px;align-items:center;padding:32px}
.tab-text{flex:2 1 420px;display:flex;flex-direction:column;gap:14px}
.tab-btns{display:flex;flex-wrap:wrap;gap:10px}
.steps{flex:1 1 260px;list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.steps li{display:flex;align-items:center;gap:12px;background:var(--sand);border-radius:12px;padding:12px 14px}
.steps span{width:32px;height:32px;border-radius:50%;background:var(--red);color:#FFF7E8;display:flex;align-items:center;justify-content:center;font-weight:700;flex:none}
.checks{display:flex;flex-wrap:wrap;gap:8px}
.checks label,.tick{display:flex;align-items:center;gap:8px;border:1px solid #CDBFA5;border-radius:10px;min-height:44px;padding:8px 12px;cursor:pointer;font-weight:500}
.tick{align-items:flex-start}
.checks input,.tick input,.seg input{width:20px;height:20px;accent-color:var(--red);flex:none}
.qrbox{display:flex;flex-direction:column;align-items:center;gap:10px;padding:12px;background:var(--sand);border-radius:14px}
.qrbox img,.qrbox svg{width:220px;height:220px;background:#fff;padding:10px;border-radius:10px}
