.tng-weather-section {
  /* Light Theme for Homepage Grid */
  --color-surface: rgba(255, 255, 255, 0.75);
  --color-border: rgba(15, 23, 42, 0.08);
  --color-primary: #2563eb;
  --color-primary-glow: rgba(37, 99, 235, 0.1);
  --color-accent: #10b981;
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--color-text-primary);
  box-sizing: border-box;
  padding: 0 3.5rem;
}

@media (max-width: 1200px) {
  .tng-weather-section {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .tng-weather-section {
    padding: 0;
  }

  /* Children naturally fill the full-width parent, no breakout needed on cards */
  .tng-weather-section .tng-collapsible-section.glass-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .tng-weather-section .tng-section-header-bar {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.tng-weather-section .tng-weather-hub-inner {
  max-width: 100% !important;
  width: 100% !important;
  overflow-x: hidden;
}

/* Page Heading Style */
.tng-weather-section h2.wp-block-heading {
  color: var(--color-text-primary) !important;
  font-weight: 800 !important;
  margin-top: 0 !important;
  margin-bottom: 2rem !important;
  font-family: 'Outfit', 'Inter', system-ui, sans-serif !important;
}

/* Integrated Layout (2 Columns: Map + Cards Grid) */
.tng-weather-section .tng-integrated-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
  align-items: stretch;
}

.tng-weather-section .tng-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (max-width: 1200px) {
  .tng-weather-section .tng-integrated-layout {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (max-width: 1024px) {
  .tng-weather-section .tng-integrated-layout {
    grid-template-columns: 1fr;
  }
}

/* Glassmorphic Cards (Light Theme Integrated) */
.tng-weather-section .glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.tng-weather-section .tng-weather-card {
  border-top: 4px solid #3b82f6 !important; /* Blue Weather Accent */
}

.tng-weather-section .tng-meeting-card {
  border-top: 4px solid #10b981 !important; /* Green Meeting Accent */
}

.tng-weather-section .tng-trends-card {
  border-top: 4px solid #6366f1 !important; /* Indigo Trends Accent */
}

.tng-weather-section .tng-news-card {
  border-top: 4px solid #f59e0b !important; /* Amber News Accent */
}

.tng-weather-section .glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08), 0 0 20px rgba(37, 99, 235, 0.04);
}

.tng-weather-section .tng-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.tng-weather-section .tng-card-header .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  animation: tng-pulse-dot 1.5s infinite alternate ease-in-out;
}

@keyframes tng-pulse-dot {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 1; }
}

/* Card Specific Layouts */
.tng-weather-section .tng-weather-main {
  margin-bottom: 1rem;
}

.tng-weather-section .tng-weather-temp {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.tng-weather-section .tng-weather-temp .temp-val {
  font-size: 3rem;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: var(--color-text-primary);
  line-height: 1;
}

.tng-weather-section .tng-weather-temp .temp-unit {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.tng-weather-section .tng-weather-temp .weather-emoji {
  font-size: 2.5rem;
  margin-left: auto;
}

.tng-weather-section .tng-weather-desc {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0.25rem;
  color: var(--color-primary) !important; /* Force high contrast on light theme */
}

.tng-weather-section .tng-weather-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.tng-weather-section .tng-weather-community-copy {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  flex-grow: 1;
  margin-bottom: 1rem;
}

.tng-weather-section .tng-meeting-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tng-weather-section .tng-meeting-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text-primary);
  line-height: 1.4;
}

.tng-weather-section .tng-meeting-date {
  font-size: 0.75rem;
  color: var(--color-primary);
  font-weight: 600;
}

.tng-weather-section .tng-meeting-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 0;
}

.tng-weather-section .tng-news-list {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tng-weather-section .tng-news-item {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding-bottom: 0.75rem;
}

.tng-weather-section .tng-news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tng-weather-section .tng-news-date {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.25rem;
}

.tng-weather-section .tng-news-date.has-event-date {
  color: var(--color-primary);
  font-weight: 700;
}

.tng-weather-section .tng-meeting-date.has-event-date {
  font-weight: 700;
}

.tng-weather-section .tng-news-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-primary);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.tng-weather-section .tng-news-link:hover {
  color: var(--color-primary);
}

/* Button & Action Styles */
.tng-weather-section .tng-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  text-align: center;
}

.tng-weather-section .primary-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
  width: 100%;
}

.tng-weather-section .primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.tng-weather-section .secondary-btn {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--color-text-primary) !important;
  width: 100%;
  box-shadow: none;
}

.tng-weather-section .secondary-btn:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.15);
}

.tng-weather-section .text-link {
  background: transparent;
  color: var(--color-primary) !important;
  padding: 0;
  justify-content: flex-start;
  font-weight: 600;
}

.tng-weather-section .text-link:hover {
  color: #60a5fa !important;
}

.tng-weather-section .tng-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  text-align: center;
  flex-grow: 1;
}

/* Modal Overlay & Transitions (Immersive Dark Theme) */
.tng-weather-section .tng-modal-overlay {
  --color-surface: rgba(17, 24, 39, 0.95);
  --color-border: rgba(255, 255, 255, 0.1);
  --color-primary: #3b82f6;
  --color-primary-glow: rgba(59, 130, 246, 0.15);
  --color-accent: #10b981;
  --color-text-primary: #f9fafb;
  --color-text-secondary: #9ca3af;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 11, 14, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
  color: var(--color-text-primary);
}

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

.tng-weather-section .tng-modal-content {
  background: rgba(15, 23, 42, 0.98); /* Deep dark slate-950 */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  padding: 2.5rem;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--color-text-primary);
}

.tng-weather-section .tng-modal-overlay.active .tng-modal-content {
  transform: scale(1);
}

.tng-weather-section .tng-modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10000;
}

.tng-weather-section .tng-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-text-primary);
}

/* Modal Inner Grid Layout */
.tng-weather-section .radar-modal-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .tng-weather-section .radar-modal-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.tng-weather-section .radar-modal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tng-weather-section .radar-map-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tng-weather-section .map-wrapper {
  position: relative;
  height: 100%;
  min-height: 520px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--glass-shadow);
}

@media (max-width: 1024px) {
  .tng-weather-section .map-wrapper {
    height: 380px;
    min-height: auto;
  }
}

.tng-weather-section .leaflet-map-container {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Timeline HUD Overlay */
.tng-weather-section .map-hud-timeline {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tng-weather-section .timeline-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.tng-weather-section .current-frame-time {
  color: var(--color-text-primary);
}

.tng-weather-section .frame-counter {
  color: var(--color-text-secondary);
  font-size: 0.75rem;
}

.tng-weather-section .timeline-scrubber {
  display: flex;
  gap: 4px;
}

.tng-weather-section .timeline-tick {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.15);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.tng-weather-section .timeline-tick:hover {
  background: rgba(15, 23, 42, 0.4);
}

.tng-weather-section .timeline-tick.active {
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
}

/* Legend HUD */
.tng-weather-section .map-legend-hud {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  z-index: 999;
  font-size: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tng-weather-section .legend-title {
  color: var(--color-text-secondary);
  font-weight: 600;
}

.tng-weather-section .legend-bar {
  display: flex;
  gap: 2px;
}

.tng-weather-section .legend-bar span {
  display: inline-block;
  padding: 1px 4px;
  color: #000;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
  border-radius: 2px;
}

/* Controls Panel */
.tng-weather-section .map-controls-panel {
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tng-weather-section .playback-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.tng-weather-section .play-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  color: white;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: all 0.2s ease;
}

.tng-weather-section .play-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.tng-weather-section .play-btn.playing {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.tng-weather-section .play-btn.playing:hover {
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.tng-weather-section .speed-buttons {
  display: flex;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.tng-weather-section .speed-btn {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tng-weather-section .speed-btn:hover {
  color: var(--color-text-primary);
  background: rgba(15, 23, 42, 0.05);
}

.tng-weather-section .speed-btn.active {
  background: var(--color-primary);
  color: white;
}

.tng-weather-section .opacity-slider-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  flex-wrap: wrap;
}

.tng-weather-section .opacity-slider-container input[type="range"] {
  flex-grow: 1;
  min-width: 120px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.tng-weather-section .opacity-val {
  font-weight: 700;
  color: var(--color-text-primary);
  min-width: 35px;
  text-align: right;
}

/* Weather Dashboard Column */
.tng-weather-section .weather-dashboard-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tng-weather-section .dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.tng-weather-section .dashboard-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.tng-weather-section .dashboard-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.tng-weather-section .main-condition {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  border-color: rgba(59, 130, 246, 0.15);
}

.tng-weather-section .condition-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tng-weather-section .condition-meta {
  display: flex;
  flex-direction: column;
}

.tng-weather-section .card-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.tng-weather-section .condition-text {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

.tng-weather-section .station-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.tng-weather-section .card-icon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.tng-weather-section .value-display {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.tng-weather-section .value-display .value {
  font-size: 2.25rem;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: var(--color-text-primary);
  line-height: 1.1;
}

.tng-weather-section .value-display .unit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.tng-weather-section .sub-value {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.5rem;
}

.tng-weather-section .wind-direction {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.5rem;
}

.tng-weather-section .wind-direction svg,
.tng-weather-section .wind-direction span.wind-arrow {
  transition: transform 0.3s ease;
}

/* Glow Effects */
.tng-weather-section .temp-glow:hover {
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

.tng-weather-section .rain-glow:hover {
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

.tng-weather-section .humidity-glow:hover {
  box-shadow: 0 0 25px rgba(14, 165, 233, 0.08);
  border-color: rgba(14, 165, 233, 0.2);
}

.tng-weather-section .wind-glow:hover {
  box-shadow: 0 0 25px rgba(20, 184, 166, 0.08);
  border-color: rgba(20, 184, 166, 0.2);
}

/* Town Info Card */
.tng-weather-section .town-info-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  padding: 1.25rem;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: left;
}

.tng-weather-section .town-info-card h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.tng-weather-section .town-info-card p {
  color: var(--color-text-secondary);
  margin: 0;
}

/* Custom Leaflet Marker Styles */
.tng-weather-section .glow-marker-outer {
  position: relative;
  width: 24px;
  height: 24px;
}

.tng-weather-section .glow-marker-pulse {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
  animation: tng-marker-pulse-glow 1.8s infinite ease-out;
}

.tng-weather-section .glow-marker-inner {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid white;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

@keyframes tng-marker-pulse-glow {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.tng-weather-section .radar-popup {
  color: #111827;
  padding: 0.25rem;
}

.tng-weather-section .radar-popup h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.tng-weather-section .radar-popup p {
  font-size: 0.75rem;
  color: #4b5563;
  margin: 0;
}

/* Sparklines */
.tng-weather-section .past-history-card {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--color-border);
}

.tng-weather-section .sparkline-wrapper {
  background: rgba(15, 23, 42, 0.02);
  border-radius: 12px;
  padding: 0.75rem;
  margin: 0.75rem 0;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.tng-weather-section .history-svg {
  overflow: visible;
}

.tng-weather-section .svg-label {
  filter: none;
}

.tng-weather-section .past-summary-analytics {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.tng-weather-section .analytic-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tng-weather-section .analytic-item .label {
  font-weight: 500;
}

.tng-weather-section .analytic-item .val {
  font-weight: 700;
}

/* Tab Buttons */
.tng-weather-section .tab-buttons {
  display: flex;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.tng-weather-section .tab-btn {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  padding: 0.4rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tng-weather-section .tab-btn:hover {
  color: var(--color-text-primary);
  background: rgba(15, 23, 42, 0.05);
}

.tng-weather-section .tab-btn.active {
  background: var(--color-primary);
  color: white;
}

.tng-weather-section .hud-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 0.5rem;
  letter-spacing: 0.05em;
}

.tng-weather-section .hud-badge.observation {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.tng-weather-section .hud-badge.forecast {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Unified Weather Dashboard Row */
.tng-weather-section .weather-dashboard-row {
  display: flex;
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 640px) {
  .tng-weather-section .weather-dashboard-row {
    flex-direction: column;
  }
  .tng-weather-section .sparkline-section {
    border-left: none !important;
    padding-left: 0 !important;
    border-top: 1px dashed rgba(15, 23, 42, 0.08);
    padding-top: 1rem;
  }
}

/* Timeline Components */
.tng-weather-section .tng-timeline-container {
  position: relative;
  flex-grow: 1;
  margin-top: 0.25rem;
  padding-left: 1.25rem;
}

.tng-weather-section .timeline-line {
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(15, 23, 42, 0.08);
}

.tng-weather-section .timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tng-weather-section .timeline-item:hover {
  background: rgba(37, 99, 235, 0.03);
  transform: translateX(4px);
}


.tng-weather-section .timeline-node {
  position: absolute;
  left: -25px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary) !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), 0 0 10px rgba(37, 99, 235, 0.3) !important;
  transition: all 0.3s ease;
}

.tng-weather-section .timeline-item:hover .timeline-node {
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25), 0 0 15px rgba(37, 99, 235, 0.5) !important;
  background-color: #ffffff !important;
  border-color: var(--color-primary) !important;
}

.tng-weather-section .timeline-item-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  justify-content: space-between;
}

.tng-weather-section .timeline-item-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}

.tng-weather-section .timeline-item-title a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tng-weather-section .timeline-item-title a:hover {
  color: var(--color-primary);
}

.tng-weather-section .timeline-badge {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.tng-weather-section .timeline-item-date {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tng-weather-section .timeline-item-desc {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-text-secondary);
}

.tng-weather-section .timeline-action-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: color 0.2s ease;
}

.tng-weather-section .timeline-action-link:hover {
  color: #1d4ed8;
}

/* Collapsible Sections & Toggles (Unified Card Restructuring) */
.tng-weather-section {
  position: relative;
  z-index: 1;
}

/* Hide default page title on homepage */
.home .wp-block-post-title {
  display: none !important;
}

/* Ambient background glows */
.tng-weather-section .bg-glow-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  top: -10%;
  left: -15%;
  z-index: -1;
  pointer-events: none;
  animation: float-1 25s infinite alternate ease-in-out;
}

.tng-weather-section .bg-glow-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
  bottom: -10%;
  right: -15%;
  z-index: -1;
  pointer-events: none;
  animation: float-2 30s infinite alternate ease-in-out;
}

@keyframes float-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.08); }
}

@keyframes float-2 {
  0% { transform: translate(0, 0) scale(1.05); }
  100% { transform: translate(-60px, -40px) scale(0.92); }
}

.tng-weather-section .tng-collapsible-section.glass-card {
  width: 100%;
  padding: 0 !important;
  min-height: auto !important;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-left 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, transform 0.4s ease, background 0.4s ease, border-color 0.4s ease, opacity 0.4s ease;
  background: var(--glass-bg);
}

.tng-weather-section .tng-weather-dash-section.glass-card {
  border-left: 4px solid #3b82f6 !important;
}

.tng-weather-section .tng-weather-dash-section.glass-card:hover {
  border-left: 6px solid #2563eb !important;
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.06), 0 0 25px rgba(37, 99, 235, 0.02) !important;
  transform: translateY(-2px);
}

.tng-weather-section .tng-timeline-section.glass-card {
  border-left: 4px solid #10b981 !important;
}

.tng-weather-section .tng-timeline-section.glass-card:hover {
  border-left: 6px solid #059669 !important;
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.06), 0 0 25px rgba(16, 185, 129, 0.02) !important;
  transform: translateY(-2px);
}

.tng-weather-section .tng-section-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  user-select: none;
  margin: 0 !important;
  transition: background-color 0.2s ease;
}

.tng-weather-section .tng-collapsible-section.glass-card:hover .tng-section-header-bar {
  background: rgba(255, 255, 255, 0.02) !important;
}

.tng-weather-section .tng-section-header-bar:hover .tng-section-header-title {
  color: var(--color-primary) !important;
}

.tng-weather-section .tng-section-header-bar .toggle-indicator {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  transition: color 0.3s ease, transform 0.3s ease;
}

.tng-weather-section .tng-section-header-bar:hover .toggle-indicator {
  color: var(--color-primary);
  transform: scale(1.1);
}

/* Smooth Sliding Transition */
.tng-weather-section .tng-collapse-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding: 1.5rem !important;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, padding 0.5s ease, border-color 0.4s ease;
}

.tng-weather-section .tng-collapsible-section.expanded .tng-collapse-body {
  max-height: 2500px; /* High enough for stacked mobile layouts */
  opacity: 1;
}

.tng-weather-section .tng-collapsible-section.collapsed .tng-collapse-body {
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-top-color: transparent !important;
}

/* Timeline tab bar */
.tng-weather-section .timeline-tab-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.08);
  padding-bottom: 0.5rem;
}

/* Table Card & Scrollable Wrapper Layout Constraints */
.tng-weather-section .tng-weather-table-container-card {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.tng-weather-section .tng-weather-table-wrapper {
  max-width: 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
}

/* 14-Day City Forecast Table Styles */
.tng-weather-section .tng-forecast-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.82rem;
  color: var(--color-text-primary);
  margin: 0.5rem 0;
}

.tng-weather-section .tng-forecast-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.tng-weather-section .tng-forecast-table th {
  background: #f8fafc;
  color: var(--color-text-secondary);
  font-weight: 700;
  padding: 10px 8px;
  border-bottom: 2px solid rgba(15, 23, 42, 0.06);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.tng-weather-section .tng-forecast-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  vertical-align: middle;
}

.tng-weather-section .tng-forecast-table tbody tr {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.tng-weather-section .tng-forecast-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.025);
}

.tng-weather-section .tng-forecast-table tbody tr:hover td.city-name {
  background: #f1f5f9;
}

.tng-weather-section .tng-forecast-table .city-name {
  min-width: 130px;
  max-width: 170px;
  width: 150px;
  font-weight: 700;
  color: var(--color-text-primary);
  border-right: 1px solid rgba(15, 23, 42, 0.05);
  background: #fbfbfc;
  position: sticky;
  left: 0;
  z-index: 5;
  white-space: normal;
  padding-right: 12px;
}

.tng-weather-section .tng-forecast-table th.city-name {
  z-index: 11;
  background: #f1f5f9;
}

.tng-weather-section .tng-forecast-table .day-cell {
  text-align: center;
  min-width: 65px;
}

.tng-weather-section .tng-forecast-table .day-emoji {
  font-size: 1.25rem;
  display: block;
  margin-bottom: 2px;
}

.tng-weather-section .tng-forecast-table .day-temp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.tng-weather-section .tng-forecast-table .temp-max {
  color: #ef4444;
  font-weight: 700;
  font-size: 0.78rem;
}

.tng-weather-section .tng-forecast-table .temp-min {
  color: #3b82f6;
  font-weight: 500;
  font-size: 0.7rem;
}

.tng-weather-section .tng-forecast-table .day-solar {
  font-size: 0.62rem;
  color: #d97706;
  font-weight: 600;
  margin-top: 2px;
  background: rgba(245, 158, 11, 0.06);
  padding: 1px 4px;
  border-radius: 4px;
  display: inline-block;
}

/* drag cursor for scale */
.tng-weather-section #tng-timeline-scrubber {
  cursor: ew-resize !important;
  padding: 10px 0 !important;
  margin-top: -10px !important;
  margin-bottom: -10px !important;
  user-select: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  width: 100%;
}

.tng-weather-section .timeline-continuous-track {
  width: 100%;
  height: 6px;
  background: rgba(15, 23, 42, 0.1);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.tng-weather-section .timeline-progress-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: 3px;
  position: relative;
  width: 0%;
}

.tng-weather-section .timeline-handle {
  position: absolute;
  right: -6px;
  top: -4px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 2.5px solid var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  cursor: grab;
  transition: transform 0.1s ease;
}

.tng-weather-section .timeline-handle:active {
  cursor: grabbing;
  transform: scale(1.2);
}


/* Sunrise / Sunset Event Badges */
.tng-weather-section .sun-event-badge {
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 6px !important;
  margin-top: 1px !important;
  margin-bottom: 3px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.tng-weather-section .sun-event-badge.sunrise {
  color: #c2410c !important;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.9) 0%, rgba(253, 230, 138, 0.9) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

.tng-weather-section .sun-event-badge.sunset {
  color: #6d28d9 !important;
  background: linear-gradient(135deg, rgba(243, 232, 255, 0.9) 0%, rgba(233, 213, 255, 0.9) 100%) !important;
  border: 1px solid rgba(139, 92, 246, 0.35) !important;
}

/* Edge-to-Edge Weather Studio Layout Rules (contained on desktop, full-width breakout on mobile/tablet) */
.tng-weather-section .edge-to-edge-map {
  width: 100% !important;
  height: 520px;
  border-radius: 18px !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: var(--glass-shadow) !important;
  overflow: hidden;
}

.tng-weather-section .edge-to-edge-map .leaflet-map-container {
  border-radius: 18px !important;
}

@media (max-width: 1024px) {
  .tng-weather-section .edge-to-edge-map {
    width: 100% !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    height: 380px;
  }

  .tng-weather-section .edge-to-edge-map .leaflet-map-container {
    border-radius: 0 !important;
  }
}

/* Weather Studio Grid Layout (Stacked on mobile/tablet, side-by-side on desktop) */
.tng-weather-studio-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.25rem !important;
  width: 100% !important;
  margin-top: 1rem !important;
  align-items: start !important;
}

.tng-studio-left-side,
.tng-studio-right-side {
  width: 100% !important;
  min-width: 0 !important;
}

@media (min-width: 1025px) {
  .tng-weather-studio-grid {
    grid-template-columns: 580px 1fr !important;
    gap: 1.5rem !important;
  }
  .tng-studio-left-side {
    width: 580px !important;
  }
  .tng-studio-right-side {
    width: 100% !important;
  }
}


.grid-tooltip {
  background: rgba(15, 23, 42, 0.95) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  font-family: 'Outfit', sans-serif !important;
}

/* Sunshine Chaser Hub */
.tng-chaser-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.tng-chaser-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.tng-chaser-subtitle {
  font-size: 0.62rem;
  color: var(--color-text-secondary);
  opacity: 0.85;
  margin: 0;
}

.tng-chaser-cards-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 10px 2px;
  margin-bottom: 0.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.tng-chaser-card {
  flex: 0 0 135px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.01);
  user-select: none;
}

.tng-chaser-card:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: rgba(234, 179, 8, 0.45);
  box-shadow: 0 4px 10px rgba(234, 179, 8, 0.08);
}

.tng-chaser-card.active {
  background: linear-gradient(135deg, #ffffff 0%, rgba(254, 243, 199, 0.35) 100%);
  border: 2px solid #eab308;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.16);
  padding: 9px; /* adjust for border */
}

.tng-chaser-card-date {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.tng-chaser-card-emoji {
  font-size: 1.4rem;
  line-height: 1;
  margin: 2px 0;
}

.tng-chaser-card-loc {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.tng-chaser-progress-container {
  width: 100%;
  height: 4px;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 2px;
  margin-top: 2px;
  overflow: hidden;
}

.tng-chaser-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #eab308 100%);
  border-radius: 2px;
}

@keyframes tngPulse {
  0% {
    transform: scale(0.85);
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(234, 179, 8, 0);
  }
  100% {
    transform: scale(0.85);
    box-shadow: 0 0 0 0 rgba(234, 179, 8, 0);
  }
}

.tng-forecast-table th.tng-active-column,
.tng-forecast-table td.tng-active-column {
  outline: 2px solid var(--color-primary) !important;
  outline-offset: -2px;
  background-color: rgba(37, 99, 235, 0.06) !important;
}

@keyframes tngPulseGreen {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.tng-pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  animation: tngPulseGreen 2s infinite;
}

