/* 
 * SynopX — Meteorological Data Intelligence Platform
 * Theme: Meteorological Operations Center — Glassmorphic Aurora
 * Author & Lead: Lal Kamal : IMD
 * Matched strictly to _reference/Metar Analysis/css/style.css
 */

:root {
  --primary: #0ea5e9;
  --secondary: #6366f1;
  --accent: #f43f5e;
  --bg-dark: #0f172a;
  --card-bg: rgba(30, 41, 59, 0.7);
  --border-glass: rgba(255, 255, 255, 0.12);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

body {
  font-family: "Outfit", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* =========================================
   ANIMATED GRADIENT BACKGROUND & ORBS
   ========================================= */
.bg-animation {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -2;
  background: linear-gradient(45deg, #0f172a, #1e1b4b, #020617, #172554);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

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

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  animation: floatOrb 12s infinite ease-in-out alternate;
}
.orb-1 {
  width: 420px;
  height: 420px;
  background: rgba(14, 165, 233, 0.18);
  top: -80px;
  left: -80px;
}
.orb-2 {
  width: 520px;
  height: 520px;
  background: rgba(99, 102, 241, 0.18);
  bottom: -120px;
  right: -100px;
  animation-delay: -5s;
}
.orb-3 {
  width: 350px;
  height: 350px;
  background: rgba(244, 63, 94, 0.14);
  top: 45%;
  left: 40%;
  animation-duration: 16s;
  animation-delay: -3s;
}

@keyframes floatOrb {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-35px) scale(1.08); }
}

/* =========================================
   GLASSMORPHISM PANELS & CARDS
   ========================================= */
.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
}

.core-glass-panel {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(14, 165, 233, 0.25);
  border-color: rgba(255, 255, 255, 0.25);
}

.glass-card:hover::before {
  opacity: 1;
}

/* =========================================
   LIGHT THEME SUPPORT (WCAG AA Compliant)
   High contrast, no black-on-black or white-on-white
   ========================================= */
body.light-theme,
[data-theme="light"],
[data-theme="light"] body {
  --bg-dark: #f8fafc;
  --card-bg: #ffffff;
  --border-glass: rgba(0, 0, 0, 0.1);
  --text-main: #0f172a;
  --text-muted: #475569;
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

/* Background animation in light mode */
body.light-theme .bg-animation {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%) !important;
}

/* Glass panels in light mode */
body.light-theme .glass-panel,
body.light-theme .core-glass-panel,
body.light-theme .glass-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

/* Containers with dark backgrounds converted to crisp clean cards */
body.light-theme .bg-slate-900,
body.light-theme .bg-slate-950,
body.light-theme .bg-\[\#0b1120\],
body.light-theme [class*="bg-slate-900"],
body.light-theme [class*="bg-slate-950"],
body.light-theme [class*="bg-slate-900\/"],
body.light-theme [class*="bg-slate-950\/"] {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Sub-containers & secondary rows */
body.light-theme .bg-slate-800,
body.light-theme [class*="bg-slate-800"],
body.light-theme [class*="bg-slate-800\/"] {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* Text color overrides: ONLY for regular text, NOT for colored buttons/badges */
body.light-theme .text-slate-100,
body.light-theme .text-slate-200,
body.light-theme .text-slate-300 {
  color: #1e293b !important;
}
body.light-theme .text-slate-400 {
  color: #475569 !important;
}
body.light-theme .text-slate-500 {
  color: #64748b !important;
}

/* Headers and Titles */
body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme h5,
body.light-theme h6 {
  color: #0f172a !important;
}

/* Preserving White Text on solid colored buttons & badges */
body.light-theme [class*="bg-sky-600"],
body.light-theme [class*="bg-blue-600"],
body.light-theme [class*="bg-indigo-600"],
body.light-theme [class*="bg-emerald-600"],
body.light-theme [class*="bg-rose-600"],
body.light-theme [class*="bg-cyan-600"],
body.light-theme [class*="from-sky-"],
body.light-theme [class*="from-cyan-"],
body.light-theme [class*="from-blue-"],
body.light-theme .btn-primary,
body.light-theme .bg-sky-600,
body.light-theme .bg-sky-500 {
  color: #ffffff !important;
}
body.light-theme [class*="bg-sky-600"] *,
body.light-theme [class*="bg-blue-600"] *,
body.light-theme [class*="bg-emerald-600"] *,
body.light-theme [class*="from-sky-"] *,
body.light-theme [class*="from-cyan-"] *,
body.light-theme [class*="from-emerald-"] *,
body.light-theme [class*="from-rose-"] * {
  color: #ffffff !important;
}

/* Form Controls */
body.light-theme input,
body.light-theme select,
body.light-theme textarea {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
body.light-theme input::placeholder {
  color: #94a3b8 !important;
}

/* Sidebar in Light Mode */
body.light-theme aside#leftSidebar,
body.light-theme #leftSidebar {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.05) !important;
}
body.light-theme #leftSidebar a {
  color: #334155 !important;
}
body.light-theme #leftSidebar a:hover,
body.light-theme #leftSidebar a.active {
  background-color: #e0f2fe !important;
  color: #0284c7 !important;
}
body.light-theme #leftSidebar .text-slate-400 {
  color: #64748b !important;
}

/* Synop Table in Detailed Analysis */
body.light-theme .synop-table {
  background-color: #cbd5e1 !important;
}
body.light-theme .synop-table th {
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
body.light-theme .synop-table td {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}
body.light-theme .synop-table tr:hover td {
  background: #f1f5f9 !important;
}

/* Terminal Window in Reports Hub */
body.light-theme .terminal-window {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}
body.light-theme .terminal-window pre {
  color: #0f172a !important;
}
body.light-theme .terminal-window .line-num {
  color: #94a3b8 !important;
}

/* Universal Advanced Footer in Light Mode */
body.light-theme .universal-advanced-footer,
body.light-theme .universal-advanced-footer .footer-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}
body.light-theme .universal-advanced-footer .footer-card {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}
body.light-theme .footer-dev-row .dev-label {
  color: #475569 !important;
}
body.light-theme .footer-dev-row .highlight-name {
  color: #0284c7 !important;
  text-shadow: none !important;
}

/* =========================================
   COCKPIT DASHBOARD (index.html) LIGHT THEME
   ========================================= */
/* Hide glow orbs in light theme */
body.light-theme .orb {
  display: none !important;
}

/* IMD Header sticky panel */
body.light-theme header.glass-panel {
  background: rgba(255, 255, 255, 0.97) !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}
body.light-theme header .text-slate-300 {
  color: #475569 !important;
}

/* Station detail cards on cockpit */
body.light-theme .glass-card,
body.light-theme .core-glass-panel {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
  color: #0f172a !important;
}

/* Leaflet map popup & tooltip in light mode */
body.light-theme .leaflet-popup-content-wrapper {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
}
body.light-theme .leaflet-popup-tip {
  background: #ffffff !important;
}
body.light-theme .leaflet-tooltip {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
}

/* Station drawer & info panels */
body.light-theme #stationDrawer,
body.light-theme .station-drawer {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}
body.light-theme #stationDrawer .text-white {
  color: #0f172a !important;
}
body.light-theme #stationDrawer .text-slate-300,
body.light-theme #stationDrawer .text-slate-400 {
  color: #475569 !important;
}

/* Weather summary cards & metric blocks */
body.light-theme .metric-card,
body.light-theme [class*="rounded-xl"][class*="bg-slate-9"] {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Raw inspector / code block */
body.light-theme #rawInspectorModal pre,
body.light-theme .raw-synop-text {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

/* Active station badge & region toggle */
body.light-theme #sidebarActiveStation {
  color: #0f172a !important;
}
body.light-theme .border-slate-700,
body.light-theme .border-slate-800 {
  border-color: #e2e8f0 !important;
}

/* Table-like grids in cockpit (synop summary tables) */
body.light-theme table td,
body.light-theme table th {
  border-color: #e2e8f0 !important;
}
body.light-theme table tr:nth-child(even) td {
  background: #f8fafc !important;
}

/* Scrollbar in light theme */
body.light-theme ::-webkit-scrollbar-track {
  background: #f1f5f9 !important;
}
body.light-theme ::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
}
body.light-theme ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8 !important;
}

/* =========================================
   CUSTOM SCROLLBAR
   ========================================= */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.45);
}

/* =========================================
   UNIVERSAL ADVANCED FOOTER - IMD Component
   Author & Lead: Lal Kamal : IMD
   (Matches _reference/Metar Analysis/css/style.css)
   ========================================= */
.advanced-footer {
  --ft-bg-start: rgba(15, 23, 42, 0.94);
  --ft-bg-end: rgba(30, 41, 59, 0.97);
  --ft-accent: #38bdf8;
  --ft-gold: #fbbf24;
  --ft-text: #f8fafc;
  --ft-muted: #94a3b8;
  --ft-border: rgba(255, 255, 255, 0.08);

  background: linear-gradient(135deg, var(--ft-bg-start) 0%, var(--ft-bg-end) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--ft-border);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 36px rgba(0, 0, 0, 0.35);
  color: var(--ft-text);
  padding: 32px 24px 26px;
  position: relative;
  z-index: 10;
  margin-top: 48px;
}

.footer-container {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

/* Developer Row */
.footer-dev-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 500;
  color: #e2e8f0;
  letter-spacing: 0.3px;
}

.footer-dev-row .dev-label {
  color: var(--ft-muted);
  font-weight: 500;
}

.footer-dev-row .highlight-name {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  text-shadow:
    0 0 6px rgba(56, 189, 248, 0.7),
    0 0 16px rgba(14, 165, 233, 0.5),
    0 0 28px rgba(2, 132, 199, 0.35);
  animation: dev-glow-pulse 2.2s infinite alternate ease-in-out;
  display: inline-block;
  transition: transform 0.25s ease;
}

.footer-dev-row .highlight-name:hover {
  transform: scale(1.04);
}

@keyframes dev-glow-pulse {
  0% {
    text-shadow:
      0 0 6px rgba(56, 189, 248, 0.6),
      0 0 14px rgba(14, 165, 233, 0.35);
  }
  100% {
    text-shadow:
      0 0 10px rgba(56, 189, 248, 0.95),
      0 0 22px rgba(14, 165, 233, 0.7),
      0 0 34px rgba(2, 132, 199, 0.5);
  }
}

.footer-dev-row .imd-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fde047;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.35);
  padding: 2px 10px;
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.15);
  letter-spacing: 0.3px;
}

/* Meta Row (Location, Source, Visitor Counter) */
.footer-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.footer-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-meta-item.source-item .source-title {
  color: var(--ft-muted);
  font-weight: 500;
}

.footer-meta-item.source-item strong {
  color: #e0f2fe;
  font-weight: 700;
}

.footer-meta-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: inline-block;
}

.footer-visitor-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 10px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.8rem;
  color: #7dd3fc;
}

.footer-visitor-badge i {
  color: var(--ft-accent);
  font-size: 0.75rem;
}

.footer-visitor-badge #visitorCount {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-weight: 700;
  color: #ffffff;
}

/* Glowing Divider */
.footer-divider-glow {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(56, 189, 248, 0.4) 50%,
    transparent 100%
  );
  margin: 6px 0;
}

/* Bottom Row (Copyright & Back to Top) */
.footer-bottom-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--ft-muted);
}

.footer-copyright {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-footer-backtotop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-footer-backtotop:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

/* Floating Bottom Credits Pill */
.map-footer-pill {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(251, 191, 36, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55), 0 0 14px rgba(251, 191, 36, 0.2);
  border-radius: 24px;
  padding: 6px 18px;
  font-size: 11px;
  font-weight: 700;
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.map-footer-pill:hover {
  background: rgba(30, 41, 59, 0.98);
  border-color: #fbbf24;
  color: #fbbf24;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.65), 0 0 18px rgba(251, 191, 36, 0.35);
}

@media (max-width: 640px) {
  .advanced-footer {
    padding: 22px 14px 18px;
    border-radius: 16px 16px 0 0;
    margin-top: 24px;
  }
  .footer-dev-row {
    font-size: 0.95rem;
  }
  .footer-dev-row .highlight-name {
    font-size: 1.18rem;
  }
  .footer-meta-row {
    flex-direction: column;
    gap: 6px;
    font-size: 0.8rem;
  }
  .footer-meta-sep {
    display: none;
  }
  .footer-bottom-row {
    flex-direction: column;
    gap: 10px;
  }
}

/* ========================================================
   MAP CUSTOMIZATION FLOATING PANEL (FROM NOWCAST SWFC)
   Base Themes, Boundary & Glow, Overlays
   ======================================================== */
.floating-basemap-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0284c7;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  transition: all 0.2s ease;
}
.floating-basemap-btn:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0369a1;
  transform: scale(1.05);
}

.basemap-floating-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 268px;
  max-height: calc(100% - 24px);
  background: #ffffff;
  color: #1e293b;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1200;
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  animation: bmpFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}
.basemap-floating-panel.open {
  display: flex;
}
@keyframes bmpFadeIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.bmp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.bmp-header-title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #0284c7;
  text-transform: uppercase;
}
.bmp-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 5px;
  transition: all 0.15s;
}
.bmp-close-btn:hover {
  color: #0f172a;
  background: #e2e8f0;
}

/* Segmented 3-Tab Navigation Bar */
.bmp-tabs-nav {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  margin: 8px 10px 4px;
  border: 1px solid #e2e8f0;
  gap: 4px;
  flex-shrink: 0;
}
.bmp-tab-btn {
  flex: 1;
  padding: 6px 8px;
  font-size: 10.5px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}
.bmp-tab-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.6);
}
.bmp-tab-btn.active {
  background: #ffffff;
  color: #0284c7;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.bmp-tab-pane {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 480px;
}
.bmp-tab-pane::-webkit-scrollbar {
  width: 5px;
}
.bmp-tab-pane::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.bmp-body {
  display: flex;
  flex-direction: column;
}

/* Solid/Clear Special Section */
.bmp-item-solid {
  background: #333846;
  color: #ffffff;
  padding: 9px 12px;
}
.bmp-solid-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.bmp-solid-top-row .bmp-title {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.bmp-mapbg-btn {
  background: #0284c7;
  border: none;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(2,132,199,0.35);
  transition: all 0.15s;
}
.bmp-mapbg-btn:hover {
  background: #0369a1;
  transform: translateY(-1px);
}
.bmp-circle-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.bmp-presets-container {
  background: #f8fafc;
  margin: 8px -12px -9px -12px;
  padding: 8px 12px 9px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.bmp-light-label {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}
.bmp-swatches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.bmp-swatch {
  height: 22px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  transition: all 0.15s ease;
  padding: 0;
}
.bmp-swatch:hover {
  transform: scale(1.12);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  border-color: #0284c7;
}

/* Standard Base Map Item */
.bmp-item {
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.15s;
  user-select: none;
}
.bmp-item:last-child {
  border-bottom: none;
}
.bmp-item:hover {
  background: #f8fafc;
}
.bmp-item.active {
  background: #f0f9ff;
  border-left: 3px solid #0284c7;
}
.bmp-radio-lbl {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  width: 100%;
  margin: 0;
}
.bmp-radio-lbl input[type="radio"] {
  cursor: pointer;
  accent-color: #0284c7;
  margin: 0;
  width: 14px;
  height: 14px;
}
.bmp-item-icon {
  font-size: 13px;
  color: #64748b;
  width: 18px;
  text-align: center;
}
.bmp-item.active .bmp-item-icon {
  color: #0284c7;
}
.bmp-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
}
.bmp-item.active .bmp-title {
  color: #0369a1;
  font-weight: 700;
}

/* TAB 2: Boundary Customizer Section */
.bmp-boundary-tab-content {
  padding: 10px 12px 12px;
  background: #ffffff;
}
.bmp-spotlight-control {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 12px 10px;
}
.bmp-spotlight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.bmp-spotlight-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.bmp-spotlight-val {
  font-size: 10.5px;
  font-weight: 800;
  color: #0284c7;
  background: #e0f2fe;
  padding: 1px 6px;
  border-radius: 4px;
}
.bmp-slider-row {
  display: flex;
  align-items: center;
}
.bmp-opacity-slider {
  width: 100%;
  height: 5px;
  border-radius: 4px;
  background: #cbd5e1;
  outline: none;
  cursor: pointer;
  accent-color: #0284c7;
}
.bmp-opacity-slider:hover {
  background: #94a3b8;
}

.bmp-glow-control {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 12px 10px;
}
.bmp-custom-group {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
}
.bmp-custom-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 7px;
}
.bmp-color-preview-tag {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  font-family: monospace;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.bmp-color-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}
.bmp-choose-color-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 4px;
  padding: 3px 7px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.bmp-choose-color-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.3);
}
.bmp-mini-swatches {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}
.bmp-mini-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  padding: 0;
  flex-shrink: 0;
}
.bmp-mini-swatch:hover {
  transform: scale(1.18);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.bmp-subslider-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #64748b;
  font-weight: 700;
}
.bmp-subslider-label {
  flex: 0 0 54px;
}
.bmp-mini-slider {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #cbd5e1;
  outline: none;
  cursor: pointer;
  accent-color: #0284c7;
}
.bmp-subslider-val {
  flex: 0 0 35px;
  text-align: right;
  font-size: 10.5px;
  font-weight: 800;
  color: #0284c7;
}
.bmp-reset-btn {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.bmp-reset-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

/* TAB 3: Advanced Meteorological Overlays */
.bmp-overlays-container {
  padding: 8px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #ffffff;
}
.bmp-overlay-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bmp-overlay-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.bmp-overlay-card-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bmp-overlay-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
}
.bmp-overlay-title i {
  font-size: 12px;
  width: 14px;
  text-align: center;
}
.bmp-overlay-desc {
  font-size: 9.5px;
  color: #64748b;
  line-height: 1.35;
}

/* Toggle Switch */
.bmp-toggle-switch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
  margin: 0;
}
.bmp-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.bmp-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 18px;
}
.bmp-toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.bmp-toggle-switch input:checked + .bmp-toggle-slider {
  background-color: #0284c7;
}
.bmp-toggle-switch input:checked + .bmp-toggle-slider:before {
  transform: translateX(14px);
}

.bmp-grat-steps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
}
.bmp-grat-pills {
  display: flex;
  gap: 4px;
}
.bmp-grat-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.bmp-grat-pill:hover {
  border-color: #0284c7;
  color: #0284c7;
}
.bmp-grat-pill.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

/* Graticule & Radar Rings tags */
.bmp-graticule-label {
  color: #475569;
  font-size: 9px;
  font-weight: 700;
  text-shadow: 0 0 3px #ffffff, 0 0 3px #ffffff;
  white-space: nowrap;
  pointer-events: none;
}
.bmp-radar-ring-tag {
  color: #0284c7;
  font-size: 9px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #bae6fd;
  border-radius: 4px;
  padding: 1px 4px;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

/* Neon State Boundary */
.neon-state-boundary {
  filter: drop-shadow(0 0 6px #ff00ff) drop-shadow(0 0 15px #00ffff) drop-shadow(0 0 25px #00ffff);
  stroke: #ffffff !important;
  stroke-width: 2.8px !important;
  fill: transparent !important;
  pointer-events: none;
  transition: all 0.5s ease;
}

/* Toast Notification */
#liveToast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(2, 132, 199, 0.5);
  color: #f8fafc;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}
#liveToast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* GeoJSON Quick Bar Pills */
.gj-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.gj-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
.gj-pill.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* ========================================================
   MAP FLOATING NAVIGATION DOCK (- , + , Auto Zoom , Auto Fit)
   ======================================================== */
.map-nav-dock {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  border-radius: 10px;
  padding: 4px 6px;
  user-select: none;
  max-width: calc(100% - 70px);
  overflow-x: auto;
  scrollbar-width: none;
}
.map-nav-dock::-webkit-scrollbar {
  display: none;
}
.map-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.map-nav-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}
.map-nav-btn:active {
  transform: translateY(1px);
}
.map-nav-btn-labeled {
  width: auto;
  height: 30px;
  padding: 0 9px;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.map-nav-btn-labeled:hover {
  background: rgba(2, 132, 199, 0.3);
  border-color: #38bdf8;
}
.map-nav-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.16);
  margin: 0 2px;
  flex-shrink: 0;
}
.map-nav-filter-group {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.map-filter-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.map-filter-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}
.map-filter-chip.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* ========================================================
   AIRPORT & WEATHER STATION INTERACTIVE PIN DESIGN
   ======================================================== */
.custom-met-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}
.custom-met-pin:hover {
  transform: scale(1.15) translateY(-2px);
  z-index: 9999 !important;
}
.custom-met-pin.selected {
  transform: scale(1.2) translateY(-3px);
  z-index: 10000 !important;
}

/* Main Pill Box */
.pin-pill-box {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  border-width: 1.5px;
  border-style: solid;
}

/* Airport Specific Styling */
.airport-pin .pin-pill-box {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45), 0 0 8px rgba(56, 189, 248, 0.35);
}
.airport-pin .pin-icon-wrap {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #ffffff;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.airport-pin .pin-code {
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: #e0f2fe;
  letter-spacing: 0.5px;
}

/* Airport Radar Beacon Animation */
.airport-radar-ping {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  margin-left: -13px;
  border-radius: 50%;
  border: 2px solid #38bdf8;
  background: rgba(56, 189, 248, 0.2);
  pointer-events: none;
  animation: airportRadarPulse 2.4s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  z-index: -1;
}
@keyframes airportRadarPulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  60% { transform: scale(1.6); opacity: 0.25; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Surface Synoptic Station Specific Styling */
.station-pin .pin-pill-box {
  background: linear-gradient(135deg, #0f766e 0%, #059669 100%);
  border-color: #34d399;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4), 0 0 6px rgba(52, 211, 153, 0.25);
}
.station-pin .pin-icon-wrap {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #ffffff;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.station-pin .pin-code {
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: #d1fae5;
  letter-spacing: 0.5px;
}

/* Metric Chip inside pin */
.pin-metric {
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Caption Tag underneath pin */
.pin-caption-tag {
  font-size: 9px;
  font-weight: 700;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
  padding: 1px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  margin-top: 2px;
  white-space: nowrap;
  border: 1px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Selected state highlight ring */
.pin-pill-box.ring-active {
  box-shadow: 0 0 0 3px #f43f5e, 0 0 18px rgba(244, 63, 94, 0.7) !important;
}

/* ========================================================
   RICH LEAFLET POPUP STYLES FOR AIRPORTS & STATIONS
   ======================================================== */
.leaflet-popup-content-wrapper {
  background: #0f172a !important;
  color: #f1f5f9 !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6) !important;
  padding: 0 !important;
  overflow: hidden;
}
.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4 !important;
}
.leaflet-popup-tip {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}
.synopx-custom-popup {
  font-family: inherit;
  width: 280px;
}
.sc-popup-header {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sc-popup-header.airport-hdr {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25) 0%, rgba(3, 105, 161, 0.1) 100%);
  border-bottom-color: rgba(56, 189, 248, 0.25);
}
.sc-popup-header.station-hdr {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.1) 100%);
  border-bottom-color: rgba(52, 211, 153, 0.25);
}
.sc-popup-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.sc-popup-badge-icon.airport-icon {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.5);
}
.sc-popup-badge-icon.station-icon {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.5);
}
.sc-popup-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}
.sc-popup-sub {
  font-size: 10px;
  color: #94a3b8;
  display: block;
  margin-top: 2px;
}
.sc-popup-body {
  padding: 10px 14px 12px;
}
.sc-popup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.sc-grid-cell {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px 6px;
  text-align: center;
}
.sc-label {
  font-size: 9px;
  color: #94a3b8;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.sc-val {
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  display: block;
}
.sc-raw-snippet {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 5px 7px;
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: #38bdf8;
  word-break: break-all;
}
.sc-raw-tag {
  display: inline-block;
  font-size: 8px;
  font-weight: 800;
  background: #0369a1;
  color: #ffffff;
  padding: 1px 4px;
  border-radius: 3px;
  margin-bottom: 3px;
}
.sc-raw-tag.synop {
  background: #0f766e;
}
.sc-popup-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.sc-popup-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.sc-popup-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
.sc-popup-btn.primary {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
}
.sc-popup-btn.primary:hover {
  background: #0369a1;
}

/* ========================================================
   WINDY.COM-STYLE MINIMALIST BEACON DOTS & HOVER TOOLTIPS
   ======================================================== */
.windy-dot-wrapper {
  background: transparent !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.windy-dot-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}
.windy-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.16s;
  position: relative;
  z-index: 10;
}
.windy-dot:hover {
  transform: scale(1.5);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.95);
  z-index: 9999 !important;
}
.windy-dot.vfr {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.75);
}
.windy-dot.mvfr {
  background: #0284c7;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.75);
}
.windy-dot.ifr {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.85);
}
.windy-dot.lifr {
  background: #d946ef;
  box-shadow: 0 0 8px rgba(217, 70, 239, 0.85);
}
.windy-dot.synop {
  background: #06b6d4;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.75);
}

/* Selected Target Ring */
.windy-dot-container.selected .windy-dot {
  transform: scale(1.35);
  border-color: #f8fafc;
}
.windy-target-ring {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2.5px solid #ef4444;
  border-radius: 50%;
  pointer-events: none;
  animation: windyPulseRing 1.8s infinite cubic-bezier(0.2, 0.6, 0.35, 1);
  z-index: 5;
}
@keyframes windyPulseRing {
  0% { transform: scale(0.65); opacity: 1; border-color: #ffffff; }
  50% { border-color: #ef4444; }
  100% { transform: scale(1.85); opacity: 0; }
}

/* Windy-style Floating Hover Tooltip */
.leaflet-tooltip.windy-leaflet-tooltip {
  background: rgba(15, 23, 42, 0.96) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 9px !important;
  padding: 8px 12px !important;
  color: #f8fafc !important;
  font-family: inherit !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.6) !important;
  pointer-events: none !important;
  white-space: nowrap !important;
  z-index: 10000 !important;
}
.leaflet-tooltip.windy-leaflet-tooltip::before {
  border-top-color: rgba(15, 23, 42, 0.96) !important;
}
.wht-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.wht-icao {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 12px;
  color: #38bdf8;
  letter-spacing: 0.5px;
}
.wht-name {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
}
.wht-flight-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: auto;
}
.wht-flight-badge.vfr  { background: #166534; color: #86efac; border: 1px solid #22c55e; }
.wht-flight-badge.mvfr { background: #075985; color: #7dd3fc; border: 1px solid #0284c7; }
.wht-flight-badge.ifr  { background: #991b1b; color: #fca5a5; border: 1px solid #ef4444; }
.wht-flight-badge.lifr { background: #86198f; color: #f5d0fe; border: 1px solid #d946ef; }
.wht-flight-badge.synop { background: #115e59; color: #99f6e4; border: 1px solid #14b8a6; }
.wht-metrics {
  font-size: 10.5px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 7px;
}
.wht-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.wht-hint {
  font-size: 9px;
  color: #94a3b8;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 3px;
}

/* ========================================================
   WINDY.COM-STYLE RIGHT-SIDE AIRPORT & METAR COCKPIT DRAWER
   ======================================================== */
.windy-cockpit-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 100vw;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.7);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f1f5f9;
  font-family: inherit;
}
.windy-cockpit-drawer.open {
  transform: translateX(0);
}

/* Cockpit Top Header */
.wcp-topbar {
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(2, 6, 23, 0.6);
  position: relative;
}
.wcp-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.wcp-icao-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.wcp-icao-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  line-height: 1;
}
.wcp-flight-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wcp-flight-tag.vfr  { background: #166534; color: #86efac; border: 1px solid #22c55e; }
.wcp-flight-tag.mvfr { background: #075985; color: #7dd3fc; border: 1px solid #0284c7; }
.wcp-flight-tag.ifr  { background: #991b1b; color: #fca5a5; border: 1px solid #ef4444; }
.wcp-flight-tag.lifr { background: #86198f; color: #f5d0fe; border: 1px solid #d946ef; }
.wcp-flight-tag.synop { background: #115e59; color: #99f6e4; border: 1px solid #14b8a6; }

.wcp-actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wcp-action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.wcp-action-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
.wcp-close-btn {
  background: #dc2626 !important;
  border-color: #f87171 !important;
  color: #ffffff !important;
  font-weight: 800;
  border-radius: 50% !important;
  width: 32px;
  height: 32px;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.6);
}
.wcp-close-btn:hover {
  background: #b91c1c !important;
  transform: scale(1.08);
}
.wcp-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #e2e8f0;
  margin-top: 4px;
}
.wcp-subinfo {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Cockpit Navigation Tabs */
.wcp-tabs-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
}
.wcp-tabs-bar::-webkit-scrollbar {
  display: none;
}
.wcp-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.wcp-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}
.wcp-tab-btn.active {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.5);
}
.wcp-tab-btn.active.alt {
  background: #0284c7;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.5);
}

/* Cockpit Scrollable Body */
.wcp-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.wcp-tab-content {
  display: none;
}
.wcp-tab-content.active {
  display: block;
}

/* Section Header in Cockpit */
.wcp-sec-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.wcp-sec-title {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.wcp-raw-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: #cbd5e1;
  cursor: pointer;
}
.wcp-raw-toggle input[type="checkbox"] {
  cursor: pointer;
  accent-color: #0284c7;
}

/* Live METAR Card */
.wcp-metar-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.wcp-metar-time-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.wcp-time-ago {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}
.wcp-narrative {
  font-size: 12.5px;
  line-height: 1.5;
  color: #f1f5f9;
}
.wcp-raw-code-box {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #38bdf8;
  word-break: break-all;
  margin-top: 8px;
}

/* Accordion History List */
.wcp-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.wcp-history-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.18s ease;
}
.wcp-history-header {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
}
.wcp-history-header:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}
.wcp-history-body {
  padding: 8px 12px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: #94a3b8;
  display: none;
  background: rgba(0, 0, 0, 0.2);
}
.wcp-history-item.expanded .wcp-history-body {
  display: block;
}

/* Runways & Crosswind Card */
.wcp-runway-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.wcp-runway-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 9px 12px;
}
.wcp-runway-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.wcp-rwy-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}
.wcp-rwy-len {
  font-size: 9.5px;
  color: #94a3b8;
}
.wcp-wind-components {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
}
.wcp-wind-comp {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.wcp-wind-comp.headwind { color: #22c55e; }
.wcp-wind-comp.crosswind { color: #f59e0b; }
.wcp-wind-comp.tailwind { color: #ef4444; }

/* TAF Forecast Cards */
.wcp-taf-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.wcp-taf-period {
  font-size: 10.5px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wcp-taf-desc {
  font-size: 11.5px;
  line-height: 1.45;
  color: #e2e8f0;
}



