body {
  position: relative;
  margin: 0;
  font-family: "Roboto", sans-serif;
  background: radial-gradient(
      circle at 100% 0%,
      rgba(254, 53, 53, 0.3),
      transparent 25%
    ),
    radial-gradient(circle at 0% 100%, rgba(254, 53, 53, 0.6), transparent 40%),
    #eeeeee;
}

* {
  box-sizing: border-box;
}

img,
canvas {
  max-width: 100%;
}

.hero {
  padding-left: 40px;
  padding-right: 40px;
}

.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.hero-row > div:first-child {
  flex: 1;
  min-width: 0;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 80px;
  margin-left: 40px;
  flex-wrap: wrap;
}

.title {
  font-family: "Bricolage Grotesque";
  font-weight: 700;
  font-size: 70px;
  color: #bf1a1a;
  margin-bottom: 0;
  line-height: 1.05;
}

.subtitle {
  font-weight: 300;
  font-size: 20px;
  margin-top: -10px;
  line-height: 1.4;
}

.outline-btn {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 6px solid #bf1a1a;
  background: transparent;
  color: #bf1a1a;
  cursor: pointer;
  width: 172px;
  min-height: 46px;
  line-height: 1.2;
  box-shadow: 6px 10px 0 rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

.outline-btn:hover {
  background-color: #ffffff;
}

.search-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 6px 6px 20px;
  border: 4px solid #bf1a1a;
  border-radius: 999px;
  background: #f2f2f2;
  box-shadow: 6px 10px 0 rgba(0, 0, 0, 0.25);
  max-width: 100%;
  gap: 10px;
}

.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  min-width: 0;
  font-size: 20px;
  font-family: "Roboto", sans-serif;
  color: #838181;
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #bf1a1a;
  cursor: pointer;
}

.search-btn img {
  width: 18px;
  height: 18px;
}

.search-status {
  min-height: 24px;
  margin: 10px 8px 0;
  padding: 0 6px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.68);
}

.search-status.active {
  font-weight: 500;
}

.search-status.empty {
  color: #8c0e0e;
}

.kpi-row {
  display: flex;
  gap: 48px;
  padding: 0 40px;
  margin-top: 24px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.kpi {
  flex: 1 1 260px;
  min-width: 0;
  text-align: center;
  background: #f2dfdf;
  border-radius: 22px;
  padding: 22px 18px 18px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.1), 0 10px 0 #8c0e0e;
  border: 1px solid rgba(140, 14, 14, 0.15);
}

.kpi h3 {
  margin: 0 0 14px 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #111;
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 6px solid #8c0e0e;
  border-radius: 4px;
}

.kpi-number {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
  color: #2f2f2f;
  margin: 8px 0 6px 0;
}

.kpi span {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.65);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.6fr);
  grid-template-areas:
    "filters line"
    "sources topics";
  gap: 22px;
  padding: 0 40px;
  margin-top: 24px;
  align-items: stretch;
}

.left-col {
  display: contents;
}

.filter-card {
  grid-area: filters;
}

.chart-pie {
  grid-area: sources;
}

.chart-line {
  grid-area: line;
  min-width: 0;
}

.chart-bar {
  grid-area: topics;
  min-width: 0;
}

.filter-card,
.chart-card {
  background: #f2dfdf;
  border-radius: 22px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.1), 0 10px 0 #8c0e0e;
  border: 1px solid rgba(140, 14, 14, 0.15);
  min-width: 0;
}

.chart-card {
  display: flex;
  flex-direction: column;
}

.underline {
  margin: 0 auto 6px;
  display: block;
  width: fit-content;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 26px;
  text-align: center;
  color: #111;
  line-height: 1.2;
  position: relative;
}

.underline::after {
  content: "";
  display: block;
  width: 100%;
  height: 6px;
  background: #8c0e0e;
  border-radius: 999px;
  margin-top: 6px;
}

.chart-card canvas {
  width: 100% !important;
}

.chart-line canvas {
  height: 340px !important;
}

.chart-bar canvas {
  height: 380px !important;
  max-width: 94% !important;
  margin: 0 auto;
}

.chart-bar {
  align-items: center;
}

.chart-bar canvas,
.chart-bar .topic-controls {
  width: 100%;
}

.chart-pie {
  min-height: 0;
}

.chart-pie .source-chart-legend,
.chart-pie .chart-hint {
  width: 100%;
}

.chart-hint {
  margin: 10px 0 0;
  font-size: 13px;
  opacity: 0.7;
}

.card-filter {
  padding: 24px 22px 22px;
}

.filter-title {
  margin: 0 auto 4px;
  text-align: center;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 26px;
  color: #111;
  position: relative;
  display: block;
  width: fit-content;
  line-height: 1.2;
}

.filter-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 6px;
  background: #8c0e0e;
  border-radius: 999px;
  margin: 1px auto 0;
}

.filter-item {
  position: relative;
  background: #ffffff;
  border-radius: 999px;
  padding: 18px 20px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.filter-icon img {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}

.filter-item select {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 20px;
  padding-right: 64px;
  text-align: center;
  text-align-last: center;
}

.filter-item select option {
  text-align: center;
}

.filter-item::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  border-right: 3px solid #8c0e0e;
  border-bottom: 3px solid #8c0e0e;
  pointer-events: none;
}

.filter-buttons {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pill-btn {
  flex: 1 1 160px;
  min-height: 60px;
  border-radius: 999px;
  border: 8px solid #ff0000;
  background-color: #f2dfdf;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 20px;
  cursor: pointer;
}

.pill-btn:hover {
  background: #f7f7f7;
}

.chart-pie canvas {
  display: block;
}

.chart-title {
  text-align: center;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 26px;
  margin: 0 auto 2px;
  position: relative;
  line-height: 1.2;
  display: block;
  width: fit-content;
}

.chart-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 6px;
  background: #8c0e0e;
  border-radius: 999px;
  margin: 4px auto 0;
}

.chart-subtitle {
  text-align: center;
  margin-top: 8px;
  margin-bottom: 20px;
  font-family: "Roboto", sans-serif;
  font-weight: 200;
  font-size: 20px;
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.4;
}

/* Multi-select Sources */
.filter-item .multi-source {
  flex: 1;
  width: 100%;
  position: relative;
  min-width: 0;
}

.filter-item .multi-source-btn {
  width: 100% !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-family: "Roboto", sans-serif !important;
  font-weight: 300 !important;
  font-style: italic !important;
  font-size: 20px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 34px 0 0 !important;
  min-height: 32px;
}

.filter-item .multi-source-label {
  flex: 1;
  min-width: 0;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-source-caret {
  display: none !important;
}

.filter-item .multi-source-caret {
  width: 18px;
  height: 18px;
  color: #8c0e0e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.filter-item .multi-source-caret svg {
  width: 100%;
  height: 100%;
}

.filter-item .multi-source-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px;
  z-index: 999;
  max-height: 260px;
  overflow-y: auto;
}

.filter-item .multi-source-panel label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
}

.filter-item .multi-source-panel label:hover {
  background: rgba(191, 26, 26, 0.08);
}

.filter-item .multi-source-panel input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.pill-btn.active {
  background: #ffffff;
  box-shadow: inset 0 0 0 3px rgba(191, 26, 26, 0.25);
}

.source-chart-legend {
  margin: 8px 0 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 10px;
  align-items: start;
}

.source-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 7px 10px;
}

.source-legend-chip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

.source-legend-name {
  min-width: 0;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-legend-meta {
  color: rgba(0, 0, 0, 0.68);
  font-variant-numeric: tabular-nums;
}

.source-legend-empty {
  color: rgba(0, 0, 0, 0.66);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  padding: 12px 14px;
}

.maps-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 0 40px 40px;
  margin-top: 24px;
  align-items: start;
}

.heatmap-card {
  margin: 0;
  background: #f2dfdf;
  border-radius: 22px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.1), 0 10px 0 #8c0e0e;
  border: 1px solid rgba(140, 14, 14, 0.15);
  min-width: 0;
}

.heatmap-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  font-size: 26px;
  margin-bottom: 12px;
}

.heatmap-header > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.heatmap-header .underline {
  margin: 0 0 6px;
  text-align: left;
}

.heatmap-subtitle {
  margin: 4px 0 0;
  color: rgba(0, 0, 0, 0.65);
  font-size: 20px;
  font-family: "Roboto", sans-serif;
  font-family: 200;
  line-height: 1.4;
}

.heatmap-badge {
  white-space: nowrap;
  background: #bf1a1a;
  color: #fff;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  align-self: center;
}

.heatmap-map {
  width: 100%;
  height: 460px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(140, 14, 14, 0.18);
  background: #f7f3f3;
}

.heatmap-caption {
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.72);
  line-height: 1.4;
}

.heatmap-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 24px;
  color: rgba(0, 0, 0, 0.65);
  font-size: 15px;
}

.leaflet-popup-content-wrapper {
  border-radius: 14px;
}

.leaflet-container {
  font-family: "Roboto", sans-serif;
}

.legend {
  line-height: 18px;
  color: #111;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  font-size: 13px;
}

.legend i {
  width: 16px;
  height: 16px;
  float: left;
  margin-right: 8px;
  opacity: 0.95;
  border-radius: 4px;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1200px) {
  .hero,
  .kpi-row,
  .dashboard-grid,
  .maps-row {
    padding-left: 24px;
    padding-right: 24px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "filters"
      "line"
      "sources"
      "topics";
  }

  .source-chart-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  .title {
    font-size: 44px;
  }

  .hero-buttons {
    margin-top: 20px;
    margin-left: 0;
  }

  .kpi-row {
    gap: 20px;
  }

  .dashboard-grid {
    gap: 18px;
    padding-top: 16px;
  }

  .source-chart-legend {
    grid-template-columns: 1fr;
  }

  .chart-line canvas,
  .chart-bar canvas {
    height: 260px !important;
  }

  .pie-wrapper {
    width: min(100%, 260px);
  }

  .heatmap-header {
    flex-direction: column;
  }
}
.topic-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px; 
  width: 100%;
  margin: 12px 0 12px;
  padding-right: 8px;
}

.topic-controls-label {
  font-family: "Roboto", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #111;
  line-height: 1;
}

.topic-pill-input {
  width: 90px;      
  height: 44px;     
  border-radius: 999px;
  border: 3px solid #d73a3a;
  background: #f2dfdf;
  text-align: center;
  font-family: "Roboto", sans-serif;
  font-size: 20px;
  font-weight: 500;
  padding: 0 12px;
}


.topic-pill-input::-webkit-outer-spin-button,
.topic-pill-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.topic-pill-input:focus {
  box-shadow: 0 0 0 4px rgba(191, 26, 26, 0.12);
}
.topic-apply-btn {
  min-width: 110px;
  height: 44px; 
  border-radius: 22px;
  border: 3px solid #bcbcbc;
  background: #e9e9e9;
  font-size: 20px;
  font-weight: 700;
  padding: 0 16px;
}

.topic-apply-btn:hover,
.topic-apply-btn:focus-visible {
  background: #f3f3f3;
}

.topic-apply-btn:active {
  transform: translateY(1px);
}


.chart-bar .underline {
  margin-bottom: 8px;
}

.chart-bar .topic-controls {
  padding-right: 6px;
}

@media (max-width: 768px) {
  .topic-controls {
    justify-content: center;
    gap: 14px;
    padding-right: 0;
    flex-wrap: wrap;
  }

  .topic-controls-label {
    font-size: 24px;
  }

  .topic-pill-input {
    width: 118px;
    height: 68px;
    font-size: 30px;
    padding: 0 18px;
  }

  .topic-apply-btn {
    min-width: 132px;
    height: 68px;
    font-size: 28px;
    border-radius: 22px;
    padding: 0 22px;
  }
}

/* Pie chart sizing fix */
.pie-wrapper {
  width: min(100%, 340px);
  aspect-ratio: 1 / 1;
  margin: 6px auto 0;
  position: relative;
}

.pie-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
}

.narrative-panel {
  padding: 0 40px;
}

.narrative-card {
  background: #f2dfdf;
  border-radius: 22px;
  padding: 26px 28px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.1), 0 10px 0 #8c0e0e;
  border: 1px solid rgba(140, 14, 14, 0.15);
}

.narrative-card h2 {
  margin: 0 0 2px;
  font-family: "Roboto", sans-serif;
  font-size: 26px;
  color: #111;
}

.narrative-card > p,
.narrative-note,
.narrative-points p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.82);
}

.narrative-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.narrative-points div {
  background: rgba(255, 255, 255, 0.48);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(140, 14, 14, 0.12);
}

.narrative-points h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #8c0e0e;
}

.narrative-note {
  margin-bottom: 0;
}

.narrative-card {
  font-family: "Roboto", sans-serif;
}

.narrative-points {
  margin: 14px 0 0 18px;
  padding: 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.narrative-points li + li {
  margin-top: 10px;
}

.chart-card,
.heatmap-card {
  position: relative;
}

.info-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 3px solid #8c0e0e;
  background: #f7f1f1;
  color: #8c0e0e;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.info-btn:hover,
.info-btn:focus-visible {
  background: #ffffff;
  transform: translateY(-1px);
}

.info-btn:focus-visible {
  outline: 3px solid rgba(191, 26, 26, 0.22);
  outline-offset: 2px;
}

.heatmap-card .info-btn {
  top: 16px;
  right: 16px;
}

.heatmap-badge {
  margin-right: 58px;
}

.info-modal[hidden] {
  display: none;
}

.info-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.info-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.info-modal-dialog {
  position: relative;
  max-width: 560px;
  margin: 8vh auto;
  background: #fff;
  border-radius: 20px;
  padding: 26px 24px 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(140, 14, 14, 0.18);
}

.info-modal-dialog h3 {
  margin: 0 40px 12px 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 26px;
  color: #8c0e0e;
}

.info-modal-dialog p {
  margin: 0 0 10px;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.info-modal-dialog ul {
  margin: 10px 0 0 18px;
  padding: 0;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.info-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 32px;
  color: #8c0e0e;
  cursor: pointer;
}

.sentiment-kpi .kpi-number {
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.sentiment-scale-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px auto 8px;
  max-width: 100%;
}

.sentiment-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap;
}

.sentiment-pill-negative {
  background: rgba(191, 26, 26, 0.12);
  color: #8c0e0e;
  border-color: rgba(140, 14, 14, 0.18);
}

.sentiment-pill-neutral {
  background: rgba(82, 82, 82, 0.1);
  color: #444;
  border-color: rgba(82, 82, 82, 0.18);
}

.sentiment-pill-positive {
  background: rgba(22, 101, 52, 0.12);
  color: #166534;
  border-color: rgba(22, 101, 52, 0.18);
}

.sentiment-value.sentiment-negative {
  color: #8c0e0e;
}

.sentiment-value.sentiment-neutral {
  color: #5f5f5f;
}

.sentiment-value.sentiment-positive {
  color: #1b5e20;
}

.sentiment-inline-guide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 2px auto 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(140, 14, 14, 0.1);
}

.sentiment-inline-guide .guide-item {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.sentiment-inline-guide .guide-item.negative {
  color: #ff0000;
}

.sentiment-inline-guide .guide-item.neutral {
  color: #4b5563;
}

.sentiment-inline-guide .guide-item.positive {
  color: #166534;
}

.sentiment-inline-guide .guide-arrow {
  font-size: 16px;
  color: rgba(0, 0, 0, 0.6);
  font-weight: 700;
}

.heatmap-legend-card {
  min-width: 188px;
}

.heatmap-legend-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.heatmap-legend-section + .heatmap-legend-section {
  margin-top: 10px;
}

.heatmap-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.heatmap-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  flex: 0 0 14px;
}

.heatmap-legend-swatch.negative {
  background: #800020;
}
.heatmap-legend-swatch.neutral {
  background: #a89f91;
}
.heatmap-legend-swatch.positive {
  background: #166534;
}

.heatmap-size-demo {
  position: relative;
  width: 70px;
  height: 34px;
  flex: 0 0 70px;
}

.heatmap-size-circle {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  border: 2px solid rgba(140, 14, 14, 0.35);
  background: rgba(191, 26, 26, 0.2);
}

.heatmap-size-circle.small {
  width: 12px;
  height: 12px;
}
.heatmap-size-circle.medium {
  width: 22px;
  height: 22px;
}
.heatmap-size-circle.large {
  width: 32px;
  height: 32px;
}

.location-bubble-label {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(140, 14, 14, 0.18);
  border-radius: 999px;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.1);
  color: #2b1a1a;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
}

.leaflet-tooltip.location-bubble-tooltip {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(140, 14, 14, 0.18);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  color: #111;
  padding: 0;
}

.leaflet-tooltip.location-bubble-tooltip::before {
  border-top-color: rgba(255, 255, 255, 0.96);
}

.location-tooltip {
  min-width: 190px;
  padding: 10px 12px;
}

.location-tooltip h4 {
  margin: 0 0 8px;
  font-size: 26px;
}

.location-tooltip dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  margin: 0;
}

.location-tooltip dt {
  font-weight: 700;
  color: rgba(0, 0, 0, 0.7);
}

.location-tooltip dd {
  margin: 0;
}