* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Cloud provider colors */
  --color-aws: #FF9900;
  --color-azure: #0078D4;
  --color-gcp: #4285F4;
  --color-ibm: #052FAD;
  --color-oracle: #F80000;
  --color-alibaba: #FF6A00;

  /* Dark theme - matching devtech8.com */
  --bg-dark: #0d1117;
  --bg-darker: #010409;
  --bg-card: #161b22;
  --bg-card-hover: #1c2128;
  --text-primary: #e6edf3;
  --text-secondary: #9eaab6;
  --border-color: #3d444d;
  --accent: #58a6ff;

  /* Legacy mappings for compatibility */
  --primary: #0d1117;
  --secondary: #161b22;
  --light: #58a6ff;
  --text-dark: #e6edf3;
  --text-light: #9eaab6;
  --bg-light: #21262d;
  --border: #3d444d;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
}

/* Layout */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.header {
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 20px 24px;
  flex-shrink: 0;
}

.header-content {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-main {
  text-align: left;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.disclaimer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.6;
  transition: color 0.2s, opacity 0.2s;
}

.disclaimer-link:hover {
  color: var(--text-primary);
  opacity: 1;
}

.back-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
  white-space: nowrap;
}

.back-link:hover {
  color: var(--accent);
}

.header h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
  background: linear-gradient(90deg, var(--color-azure), var(--color-gcp), var(--color-aws));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header p {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Main Content */
.main-content {
  display: flex;
  flex: 1;
  overflow: hidden;
  gap: 0;
}

.sidebar {
  width: 320px;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 60px;
  flex-shrink: 0;
  position: relative;
}

/* Scroll indicator at bottom */
.sidebar::after {
  content: 'Scroll for more providers ↓';
  position: fixed;
  bottom: 290px;
  left: 0;
  width: 320px;
  text-align: center;
  padding: 8px;
  background: linear-gradient(to top, var(--bg-card) 60%, transparent 100%);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  pointer-events: none;
  opacity: 0.9;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 600;
}

.reset-all-btn {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s;
}

.reset-all-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--accent);
}

/* Search */
.search-section {
  margin-bottom: 20px;
}

.search-box {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 13px;
  background: var(--bg-dark);
  color: var(--text-primary);
  transition: all 0.2s;
}

.search-box::placeholder {
  color: var(--text-secondary);
}

.search-box:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

/* Filter Section */
.filter-section {
  margin-bottom: 20px;
}

.filter-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-item:hover {
  background: var(--bg-light);
}

.filter-item input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: var(--light);
}

.filter-item label {
  cursor: pointer;
  font-size: 13px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.provider-badge {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
}

/* Stats Box */
.stats-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
  padding: 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.stat-item {
  text-align: center;
}

.stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

/* Map */
.map-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

#map {
  width: 100%;
  height: 100%;
}

.map-container .leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
}

.map-container .leaflet-popup-tip {
  background-color: var(--bg-card);
}

/* Custom Markers */
.custom-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
  font-size: 12px;
  font-weight: bold;
  color: white;
}

.custom-marker:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Provider Marker with Icon */
.marker-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s;
  background-color: white;
  position: relative;
  overflow: hidden;
}

.marker-wrapper:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.marker-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.15;
}

.marker-icon {
  width: 70%;
  height: 70%;
  object-fit: contain;
  z-index: 1;
  position: relative;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.marker-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  position: relative;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

.provider-marker-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-icon-solid {
  transition: transform 0.2s;
  cursor: pointer;
}

.marker-icon-solid:hover {
  transform: scale(1.15);
}

/* Fallback for when icons fail to load */
.provider-marker-container.no-icon {
  background-color: var(--bg-light) !important;
}

/* Bottom Panel */
.bottom-panel {
  height: 280px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  overflow-y: auto;
  flex-shrink: 0;
}

.panel-content {
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.panel-header h3 {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 600;
}

.close-panel-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.close-panel-btn:hover {
  color: var(--text-primary);
}

.panel-body {
  overflow-y: auto;
  flex: 1;
}

.no-selection {
  text-align: center;
  color: var(--text-secondary);
  padding: 24px;
  font-size: 14px;
}

/* Location Details */
.location-details {
  display: grid;
  gap: 12px;
}

.detail-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 13px;
}

.detail-value {
  color: var(--text-primary);
  font-size: 13px;
  word-break: break-word;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.service-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.15), rgba(66, 133, 244, 0.1));
  border: 1px solid rgba(88, 166, 255, 0.3);
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.2s;
}

.service-tag:hover {
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.25), rgba(66, 133, 244, 0.2));
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Legend */
.legend {
  position: absolute;
  bottom: 300px;
  right: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 400;
  max-width: 200px;
}

.legend-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legend-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-primary);
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar {
    width: 280px;
  }
}

@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 200px;
  }

  .bottom-panel {
    height: 240px;
  }

  .legend {
    bottom: 260px;
    right: 8px;
  }

  .header h1 {
    font-size: 24px;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: #484f58;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6e7681;
}

/* ========================================
   Quick Provider Toggle Chips
   ======================================== */
.quick-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.quick-provider-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-dark);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.quick-provider-chip:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.quick-provider-chip.active {
  color: white;
  border-color: transparent;
}

.quick-provider-chip .chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.quick-provider-chip.active .chip-dot {
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

/* "All" chip */
.quick-provider-chip.all-chip {
  background: var(--bg-light);
  border-color: var(--border-color);
}

.quick-provider-chip.all-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ========================================
   Nested Filter Groups
   ======================================== */
.filter-provider-group {
  margin-bottom: 4px;
}

.filter-provider-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
}

.filter-provider-header:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-secondary);
}

.filter-provider-header input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.filter-provider-header label {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.expand-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 10px;
  color: var(--text-light);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.2s;
}

.expand-btn:hover {
  color: var(--text-dark);
}

.filter-provider-types {
  margin-left: 28px;
  margin-top: 4px;
  padding-left: 12px;
  border-left: 2px solid var(--border);
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
  max-height: 500px;
  opacity: 1;
}

.filter-provider-types.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.filter-type-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-type-item:hover {
  background: var(--bg-light);
}

.filter-type-item input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: var(--light);
}

.filter-type-item label {
  cursor: pointer;
  font-size: 13px;
  color: var(--text-primary);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* ========================================
   Info Icon and Tooltip
   ======================================== */
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 12px;
  color: var(--text-light);
  cursor: help;
  position: relative;
  flex-shrink: 0;
  transition: color 0.2s;
}

.info-icon:hover {
  color: var(--light);
}

.tooltip-wrapper {
  position: relative;
  display: inline-flex;
}

.tooltip-content {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  z-index: 9999;
  background: #2d333b;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
  width: 220px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
  font-weight: normal;
}

.tooltip-wrapper:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
}

/* ========================================
   Marker Clustering
   ======================================== */
.cluster-marker-container {
  background: transparent !important;
}

.cluster-marker-container > div {
  transition: transform 0.2s;
  cursor: pointer;
}

.cluster-marker-container > div:hover {
  transform: scale(1.1);
}

/* Override default markercluster styles */
.marker-cluster,
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background-color: transparent !important;
}

.marker-cluster div {
  background-color: transparent !important;
}

/* Cluster animation */
.leaflet-cluster-anim .leaflet-marker-icon {
  transition: transform 0.3s ease-out;
}

/* ========================================
   Service Status Indicators
   ======================================== */
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}

/* Unified Options Section */
.options-section {
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.options-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.option-label {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.issue-count-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #ff4444;
  color: white;
  font-size: 11px;
  font-weight: 700;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  transition: 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: rgba(255, 68, 68, 0.2);
  border-color: #ff4444;
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
  background-color: #ff4444;
}

/* Status badge in detail panel */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  color: white;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-incident {
  margin-top: 8px;
  padding: 8px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

.status-incident-title {
  display: block;
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.status-incident-services {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
}

.status-last-checked {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 8px;
  text-align: center;
}

/* ========================================
   Tri-Toggle (Gov/DoD)
   ======================================== */

.tri-toggle {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.tri-btn {
  background: var(--bg-dark);
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s;
  border-right: 1px solid var(--border-color);
}

.tri-btn:last-child {
  border-right: none;
}

.tri-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.tri-btn.active {
  background: var(--accent);
  color: white;
}

/* ========================================
   Inline Provider Status Indicator
   ======================================== */
@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.provider-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
}

.provider-status-dot.healthy {
  background: #3fb950;
  box-shadow: 0 0 6px rgba(63, 185, 80, 0.4);
}

.provider-status-dot.advisory {
  background: #ffdd57;
  box-shadow: 0 0 6px rgba(255, 221, 87, 0.4);
  animation: status-pulse 2s ease-in-out infinite;
}

.provider-status-dot.degraded {
  background: #ffaa00;
  box-shadow: 0 0 6px rgba(255, 170, 0, 0.4);
  animation: status-pulse 1.5s ease-in-out infinite;
}

.provider-status-dot.outage {
  background: #ff4444;
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.5);
  animation: status-pulse 1s ease-in-out infinite;
}

.provider-status-dot.loading {
  background: var(--text-secondary);
  animation: status-pulse 1.5s ease-in-out infinite;
}

.provider-status-text {
  font-size: 10px;
  color: var(--text-secondary);
  margin-left: auto;
  white-space: nowrap;
}

/* ========================================
   Incident History Timeline
   ======================================== */
.incident-timeline {
  text-align: left;
}

.timeline-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-healthy {
  color: var(--text-secondary);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-healthy-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3fb950;
  box-shadow: 0 0 6px rgba(63, 185, 80, 0.4);
}

.timeline-loading {
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

.timeline-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-severity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.timeline-item-content {
  flex: 1;
  min-width: 0;
}

.timeline-item-title {
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 4px;
}

.timeline-item-meta {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-item-regions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.timeline-region-tag {
  display: inline-block;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
}

/* ========================================
   Status Overlay Dimming
   ======================================== */
.map-container.issues-mode .marker-icon-solid {
  opacity: 0.3;
  transition: opacity 0.3s;
}

.map-container.issues-mode .marker-icon-solid.has-status-issue {
  opacity: 1;
}

.map-container.issues-mode .cluster-marker-container > div {
  opacity: 0.3;
  transition: opacity 0.3s;
}

/* ========================================
   Disclaimer Modal
   ======================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 90%;
  max-width: 640px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-dark);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.modal-body h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 8px 0;
}

.modal-body h3:first-of-type {
  margin-top: 8px;
}

.modal-body p {
  margin: 0 0 10px 0;
}

.modal-body ul {
  margin: 0 0 10px 0;
  padding-left: 20px;
}

.modal-body li {
  margin-bottom: 6px;
}

.modal-body a {
  color: var(--accent);
  text-decoration: none;
}

.modal-body a:hover {
  text-decoration: underline;
}

.modal-updated {
  color: var(--text-secondary);
  font-size: 12px;
}
