:root{
  --bg:#F7F4EE;--ink:#2A2723;--muted:#6B655C;--muted2:#55524B;--sage:#EAF0E8;--sage-acc:#4E6B5A;--sage-dk:#3B5446;--sage-ink:#22332A;
  --card:#FFFFFF;--line:#ECE6DA;--hair:#F0EBE1;--deal:#F6EBDD;--amber:#8A4B14;
  --gen:#5E7D6A;--sis:#C46A8E;--bro:#5B7FB8;
  --serif:'Newsreader',Georgia,'Times New Roman',serif;--sans:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px);
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:var(--bg);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
body{overscroll-behavior-y:none}
a{color:var(--sage-dk)}
button{font:inherit;color:inherit}
.s{font-family:var(--serif);font-weight:500}
.ic{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
#app{max-width:560px;margin:0 auto;height:100%;display:flex;flex-direction:column;position:relative;background:var(--bg)}
#view{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:14px;padding-bottom:24px;outline:none}
.tabs{display:flex;justify-content:space-around;background:var(--bg);border-top:1px solid #E8E2D6;padding:2px 8px calc(10px + var(--safe-b))}
.tab{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:60px;min-height:48px;padding:8px 0 0;font-size:11px;font-weight:500;text-decoration:none;color:var(--muted)}
.tab .ic{width:24px;height:24px}
.tab.on{color:var(--ink);font-weight:600}

.band{background:var(--sage);border-radius:0 0 30px 30px;padding:calc(14px + var(--safe-t)) 16px 16px;display:flex;flex-direction:column;gap:12px}
.band-top{display:flex;justify-content:space-between;align-items:center;min-height:28px;padding:0 4px}
.logo{height:20px;width:auto;display:block}
.icon-btn{all:unset;cursor:pointer;width:36px;height:36px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:var(--sage-dk)}
.icon-btn:focus-visible,.chip:focus-visible,.btn:focus-visible,.tab:focus-visible,a:focus-visible,button:focus-visible{outline:2px solid var(--sage-acc);outline-offset:2px}
.pad{padding:0 16px;display:flex;flex-direction:column;gap:14px}
.card{background:var(--card);border:1px solid var(--line);border-radius:22px}
.h2{font-family:var(--serif);font-weight:500;font-size:22px;padding:4px 4px 0;margin:0}
.muted{color:var(--muted)}
.small{font-size:12px}
.tiny{font-size:11px}
.row{display:flex;align-items:center;gap:12px}
.between{display:flex;justify-content:space-between;align-items:center}
.list > *{border-bottom:1px solid var(--hair)}
.list > *:last-child{border-bottom:none}
.msq{width:24px;height:24px;border-radius:8px;background:var(--sage);color:var(--sage-dk);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.msq .ic{width:15px;height:15px}
.msq.lg{width:30px;height:30px;border-radius:10px}.msq.lg .ic{width:17px;height:17px}
.ellip{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.notice{font-size:12px;color:var(--muted2);background:#FBF9F4;border:1px dashed #E2DACB;border-radius:16px;padding:10px 12px;line-height:1.4}
.notice b{color:var(--ink)}

/* prayer box */
.pbox-head{display:flex;justify-content:space-between;align-items:flex-end;padding:0 4px;text-decoration:none;color:var(--ink)}
.pbox-kicker{font-size:13px;font-weight:600;color:var(--sage-dk)}
.pbox-name{font-family:var(--serif);font-weight:500;font-size:40px;line-height:1;color:var(--sage-ink)}
.pill-white{height:32px;padding:0 12px;border-radius:16px;background:#fff;display:flex;align-items:center;font-size:13px;font-weight:600;color:var(--sage-dk);white-space:nowrap}
.pbox{background:#fff;border-radius:18px;padding:0 14px}
.grp{display:flex;gap:14px;padding:10px 0;border-bottom:1px solid var(--hair)}
.grp:last-child{border-bottom:none}
.grp-time{width:58px;flex-shrink:0;display:flex;flex-direction:column;padding-top:2px}
.grp-time b{font-size:20px;font-weight:600;line-height:1.1}
.grp-time span{font-size:11px;color:var(--muted2)}
.grp-items{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.mline{display:flex;align-items:center;gap:8px;min-height:24px}
.mline .nm{flex:1;font-size:14px;font-weight:600}
.mline .mn{font-size:12px;color:var(--muted2);white-space:nowrap}
.adhan-line{display:flex;justify-content:space-between;font-size:12px;color:var(--sage-dk);padding:0 4px;gap:6px;flex-wrap:wrap}
.adhan-line b{color:var(--sage-ink);font-weight:600}
.plink{text-decoration:none;color:inherit;display:flex;flex-direction:column;gap:12px}

/* map row */
.maprow{text-decoration:none;color:var(--ink);min-height:52px;padding:0 14px;display:flex;align-items:center;gap:12px;border-radius:18px}
.maprow .mi{width:32px;height:32px;border-radius:10px;background:var(--sage);color:var(--sage-dk);display:flex;align-items:center;justify-content:center}
.mapcard{text-decoration:none;color:var(--ink);overflow:hidden;display:flex}
.mini{position:relative;width:132px;height:100px;background:#EDEAE1;flex-shrink:0}
.mini .pin{position:absolute;width:14px;height:14px;border-radius:7px;border:2px solid #fff}
.mini .me{position:absolute;left:60px;top:44px;width:12px;height:12px;border-radius:6px;background:#4C7BD9;border:2px solid #fff}

/* flyer + deals */
.duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.flyer{all:unset;cursor:pointer;position:relative;height:240px;border-radius:22px;overflow:hidden;padding:14px;display:flex;flex-direction:column;justify-content:space-between;box-sizing:border-box}
.flyer img.bgimg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.flyer .shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 35%,rgba(0,0,0,.62) 100%)}
.flyer .tag{position:relative;align-self:flex-start;font-size:11px;font-weight:600;padding:4px 9px;border-radius:999px;background:#fff}
.flyer .ttl{position:relative;display:flex;flex-direction:column;gap:4px}
.flyer .ttl .s{font-size:24px;line-height:1.05}
.dots{display:flex;gap:4px;margin-top:6px}
.dots i{height:4px;border-radius:2px;display:block}
.deal{flex:1;background:var(--deal);border-radius:22px;padding:12px;display:flex;flex-direction:column;justify-content:space-between;text-decoration:none;color:var(--ink);min-height:114px}
.deal .lbl{font-size:11px;font-weight:600;color:var(--amber);line-height:1.2}
.deal .big{font-family:var(--serif);font-weight:500;font-size:22px;line-height:1.05}
.dot{width:8px;height:8px;border-radius:4px;flex-shrink:0}
.wk{display:flex;align-items:center;gap:12px;min-height:56px;padding:6px 0;text-decoration:none;color:var(--ink)}

/* prayer screen */
.pills{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.pp{all:unset;cursor:pointer;border-radius:16px;padding:8px 0;display:flex;flex-direction:column;align-items:center;gap:1px;min-height:52px;box-sizing:border-box;background:rgba(255,255,255,.45);color:var(--sage-dk)}
.pp span:first-child{font-size:11px;font-weight:600}.pp span:last-child{font-size:15px;font-weight:600}
.pp.on{background:#fff;color:var(--sage-ink);box-shadow:0 1px 4px rgba(42,39,35,.14)}
.daysw{display:flex;gap:6px;justify-content:center}
.chip{all:unset;cursor:pointer;height:32px;padding:0 13px;border-radius:16px;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;background:rgba(255,255,255,.5);color:var(--sage-dk);white-space:nowrap;box-sizing:border-box}
.chip.on{background:#fff;color:var(--sage-ink);box-shadow:0 1px 4px rgba(42,39,35,.12)}
.chip.light{background:#fff;border:1px solid var(--line)}
.chip.light.on{background:var(--sage-dk);color:#fff;border-color:var(--sage-dk)}
.chips{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 4px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.igrp{overflow:hidden}
.igrp-h{display:flex;align-items:baseline;gap:8px;padding:12px 16px 4px}
.igrp-h .s{font-size:26px;line-height:1}
.mrow{text-decoration:none;color:var(--ink);display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:56px;padding:6px 16px;border-top:1px solid var(--hair)}
.dir{display:flex;align-items:center;gap:4px;font-size:12px;font-weight:600;color:var(--sage-dk);white-space:nowrap}
.dir .ic{width:16px;height:16px}

/* generic */
.btn{all:unset;cursor:pointer;box-sizing:border-box;min-height:44px;padding:0 16px;border-radius:14px;background:var(--sage-dk);color:#fff;font-weight:600;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-align:center}
.btn.ghost{background:#fff;color:var(--sage-dk);border:1px solid var(--line)}
.btn.wide{width:100%}
.soon{display:flex;flex-direction:column;gap:6px;padding:16px}
.soon .badge{align-self:flex-start;font-size:11px;font-weight:600;color:var(--amber);background:var(--deal);border-radius:999px;padding:4px 9px}
.empty{padding:22px 18px;text-align:center;display:flex;flex-direction:column;gap:6px;align-items:center}
.ecard{display:flex;gap:12px;padding:12px;text-decoration:none;color:var(--ink)}
.ecard .thumb{width:84px;height:104px;border-radius:14px;flex-shrink:0;overflow:hidden;background:var(--sage);display:flex;align-items:flex-end;padding:8px;box-sizing:border-box}
.ecard .thumb img{width:100%;height:100%;object-fit:cover;margin:-8px;width:calc(100% + 16px);height:calc(100% + 16px)}
.atag{font-size:11px;font-weight:600;border-radius:999px;padding:3px 8px;display:inline-block}
.atag.General{background:#E3ECE2;color:#3B5446}.atag.Sisters{background:#F6E1E8;color:#8A3A5C}.atag.Brothers{background:#DFE7F3;color:#2F4F84}
.atag.umma{background:var(--sage-dk);color:#fff}

/* page header (non-home) */
.ph{display:flex;flex-direction:column;gap:2px;padding:0 4px}
.ph .k{font-size:12px;font-weight:600;color:var(--sage-dk)}
.ph .t{font-family:var(--serif);font-weight:500;font-size:32px;line-height:1.1;color:var(--sage-ink)}
.backbar{display:flex;align-items:center;gap:8px}

/* map */
#mapwrap{position:relative;flex:1;min-height:420px;margin:0 16px;border-radius:22px;overflow:hidden;border:1px solid var(--line)}
#map{position:absolute;inset:0}
.mcard{position:absolute;left:10px;right:10px;bottom:10px;z-index:500;background:#fff;border-radius:18px;padding:12px 14px;box-shadow:0 4px 18px rgba(42,39,35,.18);display:flex;flex-direction:column;gap:8px}
.leaflet-container{font-family:var(--sans);background:#EDEAE1}
.upin{width:18px;height:18px;border-radius:9px;border:3px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.3)}

/* sheet (welcome, event detail) */
.sheet{position:fixed;inset:0;z-index:1000;background:rgba(34,51,42,.35);display:flex;align-items:flex-end;justify-content:center}
.sheet[hidden]{display:none}
.sheet-in{background:var(--bg);width:100%;max-width:560px;max-height:92%;overflow-y:auto;border-radius:26px 26px 0 0;padding:20px 18px calc(20px + var(--safe-b));display:flex;flex-direction:column;gap:14px}
.sheet-in img.full{width:100%;border-radius:18px;display:block}
.opt{all:unset;cursor:pointer;box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;min-height:48px;padding:0 14px;border-radius:14px;background:#fff;border:1px solid var(--line);font-weight:600;font-size:15px}
.opt.on{border-color:var(--sage-dk);box-shadow:inset 0 0 0 1px var(--sage-dk)}
.opt[disabled]{color:var(--muted);cursor:default}
.kv{display:flex;gap:10px;font-size:14px;align-items:flex-start}
.kv .ic{color:var(--sage-dk);margin-top:1px}
@media (min-width:600px){#app{border-left:1px solid #E8E2D6;border-right:1px solid #E8E2D6}}
a.dir{text-decoration:none}
.mcard[hidden]{display:none}

.leaflet-tooltip.evlbl{background:#fff;border:1px solid rgba(46,74,58,.25);border-radius:8px;padding:2px 7px;font:600 11px/1.3 system-ui,-apple-system,sans-serif;color:#2E4A3A;box-shadow:0 1px 4px rgba(0,0,0,.12);white-space:nowrap}
.leaflet-tooltip.evlbl:before{display:none}
#mcard .small{white-space:pre-line}

/* ---------- time-of-day sky on the home band ---------- */
.band.sky{position:relative;overflow:hidden;flex-shrink:0;isolation:isolate;transition:background .6s;--fg:#22332A;--fg2:#3B5446;--fgb:#3B5446;color:var(--fg2)}
.band.sky>*:not(.skyart):not(.skyland){position:relative;z-index:1}
.skyart{position:absolute;left:0;top:0;width:100%;height:190px;z-index:0;pointer-events:none;color:var(--fg2)}
.band.sky .pbox-kicker{color:var(--fg2)}
.band.sky .pbox-name{color:var(--fg)}
.band.sky .adhan-line,.band.sky .adhan-line span{color:var(--fgb)}
.band.sky .adhan-line b{color:inherit;font-weight:700}
.skylbl{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--fg2);opacity:.75}
.band.sky .logo{transition:filter .4s}
.band.sky.dark .logo{filter:brightness(0) invert(1)}
.skyart .tw{animation:tw 3.6s ease-in-out infinite}
@keyframes tw{0%,100%{opacity:.25}50%{opacity:1}}
.skyart .spin{animation:spin 60s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.skyart .tw,.skyart .spin{animation:none}}

/* phase palettes (shared) */
.sky.ph-night{background:linear-gradient(180deg,#0E1830 0%,#1B2B48 55%,#26385A 100%)}
.sky.ph-dawn{background:linear-gradient(180deg,#27355A 0%,#6F6597 45%,#E5AE9B 100%)}
.sky.ph-morning{background:linear-gradient(180deg,#CFE4F0 0%,#E3EEE9 60%,#EAF0E8 100%)}
.sky.ph-midday{background:linear-gradient(180deg,#B8DAF0 0%,#DCEDF5 55%,#EAF2EE 100%)}
.sky.ph-afternoon{background:linear-gradient(180deg,#D3E4EE 0%,#EEE6D2 60%,#F3DEC0 100%)}
.sky.ph-sunset{background:linear-gradient(180deg,#3E3A6E 0%,#B5607A 45%,#F0A673 100%)}
.sky.ph-dusk{background:linear-gradient(180deg,#151F3D 0%,#3A3466 55%,#6A4F86 100%)}
.sky.ph-night,.sky.ph-dusk,.sky.ph-dawn,.sky.ph-sunset{--fg:#fff;--fg2:rgba(255,255,255,.84);--fgb:rgba(255,255,255,.9)}
.sky.ph-dawn{--fgb:#3A2E4A}
.sky.ph-sunset{--fgb:#3D2230}

/* style 3 (celestial): jewel tones + faint geometric star tiling */
.sky.s-celestial::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.12;background-size:44px 44px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cg fill='none' stroke='%23fff' stroke-width='.8'%3E%3Crect x='14' y='14' width='16' height='16'/%3E%3Crect x='14' y='14' width='16' height='16' transform='rotate(45 22 22)'/%3E%3Cpath d='M0 22h6M38 22h6M22 0v6M22 38v6'/%3E%3C/g%3E%3C/svg%3E")}
.sky.s-celestial.ph-morning::before,.sky.s-celestial.ph-midday::before,.sky.s-celestial.ph-afternoon::before{opacity:.35;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cg fill='none' stroke='%23C9962E' stroke-width='.7'%3E%3Crect x='14' y='14' width='16' height='16'/%3E%3Crect x='14' y='14' width='16' height='16' transform='rotate(45 22 22)'/%3E%3Cpath d='M0 22h6M38 22h6M22 0v6M22 38v6'/%3E%3C/g%3E%3C/svg%3E")}
.sky.s-celestial.ph-night{background:linear-gradient(180deg,#0B1633 0%,#132552 60%,#1C3266 100%)}
.sky.s-celestial.ph-dusk{background:linear-gradient(180deg,#121B3E 0%,#2B2A63 60%,#4A3B7A 100%)}
.sky.s-celestial.ph-morning{background:linear-gradient(180deg,#F3EAD6 0%,#EEF0E2 100%)}
.sky.s-celestial.ph-midday{background:linear-gradient(180deg,#F6EED9 0%,#EDF1E5 100%)}
.sky.s-celestial.ph-afternoon{background:linear-gradient(180deg,#F5E4C4 0%,#F2EAD8 100%)}

/* style 2 (horizon): the card sits on the hills */
.sky.s-horizon .skyart{height:200px}
.band.sky .pbox{color:var(--ink)}
.skyland{position:absolute;left:0;bottom:0;width:100%;height:86px;z-index:0;pointer-events:none}
.sky.s-horizon{--fgb:rgba(255,255,255,.92)}
.sky.s-horizon .adhan-line{text-shadow:0 1px 2px rgba(0,0,0,.25)}

/* ---- Nov 21 edits: countdowns, day chips, flyer popup, twin tile, map day pins ---- */
.flyer .ftop,.evtile .ftop{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.flyer .whenchip{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;background:rgba(255,255,255,.94);color:#22332A;border-radius:10px;padding:4px 8px 4px 4px}
.flyer .whenchip:not(:has(.daychip)){padding-left:8px}
.flyer .frow{display:flex;align-items:center;justify-content:space-between;gap:8px}
.flyer .frow .dots{background:rgba(0,0,0,.28);padding:5px 7px;border-radius:999px;color:#fff}
.fnext{all:unset;cursor:pointer;width:30px;height:30px;border-radius:15px;background:rgba(255,255,255,.94);color:#22332A;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 4px rgba(0,0,0,.18)}
.fnext .ic{width:16px;height:16px}

/* day chips */
.daychip{display:inline-flex;align-items:center;height:18px;padding:0 7px;border-radius:9px;font-size:11px;font-weight:700;letter-spacing:.01em;margin-right:6px;vertical-align:1px}
.daychip.today{background:var(--sage-dk);color:#fff}
.daychip.tomorrow{background:#fff;color:var(--sage-dk);box-shadow:inset 0 0 0 1.5px var(--sage-acc)}
.whenchip .daychip{margin-right:0}
.dayhead{margin:8px 4px 0;font-size:13px;font-weight:600;color:var(--sage-dk);align-self:flex-start}
.dayhead.today{background:var(--sage-dk);color:#fff;padding:4px 11px;border-radius:999px}
.dayhead.tomorrow{background:#fff;color:var(--sage-dk);padding:3px 10px;border-radius:999px;box-shadow:inset 0 0 0 1.5px var(--sage-acc)}

/* countdown badge */
.cd{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;height:24px;padding:0 10px 0 8px;border-radius:12px;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;box-shadow:0 1px 4px rgba(0,0,0,.15)}
.cd .cd-dot{width:7px;height:7px;border-radius:50%;background:currentColor;flex-shrink:0}
.cd-near{background:#fff;color:var(--sage-dk)}
.cd-soon,.cd-now{background:linear-gradient(90deg,#F2994A,#E2485F);color:#fff}
.cd-soon .cd-dot,.cd-now .cd-dot{background:#fff;animation:cdpulse 1.2s ease-in-out infinite}
.cd-now{background:linear-gradient(90deg,#E2485F,#C2186B)}
.cd.sm{height:21px;font-size:11px;padding:0 8px 0 7px;flex-shrink:0}
.cd.lg{height:30px;font-size:14px;padding:0 13px 0 11px;border-radius:15px}
@keyframes cdpulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.7)}}

/* flyer / tile glow when it's close */
.flyer.f-soon,.evtile.f-soon,.flyer.f-now,.evtile.f-now{box-shadow:0 0 0 3px #F2994A,0 6px 22px rgba(226,72,95,.38);animation:hotglow 2.4s ease-in-out infinite}
.flyer.f-near,.evtile.f-near{box-shadow:0 0 0 2px var(--sage-acc)}
@keyframes hotglow{0%,100%{box-shadow:0 0 0 3px #F2994A,0 6px 22px rgba(226,72,95,.32)}50%{box-shadow:0 0 0 3px #E2485F,0 6px 28px rgba(226,72,95,.55)}}
@media (prefers-reduced-motion:reduce){.cd .cd-dot,.flyer,.evtile,.upin{animation:none!important}}

/* second event on the same day (takes the "Add your deal" box) */
.evtile{position:relative;overflow:hidden;padding:10px;justify-content:space-between}
.evtile .bgimg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.evtile .shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05) 20%,rgba(0,0,0,.7) 100%)}
.evtile .lbl2{font-size:11px;font-weight:700;background:rgba(255,255,255,.94);color:#22332A;border-radius:9px;padding:3px 8px}
.evtile .et{position:relative;display:flex;flex-direction:column;gap:2px;font-size:13px;font-weight:600;line-height:1.2}
.evtile .tiny{opacity:.92;font-weight:500}
.ellip2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* this week -> events */
.h2row{display:flex;align-items:flex-end;justify-content:space-between;gap:8px}
.seeall{display:inline-flex;align-items:center;gap:2px;height:30px;padding:0 8px 0 12px;border-radius:15px;background:var(--sage);color:var(--sage-dk);font-size:13px;font-weight:600;text-decoration:none}
.seeall .ic{width:16px;height:16px}
.wk.more{border-top:1px solid var(--line);color:var(--sage-dk)}
.wk.more .mi{width:28px;height:28px;border-radius:9px;background:var(--sage);display:flex;align-items:center;justify-content:center}
.wk.more .mi .ic{width:16px;height:16px}

/* map: today vs tomorrow */
.upin.d-today{width:24px;height:24px;border-radius:12px;box-shadow:0 0 0 4px rgba(59,84,70,.25),0 2px 6px rgba(0,0,0,.35)}
.upin.d-today.p-soon,.upin.d-today.p-now{box-shadow:0 0 0 4px rgba(226,72,95,.35),0 2px 6px rgba(0,0,0,.35);animation:pinpulse 1.6s ease-out infinite}
@keyframes pinpulse{0%{box-shadow:0 0 0 0 rgba(226,72,95,.55),0 2px 6px rgba(0,0,0,.35)}100%{box-shadow:0 0 0 14px rgba(226,72,95,0),0 2px 6px rgba(0,0,0,.35)}}
.upin.d-later{width:14px;height:14px;border-width:2px;opacity:.6}
.leaflet-tooltip.evlbl .dl{font-weight:800;margin-right:5px}
.leaflet-tooltip.evlbl.l-today{background:#3B5446;color:#fff;border-color:#3B5446;font-size:12px;padding:3px 8px}
.leaflet-tooltip.evlbl.l-today.l-hot{background:linear-gradient(90deg,#F2994A,#E2485F);border-color:#E2485F}
.leaflet-tooltip.evlbl.l-tomorrow{background:#fff;color:#2E4A3A;border:1.5px solid #4E6B5A}
.leaflet-tooltip.evlbl.l-tomorrow .dl{color:#4E6B5A}
.leaflet-tooltip.evlbl.l-later{opacity:.72;font-weight:500}
.mlegend{position:absolute;left:10px;top:10px;z-index:500;display:flex;gap:10px;background:rgba(255,255,255,.95);border-radius:12px;padding:6px 10px;font-size:11px;font-weight:600;color:#2E4A3A;box-shadow:0 1px 4px rgba(0,0,0,.15)}
.mlegend span{display:flex;align-items:center;gap:5px}
.mlegend .lg{width:10px;height:10px;border-radius:5px;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.2)}
.mlegend .lg.today{width:12px;height:12px;background:#3B5446}
.mlegend .lg.tomorrow{background:#fff;box-shadow:0 0 0 1.5px #4E6B5A}
.mlegend .lg.later{background:#9AA89E;opacity:.7}
.adhan-line.next1{justify-content:flex-start;font-size:13px}
/* food in the event popup */
.foodbox{display:flex;gap:12px;align-items:center;background:#F6EBDD;border-radius:16px;padding:12px 14px;color:#5A2E08;font-size:14px;line-height:1.4}
.foodbox b{font-weight:800;color:#8A4B14;font-size:15px}
.foodbox .fb-i{width:36px;height:36px;border-radius:18px;background:#E9C48F;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.foodbox .fb-i .ic{width:20px;height:20px}

/* ---- flyer picture + info strip (nothing covers the flyer) ---- */
.flyer.fpic{padding:0;background:#fff;border:1px solid var(--line);justify-content:flex-start}
.flyer.fpic .fimg{position:relative;display:block;flex:1;min-height:0;overflow:hidden;background:#EEE8DD}
.flyer.fpic .fimg img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block}
.flyer.fpic .ffood{position:absolute;right:8px;bottom:8px;width:34px;height:34px;border-radius:17px;box-shadow:0 2px 6px rgba(0,0,0,.25);display:flex}
.flyer.fpic .ffood svg{width:100%;height:100%}
.fstrip{position:relative;display:flex;flex-direction:column;gap:5px;padding:8px 44px 9px 10px;background:#fff;color:var(--ink);border-top:3px solid var(--acc)}
.fstrip .fs1{display:flex;align-items:center;gap:6px;font-size:13px}
.fstrip .fs1 b{font-weight:700}
.fstrip .fs1 .daychip{margin:0}
.fstrip .fday{font-size:12px;font-weight:700;color:var(--sage-dk)}
.fstrip .fs2{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:18px}
.fstrip .faud{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;color:var(--muted2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fstrip .faud i{width:7px;height:7px;border-radius:4px;flex-shrink:0}
.fstrip .dots{color:var(--sage-dk);display:flex;gap:3px;flex-shrink:0}
.fstrip .dots i{height:5px;border-radius:3px;display:block}
.fstrip .fnext{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:30px;height:30px;background:var(--sage);box-shadow:none;color:var(--sage-dk)}
.cd.xs{height:18px;font-size:10.5px;padding:0 7px 0 6px;gap:4px;box-shadow:none}
.cd.xs .cd-dot{width:5px;height:5px}
.cd-near.xs{background:var(--sage);color:var(--sage-dk)}
.flyer.fpic.f-soon,.flyer.fpic.f-now{border-color:transparent}
.flyer.fpic.f-near{border-color:var(--sage-acc)}
.flyer .frow .dots{display:flex;gap:3px}.flyer .frow .dots i{height:5px;border-radius:3px;display:block}

/* ---- food: line under the time + round art ---- */
.fline{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:700;color:#8A4B14;margin-top:3px}
.fline .fl-i{width:18px;height:18px;display:flex}.fline .fl-i svg{width:100%;height:100%}
.fbig{width:38px;height:38px;flex-shrink:0;display:flex}.fbig svg{width:100%;height:100%}
.foodbox .fb-art{width:44px;height:44px;flex-shrink:0;display:flex}.foodbox .fb-art svg{width:100%;height:100%}
.fstrip{padding:8px 42px 8px 10px;gap:4px}
.fstrip .fs1{white-space:nowrap;font-size:12.5px;gap:5px}
.fstrip .fs1 .daychip{height:17px;font-size:10px;padding:0 6px}
.fstrip .fs2{justify-content:flex-start;gap:8px}
.fstrip .ffood2{font-size:11px;font-weight:800;color:#8A4B14;white-space:nowrap}
.fline .fl-i{width:20px;height:20px}
.fbig{width:42px;height:42px}
/* food sticker (design 3) */
.fsticker{display:flex;flex-direction:column;align-items:center;flex-shrink:0;transform:rotate(5deg);align-self:center}
.fsticker .fs-art{width:44px;height:44px;display:flex;filter:drop-shadow(0 2px 3px rgba(90,46,8,.25))}
.fsticker .fs-art svg{width:100%;height:100%}
.fsticker .fs-lbl{margin-top:-8px;position:relative;font-size:9.5px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;color:#fff;background:#C8692A;border-radius:6px;padding:2px 6px;white-space:nowrap}
.ecard .fsticker{align-self:flex-start;margin-top:2px}
.flyer.fpic .fimg img{object-position:center}
/* side event boxes: picture + white strip (no text over the flyer) */
.evtile.pic{padding:0;background:#fff;border:1px solid var(--line);display:flex;flex-direction:column;overflow:hidden}
.evtile.pic .tpic{flex:1;min-height:0;display:block;overflow:hidden;background:#EEE8DD}
.evtile.pic .tpic img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.evtile.pic .tstrip{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px 8px;border-top:3px solid var(--acc);font-size:12px;color:var(--ink);min-height:30px;box-sizing:border-box}
.evtile.pic .tfood{width:22px;height:22px;display:flex;flex-shrink:0}.evtile.pic .tfood svg{width:100%;height:100%}
.evtile.pic.f-soon,.evtile.pic.f-now{border-color:transparent}
.evtile.pic{flex:1 1 0;min-height:0;height:114px}
.evtile.pic .tpic{position:relative;flex:1 1 0;min-height:0}
.evtile.pic .tpic img{position:absolute;inset:0}
.ecard .thumb{padding:0;align-items:stretch}.ecard .thumb img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
/* whole cover visible in small boxes; blurred copy fills the gaps */
.ecard .thumb{position:relative;width:104px;height:108px;padding:0}
.evtile.pic .tpic img.blurfill,.ecard .thumb img.blurfill{position:absolute;inset:-12px;width:calc(100% + 24px);height:calc(100% + 24px);object-fit:cover;filter:blur(10px) saturate(1.1);opacity:.9}
.evtile.pic .tpic img.fit,.ecard .thumb img.fit{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
