.home #map {
  min-height: 550px;
  border-radius: 5px;
}

.single-sensor #header-space {
  display: none !important;
}

.single-sensor #header-outer:not(.small-nav, .scrolled-down) {
  background: transparent !important;
}

.single-sensor .container-wrap {
  padding-top: 0 !important;
}

.single-sensor .cabecera {
  width: 100vw;
  margin-top: 150px;
  /* height: 100vh; */
  height: 100%;
  display: flex;
}

.single-sensor:has(#wpadminbar) .cabecera {
  /* height: calc(100vh - 32px); */
  height: 100%;
  margin-top: 182px;
}

.cabecera .cabecera-left,
.cabecera .cabecera-right {
  display: flex;
  flex: 1;
  /* width: 50%; */
  width: 100%;
  background-color: var(--blanco);
  max-width: 50%;
}

.cabecera .cabecera-left {
  animation: fadeIn .65s ease-in;
  flex-flow: column nowrap;
  padding: 0% 4%;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.cabecera .cabecera-right {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  animation: fadeIn .65s ease-in;
}

.cabecera-left .title hr {
  height: 4px;
  width: 130%;
  margin-left: -15%;
  background-color: var(--principal);
}
.cabecera-left .title #scribble {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: scribble 1.3s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  stroke-linecap: round;
}

#contenido {
  padding: calc(4%) 0;
  display: flex;
  gap: 60px;
  flex-flow: row nowrap;
}

#placeros,
#mapa {
  padding-bottom: calc(4%);
}

#map-sensor {
  height: 200px;
}

#contenido .contenido_left,
#contenido .contenido_right {
  width: calc(50% - 20px);
}

#contenido h3,
#mapa h3 {
  color: var(--secundario);
}

body[data-button-style^="rounded"] button.f-thumbs__slide__button {
  border-radius: 0 !important;
}

.icontext {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 20px;
}

.icontext span {
  line-height: 22px;
}

.icontext img {
  width: 35px;
  height: 35px;
}

.icontext a {
  color: var(--negro);
}

.icontext a:hover {
  color: var(--secundario);
}

/* Mapa */
.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 4px solid var(--secundario);
  width: 40px;
  height: 40px;
  animation: spin 0.5s linear infinite;
}

#mapLoadingIndicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#map {
  min-height: 350px;
}

.leaflet-popup-content-wrapper {
  border-radius: 0 !important;
}

.leaflet-popup-content {
  padding: 0 !important;
  margin: 0 !important;
  min-width: 300px !important;
  margin-right: 20px !important;
}

.leaflet-popup-content .tooltip {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
}

.leaflet-popup-content .tooltip img {
  width: 60px;
  height: 60px;
}

/* BOTONES */
.button {
  padding: 8px 16px !important;
  border-radius: 200px !important;
  background-color: var(--secundario) !important;
  box-shadow: none !important;
  border: none !important;
  color: var(--blanco) !important;
  cursor: pointer !important;
  /* width: auto !important; */
  font-weight: 600 !important;
  font-size: 14px !important;
  animation: fadeInDown 1.3s ease;
}

.button:hover {
  opacity: 0.9;
  box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* CONTENIDO */
.municipios {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  margin: 50px 0;
  width: 100%;
  gap: 50px;
}

.municipio {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  width: 100%;
}

.municipio-title {
  color: var(--principal);
}

.municipio .divider {
  height: 2px;
  width: 25%;
  margin-bottom: 40px;
  border-color: var(--secundario);
}

.mercados {
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  gap: 20px;
  justify-content: center;
}

.mercados a {
  width: calc(50% - 20px);
  transition: all 0.25s ease-in;
}

.mercados a:hover {
  transform: translateY(-5px);
}

.mercado {
  display: flex;
  align-items: center;
  flex-flow: row nowrap;
  width: 100%;
  box-shadow: 2px 2px 8px 0px rgba(0, 0, 0, 0.2);
  background-color: #fff;
  border-radius: 10px;
}

.mercado img {
  border-radius: 10px 0 0 10px;
  width: 250px;
  height: auto;
  object-fit: cover;
}

.mercado-content {
  display: flex;
  flex-flow: column nowrap;
  padding: 20px;
}

.mercado-content h2 {
  color: var(--principal);
  font-size: 22px;
  line-height: 26px;
  font-weight: 400;
}

.mercado-content p {
  padding-bottom: 0;
  color: var(--negro);
}

/* PLACEROS */
#placeros h2 {
  color: var(--secundario);
}

#resultsContainer {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  margin: 50px 0;
  gap: 20px;
}

#usuarios_placeros {
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  gap: 40px;
  justify-content: center;
}

.placero {
  width: calc(50% - 20px);
  display: flex;
  align-items: center;
  flex-flow: row nowrap;
  gap: 20px;
  padding: calc(2%);
  box-shadow: 2px 2px 8px 0px rgba(0, 0, 0, 0.2);
  background-color: #fff;
}

.placero img {
  width: 125px;
  height: 100px;
  object-fit: cover;
  border-radius: 100%;
}

.placero-info {
  display: flex;
  flex-flow: column nowrap;
}

.placero-info h2 {
  font-size: 22px;
  line-height: 26px;
  font-weight: 400;
}

.placero-info p {
  padding-bottom: 0;
}

.placero-info h2 a {
  color: var(--secundario);
}

.placero-info h2 a:hover {
  color: var(--principal);
}

@media only screen and (max-width: 1000px) {

  .single-sensor:has(#wpadminbar) .cabecera {
    height: calc(100vh - 46px);
  }

  .mercado {
    width: 100%;
    justify-content: center;
    gap: 20px;
    flex-flow: row wrap;
  }

  .mercado img {
    border-radius: 10px 10px 0 0;
    width: 100%;
  }

  .mercados a {
    width: 100%;
  }

  .mercado-content h2 {
    text-align: center;
  }

  .cabecera {
    flex-flow: column-reverse nowrap;
    /* display: none; */
  }

  .cabecera .cabecera-left,
  .cabecera .cabecera-right {
    width: 100%;
    max-width: 100%;
  }

  #contenido {
    flex-flow: column nowrap;
    gap: 0;
  }

  #contenido .contenido_left,
  #contenido .contenido_right {
    width: 100%;
  }

  .placero,
  .trader {
    width: 100%;
    justify-content: center;
    padding: calc(4%);
    flex-flow: row wrap;
  }

  .placero-info {
    width: 100%;
  }

  .placero-info h2,
  .trader-info h2 {
    text-align: center;
  }

}

/* ANIMACIONES */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes scribble {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}