/* Puja Map 2026 - dark-only mobile app UI. Night-sky indigo, zari gold, sindoor red. */
:root {
  color-scheme: dark;
  --night: #120E2B; --night2: #0C0920; --surface: #1B1642; --raise: #261F58; --raise2: #31287A;
  --line: rgba(255,255,255,.09); --line2: rgba(255,255,255,.16);
  --ink: #F7F0E1; --mut: #B7AEDC; --dim: #877DBB;
  --zari: #F6B93B; --zari-ink: #2A1B00; --sindoor: #F05A47; --ok: #3DDC97;
  --blue: #6AA3FF; --green: #3DDC97;
  /* map palette (the SVG data refers to these names) */
  --river: #123B5E; --rd: #2F2868; --rdo: #1B1646;
  --rl: 28px; --rm: 20px; --rs: 14px;
  --nav-h: 66px; --sb: env(safe-area-inset-bottom, 0px); --st: env(safe-area-inset-top, 0px);
  --font: "Anek Bangla", "Hind Siliguri", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --alpona: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none' stroke='white' stroke-width='1'%3E%3Ccircle cx='32' cy='32' r='16'/%3E%3Ccircle cx='0' cy='32' r='16'/%3E%3Ccircle cx='64' cy='32' r='16'/%3E%3Ccircle cx='32' cy='0' r='16'/%3E%3Ccircle cx='32' cy='64' r='16'/%3E%3Ccircle cx='32' cy='32' r='2.5' fill='white'/%3E%3C/svg%3E");
}
html.big { font-size: 112%; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; background: var(--night2); }
body { font: 400 15px/1.5 var(--font); color: var(--ink); overscroll-behavior: none; -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }
body.sheet-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--zari); outline-offset: 2px; border-radius: 8px; }
.ic { width: 1.2em; height: 1.2em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.star .ic, .chip.gold .ic, .badge.gold .ic { fill: currentColor; }
.muted { color: var(--mut); } .fine { font-size: 12.5px; color: var(--dim); line-height: 1.5; margin-top: 8px; } .fine.lg { font-size: 13.5px; color: var(--mut); }
.fine.foot { text-align: center; margin: 22px 0 6px; } .fine.note { margin-top: 14px; }
.dotc { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; } .dotc.lg { width: 14px; height: 14px; }

/* ---------- app frame ---------- */
#app { position: relative; height: 100dvh; max-width: 480px; margin: 0 auto; overflow: hidden; background: var(--night); box-shadow: 0 0 0 1px var(--line); }
@media (min-width: 560px) { body { background: var(--night2) var(--alpona); background-size: 64px 64px; background-blend-mode: soft-light; } #app { border-radius: 28px; height: min(100dvh - 32px, 940px); margin-top: 16px; } }
.view { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; display: none; padding-bottom: calc(var(--nav-h) + var(--sb) + 20px); scrollbar-width: none; overscroll-behavior: contain; }
.view::-webkit-scrollbar { display: none; }
.view.active { display: block; }
.view.map { padding: 0; overflow: hidden; bottom: calc(var(--nav-h) + var(--sb)); }
.pad { padding: 4px 16px 0; }
.vhead { position: sticky; top: 0; z-index: 6; padding: calc(var(--st) + 12px) 16px 10px; background: rgba(18,14,43,.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.vh-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vh-row h1 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.vh-r { display: flex; align-items: center; gap: 8px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; background: var(--raise); border: 1px solid var(--line2); font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; text-align: center; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--zari); color: var(--zari-ink); border-color: transparent; }
.btn.on { background: rgba(61,220,151,.14); color: #7DF2BD; border-color: rgba(61,220,151,.4); }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; } .btn.wide { width: 100%; }
.btn.off, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; } .btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--raise); border: 1px solid var(--line); color: var(--ink); flex: none; }
.icon-btn.sm { width: 34px; height: 34px; } .icon-btn.on { background: var(--zari); color: var(--zari-ink); } .icon-btn[disabled] { opacity: .35; pointer-events: none; }
.link { display: inline-flex; align-items: center; gap: 5px; color: var(--zari); font-weight: 700; font-size: 14px; cursor: pointer; } .link.danger { color: #FF8A7A; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.seg button { padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--mut); min-height: 34px; }
.seg button.on { background: var(--zari); color: var(--zari-ink); } .seg.big { display: flex; } .seg.big button { flex: 1; min-height: 46px; font-size: 16px; }
.seg.wide { display: flex; margin: 8px 0 0; } .seg.wide button { flex: 1; } .seg i { font-style: normal; opacity: .7; margin-left: 4px; }
.pill-row { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; } .pill-row::-webkit-scrollbar { display: none; }
.pill, .chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--mut); white-space: nowrap; }
.pill.on, .chip.on { background: var(--ink); color: var(--night); border-color: transparent; } .pill i { font-style: normal; opacity: .65; font-size: 12.5px; }
.chip.gold.on { background: var(--zari); color: var(--zari-ink); } .chips.wrap { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip.on .dotc { box-shadow: 0 0 0 2px var(--night); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--raise); color: var(--mut); }
.badge.gold { background: rgba(246,185,59,.16); color: var(--zari); } .badge.ok { background: rgba(61,220,151,.15); color: #7DF2BD; }
.num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--c, #ccc); color: #15102E; font-weight: 800; font-size: 15px; flex: none; }
.num.lg { width: 54px; height: 54px; font-size: 19px; } .num .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.wx-pill { display: inline-flex; align-items: center; gap: 5px; min-height: 42px; padding: 0 12px 0 8px; border-radius: 999px; background: var(--raise); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.wx-pill .ic { width: 22px; height: 22px; margin-left: 4px; } .wx-pill .wxi { width: 24px; height: 24px; }
.lang button { min-width: 44px; }
.empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 34px 20px; color: var(--mut); }
.empty .ic { width: 36px; height: 36px; color: var(--dim); } .empty b { color: var(--ink); font-size: 17px; } .empty.big { padding: 26px 12px 14px; }
.empty .row, .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; } .row-end { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.sk { border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.14), rgba(255,255,255,.06)); background-size: 200% 100%; animation: sk 1.4s linear infinite; margin: 8px 0; }
.sk-l { height: 14px; width: 40%; } .sk-xl { height: 70px; width: 70%; } .sk-m { height: 54px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Home ---------- */
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hh-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(145deg, var(--raise2), var(--raise)); color: var(--zari); border: 1px solid var(--line2); flex: none; }
.logo .ic { width: 26px; height: 26px; }
.hh-hi { font-size: 21px; font-weight: 800; line-height: 1.2; } .hh-sub { font-size: 13px; color: var(--mut); }
.block { margin-top: 22px; } .block-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.block-h.stack { flex-direction: column; align-items: flex-start; gap: 2px; } .block-h.stack .cd { text-align: left; font-size: 13.5px; }
.block-h h2 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; } .block-h .cd { font-size: 12.5px; color: var(--zari); font-weight: 700; text-align: right; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rm); padding: 16px; }
.wx-hero, .wxs-top { position: relative; margin-top: 8px; padding: 16px; border-radius: var(--rl); color: #fff; overflow: hidden; cursor: pointer; isolation: isolate; background: linear-gradient(160deg, #171445, #2A2570); }
.wx-hero::before, .wxs-top::before { content: ""; position: absolute; inset: 0; background: var(--alpona); background-size: 64px 64px; opacity: .07; z-index: -1; }
.sky-day { background: linear-gradient(160deg, #1F4CA3, #3E7BDA); } .sky-night { background: linear-gradient(160deg, #171445, #2B2679); } .sky-cloud { background: linear-gradient(160deg, #3A4880, #5A6AA0); }
.sky-night-cloud { background: linear-gradient(160deg, #1F2150, #3A3B74); } .sky-rain { background: linear-gradient(160deg, #1F3159, #3C5584); } .sky-storm { background: linear-gradient(160deg, #1A1838, #45386E); } .sky-fog { background: linear-gradient(160deg, #474C78, #6E7399); }
.wx-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; opacity: .92; } .wx-loc { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; } .wx-upd.off { color: #FFD28A; }
.wx-main { display: flex; align-items: center; gap: 12px; margin-top: 6px; } .wx-temp { font-size: 58px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.wx-cond { display: grid; gap: 1px; margin-left: auto; text-align: right; } .wx-cond b { font-size: 17px; } .wx-cond span { font-size: 13px; opacity: .85; }
.wx-adv { margin-top: 10px; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; background: rgba(8,5,30,.34); border-left: 4px solid var(--ok); }
.wx-adv.tone-warn { border-color: var(--zari); } .wx-adv.tone-bad { border-color: var(--sindoor); } .wx-adv.tone-mid { border-color: #9FB7FF; }
.wx-hours { display: flex; gap: 4px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; } .wx-hours::-webkit-scrollbar { display: none; }
.wx-hours li { flex: 1 0 52px; display: grid; justify-items: center; gap: 2px; padding: 8px 2px; border-radius: 14px; font-size: 12.5px; }
.wx-hours li:first-child { background: rgba(255,255,255,.14); } .h-t { opacity: .85; font-size: 12px; white-space: nowrap; } .wx-hours b { font-size: 15px; } .h-p { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; color: #BFD6FF; min-height: 16px; }
.h-p .ic { width: 11px; height: 11px; } .wxi { display: block; flex: none; }
.wx-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; } .wx-chips li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(8,5,30,.3); font-size: 12.5px; } .wx-chips .ic { width: 14px; height: 14px; }
.wx-fail { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .wx-fail div { display: grid; flex: 1; min-width: 150px; } .wx-fail span { font-size: 13px; opacity: .85; }
.rail { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scroll-padding: 0 16px; scroll-snap-type: x proximity; scrollbar-width: none; } .rail::-webkit-scrollbar { display: none; }
.rl { position: relative; flex: 0 0 132px; scroll-snap-align: start; padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.rl.now { border-color: var(--zari); background: linear-gradient(180deg, rgba(246,185,59,.14), var(--surface)); } .rl.next { border-color: var(--line2); } .rl.past { opacity: .55; }
.rl-top { min-height: 22px; } .rl-date { font-size: 12.5px; color: var(--mut); } .rl-name { font-size: 19px; font-weight: 800; line-height: 1.2; } .rl-cl { font-size: 12px; color: var(--mut); line-height: 1.3; min-height: 32px; }
.rl-crowd { display: flex; gap: 3px; margin-top: 4px; } .rl-crowd i { width: 100%; max-width: 26px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.14); }
.rl-crowd.lv1 i:nth-child(-n+1), .rl-crowd.lv2 i:nth-child(-n+2) { background: var(--zari); } .rl-crowd.lv3 i { background: var(--sindoor); } .rl-crowd.lv2 i:nth-child(-n+2) { background: #FF9F43; }
.rl-wx { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 13px; font-weight: 700; } .rl-wx em { font-style: normal; color: #9FC4FF; font-size: 12px; display: inline-flex; align-items: center; gap: 1px; } .rl-wx em .ic { width: 11px; height: 11px; }
.rl-wx.none { font-weight: 500; color: var(--dim); font-size: 12px; } .rl-flag { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--zari); color: var(--zari-ink); } .rl-flag.soft { background: var(--raise2); color: var(--ink); }
.mh { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 22px; padding: 16px; border-radius: var(--rl); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.mh.live { border-color: rgba(240,90,71,.6); background: linear-gradient(180deg, rgba(240,90,71,.14), var(--surface)); }
.mh-ic { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: var(--raise); color: var(--zari); } .mh-ic .ic { width: 24px; height: 24px; }
.mh-st { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--mut); } .mh h3 { font-size: 19px; font-weight: 800; } .mh p { font-size: 13.5px; color: var(--mut); } .mh .mh-line { color: var(--ink); margin-top: 4px; }
.mh-act { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); display: inline-block; } .mh.live .live-dot, .live-tag .live-dot { background: var(--sindoor); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(240,90,71,.6); } 100% { box-shadow: 0 0 0 10px rgba(240,90,71,0); } }
.hscroll { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scroll-padding: 0 16px; scroll-snap-type: x proximity; scrollbar-width: none; } .hscroll::-webkit-scrollbar { display: none; }
.fcard { flex: 0 0 170px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 14px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); background-image: linear-gradient(165deg, color-mix(in srgb, var(--c) 26%, transparent), transparent 62%); }
.fcard b { font-size: 16px; line-height: 1.3; font-weight: 700; } .fc-m { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--mut); } .fc-z { font-size: 12px; color: var(--dim); margin-top: auto; padding-top: 6px; }
.plcard { flex: 0 0 200px; scroll-snap-align: start; display: grid; gap: 6px; text-align: left; padding: 14px 14px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c); }
.plcard b { font-size: 16px; line-height: 1.3; } .plcard span { font-size: 13px; color: var(--mut); } .plcard em { font-style: normal; font-size: 13px; color: var(--zari); font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
.qa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .qa-b { display: grid; justify-items: center; gap: 8px; padding: 16px 6px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; text-align: center; line-height: 1.25; }
.qa-b .ic { width: 24px; height: 24px; color: var(--zari); } .qa-b.sos .ic { color: var(--sindoor); } .qa-b.sos { border-color: rgba(240,90,71,.35); }
.support { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 14px; border-radius: var(--rl); background: linear-gradient(120deg, rgba(246,185,59,.16), rgba(240,90,71,.12)); border: 1px solid rgba(246,185,59,.28); }
.support div:nth-child(2) { display: grid; flex: 1; min-width: 0; } .support b { font-size: 15.5px; } .support span { font-size: 13px; color: var(--mut); line-height: 1.4; }
.sp-ic { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--night); color: var(--sindoor); flex: none; } .support.lg { flex-wrap: wrap; margin-top: 22px; } .support.lg .btn { width: 100%; }

/* ---------- Explore ---------- */
.search-row { display: flex; align-items: center; gap: 10px; } .search-row .search { flex: 1; margin-top: 0; }
.search { position: relative; display: flex; align-items: center; margin-top: 12px; } .search .ic { position: absolute; left: 14px; color: var(--dim); pointer-events: none; }
.search input { width: 100%; min-height: 48px; padding: 0 16px 0 44px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line2); outline: none; font-size: 16px; }
.search input:focus { border-color: var(--zari); } .search input::placeholder { color: var(--dim); } .search input::-webkit-search-cancel-button { filter: invert(1); }
.ex-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 2px; font-size: 13px; color: var(--mut); }
.prog { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; font-size: 12.5px; } .bar { width: 90px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; } .bar i { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.list { padding: 6px 16px 0; display: grid; gap: 10px; }
.pcard { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 12px 12px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.pcard.vis { opacity: .66; } .pc-main { min-width: 0; display: grid; gap: 3px; } .pc-name { font-size: 16.5px; font-weight: 700; line-height: 1.3; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.star { color: var(--zari); display: inline-flex; } .star .ic { width: 15px; height: 15px; }
.pc-meta, .pc-food { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mut); min-width: 0; } .pc-meta .ic, .pc-food .ic { width: 14px; height: 14px; color: var(--dim); }
.pc-meta em { font-style: normal; color: var(--dim); margin-left: auto; padding-left: 8px; font-size: 12px; text-align: right; } .pc-meta span, .pc-food span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-add { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--raise); border: 1px solid var(--line2); color: var(--ink); } .pc-add.on { background: var(--zari); color: var(--zari-ink); border-color: transparent; }

/* ---------- Map ---------- */
.map-wrap { position: absolute; inset: 0; background: #0D0A22; touch-action: none; cursor: grab; } .map-wrap:active { cursor: grabbing; }
#map { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-select: none; }
#map .rlab { font-size: 11.5px; font-weight: 700; fill: #7E75B4; letter-spacing: .04em; paint-order: stroke; stroke: #0D0A22; stroke-width: 3px; pointer-events: none; }
#map .mline { filter: url(#glow); } #map .stn-m { font-size: 13px; font-weight: 900; fill: #fff; pointer-events: none; }
#map .slab { display: none; font-size: 14px; font-weight: 700; fill: #E8E2FF; paint-order: stroke; stroke: #0D0A22; stroke-width: 4px; pointer-events: none; } #map.z-sl .slab { display: block; }
#map .mk { cursor: pointer; outline: none; } #map .mk .dot { stroke: #0D0A22; stroke-width: 3.5; } #map .mk.on .dot { stroke: #fff; stroke-width: 5; } #map .mk.vis .dot { opacity: .6; }
#map .halo { fill: none; stroke: #fff; stroke-opacity: .5; stroke-width: 2; } #map .mn { font-size: 17px; font-weight: 800; fill: #15102E; pointer-events: none; }
#map .fam { fill: var(--zari); stroke: #0D0A22; stroke-width: 2.5; pointer-events: none; } #map .ord circle { fill: var(--zari); stroke: #0D0A22; stroke-width: 2.5; } #map .ord text { font-size: 12px; font-weight: 900; fill: #2A1B00; pointer-events: none; }
#map .plab { display: none; font-size: 14.5px; font-weight: 700; fill: #fff; paint-order: stroke; stroke: #0D0A22; stroke-width: 5px; stroke-linejoin: round; pointer-events: none; }
#map.z-pl .plab, #map.z-fam .plab.fam, #map .plab.always { display: block; } #map .rline polyline { animation: dash 1.2s linear infinite; } @keyframes dash { to { stroke-dashoffset: -26; } }
.map-top { position: absolute; top: 0; left: 0; right: 0; display: flex; gap: 8px; overflow-x: auto; padding: calc(var(--st) + 12px) 12px 18px; scrollbar-width: none; background: linear-gradient(180deg, rgba(13,10,34,.92), rgba(13,10,34,0)); } .map-top::-webkit-scrollbar { display: none; }
.map-top .pill { background: rgba(27,22,66,.94); backdrop-filter: blur(8px); } .map-top .pill.on { background: var(--ink); color: var(--night); }
.map-ctrl { position: absolute; right: 12px; top: calc(var(--st) + 76px); display: grid; gap: 8px; } .map-ctrl .icon-btn { background: rgba(27,22,66,.94); box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.map-legend { position: absolute; left: 12px; top: calc(var(--st) + 76px); max-width: 230px; padding: 12px 14px; border-radius: 18px; background: rgba(27,22,66,.96); border: 1px solid var(--line2); font-size: 13px; }
.map-legend li { display: flex; align-items: center; gap: 8px; padding: 3px 0; } .map-legend p { margin-top: 6px; font-size: 11.5px; color: var(--dim); } .bar { } .map-legend .bar { width: 22px; height: 5px; border-radius: 3px; display: inline-block; } .map-legend .bar.gold { background: var(--zari); }
.map-legend .sq { width: 14px; height: 14px; border-radius: 4px; border: 3px solid var(--blue); display: inline-block; }
.map-card { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 14px; border-radius: 24px; background: rgba(27,22,66,.97); border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(0,0,0,.5); display: grid; gap: 12px; }
.mc-head { display: flex; align-items: center; gap: 12px; } .mc-txt { display: grid; flex: 1; min-width: 0; } .mc-txt b { font-size: 17px; line-height: 1.3; } .mc-txt span { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--mut); } .mc-txt .ic { width: 14px; height: 14px; }
.mc-acts { display: flex; gap: 8px; } .mc-acts .btn { flex: 1; }

/* ---------- Route ---------- */
.route-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rl); padding: 16px; margin-top: 16px; }
.stops { display: grid; gap: 8px; } .stop { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 8px; border-radius: 16px; background: var(--night); border: 1px solid var(--line); border-left: 4px solid var(--c); }
.ord { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--zari); color: var(--zari-ink); font-weight: 800; font-size: 14px; flex: none; }
.st-main { flex: 1; min-width: 0; display: grid; cursor: pointer; } .st-main b { font-size: 15.5px; line-height: 1.3; } .st-main span { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--mut); } .st-main .ic { width: 13px; height: 13px; }
.st-ctl { display: flex; gap: 4px; }
.field { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; align-items: center; margin-top: 14px; font-size: 13px; color: var(--mut); } .field select { grid-column: 1 / -1; min-height: 46px; padding: 0 12px; border-radius: 14px; background: var(--night); border: 1px solid var(--line2); font-size: 15px; }
.route-acts { display: grid; gap: 10px; margin-top: 14px; } .route-acts .row { margin: 0; justify-content: stretch; } .route-acts .row .btn { flex: 1; }
.planner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rl); padding: 16px; } .planner .seg { margin-bottom: 14px; } .planner .seg button { flex: 1; } .planner .seg { display: flex; }
.plist { display: grid; gap: 8px; } .plrow { display: flex; align-items: center; gap: 10px; text-align: left; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c); } .plrow b { flex: 1; font-size: 15.5px; } .plrow span { font-size: 13px; color: var(--mut); }
.ai { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rl); padding: 16px; } .ai-row { display: flex; gap: 8px; margin-top: 10px; } .ai-row input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border-radius: 999px; background: var(--night); border: 1px solid var(--line2); outline: none; }
.ai-out { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--night); font-size: 14.5px; white-space: pre-wrap; line-height: 1.55; }
.passport { display: flex; align-items: center; gap: 18px; margin: 18px 0 14px; padding: 16px; border-radius: var(--rl); background: var(--surface); border: 1px solid var(--line); } .ring { width: 96px; height: 96px; flex: none; }
.ring circle { fill: none; stroke-width: 9; } .ring .rb { stroke: rgba(255,255,255,.1); } .ring .rf { stroke: var(--ok); stroke-linecap: round; } .pp-t { display: grid; } .pp-t b { font-size: 38px; line-height: 1; } .pp-t small { font-size: 18px; color: var(--mut); font-weight: 600; } .pp-t span { color: var(--mut); font-size: 14px; }
.vlist { display: grid; gap: 8px; margin-bottom: 14px; } .vlist li { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); } .vlist li > div { flex: 1; display: grid; min-width: 0; cursor: pointer; } .vlist b { font-size: 15.5px; } .vlist span:not(.num) { font-size: 12.5px; color: var(--mut); }

/* ---------- More ---------- */
.card .block-h h2 { font-size: 17px; } .block.card { margin-top: 16px; }
.sos-list { display: grid; gap: 8px; } .sos-list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--night); border: 1px solid var(--line); font-weight: 600; } .sos-list a .ic { color: var(--sindoor); } .sos-list span { flex: 1; } .sos-list b { font-size: 19px; color: var(--ink); }
.block.card.sos { border-color: rgba(240,90,71,.3); } .block.card.sos .block-h h2 .ic { color: var(--sindoor); }
.acc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 8px; overflow: hidden; } .acc summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; } .acc summary::-webkit-details-marker { display: none; }
.acc summary .ic { transition: transform .2s; color: var(--dim); } .acc[open] summary .ic { transform: rotate(90deg); } .acc ul { display: grid; gap: 10px; padding: 0 16px 16px; font-size: 14.5px; color: var(--mut); line-height: 1.55; } .acc li { padding-left: 14px; position: relative; } .acc li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--zari); }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-weight: 600; } .card .btn.wide { margin-top: 10px; }
.vcode { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--night); font-size: 13px; color: var(--mut); } .vcode code { color: var(--zari); font-weight: 700; letter-spacing: .04em; }

/* ---------- bottom nav ---------- */
#nav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; height: calc(var(--nav-h) + var(--sb)); padding: 6px 6px var(--sb); background: rgba(21,16,52,.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.nb { position: relative; flex: 1; display: grid; justify-items: center; align-content: center; gap: 3px; border-radius: 16px; color: var(--dim); font-size: 12px; font-weight: 700; } .nb .ic { width: 24px; height: 24px; }
.nb.on { color: var(--zari); } .nb.on::after { content: ""; position: absolute; top: 2px; width: 22px; height: 3px; border-radius: 2px; background: var(--zari); }
.nbadge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sindoor); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; display: grid; place-items: center; }

/* ---------- sheet ---------- */
.sheet-wrap { position: absolute; inset: 0; z-index: 40; } .sheet-wrap[hidden] { display: none; }
.backdrop { position: absolute; inset: 0; background: rgba(6,4,20,.62); opacity: 0; transition: opacity .25s; } .sheet-wrap.open .backdrop { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86%; display: flex; flex-direction: column; background: var(--surface); border-radius: 28px 28px 0 0; border-top: 1px solid var(--line2); transform: translateY(102%); transition: transform .3s cubic-bezier(.2,.8,.2,1); outline: none; box-shadow: 0 -12px 40px rgba(0,0,0,.45); }
.sheet.tall { height: 86%; } .sheet-wrap.open .sheet { transform: translateY(0); }
.grab { flex: none; padding: 10px 0 8px; display: grid; place-items: center; touch-action: none; } .grab::before { content: ""; width: 44px; height: 5px; border-radius: 3px; background: var(--line2); }
#sheetBody { overflow-y: auto; padding: 0 16px calc(24px + var(--sb)); scrollbar-width: none; overscroll-behavior: contain; } #sheetBody::-webkit-scrollbar { display: none; }
.sh-pad { padding-bottom: 8px; } .sh-pad h2 { font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .sh-pad.center { text-align: center; display: grid; gap: 12px; justify-items: center; } .sh-pad.center h2 { justify-content: center; }
.sh-pad h3 { font-size: 16px; margin: 18px 0 8px; } .sh-pad .btn.wide { margin-top: 0; }
.ps-head { display: flex; align-items: center; gap: 14px; padding: 4px 0 12px; } .ps-title { flex: 1; min-width: 0; } .ps-title h2 { font-size: 21px; font-weight: 800; line-height: 1.25; } .ps-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; font-size: 13px; color: var(--mut); }
.ps-metro { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--night); border: 1px solid var(--line); } .ps-metro .ic { width: 22px; height: 22px; color: var(--blue); } .ps-metro div { display: grid; } .ps-metro span { font-size: 13px; color: var(--mut); }
.ps-primary { display: flex; gap: 8px; margin-top: 12px; } .ps-primary .btn { flex: 1; padding: 0 8px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; } .tile { display: grid; justify-items: center; gap: 5px; padding: 12px 4px; border-radius: 16px; background: var(--raise); border: 1px solid var(--line); font-size: 13px; font-weight: 600; text-align: center; line-height: 1.25; } .tile .ic { width: 22px; height: 22px; color: var(--zari); }
.ps-food { display: flex; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--night); border: 1px solid var(--line); font-size: 14.5px; } .ps-food > .ic { width: 22px; height: 22px; color: var(--zari); margin-top: 2px; } .ps-food small { display: block; color: var(--dim); font-size: 12.5px; margin-top: 2px; } .ps-food .lbl { display: block; font-size: 12px; color: var(--mut); } .mlink { color: var(--zari); font-weight: 700; margin-left: 4px; }
.ps-sec { margin-top: 20px; } .sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; } .sec-h h3 { font-size: 16.5px; font-weight: 800; margin: 0; } .live-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--mut); }
.live-row { display: flex; align-items: center; gap: 14px; } .live-n { font-size: 44px; font-weight: 800; line-height: 1; min-width: 56px; } .live-btns { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; justify-content: flex-end; } .fine.bad { color: #FFB199; }
#tipForm textarea { width: 100%; padding: 12px 14px; border-radius: 16px; background: var(--night); border: 1px solid var(--line2); outline: none; resize: none; font-size: 15px; } #tipForm textarea:focus { border-color: var(--zari); }
.tips { display: grid; gap: 8px; margin-top: 8px; } .tips li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--night); font-size: 14.5px; } .tips li.muted { background: none; padding: 4px 0; } .tips time { color: var(--dim); font-size: 12px; white-space: nowrap; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; background: var(--night); } .photos .muted { grid-column: 1 / -1; }
.notes { display: grid; gap: 8px; } .notes li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--mut); } .notes .ic { width: 16px; height: 16px; margin-top: 3px; color: var(--dim); }
.ps-foot { position: sticky; bottom: calc(-24px - var(--sb)); display: flex; gap: 8px; margin: 22px -16px calc(-24px - var(--sb)); padding: 12px 16px calc(14px + var(--sb)); background: linear-gradient(180deg, rgba(27,22,66,0), var(--surface) 28%); } .ps-foot .btn { flex: 1; padding: 0 8px; }
.wxs-top { margin-top: 0; cursor: default; } .hourly { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; } .hourly::-webkit-scrollbar { display: none; } .hourly li { flex: 0 0 58px; display: grid; justify-items: center; gap: 3px; padding: 8px 2px; border-radius: 14px; background: var(--night); font-size: 12.5px; }
.h-bar { width: 14px; height: 36px; border-radius: 7px; background: rgba(255,255,255,.08); display: flex; align-items: flex-end; overflow: hidden; } .h-bar i { display: block; width: 100%; background: #6AA3FF; border-radius: 7px; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; } .stat-row div { display: grid; padding: 10px 12px; border-radius: 14px; background: var(--night); } .stat-row span { font-size: 12.5px; color: var(--mut); } .stat-row b { font-size: 17px; }
.aqi-card { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: var(--night); } .aqi-card div { display: grid; } .aqi-card span { font-size: 12.5px; color: var(--mut); line-height: 1.4; }
.daylist { display: grid; gap: 6px; } .dr { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--night); } .dr.puja { border: 1px solid rgba(246,185,59,.35); } .dr-d { flex: 1; display: grid; font-size: 14px; } .tag { font-size: 12px; color: var(--zari); font-weight: 700; }
.dr-p { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; color: #9FC4FF; min-width: 52px; } .dr-p .ic { width: 12px; height: 12px; } .dr-t { font-size: 14px; color: var(--mut); white-space: nowrap; } .dr-t b { color: var(--ink); } .dr-soon { font-size: 12.5px; color: var(--dim); text-align: right; max-width: 150px; }
.qr { background: #fff; padding: 12px; border-radius: 18px; display: inline-block; min-height: 224px; min-width: 224px; } .qr img, .qr canvas { display: block; } .quote { color: var(--mut); font-style: italic; font-size: 14px; line-height: 1.5; }

/* ---------- toast + splash ---------- */
#toast { position: absolute; left: 50%; bottom: calc(var(--nav-h) + var(--sb) + 14px); transform: translate(-50%, 16px); z-index: 60; max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--night); font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#splash { position: absolute; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; background: var(--night) var(--alpona); background-size: 64px 64px; transition: opacity .4s, visibility .4s; cursor: pointer; }
#splash::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(246,185,59,.2), transparent 55%), rgba(18,14,43,.9); }
#splash > * { position: relative; } #splash.hide { opacity: 0; visibility: hidden; }
.sp-lamp { width: 112px; height: 112px; color: var(--zari); } .sp-lamp .flame { transform-origin: 50% 90%; animation: flick 1.4s ease-in-out infinite; } @keyframes flick { 0%, 100% { transform: scale(1) rotate(-1deg); } 50% { transform: scale(1.08, 1.14) rotate(1.5deg); } }
#splash h2 { font-size: 34px; font-weight: 800; margin-top: 6px; } #splash p { color: var(--mut); font-size: 15px; } #splash small { color: var(--dim); margin-top: 14px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 360px) { .wx-temp { font-size: 48px; } .tiles { grid-template-columns: repeat(2, 1fr); } .qa { gap: 8px; } }
