/* ════════════════════════════════════════════════════════════════════════════
   StormSales 360° — Farmácias São João (1.231 Lojas)
   Apple Human Interface Guidelines (macOS / iOS) Design System & Color Code
   Baseado em DESIGN-apple.md: SF Pro / Outfit typography, edge-to-edge canvas (#F5F5F7),
   Action Blue (#0066CC / #0071E3), pill geometry, Apple color code & zero decorative gradients.
   ════════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  /* Apple Neutral Canvas & Surfaces */
  --canvas: #FFFFFF;
  --canvas-parchment: #F5F5F7;
  --surface: #FFFFFF;
  --surface-translucent: rgba(255, 255, 255, 0.85);
  --surface-hover: #F8F8FA;
  --surface-sunken: #EBEBED;
  --surface-pearl: #FAFAFC;
  --surface-black: #000000;
  
  /* Apple Borders & Hairlines */
  --hairline: #E0E0E0;
  --border: rgba(0, 0, 0, 0.08);
  --border-subtle: rgba(0, 0, 0, 0.04);
  --border-hover: rgba(0, 0, 0, 0.16);
  --separator: rgba(60, 60, 67, 0.12);

  /* Apple System Typography Colors */
  --ink: #1D1D1F;
  --body: #1D1D1F;
  --text-primary: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-tertiary: #86868B;
  --text-quaternary: #A1A1A6;
  --text-muted: #86868B;

  /* Apple Vibrant Accents & Color Code (DESIGN-apple.md) */
  --primary: #0066CC;
  --primary-focus: #0071E3;
  --primary-on-dark: #2997FF;
  --primary-light: rgba(0, 102, 204, 0.08);

  --apple-blue: #0071E3;
  --apple-blue-hover: #0077ED;
  --apple-blue-soft: rgba(0, 113, 227, 0.08);
  --apple-blue-border: rgba(0, 113, 227, 0.20);
  
  --apple-green: #34C759;
  --apple-green-soft: rgba(52, 199, 89, 0.12);
  --apple-green-text: #248A3D;
  
  --apple-red: #FF3B30;
  --apple-red-soft: rgba(255, 59, 48, 0.12);
  --apple-red-text: #D70015;

  --apple-indigo: #5856D6;
  --apple-indigo-soft: rgba(88, 86, 214, 0.10);
  
  --apple-purple: #AF52DE;
  --apple-purple-soft: rgba(175, 82, 222, 0.10);

  --apple-orange: #FF9500;
  --apple-orange-soft: rgba(255, 149, 0, 0.10);

  --apple-teal: #30B0C7;
  --apple-teal-soft: rgba(48, 176, 199, 0.10);

  /* Farmácias São João Brand Accents */
  --sj-navy: #1E1E54;
  --sj-green: #98CE31;
  --sj-blue: #5BA4D6;

  /* Apple Radii Scale */
  --rounded-none: 0px;
  --rounded-xs: 5px;
  --rounded-sm: 8px;
  --rounded-md: 12px;
  --rounded-lg: 18px;
  --rounded-xl: 24px;
  --rounded-pill: 9999px;

  /* Apple Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(0, 0, 0, 0.03);
  --shadow-float: 0 20px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ════════════════════════════════════════════════════════════════════════════
   Apple View Mode Selector Bar (Ao Vivo vs Fechamento Ontem D-1)
   ════════════════════════════════════════════════════════════════════════════ */
.view-mode-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.view-mode-switcher {
  display: inline-flex;
  background: var(--surface-sunken);
  padding: 3px;
  border-radius: var(--rounded-pill);
  gap: 4px;
  border: 1px solid var(--hairline);
}

.view-mode-btn {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: var(--rounded-pill);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-mode-btn:hover {
  color: var(--text-primary);
}

.view-mode-btn.active {
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.view-mode-btn.active.live-active {
  color: var(--apple-blue);
}

.view-mode-btn.active.yesterday-active {
  color: var(--apple-indigo);
}

.view-mode-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--rounded-pill);
  text-transform: uppercase;
}

.badge-live {
  background: rgba(0, 113, 227, 0.12);
  color: var(--apple-blue);
}

.badge-d1 {
  background: rgba(88, 86, 214, 0.12);
  color: var(--apple-indigo);
}

.view-container {
  display: block;
}

.view-container.hidden {
  display: none !important;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", sans-serif;
  background-color: var(--canvas-parchment);
  color: var(--text-primary);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Tipografia Apple / Outfit para Títulos e Números Executivos */
h1, h2, h3, h4, .kpi-value, .brand-title h1, .metric-number {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.3px;
}

/* ── 1. Apple Global Nav (44px, Surface Black) ─────────────────────────────── */
.global-nav {
  height: 44px;
  background-color: var(--surface-black);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 200;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.12px;
}

.global-nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.global-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.2px;
}

.global-nav-tag {
  color: var(--text-tertiary);
  font-size: 11px;
}

.global-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.global-sync-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--rounded-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 400;
}

.sync-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--apple-green);
  box-shadow: 0 0 6px rgba(52, 199, 89, 0.6);
}

.sync-pulse-dot.syncing {
  background: var(--apple-orange);
  box-shadow: 0 0 6px rgba(255, 149, 0, 0.6);
  animation: pulse-dot 0.8s infinite alternate;
}

@keyframes pulse-dot {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.global-sync-pill strong {
  color: #FFFFFF;
  font-weight: 600;
}

.sync-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
}

.sync-freq-badge {
  background: rgba(41, 151, 255, 0.18);
  color: var(--primary-on-dark);
  border: 1px solid rgba(41, 151, 255, 0.32);
  border-radius: var(--rounded-pill);
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.global-history-text {
  color: var(--text-tertiary);
  font-size: 11px;
}

/* ── 2. Apple Sub-Nav Frosted (52px, Glass) ───────────────────────────────── */
.sub-nav-frosted {
  height: 52px;
  background-color: rgba(245, 245, 247, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 44px;
  z-index: 190;
  gap: 16px;
  flex-wrap: wrap;
}

.sub-nav-title {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-nav-tabs {
  display: flex;
  gap: 4px;
  align-items: center;
  background: var(--surface-sunken);
  padding: 3px;
  border-radius: var(--rounded-pill);
}

.sub-nav-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--rounded-pill);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.sub-nav-tab:hover {
  color: var(--text-primary);
}

.sub-nav-tab.active {
  background: var(--canvas);
  color: var(--apple-blue);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ── 3. Content Container ─────────────────────────────────────────────────── */
.main-content {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 32px 64px;
}

/* ── 4. Header & Cenários ─────────────────────────────────────────────────── */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rounded-lg);
  padding: 16px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
  gap: 16px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, #0071E3, #004bb5);
  display: grid;
  place-items: center;
  color: #FFFFFF;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.28);
}

.brand-title h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-title h1 span {
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--sj-navy);
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.brand-title p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Simulador de Cenários — Apple Segmented Control / Pills */
.sim-buttons {
  display: flex;
  background: var(--surface-sunken);
  padding: 3px;
  border-radius: var(--rounded-pill);
  gap: 3px;
}

.btn-sim {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: var(--rounded-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

.btn-sim:hover {
  color: var(--text-primary);
}

.btn-sim.active {
  background: var(--canvas);
  color: var(--apple-blue);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ── 5. Apple Filter Bar ──────────────────────────────────────────────────── */
.filters-bar {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 14px 20px;
  gap: 12px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
  align-items: center;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 140px;
}

.filter-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.filter-input, .filter-select {
  background: var(--canvas-parchment);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-pill);
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  cursor: pointer;
}

.filter-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%231d1d1f' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 6.5 3.5 3.5 3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.filter-input:focus, .filter-select:focus {
  background: var(--canvas);
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

/* ── 6. Banner de Alerta Meteorológico (Apple Style) ──────────────────────── */
.alert-banner {
  background: rgba(255, 59, 48, 0.06);
  border: 1px solid rgba(255, 59, 48, 0.20);
  border-radius: var(--rounded-md);
  padding: 12px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.alert-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--apple-red);
  box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 59, 48, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

.alert-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--apple-red-text);
}

.alert-metric {
  font-size: 12px;
  font-weight: 700;
  color: var(--apple-red-text);
  background: var(--canvas);
  padding: 4px 12px;
  border-radius: var(--rounded-pill);
  border: 1px solid rgba(255, 59, 48, 0.20);
}

/* ── 7. Apple KPI Grid & Utility Cards ────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.kpi-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.kpi-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.kpi-icon {
  font-size: 15px;
  color: var(--text-tertiary);
}

.kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.kpi-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Badges Apple */
.badge-positive {
  background-color: var(--apple-green-soft);
  color: var(--apple-green-text);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--rounded-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-negative {
  background-color: var(--apple-red-soft);
  color: var(--apple-red-text);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--rounded-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── 8. Apple Section Cards / Panels ──────────────────────────────────────── */
.section-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ── 9. Layout Principal: Mapa & Gráficos ──────────────────────────────────── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 1100px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}

/* Mapa Leaflet Apple Style */
#map {
  width: 100%;
  height: 480px;
  border-radius: var(--rounded-md);
  border: 1px solid var(--hairline);
  overflow: hidden;
  background: var(--canvas-parchment);
}

.map-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.map-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.legend-color {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

/* Chart Wrappers */
.chart-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
}

/* Gráficos Secundários Grid */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 10. Tabela Executiva Apple ───────────────────────────────────────────── */
.table-container {
  overflow-x: auto;
  border-radius: var(--rounded-md);
  border: 1px solid var(--hairline);
}

.exec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.exec-table thead {
  background: var(--canvas-parchment);
  position: sticky;
  top: 0;
  z-index: 10;
}

.exec-table th {
  padding: 12px 14px;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.exec-table th:hover {
  color: var(--text-primary);
}

.exec-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  white-space: nowrap;
}

.exec-table tbody tr {
  transition: background 0.15s ease;
  cursor: pointer;
}

.exec-table tbody tr:hover {
  background: var(--surface-hover);
}

/* ── 11. Modal Deep-Dive Apple ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-xl);
  padding: 28px;
  width: 90%;
  max-width: 740px;
  box-shadow: var(--shadow-float);
  position: relative;
  transform: scale(0.94) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--surface-sunken);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--hairline);
  color: var(--text-primary);
}

/* ── 12. Leaflet Tooltip Apple Style ──────────────────────────────────────── */
.leaflet-tooltip {
  background: #FFFFFF !important;
  color: #1D1D1F !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  padding: 8px 12px !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif !important;
}

.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
  display: none !important;
}

/* ── 13. Footer Apple ─────────────────────────────────────────────────────── */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 16px 8px 32px;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--hairline);
  margin-top: 20px;
}

/* ── 14. Weather Filter Pills & Top Cities Widget ────────────────────────── */
.btn-weather-filter {
  background: var(--surface-sunken);
  border: 1px solid var(--hairline);
  color: var(--text-secondary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--rounded-pill);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-weather-filter:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-weather-filter.active {
  background: #FFFFFF;
  color: var(--text-primary);
  border-color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.city-rain-card {
  background: var(--surface-hover);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.city-rain-card:hover {
  background: #FFFFFF;
  border-color: var(--apple-blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.city-rain-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.city-rain-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.city-rain-sub {
  font-size: 10px;
  color: var(--text-secondary);
}

.city-rain-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.city-rain-mm {
  font-size: 13px;
  font-weight: 800;
  color: var(--apple-red-text);
}

.city-rain-gap {
  font-size: 10px;
  font-weight: 700;
}
