﻿/* ==========================================================================
   Offline India map (Scripts/india-map.js) — shared by the public dashboard
   (Summary/Index) and the logged-in dashboard (Home/Index).
   The colour variables are repeated here so the map also works on admin pages
   that don't load public-site.css.
   ========================================================================== */
:root {
    --ps-ink: #0A1526; --ps-green: #5B9B37; --ps-green-d: #2F6B1F; --ps-green-dd: #1F4D14; --ps-green-t: #EAF4E4;
    --ps-sun: #F8BC26; --ps-text: #0F172A; --ps-muted: #475569; --ps-subtle: #64748B; --ps-line: #E2E8F0;
    --ps-line-2: #EEF2F6; --ps-mist: #F6F8FB; --ps-on-dark: #CBD5E1; --ps-on-dark-2: #94A3B8;
    --ps-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ps-font-h: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --ps-ease: cubic-bezier(.16, 1, .3, 1);
}
/* Offline India map (Scripts/india-map.js) */
.ps-mapcard__body { display: flex; flex-wrap: wrap; gap: 24px; padding: 20px 24px 24px; }
.ps-imap { position: relative; flex: 999 1 460px; min-width: 0; border-radius: 18px; background: radial-gradient(ellipse at 50% 42%, #FFFFFF 0%, #F3F7FB 55%, #E9F0F7 100%); border: 1px solid var(--ps-line); overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.ps-imap.is-zoomed { touch-action: none; cursor: grab; }
.ps-imap.is-dragging { cursor: grabbing; }
.ps-imap__svg { display: block; width: 100%; height: auto; max-height: 640px; }
.ps-imap__land { filter: drop-shadow(0 0 0.6px rgba(15,23,42,.55)) drop-shadow(0 3px 8px rgba(15,23,42,.14)); }
.ps-imap__state { stroke: #FFFFFF; stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .45s ease, opacity .3s, filter .2s; }
.ps-imap__state:hover { stroke: var(--ps-ink); stroke-width: 1.5; filter: brightness(.94); }
.ps-imap__state.is-active { stroke: var(--ps-ink); stroke-width: 2; }
.ps-imap.has-active .ps-imap__state:not(.is-active) { opacity: .55; }
.ps-imap__labels { display: none; pointer-events: none; }
.ps-imap__labels text { fill: #334155; font-family: var(--ps-font); font-weight: 600; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 2.5px; }
.ps-imap.show-labels .ps-imap__labels { display: inline; }
.ps-imap__pin { cursor: pointer; animation: psFadeIn .45s ease both; }
.ps-imap__pin text { fill: #FFFFFF; font-family: var(--ps-font); font-weight: 800; pointer-events: none; }
.ps-imap__pin:hover circle:last-of-type { stroke: var(--ps-ink); }
.ps-imap__ctrls { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: #FFFFFF; border: 1px solid var(--ps-line); box-shadow: 0 10px 24px -12px rgba(15,23,42,.35); }
.ps-imap__ctrls button { width: 38px; height: 38px; border: 0; border-bottom: 1px solid var(--ps-line-2); background: #FFFFFF; color: var(--ps-text); font: 700 18px/1 var(--ps-font); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ps-imap__ctrls button:last-child { border-bottom: 0; }
.ps-imap__ctrls button:hover { background: var(--ps-green-t); color: var(--ps-green-dd); }
.ps-imap__tip { position: absolute; left: 0; top: 0; z-index: 5; min-width: 200px; max-width: 300px; padding: 12px 14px; border-radius: 14px; background: rgba(10,21,38,.96); color: #FFFFFF; font-family: var(--ps-font); font-size: 12.5px; line-height: 1.45; box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); pointer-events: none; opacity: 0; transition: opacity .15s; }
.ps-imap__tip.is-on { opacity: 1; }
.ps-imap__tip-title { font-family: var(--ps-font-h); font-weight: 800; font-size: 14px; }
.ps-imap__tip-big { margin: 4px 0 6px; font-family: var(--ps-font-h); font-size: 20px; font-weight: 800; color: var(--ps-sun); }
.ps-imap__tip-big span { font-family: var(--ps-font); font-size: 12px; font-weight: 600; color: var(--ps-on-dark); }
.ps-imap__tip-row { display: flex; align-items: center; gap: 8px; padding: 2px 0; color: #E2E8F0; }
.ps-imap__tip-row i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ps-imap__tip-row b { margin-left: auto; padding-left: 10px; color: #FFFFFF; }
.ps-imap__tip-foot { margin-top: 6px; font-size: 11.5px; color: var(--ps-on-dark-2); }
.ps-imap__hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: rgba(10,21,38,.88); color: #FFFFFF; font-family: var(--ps-font); font-size: 12.5px; font-weight: 600; pointer-events: none; opacity: 0; transition: opacity .25s; }
.ps-imap__hint.is-on { opacity: 1; }
.ps-imap__note { position: absolute; left: 12px; bottom: 10px; font-family: var(--ps-font); font-size: 11px; color: var(--ps-subtle); pointer-events: none; }
.ps-imap__side { flex: 1 1 260px; min-width: 0; }
.ps-imap__side-h { margin: 0 0 10px; font-family: var(--ps-font); font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--ps-subtle); }
.ps-imap__side-h:not(:first-child) { margin-top: 22px; }
.ps-imap__chips { display: flex; flex-direction: column; gap: 6px; }
.ps-imap__chip { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 1px solid var(--ps-line); border-radius: 12px; background: #FFFFFF; color: var(--ps-text); font: 600 13px/1.3 var(--ps-font); text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s; }
.ps-imap__chip i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ps-imap__chip b { margin-left: auto; font-weight: 800; color: var(--ps-muted); }
.ps-imap__chip:hover { border-color: #BFD8B0; }
.ps-imap__chip.is-on { border-color: var(--ps-ink); background: var(--ps-mist); box-shadow: inset 0 0 0 1px var(--ps-ink); }
.ps-imap__rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ps-imap__rank li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 13px; color: var(--ps-text); }
.ps-imap__rank-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-imap__rank b { font-weight: 800; }
.ps-imap__rank-bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--ps-line-2); overflow: hidden; }
.ps-imap__rank-bar span { display: block; height: 100%; border-radius: 999px; background: var(--ps-green); animation: psGrowW .9s var(--ps-ease) both; transform-origin: left; }
.ps-imap__empty { color: var(--ps-subtle); }
.ps-imap__scale { display: grid; grid-template-columns: repeat(6, 1fr); height: 10px; border-radius: 999px; overflow: hidden; }
.ps-imap__scale-lbl { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--ps-subtle); }
.ps-imap__nodata { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11.5px; color: var(--ps-subtle); }
.ps-imap__nodata i { width: 14px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(15,23,42,.12); }
@keyframes psFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes psGrowW { from { transform: scaleX(0); } to { transform: scaleX(1); } }
