/* ==========================================================================
   Ganpati Festival Intelligence & Discovery Platform — Stylesheet
   Theme: Devotional Warmth with Spiritual Minimalism & Mobile-First Architecture
   ========================================================================== */

:root {
  /* Devotional Warmth Palette */
  --bg-primary: #0c0a09;       /* Deep Sandalwood Charcoal / Festive Night */
  --bg-secondary: #171512;     /* Warm Temple Stone */
  --bg-tertiary: #221e19;      /* Elevated Altar Panel */
  --bg-card: rgba(23, 21, 18, 0.92);
  --border-color: rgba(245, 158, 11, 0.22); /* Temple Brass Gold */
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Devotional Text Hierarchy */
  --text-main: #fffbeb;        /* Warm Crisp Ivory */
  --text-cream: #fef3c7;       /* Soft Sandalwood Cream */
  --text-muted: #d6d3d1;       /* Warm Ash Gray */
  --text-dim: #8b8580;         /* Muted Earth */

  /* Sacred Accents */
  --accent-saffron: #ff6b00;   /* Bhagwa / Sacred Saffron */
  --accent-gold: #f59e0b;      /* Temple Marigold Gold */
  --accent-vermillion: #dc2626;/* Holy Sindoor / Kumkum Red */
  --accent-green: #10b981;     /* Auspicious Tulsi Green */
  --accent-cyan: #38bdf8;      /* Clean Water Blue */
  --accent-purple: #9333ea;    /* Royal Utsav Purple */

  /* Typography */
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', Helvetica, Arial, sans-serif;

  /* Devotional Aura Glows */
  --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.25);
  --shadow-saffron: 0 0 24px rgba(255, 107, 0, 0.35);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.55);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  user-select: none;
}

/* --- Layout Structure --- */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* --- Top Header Navigation --- */
.top-header {
  height: 58px;
  min-height: 58px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  gap: 12px;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand-logo-link:hover {
  transform: scale(1.02);
}

.brand-logo-img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.4));
}

.brand-tagline-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--accent-gold);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  transition: all 0.3s ease;
}

.brand-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  cursor: pointer;
  width: fit-content;
  transition: background 0.2s ease, transform 0.2s ease;
}

.brand-cert-badge:hover {
  background: rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.brand-cert-badge .cert-shield {
  font-size: 10px;
}

.btn-header.accent-guide {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.3));
  border-color: rgba(16, 185, 129, 0.6);
  color: #6ee7b7;
  font-weight: 700;
}

.btn-header.accent-guide:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(5, 150, 105, 0.5));
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* City Switcher */
.city-switcher {
  display: flex;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 3px;
  gap: 4px;
}

.city-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 5px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.city-btn:hover {
  color: var(--text-main);
}

.city-btn.active {
  background: linear-gradient(135deg, var(--accent-saffron), var(--accent-gold));
  color: #000;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

/* Header Telemetry & Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Sync Button */
.btn-header.accent-sync {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  padding: 6px 14px;
}

.btn-header.accent-sync:hover {
  background: rgba(245, 158, 11, 0.25);
  box-shadow: var(--shadow-glow);
}

.sync-icon {
  display: inline-block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-header.accent-sync.syncing .sync-icon {
  animation: spin-sync 0.8s infinite linear;
}

@keyframes spin-sync {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.weather-widget {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.weather-temp {
  font-weight: 700;
  color: var(--accent-gold);
}

.btn-header {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-header:hover {
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-header.accent {
  background: rgba(255, 107, 0, 0.15);
  border-color: rgba(255, 107, 0, 0.4);
  color: var(--accent-saffron);
}

.btn-header.accent:hover {
  background: rgba(255, 107, 0, 0.28);
  box-shadow: var(--shadow-saffron);
}

/* ==========================================================================
   Devotional Top Sponsor Banner (Ad-Friendly)
   ========================================================================== */
.ad-banner-top {
  background: linear-gradient(90deg, #1c150c 0%, #2a1f10 50%, #1c150c 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  padding: 6px 16px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
}

.ad-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  width: 100%;
  justify-content: space-between;
}

.ad-badge {
  background: var(--accent-gold);
  color: #000;
  font-weight: 800;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.ad-text {
  color: var(--text-cream);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-cta {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ad-cta:hover {
  background: var(--accent-gold);
  color: #000;
}

/* (Native Sponsor Card styles consolidated in Leaderboard Section below) */

.ad-native-cta-btn:hover {
  background: var(--accent-gold);
  color: #000;
}

/* Modal Sponsor Footer */
.modal-sponsor-footer {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(23, 21, 18, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--accent-gold);
  text-align: center;
}

/* ==========================================================================
   Main Two-Panel Dashboard
   ========================================================================== */
.dashboard-body {
  display: flex;
  flex: 1;
  height: calc(100vh - 58px - 32px);
  overflow: hidden;
  position: relative;
}

/* --- Left Panel: Map Viewport (65%) --- */
.map-panel {
  flex: 0 0 65%;
  height: 100%;
  position: relative;
  border-right: 1px solid var(--border-color);
  background-color: #080605;
}

#festival-map {
  width: 100%;
  height: 100%;
  background: #080605;
}

/* Dark Tactical Map Tiles Inverter */
.dark-tactical-tile {
  filter: brightness(0.6) invert(1) contrast(3) hue-rotate(185deg) saturate(0.3) brightness(0.7);
}

/* Map Overlay Floating Controls */
.map-overlay-controls {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-control-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.map-chip-btn {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.map-chip-btn:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-glow);
}

.map-chip-btn.active {
  background: rgba(245, 158, 11, 0.22);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.map-chip-btn.accent-saffron {
  background: linear-gradient(135deg, #c2410c, #ea580c);
  border-color: #f97316;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 0 16px rgba(234, 88, 12, 0.4);
}

.map-chip-btn.accent-saffron:hover {
  background: linear-gradient(135deg, #ea580c, #f97316);
  box-shadow: 0 0 22px rgba(249, 115, 22, 0.6);
  transform: translateY(-1px);
}

/* City Stats Floating Pill */
.map-city-stats {
  position: absolute;
  bottom: 20px;
  left: 16px;
  z-index: 1000;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 10px 16px;
  display: flex;
  gap: 16px;
  box-shadow: var(--shadow-card);
  font-size: 11px;
  color: var(--text-muted);
}

.map-city-stats .stat-item strong {
  color: var(--accent-gold);
  font-weight: 700;
  margin-left: 3px;
}

/* Heatmap Legend */
.map-legend {
  position: absolute;
  bottom: 20px;
  right: 16px;
  z-index: 1000;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 8px 14px;
  box-shadow: var(--shadow-card);
  font-size: 10px;
}

.legend-title {
  display: block;
  font-weight: 700;
  color: var(--text-cream);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legend-bar {
  display: flex;
  align-items: center;
  gap: 4px;
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.legend-green { background: #10b981; }
.legend-orange { background: #f59e0b; }
.legend-red { background: #dc2626; }
.legend-purple { background: #9333ea; }

/* Custom Leaflet Map Markers */
.custom-mandal-marker {
  background: transparent;
  border: none;
}

.marker-beacon-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-pulse-ring {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  animation: pulse-ring 2.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 0.9; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.marker-core {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1c150c, #2a1f10);
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
  z-index: 2;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.marker-core:hover {
  transform: scale(1.2);
  border-color: var(--accent-saffron);
}

.marker-core.famous {
  border-color: var(--accent-saffron);
  box-shadow: 0 0 16px rgba(255, 107, 0, 0.7);
}

.marker-rank-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent-saffron);
  color: #fff;
  font-weight: 800;
  font-size: 9px;
  font-family: var(--font-mono);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
  z-index: 3;
}

/* Marker Dynamic Colors mapped to SS3 Legend (Queue & Road Rush) */
.marker-beacon-wrap.status-khali .marker-pulse-ring {
  border-color: #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.6);
}
.marker-beacon-wrap.status-khali .marker-core {
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}
.marker-beacon-wrap.status-khali .marker-rank-badge {
  background: #10b981;
}

.marker-beacon-wrap.status-thoda-rush .marker-pulse-ring {
  border-color: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.6);
}
.marker-beacon-wrap.status-thoda-rush .marker-core {
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}
.marker-beacon-wrap.status-thoda-rush .marker-rank-badge {
  background: #f59e0b;
}

.marker-beacon-wrap.status-full-rush .marker-pulse-ring {
  border-color: #dc2626;
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.6);
}
.marker-beacon-wrap.status-full-rush .marker-core {
  border-color: #dc2626;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.5);
}
.marker-beacon-wrap.status-full-rush .marker-rank-badge {
  background: #dc2626;
}

.marker-beacon-wrap.status-jam-packed .marker-pulse-ring {
  border-color: #9333ea;
  box-shadow: 0 0 14px rgba(147, 51, 234, 0.6);
}
.marker-beacon-wrap.status-jam-packed .marker-core {
  border-color: #9333ea;
  box-shadow: 0 0 12px rgba(147, 51, 234, 0.5);
}
.marker-beacon-wrap.status-jam-packed .marker-rank-badge {
  background: #9333ea;
}

/* ==========================================================================
   Right Panel: Live Popularity Leaderboard (35%)
   ========================================================================== */
.ranking-panel {
  flex: 0 0 35%;
  height: 100%;
  background-color: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ranking-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.ranking-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-cream);
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: live-blink 1.8s infinite;
}

@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.updated-time {
  font-size: 10px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.search-filter-input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text-main);
  font-size: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.search-filter-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

/* Leaderboard List */
.leaderboard-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Custom Scrollbars */
.leaderboard-list::-webkit-scrollbar,
.modal-content::-webkit-scrollbar,
.social-feed-wrapper::-webkit-scrollbar {
  width: 5px;
}

.leaderboard-list::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb,
.social-feed-wrapper::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.25);
  border-radius: 4px;
}

/* Mandal Ranking Card */
.ranking-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ranking-card:hover {
  border-color: var(--border-color);
  background: rgba(34, 30, 25, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.ranking-card.selected {
  border-color: var(--accent-gold);
  background: rgba(38, 32, 24, 0.95);
  box-shadow: var(--shadow-glow);
}

.card-top-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.rank-number {
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-dim);
  min-width: 24px;
  line-height: 1.2;
}

.ranking-card:nth-child(1) .rank-number { color: var(--accent-gold); }
.ranking-card:nth-child(2) .rank-number { color: #e2e8f0; }
.ranking-card:nth-child(3) .rank-number { color: #d97706; }

.mandal-card-info {
  flex: 1;
  min-width: 0;
}

.mandal-card-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mandal-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 11px;
  color: var(--text-dim);
}

.trend-badge {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 1px 5px;
  border-radius: 3px;
}

.trend-up { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.trend-down { background: rgba(220, 38, 38, 0.15); color: #dc2626; }
.trend-stable { background: rgba(139, 133, 128, 0.15); color: var(--text-dim); }

.card-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.quality-badge {
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

.quality-LIVE { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.quality-VERIFIED { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.35); font-weight: 700; }
.quality-OFFLINE { background: rgba(220, 38, 38, 0.15); color: #dc2626; border: 1px solid rgba(220, 38, 38, 0.3); }

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-cred-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 2px;
  gap: 8px;
}

.cred-rush-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cred-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-beacon 1.8s infinite;
}

.cred-wait-tag {
  opacity: 0.9;
  font-weight: 600;
  font-size: 11px;
}

.cred-road-pill {
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card-action-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.btn-card-action {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-cream);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-card-action:hover {
  border-color: var(--accent-gold);
  color: var(--text-main);
}

.btn-card-action.btn-stand-front {
  flex: 2.2;
  background: linear-gradient(135deg, #c2410c, #ea580c);
  color: #fff;
  font-weight: 700;
  border: none;
  min-height: 40px;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(234, 88, 12, 0.35);
  transition: all 0.2s ease;
}

.btn-card-action.btn-stand-front:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.5);
  color: #fff;
}

.btn-card-action.card-map-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-cream);
  min-height: 40px;
  border-radius: 10px;
  font-weight: 700;
}

.btn-card-action.card-map-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-gold);
}

.card-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
}

.metric-pill {
  display: flex;
  align-items: center;
  gap: 4px;
}

.score-num {
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 11px;
}

.score-pop { color: var(--accent-saffron); }
.score-exp { color: var(--accent-gold); }

.crowd-bar-mini {
  flex: 1;
  max-width: 90px;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 8px;
}

.crowd-bar-fill {
  height: 100%;
  border-radius: 3px;
}

.crowd-bar-green { background: #10b981; }
.crowd-bar-orange { background: #f59e0b; }
.crowd-bar-red { background: #dc2626; }
.crowd-bar-purple { background: #9333ea; }

/* ==========================================================================
   Sponsored Native Partner Card (Chitale Bandhu Mithaiwale & Festival Sponsors)
   ========================================================================== */
.ad-card-native {
  background: linear-gradient(145deg, rgba(35, 24, 12, 0.95), rgba(18, 12, 6, 0.98));
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 12px 0 16px 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(245, 158, 11, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: visible;
  min-height: auto;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ad-card-native:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 20px rgba(245, 158, 11, 0.2);
}

/* Dedicated Styling for Devotee Helpline & Seva Partner (Bank of Maharashtra) */
.ad-card-native.type-helpline {
  background: linear-gradient(145deg, rgba(14, 30, 26, 0.96), rgba(8, 18, 16, 0.98));
  border: 1.5px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(16, 185, 129, 0.18);
}

.ad-card-native.type-helpline .ad-sponsor-badge {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.6);
  color: #34d399;
}

.ad-card-native.type-helpline .ad-sponsor-avatar {
  background: radial-gradient(circle, #34d399 0%, #059669 100%);
  border-color: #a7f3d0;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.5);
}

.ad-card-native.type-helpline .ad-native-sponsor {
  color: #6ee7b7;
}

.ad-card-native.type-helpline .ad-native-cta-btn {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 3px 14px rgba(16, 185, 129, 0.45);
}

.ad-card-native.type-helpline .ad-native-cta-btn:hover {
  filter: brightness(1.15);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.65);
}

.ad-sponsor-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.ad-sponsor-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #ffc72c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 12px;
}

.ad-slot-tag {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}

.ad-sponsor-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.ad-sponsor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe082 0%, #e65100 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(230, 81, 0, 0.4);
  border: 1.5px solid #fff;
}

.ad-sponsor-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ad-sponsor-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ad-native-sponsor {
  font-size: 14.5px;
  font-weight: 800;
  color: #fff2a3;
  margin: 0;
  line-height: 1.3;
}

.ad-est-badge {
  font-size: 9.5px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: 4px;
}

.ad-native-desc {
  font-size: 12px;
  color: var(--text-cream);
  line-height: 1.45;
  opacity: 0.95;
  margin: 2px 0 0 0;
}

.ad-sponsor-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0;
  width: 100%;
}

.ad-sponsor-highlights .ad-pill {
  font-size: 10.5px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 6px;
}

.ad-sponsor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  width: 100%;
}

.ad-native-cta-btn {
  flex: 1;
  background: linear-gradient(135deg, #ea580c, #f59e0b);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 38px;
  box-shadow: 0 3px 12px rgba(234, 88, 12, 0.4);
  transition: all 0.2s ease;
}

.ad-native-cta-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.6);
}

.ad-native-inquire-link {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}

.ad-native-inquire-link:hover {
  color: var(--accent-gold);
}

/* Devotional Community Invite Card at bottom of leaderboard */
.mandal-community-invite-card {
  background: rgba(22, 18, 14, 0.85);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0 24px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.comm-card-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}

.comm-card-content {
  flex: 1;
}

.comm-card-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.comm-card-sub {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.45;
  margin-bottom: 10px;
}

.comm-card-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-comm-action {
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--accent-gold);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-comm-action.accent {
  background: rgba(234, 88, 12, 0.2);
  border-color: rgba(234, 88, 12, 0.5);
  color: #fb923c;
}

.btn-comm-action:hover {
  background: rgba(245, 158, 11, 0.35);
  color: #fff;
}

/* Ranking Quick Chips (Header Filters) */
.ranking-quick-chips {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  margin-top: 8px;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ranking-quick-chips::-webkit-scrollbar {
  display: none;
}

.rank-filter-chip {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.rank-filter-chip.active {
  background: rgba(245, 158, 11, 0.22);
  border-color: var(--accent-gold);
  color: #ffc72c;
  font-weight: 700;
}

.rank-filter-chip.chip-map-jump {
  background: rgba(255, 107, 0, 0.15);
  border-color: rgba(255, 107, 0, 0.35);
  color: #ff9933;
}

/* Mobile Action Pill Row (Suggest Mandal & Advertise) */
.mobile-action-pill-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.m-pill-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.m-pill-btn:hover {
  background: rgba(245, 158, 11, 0.22);
  color: #fff;
}

#m-pill-advertise {
  background: rgba(234, 88, 12, 0.1);
  border-color: rgba(234, 88, 12, 0.3);
  color: #fb923c;
}

/* ==========================================================================
   Modals & Authentic Devotional Showcase
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 940px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  overflow: hidden;
  animation: modal-enter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-cream);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--accent-vermillion);
}

.modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Authentic High-Resolution Darshan Showcase */
.darshan-photo-hero {
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  background: #080605;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.darshan-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 480px;
  min-height: 280px;
  background: radial-gradient(circle at center, #1c150c 0%, #080605 85%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.darshan-main-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  transition: transform 0.3s ease;
}

.stream-overlay-hud {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.feed-status-pill {
  background: rgba(15, 12, 9, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-color);
  color: var(--text-cream);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hud-telemetry-badge {
  background: rgba(15, 12, 9, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-gold);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-family: var(--font-mono);
}

.darshan-angle-bar {
  display: flex;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
  padding: 8px 12px;
  gap: 8px;
  overflow-x: auto;
}

.darshan-angle-tab {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.darshan-angle-tab:hover {
  color: var(--text-main);
  border-color: var(--border-color);
}

.darshan-angle-tab.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.darshan-angle-tab.accent-road {
  border-color: rgba(234, 88, 12, 0.4);
}

.darshan-angle-tab.accent-road.active {
  background: rgba(234, 88, 12, 0.25);
  border-color: var(--accent-saffron);
  color: var(--accent-saffron);
}

/* Grid & Info Cards */
.modal-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.info-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 14px;
}

.info-card-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-cream);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feed-indicator {
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 2px 6px;
  border-radius: 3px;
}

.cv-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cv-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.check-icon {
  color: #10b981;
  font-weight: 700;
}

.ai-summary-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-cream);
  margin-top: 10px;
  line-height: 1.5;
}

.history-chart-wrap {
  width: 100%;
  height: 180px;
  position: relative;
}

#history-canvas {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   First-Person Street & Pandal POV Modal ("Stand in Front of Mandal")
   ========================================================================== */
.pov-modal-window {
  max-width: 1060px;
  height: 88vh;
}

.pov-mode-bar {
  display: flex;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 16px;
  gap: 8px;
  overflow-x: auto;
}

.pov-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #080605;
}

.pov-view-pane {
  display: none;
  width: 100%;
  height: 100%;
}

.pov-view-pane.active {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Pane 1: Live Devotee Queue & Crowd Simulation (100% Street Layman View)
   ========================================================================== */
.crowd-sim-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: relative;
  background: #080605;
}

.crowd-sim-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(23, 21, 18, 0.95);
  border-bottom: 1px solid var(--border-color);
  z-index: 10;
  gap: 10px;
  flex-wrap: wrap;
}

.crowd-mode-controls {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   Genuine Live Darshan Wait Time & Crowd Rush Dashboard (Pane 1)
   ========================================================================== */
.rush-intel-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 16px;
  gap: 16px;
  background: radial-gradient(circle at 50% 10%, #1c150c 0%, #0a0705 90%);
}

/* Hero Rush & Wait Banner */
.rush-hero-card {
  background: linear-gradient(135deg, rgba(38, 27, 13, 0.95), rgba(20, 14, 8, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(245, 158, 11, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rush-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.rush-wait-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rush-live-beacon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  display: inline-block;
  animation: pulse-beacon 1.8s infinite;
}

.rush-status-pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.18);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.rush-basis-text {
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
}

.rush-metrics-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.rush-metric-box {
  background: rgba(14, 11, 8, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s ease;
}

.rush-metric-box:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.45);
}

.rush-metric-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.rush-metric-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-gold);
  font-family: var(--font-sans);
  letter-spacing: -0.3px;
}

.rush-metric-sub {
  font-size: 11px;
  color: var(--text-cream);
  opacity: 0.85;
}

.rush-advice-strip {
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid var(--accent-gold);
  border-radius: 4px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-cream);
}

.rush-advice-icon {
  font-size: 15px;
  flex-shrink: 0;
}

/* Center Split: Left Murti Preview, Right Approach & Schedule */
.rush-center-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
}

.rush-murti-preview-card,
.rush-roads-glance-card,
.rush-schedule-card {
  background: rgba(18, 14, 10, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rush-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rush-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold);
}

.btn-goto-tab {
  background: transparent;
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-goto-tab:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent-gold);
}

/* Murti Preview Frame */
.rush-murti-frame {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #080605;
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rush-murti-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #080605;
  transition: transform 0.3s ease;
}

.rush-murti-frame:hover .rush-murti-img {
  transform: scale(1.03);
}

.rush-murti-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(12, 10, 8, 0.95) 40%);
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-cream);
  text-align: center;
}

/* Right Column Details */
.rush-details-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rush-roads-mini-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rush-road-mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(26, 21, 15, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rush-road-mini-item:hover {
  border-color: var(--accent-gold);
  background: rgba(36, 29, 21, 0.95);
}

.rush-road-mini-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rush-road-mini-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-cream);
}

.rush-road-mini-dist {
  font-size: 10px;
  color: var(--text-muted);
}

.rush-road-mini-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rush-schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sched-item {
  background: rgba(26, 21, 15, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sched-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.sched-val {
  font-size: 12px;
  color: var(--accent-gold);
  font-weight: 700;
}

/* Bottom Action Navigation Bar */
.rush-action-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.rush-action-btn {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-sm);
  color: var(--text-cream);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.rush-action-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-1px);
}

.rush-action-btn.primary {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  border-color: #ea580c;
  color: #ffffff;
}

.rush-action-btn.primary:hover {
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 0 14px rgba(234, 88, 12, 0.4);
}

.rush-action-btn.accent {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.45);
  color: #60a5fa;
}

.rush-action-btn.accent:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: #60a5fa;
  color: #ffffff;
}

/* Pane 1: Direct Temple Darshan & Idol View */
.pov-darshan-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: relative;
  background: #080605;
}

.pov-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(23, 21, 18, 0.95);
  border-bottom: 1px solid var(--border-color);
  z-index: 10;
  gap: 10px;
}

.pov-angle-selector {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.pov-angle-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.pov-angle-btn.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.pov-zoom-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2px 6px;
}

.zoom-btn {
  background: transparent;
  border: none;
  color: var(--text-cream);
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  padding: 2px 6px;
}

.zoom-level {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--accent-gold);
  font-weight: 700;
}

.pov-image-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at center, #1c150c 0%, #080605 85%);
  min-height: 320px;
  width: 100%;
}

.pov-hero-photo {
  max-width: 95%;
  max-height: 92%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(245, 158, 11, 0.2);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pov-hero-photo.zoom-1x { transform: scale(1); }
.pov-hero-photo.zoom-1-5x { transform: scale(1.45); }
.pov-hero-photo.zoom-2x { transform: scale(1.95); }

.darshan-glow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
}

.pov-photo-attribution {
  position: absolute;
  bottom: 12px;
  left: 16px;
  background: rgba(12, 10, 9, 0.85);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-cream);
}

.pov-telemetry-strip {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-size: 11px;
  color: var(--text-muted);
  gap: 12px;
  overflow-x: auto;
}

.pov-metric-item strong {
  color: var(--accent-gold);
  font-weight: 700;
  margin-left: 3px;
}

/* Pane 2: Live Road Traffic & Approach (Google Maps) */
.traffic-view-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #080605;
}

.traffic-header-strip {
  padding: 12px 18px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.traffic-road-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.traffic-pin {
  font-size: 20px;
}

.traffic-road-name {
  font-size: 14px;
  color: var(--text-cream);
  font-weight: 700;
}

.traffic-status-text {
  font-size: 11px;
  color: var(--accent-saffron);
  margin-top: 2px;
}

.btn-traffic-maps {
  background: linear-gradient(135deg, #ea580c, #f59e0b);
  color: #000;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-traffic-maps:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

.traffic-iframe-wrap {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #080605;
  position: relative;
}

.traffic-road-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.traffic-legend-strip {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Top 3 Roads Within 1km Selector */
.traffic-roads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px 16px;
  background: rgba(18, 14, 10, 0.95);
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .traffic-roads-grid {
    grid-template-columns: 1fr;
  }
}

.traffic-road-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.traffic-road-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.traffic-road-card.active {
  background: rgba(24, 20, 16, 0.98);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.7);
}

/* Blue (Clear / Free Flow) */
.traffic-road-card.color-blue {
  border-left: 4px solid #38bdf8;
}
.traffic-road-card.color-blue.active {
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

/* Orange (Moderate Rush) */
.traffic-road-card.color-orange {
  border-left: 4px solid #f59e0b;
}
.traffic-road-card.color-orange.active {
  border-color: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}

/* Red (Heavy Jam) */
.traffic-road-card.color-red {
  border-left: 4px solid #ef4444;
}
.traffic-road-card.color-red.active {
  border-color: #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
}

.road-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.road-distance-pill {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

.road-status-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-blue { background: rgba(56, 189, 248, 0.18); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.badge-orange { background: rgba(245, 158, 11, 0.18); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-red { background: rgba(239, 68, 68, 0.18); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.4); }

.road-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-cream);
  line-height: 1.3;
  margin-top: 2px;
}

.road-meta-line {
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.traffic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.traffic-dot.blue { background: #38bdf8; }
.traffic-dot.green { background: #10b981; }
.traffic-dot.orange { background: #f59e0b; }
.traffic-dot.red { background: #ef4444; }

/* Pane 3: Devotee Social Snaps & Reels (Strictly Last 5) */
.social-feed-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #080605;
}

.hashtag-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.hashtag-pill {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--border-color);
  color: var(--accent-gold);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

@media (min-width: 960px) {
  .social-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.social-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.social-card:hover {
  border-color: var(--border-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.social-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle at center, #1a1208 0%, #0c0a09 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  image-rendering: auto;
}

.social-type-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(12, 10, 9, 0.85);
  border: 1px solid var(--border-color);
  color: var(--accent-gold);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.social-source-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(12, 10, 9, 0.9);
  border: 1px solid rgba(255, 107, 0, 0.4);
  color: var(--accent-saffron);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.social-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.social-card-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.platform-tag {
  font-size: 9px;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
}

.platform-instagram { background: rgba(225, 48, 108, 0.2); color: #e1306c; }
.platform-facebook { background: rgba(24, 119, 242, 0.2); color: #1877f2; }
.platform-youtube { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.platform-reddit { background: rgba(255, 69, 0, 0.2); color: #ff4500; }
.platform-pinterest { background: rgba(230, 0, 35, 0.2); color: #e60023; }
.platform-website { background: rgba(217, 119, 6, 0.2); color: #f59e0b; }
.platform-public { background: rgba(16, 185, 129, 0.2); color: #10b981; }

.social-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.embed-like-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.embed-like-btn:hover, .embed-like-btn.liked {
  background: rgba(225, 48, 108, 0.15);
  border-color: #e1306c;
  color: #e1306c;
}

.embed-platform-btn {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.embed-platform-btn.embed-instagram {
  background: linear-gradient(135deg, rgba(225,48,108,0.2), rgba(131,58,180,0.2));
  border: 1px solid #e1306c;
  color: #fce7f3;
}
.embed-platform-btn.embed-instagram:hover {
  background: #e1306c;
  color: #fff;
}

.embed-platform-btn.embed-facebook {
  background: rgba(24, 119, 242, 0.15);
  border: 1px solid #1877f2;
  color: #dbeafe;
}
.embed-platform-btn.embed-facebook:hover {
  background: #1877f2;
  color: #fff;
}

.embed-platform-btn.embed-youtube {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fee2e2;
}
.embed-platform-btn.embed-youtube:hover {
  background: #ef4444;
  color: #fff;
}

/* YouTube Click-to-Play Overlay */
.yt-play-trigger {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.yt-play-trigger:hover {
  background: rgba(0, 0, 0, 0.55);
}

.yt-play-icon {
  width: 48px;
  height: 48px;
  background: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
  padding-left: 4px;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.7);
  transition: transform 0.2s ease;
}

.yt-play-trigger:hover .yt-play-icon {
  transform: scale(1.15);
}

.yt-play-label {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.social-card-caption {
  font-size: 12px;
  color: var(--text-cream);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.social-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  margin-top: auto;
}

/* Pane 4: Official Live Video Stream */
.livestream-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #000;
}

.livestream-iframe {
  width: 100%;
  flex: 1;
  border: none;
}

.stream-offline-box {
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1c150c 0%, #080605 85%);
  padding: 24px;
  text-align: center;
}

.stream-offline-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.8;
}

.stream-offline-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-cream);
  margin-bottom: 6px;
}

.stream-offline-desc {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.btn-stream-channel {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-stream-channel:hover {
  background: rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
}

.pov-tab-btn.tab-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.8);
}

.livestream-bar {
  padding: 12px 18px;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: linear-gradient(135deg, #1f1810, #2b1f11);
  border: 1px solid var(--accent-gold);
  color: var(--text-cream);
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), var(--shadow-glow);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toast-in 0.3s ease, toast-out 0.3s ease 2.7s forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-12px); }
}

/* ==========================================================================
   Mobile-First Sticky Bottom Navigation
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  z-index: 1500;
  align-items: center;
  justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-nav-btn {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-nav-icon {
  font-size: 18px;
}

.mobile-nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.mobile-nav-btn.active {
  color: var(--accent-gold);
}

.mobile-nav-btn.active .mobile-nav-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
}

/* ==========================================================================
   Responsive Architecture & Mobile-First Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
  body {
    overflow-y: auto;
  }

  .top-header {
    height: 52px;
    padding: 0 10px;
  }

  .brand-title {
    font-size: 13px;
  }

  .brand-tag {
    display: none;
  }

  .weather-widget {
    display: none;
  }

  .btn-header:not(.accent-sync) {
    display: none;
  }

  .ad-banner-top {
    font-size: 10px;
    padding: 4px 10px;
  }

  .ad-text {
    max-width: 220px;
  }

  .dashboard-body {
    flex-direction: column;
    height: calc(100vh - 52px - 28px - 56px);
  }

  /* Mobile panel toggling */
  .map-panel, .ranking-panel {
    flex: 1;
    width: 100%;
    height: 100%;
    border-right: none;
  }

  .map-panel.mobile-hidden,
  .ranking-panel.mobile-hidden {
    display: none !important;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .map-city-stats {
    display: none;
  }

  .map-legend {
    bottom: 8px;
    right: 8px;
    font-size: 9px;
    padding: 6px 10px;
  }

  .map-overlay-controls {
    top: 10px;
    left: 10px;
  }

  .map-chip-btn {
    padding: 5px 10px;
    font-size: 10px;
  }

  .modal-window {
    max-height: 96vh;
    border-radius: var(--radius);
  }

  .modal-grid-two {
    grid-template-columns: 1fr;
  }

  .darshan-media-wrap {
    height: 260px;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .pov-top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .pov-telemetry-strip {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }

  .toast-container {
    bottom: 70px;
  }

  .btn-header#btn-open-admin {
    display: inline-flex !important;
    padding: 5px 8px;
    font-size: 11px;
  }
}

/* ==========================================================================
   Admin & Community Suggestion Form Styles
   ========================================================================== */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 640px) {
  .admin-grid {
    grid-template-columns: 1fr !important;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-cream);
  letter-spacing: 0.3px;
}

.form-input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-main);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.admin-mandals-table-wrap {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.admin-mandals-table-wrap table th,
.admin-mandals-table-wrap table td {
  padding: 8px 10px;
  vertical-align: middle;
}

.admin-mandals-table-wrap table tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background: #ef4444;
  color: #fff;
}

.admin-ad-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.admin-suggestion-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Header Action Buttons */
.btn-header.accent-suggest {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--accent-gold);
}

.btn-header.accent-suggest:hover {
  background: rgba(245, 158, 11, 0.28);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.btn-header.accent-advertise {
  background: rgba(234, 88, 12, 0.15);
  border-color: rgba(234, 88, 12, 0.45);
  color: #fb923c;
  font-weight: 600;
}

.btn-header.accent-advertise:hover {
  background: rgba(234, 88, 12, 0.3);
  box-shadow: 0 0 12px rgba(234, 88, 12, 0.4);
}

/* Community & Advertiser Modal Tabs */
.community-tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.community-tab-btn {
  flex: 1;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.community-tab-btn:hover {
  color: var(--text-main);
  border-color: var(--border-color);
}

.community-tab-btn.active {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.2), rgba(245, 158, 11, 0.25));
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

/* Admin Advertiser Leads */
.admin-advertiser-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-advertiser-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-advertiser-badge {
  background: rgba(234, 88, 12, 0.2);
  color: #fb923c;
  border: 1px solid rgba(234, 88, 12, 0.4);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.ad-native-inquire-link {
  font-size: 11px;
  color: var(--accent-gold);
  cursor: pointer;
  text-decoration: underline;
  margin-top: 6px;
  display: inline-block;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.ad-native-inquire-link:hover {
  opacity: 1;
}

/* ==========================================================================
   Devotee Guide & AnswerThePublic Festive Resource Hub Styles
   ========================================================================== */
.modal-dialog-wide {
  max-width: 960px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.guide-search-wrap {
  position: relative;
  margin-bottom: 16px;
}

.guide-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.7;
}

.guide-search-input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px 10px 38px;
  color: var(--text-cream);
  font-size: 13px;
  font-family: var(--font-sans);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.guide-search-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.guide-nav-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.guide-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.guide-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-cream);
}

.guide-tab-btn.active {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.25), rgba(245, 158, 11, 0.25));
  border-color: var(--accent-saffron);
  color: #fbbf24;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.2);
}

.guide-content-area {
  overflow-y: auto;
  max-height: calc(90vh - 230px);
  padding-right: 4px;
}

.guide-grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
}

.guide-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.guide-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
  width: fit-content;
}

.guide-badge.positive {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.guide-badge.local {
  background: rgba(234, 88, 12, 0.15);
  color: #fb923c;
  border: 1px solid rgba(234, 88, 12, 0.4);
}

.guide-badge.divine {
  background: rgba(245, 158, 11, 0.15);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.guide-badge.order {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.guide-badge.trending, .guide-badge.apartment, .guide-badge.digital, .guide-badge.apps {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.guide-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-cream);
  margin-bottom: 8px;
}

.guide-card-p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-list-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store-name {
  font-size: 13px;
  font-weight: 700;
  color: #fef08a;
}

.store-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.guide-link {
  font-size: 11.5px;
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  margin-top: 4px;
  align-self: flex-start;
  transition: text-decoration 0.2s;
}

.guide-link:hover {
  text-decoration: underline;
}

/* Step-by-Step Puja Vidhi */
.vidhi-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.vidhi-step {
  display: flex;
  gap: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
}

.step-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-saffron);
  font-family: var(--font-mono);
  background: rgba(234, 88, 12, 0.15);
  border: 1px solid rgba(234, 88, 12, 0.4);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-cream);
}

.step-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FAQs */
.guide-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px;
}

.faq-q {
  font-size: 14px;
  font-weight: 700;
  color: #fef08a;
  margin-bottom: 6px;
}

.faq-a {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Security Certification Modal */
.cert-status-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.cert-decision-badge {
  display: inline-block;
  background: #10b981;
  color: #000;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.cert-score-display {
  font-size: 16px;
  color: #e6fcf5;
  margin-bottom: 4px;
}

.cert-score-display strong {
  color: #34d399;
  font-size: 20px;
}

.cert-verdict {
  font-size: 12px;
  color: #a7f3d0;
}

.cert-audit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.cert-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text-cream);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cert-check {
  color: #10b981;
  font-weight: 800;
}

/* ==========================================================================
   Flutter-Grade Mobile UX Architecture (Inspired by Awesome-Flutter)
   - Draggable Floating Bottom Sheet with Peek, Half & Full Snap States
   - Material 3 Navigation Bar with Active Saffron Pill Indicators
   - Full-Bleed Map Viewport with Horizontally Swiping Filter Chips
   - Touch-Optimized Cards with 44px+ Hit Targets & Smooth Momentum Scroll
   ========================================================================== */

/* Hidden on Desktop */
.sheet-drag-handle-bar {
  display: none;
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
    height: 100dvh;
    width: 100vw;
    overflow: hidden;
  }

  .app-container {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* --- Flutter App Bar (Header) --- */
  .top-header {
    height: 54px;
    min-height: 54px;
    padding: 0 12px;
    gap: 8px;
    background: rgba(18, 15, 12, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .brand-section {
    gap: 8px;
  }

  .brand-logo-img {
    height: 32px;
    width: auto;
  }

  .brand-tagline-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .brand-tagline {
    display: none !important; /* Conceal text tagline on mobile */
  }

  .brand-cert-badge {
    display: inline-flex !important;
    padding: 3px 8px !important;
    font-size: 10px !important;
    border-radius: 12px !important;
  }

  /* City Switcher Flutter Pill */
  .city-switcher {
    background: rgba(0, 0, 0, 0.5);
    padding: 2px;
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.25);
  }

  .city-btn {
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 16px;
    letter-spacing: 0.5px;
  }

  .city-btn.active {
    background: linear-gradient(135deg, #ff6b00, #f59e0b);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4);
  }

  /* Hide Desktop Action Buttons on Mobile */
  .header-actions .weather-widget,
  .header-actions .accent-sync,
  .header-actions .accent-suggest,
  .header-actions .accent-advertise,
  .header-actions .accent,
  .header-actions #btn-open-admin {
    display: none !important;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .accent-guide {
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 16px;
  }

  .header-actions .accent-guide span {
    display: inline-block;
  }

  /* Devotional Top Sponsor Ribbon */
  .ad-banner-top {
    height: 32px;
    min-height: 32px;
    font-size: 11px;
    padding: 0 10px;
  }

  .ad-banner-content {
    gap: 6px;
  }

  .ad-cta {
    padding: 2px 8px;
    font-size: 10px;
  }

  /* --- Main Dashboard: Full-Bleed Map + Floating Bottom Sheet --- */
  /* --- Mobile Layout Container --- */
  .dashboard-body {
    flex: 1;
    position: relative;
    height: calc(100dvh - 54px - 58px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  /* Default on Mobile: Show Mandals screen, hide Map screen */
  body:not(.mobile-view-map) .map-panel {
    display: none !important;
  }

  body:not(.mobile-view-map) .ranking-panel {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    position: static !important;
    flex-direction: column !important;
    background: var(--bg-primary) !important;
    border-left: none !important;
    border-top: none !important;
    box-shadow: none !important;
    z-index: 10 !important;
  }

  /* When Map View is Active */
  body.mobile-view-map .ranking-panel {
    display: none !important;
  }

  body.mobile-view-map .map-panel {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    z-index: 10 !important;
  }

  #festival-map {
    width: 100% !important;
    height: 100% !important;
  }

  /* Map Floating Top Controls */
  .map-overlay-controls {
    top: 10px;
    left: 8px;
    right: 8px;
    z-index: 400;
  }

  .map-control-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 4px 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .map-control-row::-webkit-scrollbar {
    display: none;
  }

  .map-chip-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 20px;
    background: rgba(14, 12, 10, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-height: 34px;
    display: flex;
    align-items: center;
    color: var(--text-cream);
  }

  .map-chip-btn.active {
    background: rgba(255, 107, 0, 0.25);
    border-color: #ff6b00;
    color: #ff9933;
    font-weight: 700;
  }

  /* Hide Desktop Legend and Desktop City Stats Pill on Mobile Map */
  .map-legend,
  .map-city-stats {
    display: none !important;
  }

  /* --- Mobile Interactive Map Carousel (Synced with Leaflet Markers) --- */
  .mobile-map-carousel-wrap {
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 10px;
    left: 8px;
    right: 8px;
    z-index: 450;
    pointer-events: auto;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .mobile-map-carousel-wrap.minimized .mobile-map-carousel {
    display: none;
  }

  .mobile-map-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(18, 14, 10, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 6px 12px;
  }

  .carousel-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.3px;
  }

  .btn-toggle-carousel {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
  }

  .btn-toggle-carousel:hover {
    color: #fff;
  }

  .mobile-map-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(14, 11, 8, 0.94);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mobile-map-carousel::-webkit-scrollbar {
    display: none;
  }

  .carousel-mandal-card {
    flex: 0 0 270px;
    scroll-snap-align: start;
    background: rgba(26, 21, 16, 0.96);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
  }

  .carousel-mandal-card.active-card {
    border-color: #ff6b00;
    box-shadow: 0 0 14px rgba(255, 107, 0, 0.4);
    background: rgba(34, 25, 18, 0.98);
  }

  .carousel-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .carousel-rank-badge {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 2px 6px;
    border-radius: 6px;
    flex-shrink: 0;
  }

  .carousel-mandal-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
  }

  .carousel-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
  }

  .carousel-rush-pill {
    font-weight: 700;
    font-size: 10.5px;
    padding: 2px 7px;
    border-radius: 10px;
  }

  .carousel-wait-text {
    color: var(--text-muted);
    font-size: 10.5px;
  }

  .carousel-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 2px;
  }

  .carousel-btn-pov {
    flex: 1;
    background: linear-gradient(135deg, #c2410c, #ea580c);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
  }

  .carousel-btn-locate {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-cream);
    border-radius: 6px;
    font-size: 11px;
    padding: 5px 8px;
    cursor: pointer;
  }

  /* --- Mobile Mandals List View Styling --- */
  .ranking-header {
    padding: 8px 12px 10px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .ranking-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }

  .ranking-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-cream);
  }

  .search-filter-input {
    height: 40px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    padding: 0 16px;
    width: 100%;
  }

  .leaderboard-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px 24px;
    -webkit-overflow-scrolling: touch;
  }

  /* Touch-Friendly Cards on Mobile */
  .ranking-card {
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 14px;
    background: rgba(24, 20, 16, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .card-top-row {
    gap: 10px;
  }

  .rank-number {
    font-size: 17px;
    min-width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mandal-card-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
  }

  .card-action-row {
    gap: 8px;
    margin-top: 10px;
    flex-wrap: nowrap;
    position: relative;
    z-index: 2;
  }

  .btn-card-action {
    flex: 1;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    cursor: pointer;
  }

  .btn-card-action.btn-stand-front {
    flex: 2;
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #ffffff;
    box-shadow: 0 3px 12px rgba(234, 88, 12, 0.4);
  }

  .btn-card-action.btn-stand-front:active {
    transform: scale(0.97);
    filter: brightness(1.15);
  }

  .btn-card-action.card-map-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text-cream);
  }

  .btn-card-action.card-map-btn:active {
    background: rgba(255, 255, 255, 0.14);
    transform: scale(0.97);
  }

  /* --- Flutter Material 3 Navigation Bar (Mandals, Map, Best Mandals, Guide) --- */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0; /* Strictly fixed at bottom */
    left: 0;
    right: 0;
    height: 58px;
    background: rgba(14, 12, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    align-items: center;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mobile-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    min-height: 48px;
    padding: 3px 0;
    transition: transform 0.15s ease;
  }

  .mobile-nav-btn:active {
    transform: scale(0.92);
  }

  .mobile-nav-pill {
    width: 44px;
    height: 26px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .mobile-nav-icon {
    font-size: 17px;
    line-height: 1;
  }

  .mobile-nav-label {
    font-size: 10.5px;
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: 0.2px;
    color: var(--text-dim);
    transition: color 0.2s;
  }

  .mobile-nav-btn.active .mobile-nav-pill {
    background: rgba(255, 107, 0, 0.22);
  }

  .mobile-nav-btn.active .mobile-nav-label {
    color: #ff9933;
    font-weight: 700;
  }

  /* --- First-Person Street & Pandal POV Modal on Mobile (Navigable Vertical Stacks) --- */
  .modal-window {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh !important;
    border-radius: 20px 20px 0 0 !important;
    margin: 0 !important;
    position: absolute !important;
    bottom: 0 !important;
    top: auto !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    touch-action: pan-y !important;
  }

  .sheet-drag-pill {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 2px;
    margin: 8px auto 4px;
    display: block;
    cursor: grab;
    flex-shrink: 0;
  }

  .cred-back-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: var(--text-cream) !important;
    border-radius: 20px !important;
    padding: 5px 12px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
  }

  .cred-back-btn:active {
    background: rgba(255, 107, 0, 0.25) !important;
    border-color: #ff6b00 !important;
  }

  .pov-modal-window {
    height: 92vh !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .pov-modal-window .modal-header {
    padding: 12px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-shrink: 0 !important;
  }

  .pov-modal-window .modal-title-wrap {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .pov-modal-window .modal-title {
    font-size: 13.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .pov-mode-bar {
    padding: 6px 10px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    gap: 6px !important;
    background: var(--bg-tertiary) !important;
    flex-shrink: 0 !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .pov-mode-bar::-webkit-scrollbar {
    display: none;
  }

  .pov-tab-btn {
    flex-shrink: 0 !important;
    font-size: 11.5px !important;
    padding: 6px 12px !important;
    border-radius: 16px !important;
  }

  .pov-viewport {
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Hide top ribbon on mobile to maximize viewport height for mandals */
  .ad-banner-top {
    display: none !important;
  }

  /* Navigable Stacks inside Live Wait & Rush Pane: Bappa's Murti is Hero #1 */
  .rush-intel-container {
    padding: 12px 14px !important;
    gap: 12px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* BAPPA MURTI COMES FIRST ON MOBILE */
  .rush-center-split {
    order: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .rush-murti-preview-card {
    border-radius: 16px !important;
    background: #120e0a !important;
    border: 1.5px solid rgba(245, 158, 11, 0.4) !important;
    padding: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7) !important;
  }

  .rush-murti-frame {
    height: 250px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  .rush-murti-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* HERO RUSH & WAIT BANNER COMES SECOND */
  .rush-hero-card {
    order: 2 !important;
    padding: 14px !important;
    gap: 12px !important;
    border-radius: 16px !important;
  }

  /* SQUASHED 3 COLUMNS CONVERTED TO CLEAN VERTICAL STACKS */
  .rush-metrics-main {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .rush-metric-box {
    padding: 12px 14px !important;
    border-radius: 12px !important;
    background: rgba(14, 11, 8, 0.95) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
  }

  .rush-metric-label {
    font-size: 11px !important;
    color: var(--accent-gold) !important;
    font-weight: 700 !important;
  }

  .rush-metric-value {
    font-size: 20px !important;
    font-weight: 800 !important;
    margin: 4px 0 2px !important;
    color: #fff;
  }

  .rush-metric-sub {
    font-size: 11.5px !important;
    color: var(--text-muted) !important;
    line-height: 1.4 !important;
  }

  .rush-roads-glance-card,
  .rush-schedule-card {
    padding: 12px !important;
    border-radius: 14px !important;
  }

  /* Devotee Guide & Recommendations Mobile Bottom Sheet Styling */
  #modal-devotee-guide .modal-dialog,
  #recommendations-modal .modal-window {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh !important;
    border-radius: 20px 20px 0 0 !important;
    margin: 0 !important;
    position: absolute !important;
    bottom: 0 !important;
    top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--bg-secondary) !important;
  }

  #modal-devotee-guide .modal-header,
  #recommendations-modal .modal-header {
    padding: 12px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-shrink: 0 !important;
    gap: 8px !important;
  }

  #modal-devotee-guide .modal-body,
  #recommendations-modal .modal-content {
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 12px 14px !important;
  }
}

/* ==========================================================================
   STRICT DESKTOP LAYOUT ENFORCEMENT (@media min-width: 769px)
   Prevents any mobile sheet, carousel, or toggled display from breaking desktop
   ========================================================================== */
@media (min-width: 769px) {
  body {
    overflow: hidden !important;
    height: 100vh !important;
  }

  .app-container {
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .dashboard-body {
    display: flex !important;
    flex-direction: row !important;
    flex: 1 !important;
    height: calc(100vh - 58px - 32px) !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .map-panel {
    display: block !important;
    flex: 0 0 65% !important;
    width: 65% !important;
    height: 100% !important;
    position: relative !important;
    border-right: 1px solid var(--border-color) !important;
  }

  .ranking-panel {
    display: flex !important;
    flex: 0 0 35% !important;
    width: 35% !important;
    height: 100% !important;
    position: relative !important;
    background-color: var(--bg-secondary) !important;
    border-left: none !important;
    z-index: 1 !important;
    flex-direction: column !important;
  }

  .mobile-map-carousel-wrap,
  .mobile-bottom-nav,
  .mobile-security-bar,
  .mobile-action-pill-row,
  .chip-map-jump,
  .sheet-drag-handle-bar {
    display: none !important;
  }

  .map-city-stats {
    display: flex !important;
  }

  .map-legend {
    display: block !important;
  }

  .modal-window {
    max-width: 940px !important;
    max-height: 90vh !important;
    position: relative !important;
    bottom: auto !important;
    border-radius: var(--radius-lg) !important;
  }
}
