:root {
  --1: #ababab;
  --2: #9169f4;
  --3: #0055a7;
  --4: #009526;
  --5: #222222;
  --6: #24801d;
  --7: #40e0d0;
  --8: #5ac035;
  --9: #73b1e6;
  --10: #a3c940;
  --11: #ed1c24;
  --12: #f3b217;
  --13: #008050;
  --14: #037252;
  --15: #0a7565;
  --16: #7fc22e;
  --17: #becd48;
  --18: #c00723;
  --19: #c40916;
  --20: #db6426;
  --21: #ed6f91;
  --22: #fe5000;
  --23: #ffda1a;
  --no-data: #f2f2f2;
}

/*ARC layout*/
.a_e {
  border-bottom: initial;
}

/* Fix - form geocoder  */
#map #buttons-panel .mapboxgl-ctrl-top-right {
  z-index: 100;
}

/*Map*/

@media (min-width: 990px) {
  .g-big {
    margin-right: calc(
      var(--grid-12-1-column-content-gap) * + var(--grid-column-gap) / 2
    ) !important;
    margin-left: calc(
      var(--grid-12-1-column-content-gap) * + var(--grid-column-gap) / 2
    ) !important;
  }
}

@media (min-width: 1366px) {
  .g-big {
    margin-right: calc(
      var(--grid-12-1-column-content-gap) * -1 + var(--grid-column-gap) / 2
    ) !important;
    margin-left: calc(
      var(--grid-12-1-column-content-gap) * -1 + var(--grid-column-gap) / 2
    ) !important;
  }
}

.mapboxgl-canvas-container {
  width: 100%;
  height: 100%;
}

.mapboxgl-map {
  border-radius: 5px;
}

/*Tooltip*/
.data-value {
  font-weight: 700;
}

@media (min-width: 600px) {
    .tooltip {
      max-width: 275px !important;
    }
}

@media (max-width: 600px) {
  /* .tooltip {
    max-width: 275px !important;
  } */

  .incendios-legend {
    max-height: 130px;
    max-width: 275px !important;
    margin-left: auto;
    margin-right: auto;
  }
}

/*Lengend*/
.legend {
  min-width: 300px;
  max-width: 300px;
  background: hsl(0deg 0% 100%);
  border: 1px solid #e6e6e6;
  border-radius: 5px;
  padding: 5px 20px;
}

/* Nueva leyenda de incendios */
.incendios-legend {
  position: absolute;
  top: 48px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid black;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1;
  min-width: 285px;
  max-width: 320px;
}

.incendios-legend-columns {
  display: flex;
  gap: 20px;
}

.incendios-legend-column {
  flex: 1;
}

.incendios-legend-section-title {
  font-weight: 200;
  font-size: 13px;
  color: #757575;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.incendios-legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 3px;
  font-size: 13px;
  color: #757575;
}

.incendios-legend-symbol {
  width: 20px;
  height: 20px;
  margin-right: 5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.incendios-legend-symbol.circle {
  border-radius: 50%;
  border: 1px solid #fff;
    width: 10px;
  height: 10px;
}

.incendios-legend-symbol svg {
  width: 100%;
  height: 100%;
}

.incendios-legend-label {
  flex: 1;
}

@media (max-width: 600px) {
  .incendios-legend {
    bottom: 10px;
    left: 10px;
    right: 10px;
    min-width: auto;
    max-width: none;
    padding: 12px;
  }

  .incendios-legend-columns {
    gap: 15px;
  }

  .incendios-legend-item {
    font-size: 12px;
  }

  .incendios-legend-section-title {
    font-size: 11px;
  }
}

@media (min-width: 600px) {
  .legend {
    min-width: 300px;
    max-width: 300px;
    border: initial;
  }

  .legend-title {
    font-weight: 200;
  }

  .legend-desktop {
    min-height: initial;
  }
  .mapboxgl-map {
    border-radius: 10px;
    border: #dfdfdf 1px solid;
  }

  .tooltip-body {
    max-width: 300px !important;
  }
}

@media (max-width: 600px) {
  .legend-subtitle {
    padding-top: 0.2rem;
    line-height: 1rem;
  }

  .legend-title {
    font-weight: 200;
  }

  .legend {
    font-weight: 200 !important;
    /* margin-top: 2.3rem; */
  }
}

/* #g-map > div.g-map-wrapper.active > div.legend.legend-desktop.active > svg > g > g:nth-child(2) {
    display: none;
  } */
/*Tablet*/
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation: portrait) {
  .legend {
    position: absolute;
    top: 0;
    margin-top: 10px;
  }
}

.tooltip-content {
  line-height: 1em !important;
  font-size: 1.3em !important;
}

.tooltip-highlighted-number {
  font-size: 120% !important;
  color: #e31b1c !important;
  font-weight: 500 !important;
}

.tooltip-highlighted-mun {
  color: #e31b1c !important;
}

.tooltip-highlighted-mun-destino {
  color: #e31b1c !important;
  font-weight: 500 !important;
}

/* Personalizado para partidos */

.partidos {
  display: flex;
}
.partidos > tbody {
  width: 50%;
}

.g-map-container .tooltip-content table td:nth-child(2) {
  min-width: 4rem;
}

.tooltip-header {
  background-color: #fff;
  border-bottom: none !important;
  padding: 0.5em 0.5em 0 0.5em !important;
  margin-bottom: 0 !important;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.tooltip-name {
  font-weight: bold;
  font-size: 1em;
  color: inherit;
  line-height: 1.1;
  margin-bottom: 0.5em;
}

.tooltip-subtitle {
  font-weight: 400;
  font-size: 1em;
  color: inherit;
  margin-left: 0.1em;
}

.tooltip-body {
  padding: 0.3em 0.5em 0em 0.5em !important;
  margin: 0 !important;
}

.label-category {
  font-size: 0.8em;
  font-weight: 600 !important;
  color: inherit;
  margin-top: 0.6em;
  margin-bottom: 0;
  line-height: 0em;
}

.label-category-update {
  font-size: 13px;
  line-height: 1em;
  font-weight: 400;
  color: inherit;
  margin-top: 15px;
  margin-bottom: 0;
}

.tooltip-graph {
  margin-top: 10px;
  padding: 0;
}

.scrutinized.renta-block {
  padding: 0;
  margin: 0;
}

.close-tooltip {
  margin-left: auto;
  padding-left: 0.5em;
  display: flex;
  align-items: flex-start;
  cursor: pointer;
}

.x-close {
  color: #000 !important;
  font-size: 1.5em;
  line-height: 1;
  font-weight: 400;
}

.row-1 .pill-item span {
  background-color: var(--1);
}

.row-2 .pill-item span {
  background-color: var(--2);
}

.row-3 .pill-item span {
  background-color: var(--3);
}

.row-4 .pill-item span {
  background-color: var(--4);
}

.row-5 .pill-item span {
  background-color: var(--5);
}

.row-6 .pill-item span {
  background-color: var(--6);
}

.row-7 .pill-item span {
  background-color: var(--7);
}

.row-8 .pill-item span {
  background-color: var(--8);
}

.row-9 .pill-item span {
  background-color: var(--9);
}

.row-10 .pill-item span {
  background-color: var(--10);
}

.row-11 .pill-item span {
  background-color: var(--11);
}

.row-12 .pill-item span {
  background-color: var(--12);
}

.row-13 .pill-item span {
  background-color: var(--13);
}

.row-14 .pill-item span {
  background-color: var(--14);
}

.row-15 .pill-item span {
  background-color: var(--15);
}

.row-16 .pill-item span {
  background-color: var(--16);
}

.row-17 .pill-item span {
  background-color: var(--17);
}

.row-18 .pill-item span {
  background-color: var(--18);
}

.row-19 .pill-item span {
  background-color: var(--19);
}

.row-20 .pill-item span {
  background-color: var(--20);
}

.row-21 .pill-item span {
  background-color: var(--21);
}

.row-22 .pill-item span {
  background-color: var(--22);
}

.row-23 .pill-item span {
  background-color: var(--23);
}


.g-map-container .tooltip.fixed-right {
  top: 50px !important;
}

.incendios-temporada-toggle-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.incendios-temporada-checkbox {
  appearance: none;
  width: 15px;
  height: 15px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  margin: 0;
  display: inline-block;
}

.incendios-temporada-checkbox:checked {
  background: #cbcbcb;
  border-color: #000;
}

.incendios-temporada-checkbox:checked::after {
  content: none;
}

.incendios-temporada-label {
  font-size: 13px;
  color: #757575;
  cursor: pointer;
  font-weight: 200;
  user-select: none;
}