.center-aligned-header .ag-header-cell-label {
  justify-content: center;
}

.center-aligned-cell {
  text-align: center;
}

body {
  background:
    radial-gradient(circle at top left, rgba(196, 106, 56, 0.16), transparent 22%),
    linear-gradient(180deg, #f8f3ed 0%, #f4ede4 100%);
  color: #1f2933;
}

.map-dashboard {
  padding: 12px 0 32px;
}

.map-dashboard__hero {
  background: linear-gradient(135deg, #7a2e1d 0%, #9a4527 42%, #d7a25e 100%);
  border-radius: 28px;
  color: #fff6ef;
  padding: 32px;
  box-shadow: 0 24px 70px rgba(122, 46, 29, 0.18);
  margin-bottom: 18px;
}

.map-dashboard__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  opacity: 0.8;
  margin-bottom: 12px;
}

.map-dashboard__title {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 12px;
  font-weight: 700;
  max-width: 780px;
}

.map-dashboard__subtitle {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 246, 239, 0.86);
  font-size: 1rem;
}

.map-dashboard__error {
  color: #8b1e13;
  font-weight: 600;
  margin-bottom: 12px;
}

.map-dashboard__layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.map-dashboard__sidebar,
.map-dashboard__content {
  display: grid;
  gap: 20px;
}

.map-dashboard__panel,
.map-dashboard__map-card,
.map-dashboard__stat-card {
  border: 0;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(55, 36, 26, 0.08);
}

.map-dashboard__panel .card-body,
.map-dashboard__map-card .card-body,
.map-dashboard__stat-card .card-body {
  padding: 20px;
}

.map-dashboard__panel {
  background: rgba(255, 252, 248, 0.9);
}

.map-dashboard__panel-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #99533b;
  margin-bottom: 14px;
  font-weight: 700;
}

.map-dashboard__label {
  margin-top: 12px;
}

.map-dashboard__input {
  width: 100%;
  border: 1px solid #d9c5b6;
  border-radius: 16px;
  padding: 12px 14px;
  background: #fffdfa;
  color: #322018;
}

.map-dashboard__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.map-dashboard__stat-card {
  background: linear-gradient(160deg, #12394a 0%, #1d5b72 100%);
  color: white;
}

.map-dashboard__stat-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
}

.map-dashboard__stat-value {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  line-height: 1;
  font-weight: 700;
  margin-top: 8px;
}

.map-dashboard__map-card {
  background: rgba(255, 252, 248, 0.92);
}

.map-dashboard__map .js-plotly-plot,
.map-dashboard__map .plot-container {
  border-radius: 18px;
  overflow: hidden;
}

.map-dashboard__detail-panel {
  background: linear-gradient(180deg, #fffaf5 0%, #f8ede2 100%);
}

.map-dashboard__detail-name {
  margin-bottom: 6px;
  color: #5d2819;
}

.map-dashboard__detail-brand {
  color: #a44c2f;
  font-weight: 700;
  margin-bottom: 16px;
}

.map-dashboard__detail-row {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid rgba(153, 83, 59, 0.14);
}

.map-dashboard__detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8e6048;
  font-weight: 700;
}

.map-dashboard__detail-value {
  color: #2f231d;
}

.map-dashboard__detail-empty {
  color: #7d5a48;
}

.map-dashboard__textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
}

.map-dashboard__report-button {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background-color: #802917;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.report-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 252, 248, 0.88);
  box-shadow: 0 18px 42px rgba(55, 36, 26, 0.08);
}

.report-page__summary {
  margin: 12px 0 18px;
  padding: 16px;
  border-radius: 14px;
  background: #fffaf5;
}

.map-dashboard__report-output {
  margin-top: 12px;
}

.map-dashboard__report-error {
  color: #9d2c1f;
  font-weight: 700;
  margin-bottom: 6px;
}

.map-dashboard__report-success {
  color: #2f5d33;
  font-weight: 700;
  margin-bottom: 8px;
}

.map-dashboard__report-link {
  display: block;
  margin-top: 6px;
  color: #802917;
  font-weight: 700;
}

.map-dashboard__report-note {
  margin-top: 12px;
  color: #7d5a48;
  font-size: 0.85rem;
  line-height: 1.5;
}

.map-dashboard__seo-section {
  margin-top: 24px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 252, 248, 0.88);
  box-shadow: 0 18px 42px rgba(55, 36, 26, 0.08);
}

.map-dashboard__seo-title {
  margin: 0 0 14px;
  color: #5d2819;
}

.map-dashboard__seo-copy {
  margin: 0 0 12px;
  color: #47352d;
  line-height: 1.7;
}

@media (max-width: 1200px) {
  .map-dashboard__layout {
    grid-template-columns: 1fr;
  }

  .map-dashboard__sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .map-dashboard__hero {
    padding: 24px;
    border-radius: 22px;
  }

  .map-dashboard__sidebar,
  .map-dashboard__stats {
    grid-template-columns: 1fr;
  }
}

.map-dashboard__dataset-badge {
  font-size: 0.9rem;
  color: #47352d;
  background: rgba(255, 252, 248, 0.92);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 12px 28px rgba(55, 36, 26, 0.08);
}

.map-dashboard__dataset-badge--stale,
.map-dashboard__dataset-badge--overdue,
.map-dashboard__dataset-badge--unavailable {
  color: #8b1e13;
  font-weight: 700;
}

.map-dashboard__hero-link {
  display: inline-block;
  margin-top: 14px;
  color: #fff6ef;
  text-decoration: underline;
}

.metodologia {
  padding: 12px 0 32px;
}

.metodologia__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: #99533b;
  margin-bottom: 12px;
  font-weight: 700;
}

.metodologia__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 14px;
  color: #5d2819;
}

.metodologia__section {
  margin-top: 28px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 252, 248, 0.92);
  box-shadow: 0 18px 42px rgba(55, 36, 26, 0.08);
}

.metodologia__section-title {
  margin: 0 0 14px;
  color: #5d2819;
}

.metodologia__subtitle {
  margin: 18px 0 8px;
  color: #5d2819;
}

.metodologia__copy {
  color: #47352d;
  line-height: 1.7;
  margin: 0 0 12px;
}

.metodologia__list {
  color: #47352d;
  line-height: 1.7;
}

.metodologia__snapshot {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 252, 248, 0.92);
  box-shadow: 0 12px 28px rgba(55, 36, 26, 0.08);
  color: #47352d;
  line-height: 1.7;
}

.metodologia__highlight {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  border-left: 5px solid #7a2e1d;
  background: rgba(255, 252, 248, 0.92);
  box-shadow: 0 12px 28px rgba(55, 36, 26, 0.08);
  color: #47352d;
  line-height: 1.7;
}

.metodologia__table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  color: #47352d;
  line-height: 1.6;
}

.metodologia__table th,
.metodologia__table td {
  border: 1px solid rgba(153, 83, 59, 0.25);
  padding: 10px 12px;
  vertical-align: top;
}

.metodologia__link {
  color: #7a2e1d;
  font-weight: 700;
}

.metodologia__back {
  margin-top: 24px;
}
