:root {
  --bg: #eef2f7;
  --panel: #ffffff;
  --panel-border: #dce6f0;
  --ink: #14304a;
  --ink-2: #3d5a73;
  --muted: #7a94ab;
  --accent: #0f4873;
  --accent-2: #1a6fb5;
  --accent-light: #e6f0fa;
  --ok: #1a8f56;
  --ok-light: #e2f7ed;
  --warn: #c88a18;
  --warn-light: #fef4dc;
  --danger: #c43b49;
  --danger-light: #fde8ea;
  --shadow-sm: 0 1px 3px rgba(15, 40, 65, 0.06);
  --shadow: 0 4px 16px rgba(15, 40, 65, 0.08);
  --shadow-lg: 0 12px 36px rgba(15, 40, 65, 0.12);
  --radius: 18px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

/* ── LAYOUT ── */
.app-shell {
  display: grid;
  grid-template-columns: 385px 1fr;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 10px;
}

/* ── SIDEBAR ── */
.sidebar {
  overflow: auto;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--panel-border);
  scrollbar-width: thin;
  scrollbar-color: #c6d4e2 transparent;
}

.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: #c0d0e0; border-radius: 5px; }

.stage-in-left,
.stage-in-right {
  animation: stageIn 400ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes stageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── BRAND BLOCK ── */
.brand-block {
  background: linear-gradient(150deg, #0b3862 0%, #115294 55%, #1868b8 100%);
  padding: 18px 16px 16px;
  border-radius: 16px 16px 0 0;
  position: relative;
  overflow: hidden;
}

.brand-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(255,255,255,0.1) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='52' height='52' viewBox='0 0 52 52' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='26' cy='26' r='3'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.brand-block::after {
  content: '';
  position: absolute;
  bottom: -50px; right: -50px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.brand-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 9px;
  position: relative;
}

.brand-indicator::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34e89a;
  box-shadow: 0 0 8px rgba(52, 232, 154, 0.6);
  flex-shrink: 0;
  animation: livePulse 2.2s ease infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.75); }
}

.brand-block h1 {
  margin: 0;
  font-size: 19px;
  line-height: 1.15;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.3px;
  position: relative;
}

.brand-block p {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  position: relative;
}

/* ── KPI GRID ── */
.kpi-grid {
  padding: 12px 14px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.kpi-card {
  border-radius: 12px;
  padding: 10px 11px 9px;
  background: #fff;
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: visible;
  transition: box-shadow 180ms, transform 180ms, border-color 180ms;
  cursor: default;
}

.kpi-card[data-kpi] {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.kpi-card:hover {
  box-shadow: 0 4px 14px rgba(15, 40, 65, 0.1);
  transform: translateY(-1px);
}

.kpi-card[data-kpi]:active {
  transform: translateY(0) scale(0.97);
}

/* KPI selected / active-filter states */
.kpi-card.kpi-selected {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px rgba(26, 111, 181, 0.18), 0 4px 14px rgba(15, 40, 65, 0.1);
}

.kpi-card.kpi-selected::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 111, 181, 0.04);
  pointer-events: none;
  border-radius: 12px;
}

.kpi-card.kpi-selected-warn {
  border-color: var(--warn);
  box-shadow: 0 0 0 2px rgba(200, 138, 24, 0.18), 0 4px 14px rgba(15, 40, 65, 0.1);
}

.kpi-card.kpi-selected-warn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(200, 138, 24, 0.04);
  pointer-events: none;
  border-radius: 12px;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: calc(100% + 2px); height: 3px;
  border-radius: 12px 12px 0 0;
  z-index: 0;
}

.kpi-total::before    { background: linear-gradient(90deg, #1a6fb5, #38aaff); }
.kpi-active::before   { background: linear-gradient(90deg, #1a8f56, #34e89a); }
.kpi-districts::before{ background: linear-gradient(90deg, #6b4dba, #a07ee8); }
.kpi-rating::before   { background: linear-gradient(90deg, #b87a14, #f0c040); }
.kpi-events::before   { background: linear-gradient(90deg, #188888, #34d4d4); }
.kpi-multi::before    { background: linear-gradient(90deg, #b04822, #f07848); }

.kpi-icon {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
  line-height: 1;
}

.kpi-card > span:not(.kpi-icon) {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.kpi-card strong {
  display: block;
  margin-top: 2px;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.5px;
}

/* KPI hint label */
.kpi-hint {
  display: none;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent-2);
  margin-top: 4px;
  opacity: 0;
  transition: opacity 180ms;
}

.kpi-card[data-kpi]:hover .kpi-hint { display: block; opacity: 0.7; }

/* KPI active filter badge */
.kpi-filter-badge {
  display: block;
  margin-top: 4px;
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-2);
  color: #fff;
  width: fit-content;
}

.kpi-filter-badge.badge-warn {
  background: var(--warn);
}

.kpi-filter-badge.badge-ok {
  background: var(--ok);
}

/* ── PANELS ── */
.panel {
  margin: 10px 14px 0;
  border: 1px solid var(--panel-border);
  border-radius: 13px;
  padding: 11px 12px;
  background: #fff;
}

.panel:last-child { margin-bottom: 14px; }

.panel h2 {
  margin: 0 0 9px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--muted);
}

/* ── FILTERS ── */
label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.2px;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}

select,
input[type="search"] {
  width: 100%;
  margin-top: 4px;
  border: 1px solid #c8d8e8;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 12px;
  color: var(--ink);
  background: #fbfcfe;
  outline: none;
  transition: border-color 160ms, box-shadow 160ms;
}

select:focus,
input[type="search"]:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(26, 111, 181, 0.12);
}

input[type="search"]::placeholder { color: #a4b8cc; }

.range-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.range-label-row strong {
  font-size: 13px;
  color: var(--accent-2);
  min-width: 24px;
  text-align: right;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, #dce6f0, #dce6f0);
  outline: none;
  margin-top: 6px;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-2);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(15, 40, 65, 0.25);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-2);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(15, 40, 65, 0.25);
  cursor: pointer;
}
input[type="checkbox"] { accent-color: var(--accent-2); width: 14px; height: 14px; }

.button-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

button {
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(175deg, #1a72b8, #0d4a7c);
  box-shadow: 0 2px 6px rgba(13, 74, 124, 0.2);
  transition: opacity 140ms, transform 100ms;
}

button:hover  { opacity: 0.88; transform: translateY(-1px); }
button:active { transform: translateY(0); }

.button-row button { flex: 1; }

button.secondary {
  background: #edf2f7;
  color: var(--ink-2);
  box-shadow: none;
  border: 1px solid var(--panel-border);
}

button.secondary:hover { background: #e0e9f2; }

/* ── LAYER TOGGLES ── */
.toggles label {
  margin: 7px 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}

/* ── RANK LIST ── */
.rank-list {
  max-height: 200px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #d0dce8 transparent;
}

.rank-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 7px 0;
  border-bottom: 1px solid #edf2f8;
  font-size: 12px;
}

.rank-item:last-child { border-bottom: none; }

.rank-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rank-item-name  { color: var(--ink-2); font-weight: 500; }
.rank-item-count { color: var(--ink); font-weight: 800; font-size: 13px; }

.rank-bar-track {
  height: 4px;
  border-radius: 4px;
  background: #edf2f8;
  overflow: hidden;
}

.rank-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #1a6fb5, #5aade0);
  transition: width 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── SPOTLIGHT ── */
.spotlight { background: #f7faff; }

.spotlight-empty {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 14px 0 6px;
  line-height: 1.5;
}

.spotlight-card-head {
  background: linear-gradient(145deg, #0c3f70, #1568b2);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.spotlight-card-head::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

.spotlight-card h3 {
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  position: relative;
}

.spotlight-card-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
}

.spotline {
  margin-top: 5px;
  font-size: 11px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
}

.spotline strong { color: var(--ink); font-weight: 600; }

.spot-badges {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.spot-chip {
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid #cce0f4;
}

/* Event chips in spotlight */
.spot-event {
  margin-top: 5px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 10.5px;
  color: var(--ink-2);
  line-height: 1.4;
}

.spot-event.ongoing  { background: var(--ok-light); border-left: 3px solid var(--ok); }
.spot-event.upcoming { background: #edf4ff; border-left: 3px solid var(--accent-2); }

.spot-event-name { font-weight: 700; color: var(--ink); }
.spot-event-date { color: var(--muted); font-size: 10px; }

/* ── MAP STAGE ── */
.map-stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--panel-border);
}

.map-stage.overview-mode::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 280;
  background: linear-gradient(120deg, rgba(40, 137, 83, 0.06) 0%, rgba(201, 83, 67, 0.06) 100%);
  background-size: 220% 220%;
  animation: overviewShift 14s ease-in-out infinite;
}

@keyframes overviewShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── MAP HEADER ── */
.map-header {
  position: absolute;
  z-index: 1200;
  top: 10px; left: 10px; right: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(220, 232, 244, 0.8);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 16px rgba(15, 40, 65, 0.1);
}

.map-title-wrap h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.2px;
}

.map-title-wrap p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.header-actions { display: flex; gap: 6px; }

.header-actions button {
  padding: 7px 12px;
  font-size: 11px;
  border-radius: 8px;
  background: #f0f5fa;
  border: 1px solid #d0dce8;
  color: var(--ink-2);
  box-shadow: none;
}

.header-actions button:hover { background: #e4ecf4; transform: none; opacity: 1; }
#insightsToggleBtn.active { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }

#map { width: 100%; height: 100%; }

/* ── MAP MESSAGE ── */
.map-message {
  position: absolute;
  z-index: 1300;
  left: 10px; bottom: 10px;
  max-width: 520px;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(14, 48, 82, 0.92);
  backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  display: none;
}

.map-message.error { background: rgba(140, 34, 42, 0.95); }

/* ── FACILITY PINS ── */
.facility-pin {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  animation: pinIn 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--d, 0ms);
  position: relative;
}

.pin-active    { background: var(--ok); }
.pin-temporary { background: var(--warn); }
.pin-closed    { background: var(--danger); }
.pin-other     { background: #5a88aa; }

.pin-active::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: rgba(26, 143, 86, 0.22);
  animation: activeRing 2.8s ease-out infinite;
}

@keyframes pinIn {
  from { transform: translateY(-20px) scale(0.7); opacity: 0; }
  to   { transform: translateY(0) scale(1);       opacity: 1; }
}

@keyframes activeRing {
  0%   { transform: scale(1);   opacity: 0.7; }
  80%  { transform: scale(2.4); opacity: 0;   }
  100% { opacity: 0; }
}

/* ── POPUPS ── */
.leaflet-popup-content-wrapper {
  border-radius: 14px !important;
  box-shadow: 0 18px 50px rgba(8, 27, 46, 0.2) !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #d0e0f0 !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  width: 320px !important;
  font-family: "Outfit", "Segoe UI", sans-serif;
}

.leaflet-popup-tip { background: #fff; }

.facility-popup { overflow: hidden; border-radius: 14px; }

.popup-head {
  padding: 13px 14px 12px;
  background: linear-gradient(150deg, #0d4070, #1568b2);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.popup-head::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.popup-head-row { display: flex; align-items: flex-start; gap: 10px; }
.popup-head-left { flex: 1 1 auto; min-width: 0; }
.popup-head-right { flex: 0 0 auto; }

.popup-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  position: relative;
}

.popup-sub {
  margin: 3px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
}

.popup-head-meta {
  margin-top: 9px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}

.popup-rating-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  width: 100%;
}

.popup-rating-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #ffc840, #ffd870);
  transition: width 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-facility-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px;
  object-fit: contain;
}

.popup-facility-icon.fallback { display: inline-block; padding: 0; background: transparent; border: none; }
.popup-facility-icon.fallback::before {
  content: 'SB';
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.6px;
}

/* Stars */
.stars {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  vertical-align: middle;
  margin-right: 5px;
  white-space: nowrap;
}

.star { font-size: 12px; line-height: 1; }
.star.full  { color: #ffd667; }
.star.empty { color: #c8d8e8; opacity: 0.7; }
.star.half  {
  background: linear-gradient(90deg, #ffd667 50%, #c8d8e8 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rating-num {
  display: inline;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
}

.popup-body { padding: 12px; background: #fff; }

.popup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.popup-metric {
  border: 1px solid #e5eff9;
  border-radius: 10px;
  padding: 8px;
  background: #f7faff;
}

.popup-metric > span {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 700;
}

.popup-metric strong { display: block; font-size: 13px; margin-top: 2px; color: var(--ink); }

.popup-line { margin: 9px 0 0; font-size: 12px; color: var(--ink-2); }
.popup-line strong { color: var(--ink); }

.popup-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.popup-tag {
  font-size: 10px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid #cce0f4;
}

/* Popup events list */
.popup-events {
  margin-top: 9px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.popup-event {
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.35;
}

.popup-event.ongoing {
  background: var(--ok-light);
  border-left: 3px solid var(--ok);
}

.popup-event.upcoming {
  background: #edf4ff;
  border-left: 3px solid var(--accent-2);
}

.popup-event.scheduled {
  background: #f3f0ff;
  border-left: 3px solid #6b4dba;
}

.popup-event-name { font-weight: 700; color: var(--ink); display: block; }
.popup-event-meta { font-size: 10px; color: var(--muted); margin-top: 1px; display: block; }

.popup-actions {
  margin-top: 11px;
  display: flex;
  gap: 8px;
}

.popup-btn {
  flex: 1;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9px;
  padding: 8px 10px;
  color: #fff !important;
  background: linear-gradient(175deg, #1a72b8, #0e4a7c);
  border: none;
  box-shadow: 0 2px 8px rgba(14, 74, 124, 0.2);
  transition: opacity 140ms;
}

.popup-btn:hover,
.popup-btn:visited,
.popup-btn:focus { color: #fff !important; opacity: 0.88; }

.popup-btn.secondary { background: linear-gradient(175deg, #5b7e98, #3d5c74); }

/* Leaflet popup close */
.leaflet-container a.leaflet-popup-close-button {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 18px;
  font-weight: 700;
  width: 24px; height: 24px;
  line-height: 22px;
  text-align: center;
  top: 8px; right: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255,255,255,0.2);
}

.leaflet-container a.leaflet-popup-close-button:hover { background: rgba(0, 0, 0, 0.35) !important; }

/* ── STATUS BADGES ── */
.status-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 10px;
  font-weight: 700;
  margin-top: 0;
}

.status-active             { background: rgba(26, 143, 86, 0.2); color: #fff; border: 1px solid rgba(26,143,86,0.35); }
.status-temporarily-closed { background: rgba(200, 138, 24, 0.2); color: #fff; border: 1px solid rgba(200,138,24,0.35); }
.status-closed             { background: rgba(196, 59, 73, 0.2); color: #fff; border: 1px solid rgba(196,59,73,0.35); }
.status-unknown            { background: rgba(90, 136, 170, 0.2); color: #fff; border: 1px solid rgba(90,136,170,0.35); }

/* ── INSIGHTS PANEL ── */
.insights-panel {
  position: absolute;
  top: 66px; right: 12px; bottom: 12px;
  z-index: 1600;
  width: 340px;
  overflow: auto;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  transform: translateX(calc(100% + 24px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease, visibility 0s linear 260ms;
  scrollbar-width: thin;
  scrollbar-color: #c6d4e2 transparent;
}

.insights-panel.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), opacity 200ms ease, visibility 0s linear 0s;
}

.insights-head {
  position: sticky;
  top: 0; z-index: 1;
  padding: 11px 14px;
  border-bottom: 1px solid var(--panel-border);
  background: linear-gradient(180deg, #f8fbff, #f0f5fa);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.insights-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.insights-close {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  flex: 0 0 26px !important;
  border-radius: 50% !important;
  border: 1px solid #c8d8e8 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  color: var(--ink-2) !important;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  transform: none !important;
  box-shadow: none !important;
}

.insights-close:hover {
  background: #f0f4fa !important;
  transform: none !important;
}

.insights-ticker { padding: 10px 12px 14px; }

/* ── INSIGHT CARDS ── */
.insight-section { margin-bottom: 14px; }

.insight-section-title {
  margin: 0 0 8px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: var(--muted);
  text-transform: uppercase;
}

.insight-item {
  border: 1px solid #e5eef6;
  border-left-width: 3px;
  border-radius: 10px;
  padding: 9px 10px;
  margin-bottom: 7px;
  background: #fff;
  animation: insightIn 280ms ease both;
}

.insight-item:nth-child(1) { animation-delay: 20ms; }
.insight-item:nth-child(2) { animation-delay: 70ms; }
.insight-item:nth-child(3) { animation-delay: 120ms; }
.insight-item:nth-child(4) { animation-delay: 170ms; }
.insight-item:nth-child(5) { animation-delay: 220ms; }

.insight-top      { border-left-color: #1a8f56; }
.insight-risk     { border-left-color: #d0a020; }
.insight-critical { border-left-color: #c43b49; }
.insight-gap      { border-left-color: #1a6fb5; }
.insight-stat     { border-left-color: #6b4dba; }

@keyframes insightIn {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.insight-title { margin: 0 0 3px; font-size: 12px; font-weight: 700; color: var(--ink); }
.insight-text  { margin: 0; font-size: 11.5px; color: var(--ink-2); line-height: 1.5; }

.insight-progress {
  margin-top: 7px;
  height: 4px;
  border-radius: 4px;
  background: #edf2f8;
  overflow: hidden;
}

.insight-progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #1a6fb5, #5aade0);
  transition: width 550ms cubic-bezier(0.16, 1, 0.3, 1);
}

.insight-top  .insight-progress-fill { background: linear-gradient(90deg, #1a8f56, #40d098); }
.insight-risk .insight-progress-fill { background: linear-gradient(90deg, #b87a14, #e8c040); }
.insight-stat .insight-progress-fill { background: linear-gradient(90deg, #5a3daa, #9070d8); }

.insight-actions { display: flex; gap: 8px; padding: 4px 0 8px; }

.insight-btn {
  appearance: none;
  border: 1px solid #d0dce8;
  background: #f5f8fc;
  color: var(--ink-2);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: none;
  transition: background 140ms;
}

.insight-btn:hover { background: #eaf0f7; transform: none; }
.insight-btn.secondary { background: #fafcfe; }

.insight-link {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0; margin: 0;
  cursor: pointer;
  color: inherit;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  box-shadow: none;
}

.insight-link:hover { transform: none; }

.insight-link strong {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── DISTRICT COUNTER BADGES ── */
.district-counter-badge {
  min-width: 30px; height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1462a5, #0d4070);
  color: #fff;
  border: 2.5px solid #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(13, 64, 112, 0.35);
  cursor: pointer;
  animation: counterIn 290ms cubic-bezier(0.16, 1, 0.3, 1) both;
  letter-spacing: -0.3px;
}

@keyframes counterIn {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── CLUSTER MARKERS ── */
.marker-cluster { background: transparent; }

.cluster-shell {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1a72b8, #0e4878);
  box-shadow: 0 6px 18px rgba(14, 72, 120, 0.35);
  border: 2.5px solid #fff;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

/* ── DISTRICT FOCUS NOTICE ── */
.district-focus-notice {
  position: absolute;
  right: 14px; bottom: 14px;
  z-index: 1500;
  width: 320px;
  max-width: min(320px, calc(100% - 28px));
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  padding: 12px 14px;
  display: none;
}

.district-focus-notice.show {
  display: block;
  animation: focusIn 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.district-focus-title { margin: 0 0 5px; font-size: 13px; font-weight: 800; color: var(--ink); }
.district-focus-text  { margin: 0; font-size: 12px; color: var(--ink-2); }

@keyframes focusIn {
  from { opacity: 0; transform: translateX(14px) translateY(6px); }
  to   { opacity: 1; transform: translateX(0) translateY(0); }
}

/* ── INFO TOOLTIP ── */
.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #e0eaf4;
  color: var(--accent-2);
  font-size: 9px;
  font-weight: 800;
  font-style: normal;
  cursor: help;
  flex-shrink: 0;
  vertical-align: middle;
  margin-left: 4px;
  line-height: 1;
  border: 1px solid #c8daf0;
  transition: background 140ms;
  z-index: 1;
}

.info-tip:hover {
  background: var(--accent-2);
  color: #fff;
  border-color: var(--accent-2);
}

.info-tip .info-tip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 210px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--ink);
  color: #e8f0f8;
  font-size: 10.5px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.5;
  text-align: left;
  letter-spacing: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  pointer-events: none;
  transition: opacity 160ms, visibility 160ms;
  z-index: 9999;
  white-space: normal;
}

.info-tip .info-tip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--ink);
}

.info-tip:hover .info-tip-text {
  visibility: visible;
  opacity: 1;
}

/* Position variants for edge cases */
.info-tip-right .info-tip-text {
  left: auto;
  right: -6px;
  transform: none;
}

.info-tip-right .info-tip-text::after {
  left: auto;
  right: 12px;
  transform: none;
}

.info-tip-left .info-tip-text {
  left: -6px;
  transform: none;
}

.info-tip-left .info-tip-text::after {
  left: 12px;
  transform: none;
}

/* KPI card info icon positioning */
.kpi-card .info-tip {
  position: absolute;
  top: 7px; right: 7px;
  width: 14px; height: 14px;
  font-size: 8px;
  margin: 0;
}

/* Insight section title info icon */
.insight-section-title .info-tip {
  width: 14px; height: 14px;
  font-size: 8px;
}

/* Score card explanation */
.insight-score-explain {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #dce6f0;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.55;
  text-align: left;
}

.insight-score-explain strong {
  color: var(--ink-2);
}

.score-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 6px;
}

.score-legend-item {
  font-size: 9.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.score-legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── READINESS SCORE ── */
.insight-score-card {
  background: linear-gradient(150deg, #f8fbff, #eef4fb);
  border: 1px solid #d8e6f4;
  border-radius: 14px;
  padding: 16px 14px 14px;
  margin-bottom: 10px;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  gap: 16px;
}

.insight-score-card::before {
  content: none;
}

/* Radial gauge */
.score-gauge {
  position: relative;
  width: 80px; height: 80px;
  flex-shrink: 0;
}

.score-gauge svg {
  width: 80px; height: 80px;
  transform: rotate(-90deg);
}

.score-gauge-bg {
  fill: none;
  stroke: #dce6f0;
  stroke-width: 7;
}

.score-gauge-fill {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.score-gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-gauge-number {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.score-gauge-grade {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.55;
  margin-top: 1px;
}

/* Score right side */
.score-info {
  flex: 1;
  min-width: 0;
}

.score-info-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.score-info-sub {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.5;
}

.score-info-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  font-size: 9.5px;
  color: var(--ink-2);
}

.score-info-breakdown span {
  white-space: nowrap;
}

.score-info-breakdown strong {
  color: var(--ink);
  font-weight: 700;
}

/* Population metric (future) */
.pop-metric-card {
  background: linear-gradient(150deg, #f8fbff, #eef4fb);
  border: 1px solid #d8e6f4;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pop-metric-big {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-2);
  line-height: 1;
  letter-spacing: -1px;
  flex-shrink: 0;
}

.pop-metric-info {
  flex: 1;
  min-width: 0;
}

.pop-metric-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}

.pop-metric-sub {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.pop-metric-compare {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 8px;
}
.pop-metric-compare.trend-up { color: #16a34a; background: #dcfce7; }
.pop-metric-compare.trend-down { color: #dc2626; background: #fee2e2; }
.pop-metric-compare.trend-same { color: #6b7280; background: #f3f4f6; }

/* ── DISTRICT TEHSIL GRID ── */
.district-tehsil-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.dtg-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(150deg, #f8fbff, #eef4fb);
  border: 1px solid #d8e6f4;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.dtg-card:hover {
  border-color: var(--accent);
  background: linear-gradient(150deg, #eef4fb, #dce8f5);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(26, 111, 181, 0.12);
}

.dtg-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dtg-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
  font-size: 9.5px;
  color: var(--muted);
}

.dtg-count {
  font-weight: 600;
  color: var(--accent);
}

.dtg-active {
  color: #16a34a;
  font-weight: 600;
}

.dtg-rating {
  color: #eab308;
}

.dtg-pop {
  color: var(--ink-2);
}

.dtg-zero {
  background: linear-gradient(150deg, #fef2f2, #fde8e8);
  border-color: #fca5a5;
}
.dtg-zero .dtg-name { color: #b91c1c; }
.dtg-zero .dtg-count { color: #dc2626; }
.dtg-zero:hover {
  border-color: #ef4444;
  background: linear-gradient(150deg, #fde8e8, #fcd5d5);
}

.insight-score-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

/* ── INSIGHT METRICS GRID ── */
.insight-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 10px;
}

.insight-metric-card {
  background: #f7faff;
  border: 1px solid #e5eff9;
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}

.insight-metric-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.insight-metric-value small {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.45;
}

.insight-metric-label {
  display: block;
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  margin-top: 3px;
}

/* ── INSIGHT TAGS ── */
.insight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.insight-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid #cce0f4;
}

.insight-tag-missing {
  background: var(--warn-light);
  color: #8a6510;
  border-color: #e8d098;
}

/* ── FACILITY CARDS IN INSIGHTS ── */
.insight-facility-card {
  border: 1px solid #e5eef6;
  border-radius: 10px;
  padding: 9px 10px;
  margin-bottom: 6px;
  background: #fff;
  border-left-width: 3px;
  transition: box-shadow 160ms;
}

.insight-facility-card:hover {
  box-shadow: 0 2px 10px rgba(15, 40, 65, 0.08);
}

.insight-facility-card.fc-active { border-left-color: var(--ok); }
.insight-facility-card.fc-inactive { border-left-color: var(--warn); }

.insight-fc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.insight-fc-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-fc-rating { flex-shrink: 0; }
.insight-fc-rating .stars { margin-right: 0; }

.insight-fc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
  font-size: 10px;
  align-items: center;
}

.insight-fc-badge {
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.2px;
}

.fc-active .insight-fc-badge {
  background: var(--ok-light);
  color: var(--ok);
}

.fc-inactive .insight-fc-badge {
  background: var(--warn-light);
  color: var(--warn);
}

.insight-fc-type {
  color: var(--muted);
  font-weight: 500;
}

.insight-fc-events {
  color: var(--accent-2);
  font-weight: 600;
}

.insight-fc-sports {
  margin-top: 3px;
  font-size: 10px;
  color: var(--ink-2);
  line-height: 1.4;
}

.insight-facility-card[data-action] {
  cursor: pointer;
  transition: box-shadow 160ms, transform 120ms, border-color 160ms;
}

.insight-facility-card[data-action]:hover {
  box-shadow: 0 3px 12px rgba(15, 40, 65, 0.12);
  border-color: var(--accent-2);
  transform: translateX(2px);
}

.insight-facility-card[data-action]:active {
  transform: translateX(2px) scale(0.99);
}

.insight-fc-locate {
  display: block;
  margin-top: 5px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--accent-2);
  opacity: 0;
  transition: opacity 160ms;
}

.insight-facility-card:hover .insight-fc-locate {
  opacity: 1;
}

/* ── COMPARISON TABLE ── */
.insight-comparison {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-bottom: 10px;
}

.insight-comparison th {
  text-align: left;
  font-weight: 700;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 6px;
  border-bottom: 2px solid #e5eef6;
}

.insight-comparison td {
  padding: 7px 6px;
  color: var(--ink-2);
  border-bottom: 1px solid #f0f5fa;
}

.insight-comparison td:nth-child(2),
.insight-comparison td:nth-child(3) {
  font-weight: 700;
  text-align: center;
}

.insight-comparison td:last-child { text-align: center; }

.trend-up { color: var(--ok); font-weight: 700; }
.trend-down { color: var(--danger); font-weight: 700; }
.trend-same { color: var(--muted); }

/* ── EXECUTIVE BRIEF ── */
.insight-exec-brief {
  border: 1px solid #d8e4f2;
  border-left: 3px solid var(--accent-2);
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #f8fbff, #f0f6fd);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

.insight-exec-brief strong { color: var(--ink); }

/* ── AUTO RECOMMENDATIONS ── */
.insight-recommendations {
  border: 1px solid #e5eef6;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #fff;
}

.insight-rec-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 5px 0;
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.5;
}

.insight-rec-item + .insight-rec-item {
  border-top: 1px solid #f0f5fa;
}

.insight-rec-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  margin-top: 1px;
}

.insight-rec-icon.rec-warn { background: var(--warn-light); color: var(--warn); }
.insight-rec-icon.rec-info { background: var(--accent-light); color: var(--accent-2); }
.insight-rec-icon.rec-ok   { background: var(--ok-light); color: var(--ok); }
.insight-rec-icon.rec-risk { background: var(--danger-light); color: var(--danger); }

/* ── RESPONSIVE ── */
@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .sidebar {
    max-height: 42vh;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .kpi-grid { grid-template-columns: repeat(2, 1fr); }

  .map-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .insights-panel {
    width: min(340px, calc(100% - 24px));
    top: 92px;
  }

  .panel.spotlight {
    overscroll-behavior: contain;
  }

  .facility-popup-wrap--mobile .leaflet-popup-content-wrapper {
    max-height: min(72vh, calc(100dvh - 140px));
    overflow: hidden;
  }

  .facility-popup-wrap--mobile .leaflet-popup-content {
    width: min(320px, calc(100vw - 40px)) !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .facility-popup-wrap--mobile .facility-popup {
    display: flex;
    flex-direction: column;
    max-height: min(72vh, calc(100dvh - 140px));
    min-height: 0;
    overflow: hidden;
  }

  .facility-popup-wrap--mobile .popup-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }
}
