/* ======================================
   Asbestos Near Me - Charts & Timeline
   ====================================== */

.charts-section {
  margin-top: 1.25rem;
}

.chart-container {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(19, 32, 46, 0.1);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
  margin-bottom: 1rem;
}

.chart-header {
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(19, 32, 46, 0.18);
}

.chart-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  color: var(--color-ink-900);
}

.chart-title-icon {
  opacity: 0.82;
}

.chart-subtitle {
  margin: 0.2rem 0 0;
  color: var(--color-ink-500);
  font-size: 0.86rem;
}

.chart-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 340px;
}

.chart-canvas-wrapper.large {
  height: 450px;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.timeline-chart-container {
  animation: riseIn 480ms ease;
}

.chart-loading {
  display: grid;
  place-items: center;
  height: 320px;
  color: var(--color-ink-500);
}

.chart-loading::after {
  content: '';
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #d6e7f4;
  border-top-color: var(--color-sky-700);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
