svg {
  width: 100%;
  height: auto;
  /* outline: 1px dashed; */
}

.uk-card-title {
  line-height: 1.2;
}

.question-mark-div {
  margin-left: 10px;
  min-width: 20px;
}

#slider-play-button {
  border: none;
  outline: none;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  font-size: 1.1rem;
  width: 3rem;
  height: 3rem;
}

#slider-play-button:focus {
  outline: none;
  box-shadow: none;
}

/* override UIKit CSS*/

@media (min-width: 960px) {
  #map-container {
    margin-top: -100px;
  }
  .map-description {
    margin-top: -60px;
  }
}

@media (max-width: 960px) {
  #map-container {
    margin-top: -60px;
  }
  .uk-heading-xlarge {
    font-size: 2.5rem;
    line-height: 1.1;
  }
  .uk-text-large {
    font-size: 1.1rem;
    line-height: 1.5;
  }
  .uk-grid-divider.uk-grid-column-small > *,
  .uk-grid-divider.uk-grid-small > * {
    padding-left: 0px;
  }
  .uk-card-header {
    padding-right: 0px;
  }

  .uk-card-body {
    padding-right: 0px;
    padding-top: 0px;
  }

  .city {
    opacity: 0;
  }

  .city-label {
    opacity: 0;
  }
}

@media (min-width: 1200px) {
  .uk-heading-xlarge {
    font-size: 6rem;
  }

  .uk-card-header {
    padding: 10px 20px 0px 20px;
  }

  .uk-card-body {
    padding: 0 20px 0 20px;
  }

  #map-container {
    margin-top: -140px;
  }
}

.uk-card-default .uk-card-header {
  border-bottom: None;
}

.uk-card {
  border: none;
  color: none;
  box-shadow: none;
}

.uk-select {
  border-radius: 0.5em;
}

.timeline-card {
  overflow: hidden;
}

#treemap-tooltip {
  position: absolute;
  padding: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 5px;
  pointer-events: none;
  font-family: Arial, sans-serif;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s;
}

.tooltip {
  position: absolute;
  text-align: center;
  padding: 8px;
  font: 12px sans-serif;
  background: lightsteelblue;
  border: 0px;
  border-radius: 8px;
  pointer-events: none;
}

/* RANGE SLIDER */

/* Base Colors */
:root {
  --shade-10: #2c3e50;
  --shade-1: #d7dcdf;
  --shade-0: #fff;
  --teal: orange;
}

/* Reset */
*,
*:before,
*:after {
  box-sizing: border-box;
}

.range-slider {
  display: flex;
  flex-direction: column;
  align-items: left;
}

.range-slider__range {
  -webkit-appearance: none;
  width: calc(100% - 73px);
  height: 10px;
  border-radius: 5px;
  background: var(--shade-1);
  outline: none;
  padding: 0;
  margin: 0;
}

/* Range Handle */
.range-slider__range::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--shade-10);
  cursor: pointer;
  transition: background 0.15s ease-in-out;
}

.range-slider__range::-webkit-slider-thumb:hover {
  background: var(--teal);
}

.range-slider__range:active::-webkit-slider-thumb {
  background: var(--teal);
}

.range-slider__range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: var(--shade-10);
  cursor: pointer;
  transition: background 0.15s ease-in-out;
}

.range-slider__range::-moz-range-thumb:hover {
  background: var(--teal);
}

.range-slider__range:active::-moz-range-thumb {
  background: var(--teal);
}

/* Focus state */
.range-slider__range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px var(--shade-0), 0 0 0 6px var(--teal);
}

/* Range Label */
.range-slider__value {
  display: inline-block;
  color: var(--shade-10);
  border-radius: 3px;
  padding: 20px 10px;
  margin-left: 8px;
}

/* Firefox Overrides */
::-moz-range-track {
  background: var(--shade-1);
  border: 0;
}

input::-moz-focus-inner,
input::-moz-focus-outer {
  border: 0;
}

/* GRID - LINE CHART */

/* Subtle gridline styling */
.grid line {
  stroke: #94949458; /* Very light gray */
  stroke-width: 0.5; /* Thin lines */
}

.grid path {
  stroke-width: 0;
}

.x-axis path,
.y-axis path {
  display: none;
}

.x-axis text,
.y-axis text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.775rem;
}

.radar-chart-scale {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.775rem;
}

.data-point:hover {
  fill: var(--teal);
}

.tick line {
  stroke-dasharray: none; /* Optional: Remove dashed lines for simplicity */
}

/* Tooltip - Maps */

.tooltip {
  position: absolute;
  background-color: white;
  border: none;
  border-radius: 2px;
  padding: 12px 15px;
  min-width: 180px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  z-index: 1000;
  text-align: left;
}
.tooltip::after {
  content: "";
  position: absolute;
  left: 15px;
  bottom: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid white;
}
.tooltip-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 5px;
  text-align: left;
}
.tooltip-label {
  font-size: 13px;
  color: #666;
  text-align: left;
}
.tooltip-value {
  font-weight: bold;
  font-size: 22px;
  text-align: left;
}

.uk-tooltip {
  max-width: 280px; /* or any width that suits your layout */
  white-space: normal;
}

/* Timeline button in county screen */

#timelineBtn {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  font-size: 0.9em;
}

#timelineBtn.clicked {
  background-color: #a6bddb;
  color: #fff;
}