@import url("https://fonts.googleapis.com/css2?family=Lato&display=swap");

*,
:after,
:before {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}


html {
  height: 100%;
}

body,
html {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}
/* Contenedor para el mapa y el sidebar */
.layout-container {
    display: flex;
    height: 90vh; /* Usa la altura de la ventana para el contenedor */
    position: relative;
}
#map {
    flex: 1;
    height: 100%;
}

body {
  position: relative;
  min-height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Lato", sans-serif;
  background-color: #f1f1f1;
}
p{
  text-align: justify;
  line-height: 1.9rem;
}


svg:not(:root) {
  overflow: hidden;
}

.hidden {
  display: none!important;
}

.active-sidebar .leaflet-left {
  transform: translateX(490px)!important;
}

.sidebar {
  display: block!important;
position: fixed!important;
  width: 100%!important;
  max-width: 580px!important;
  z-index: 99999!important;
  background: #fff!important;
  overflow: hidden!important;
  height: 100%!important;
  transform: translateX(calc(-100% - 20px))!important;
transition: transform 0.3s ease-in-out;
  box-shadow: 0px 0px 22px -11px rgba(66, 68, 90, 1)!important;
overflow-y: auto; /* Permite el desplazamiento vertical */
}

.active-sidebar .sidebar {
  max-width: 580px!important;
  width: 100%!important;
  transform: translateX(0)!important;
}


@media (max-width: 767px) {
.sidebar{
   position: absolute!important;
}
}
@media (min-width: 768px) {
  .sidebar {
    top: 10px!important;
    left: 10px!important;
    border-radius: 5px!important;
    height: calc(100% - 20px)!important;
    transition: transform 0.3s ease-in-out!important;
  }

  .active-sidebar .sidebar {
    max-width: 580px!important;
    width: 100%!important;
    transform: translateX(0)!important;
    transition: transform 0.3s ease-in-out!important;
  }

  .active-sidebar .leaflet-left {
    transform: translateX(585px)!important;
    transition: transform 350ms!important;
  }
}

.close-button {
  cursor: pointer!important;
  position: absolute!important;
  top: 10px!important;
  right: 5px!important;
  border: none!important;
  padding: 5px!important;
  margin: 0!important;
  padding: 0!important;
  border-radius: 3px!important;
  z-index: 1!important;
  background: none!important;
}

.sidebar .close-button svg {
  fill: #fff!important;
  width: 30px!important;
  height: 30px!important;
}

.sidebar svg {
  display: block!important;
  width: 20px!important;
  height: 20px!important;
  fill: #3f3f3f!important;
  pointer-events: none!important;
}

.sidebar-menu {
  display: flex!important;
  flex-direction: column!important;
  list-style: none!important;
  height: 100%!important;
}

/* sidebar-content */
.sidebar-content {
  height: 100%!important;
  overflow-y: auto!important; /* Asegura que el contenido se pueda desplazar */
line-height: 1.5 !important;
}
/* Flecha de subir */
.scroll-to-top {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: #0a0d4f;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
}

a.scroll-to-top i{
font-size: 1rem;
color:#fff;
}

.scroll-to-top:hover {
background: #f60405; /* Color de fondo cuando se está haciendo clic */
  color: #fff; /* Color del ícono cuando se está haciendo clic */

}
.scroll-to-top:active {
 background: #f60405; /* Color de fondo cuando se está haciendo clic */
  color: #fff; /* Color del ícono cuando se está haciendo clic */
}
.scroll-to-top svg {
  width: 16px;
  height: 16px;
}


.sidebar-content h1 {
  position: sticky!important;
font-size: 2rem;
  top: 0!important;
  color: #fff!important;
  background: #0a0d4f!important;
  padding: 10px 20px!important; /* Asegura un buen espacio alrededor del título */
  margin: 0!important;
}

.sidebar-content img {
  display: block!important;
  max-width: 100%!important;
}

.sidebar-content small {
  display: block!important;
  padding: 5px 15px!important;
}

/*Sidebar - Modo Móvil*/
@media (max-width: 767px) {
 .sidebar-content h1{
    font-size: 1.4rem; /* Tamaño más pequeño en móviles */
  padding: 10px 25px!important; /* Asegura un buen espacio alrededor del título */
  }
}
/*Titulos Idiomas*/
.espanol{
  padding-top: 15px;
  padding-bottom: 5px;
}
.ingles{
  padding-top: 45px;
  padding-bottom: 5px;
  }
.frances{
    padding-top: 45px;
    padding-bottom: 5px;
    }
.aleman{
      padding-top: 45px;
      padding-bottom: 5px;
      }
.espanol-intro{
  padding-top: 25px;
  padding-bottom: 5px;
}
.ingles-intro{
  padding-top: 25px;
  padding-bottom: 5px;
  }
.frances-intro{
    padding-top: 25px;
    padding-bottom: 5px;
    }
.aleman-intro{
      padding-top: 25px;
      padding-bottom: 5px;
      }
/*----------------------------*/
/*Banderas Idiomas */
.flag-icon {
  width: 32px!important; /* Tamaño de la bandera */
  height: 24px!important;
  padding: 2px!important; /* Espaciado alrededor de la bandera */
  border: none!important; /* Sin borde */
  object-fit: cover!important; /* Asegura que la imagen llene el contenedor */

}
.flag-icon-container{
  display: flex; 
  align-items: center; 
  gap: 15px; 
  margin: 0; 
  padding: 0;
  justify-content: center; 
  align-items: center;
}
/*-------------------*/
.info-description {
  padding: 5px 15px 15px!important;
  line-height: 1.9!important; /* Mejora la legibilidad */
}
.info-description p {
  font-size:1.1rem;
}
.info-description ul {
  font-size:0.9rem;
}
.info-content {
  padding-bottom: 50px!important;
  box-sizing: border-box!important; /* Asegura que el padding no cause problemas */
}

.marker-id {
  font-size: 3rem;
  font-weight: bold;
  position: absolute;
  left: 10px;
  color: rgba(255, 255, 255, 0.5);
}

.close-button {
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px; /* Ajuste para evitar solapamientos */
  border: none;
  padding: 5px;
  background: none;
}

.sidebar .close-button svg {
  fill: #fff;
  width: 30px;
  height: 30px;
}

.info-content::-webkit-scrollbar {
  width: 10px;
}

.info-content::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(0, 81, 255, 0.3);
}

.info-content::-webkit-scrollbar-thumb {
  background-color: #003764;
  outline: 1px solid #002449;
}

/* marker */
.leaflet-marker-icon {
  display: flex!important;
  justify-content: center;
  align-items: center;
  line-height: 1;
  color: #fff;
  font-size: 12px;
  box-shadow: 0px 0px 10px #424242;
  border-radius: 100%;
  border: 2px solid #fff;
  /* background: #f34b67 */
  ;
}

.active-sidebar .leaflet-marker-icon,
.leaflet-marker-icon:hover {
  animation: border-pulse 1.5s infinite!important;
}

@keyframes border-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 1);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
}

/* Estilo para la leyenda personalizada */
.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
  padding: 0;
}
.legend-title {
  font-size: 1.3em;
  padding: 15px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
}

/* Estilo para los ítems de la leyenda */
.legend-items {
  margin-top: 10px;
  padding: 0;
  list-style: none;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.legend-color {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 10px;
}

.legend-label {
  font-size: 0.9em;
}



/*CSS del Punto de interés*/
.map-info__desktop {
  position: absolute;
  top: 10px; /* Ajusta según sea necesario */
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff; /* Fondo predeterminado */
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1000; /* Asegúrate de que el control esté por encima de otros elementos */
  color: #000000; /* Color de texto predeterminado */
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
margin-right: 50px!important;
cursor: pointer!important; /* Cursor de clic */
 transition: background 0.3s, color 0.3s, transform 0.3s;
}

.map-info__desktop.active {
  background: #0a0d4f; /* Fondo cuando los puntos de interés están visibles */
  color: #ffffff; /* Color de texto cuando los puntos de interés están visibles */
}

.map-info__desktop.inactive {
  background: #ffffff; /* Fondo cuando los puntos de interés no están visibles */
  color: #0a0d4f; /* Color de texto cuando los puntos de interés no están visibles */
 
}
.map-info__desktop.inactive .pt{
  fill: #0a0d4f;
}
.map-info__desktop__container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-info__inner {
  display: flex;
  align-items: center;
  gap: 5px; /* Espacio entre el icono y el texto */
}

.map-info__text {
  margin: 0;
  font-size: 14px;
}
/*Limitar el POPUP*/
.leaflet-popup-content-wrapper {
  max-height: 200px; /* Ajusta la altura máxima según tus necesidades */
  overflow-y: auto; /* Habilita el desplazamiento vertical */
}



/* Estilo general para el control de capas */
.leaflet-control-layers {

 opacity: 1;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 0.25rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.leaflet-control-layers:not(.leaflet-control-layers-expanded) {
  max-height: 0;
  opacity: 0;
  padding: 0;
  overflow: hidden; /* Asegura que el contenido esté oculto cuando está minimizado */
 transition: max-height 1s ease, opacity 1s ease, padding 1s ease;
}


/* Estilo para la lista de capas */
.leaflet-control-layers-list {
  display: flex;
  flex-direction: column;
  padding: 15px;
}

/* Estilo para cada etiqueta de capa */
.leaflet-control-layers-list label {
  display: flex;
  align-items: center;
  /*margin-bottom: 0.5rem;*/
  padding: 0.3rem 0;
}

/* Estilo para el círculo de color */
.leaflet-control-layers-list label .color-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: 8px;
  display: inline-block;
 vertical-align: middle;
 margin-bottom: 4px;
  }

/*estilos mi ubicacion*/
.located-animation {
  width: 17px;
  height: 17px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #2a93ee;
  animation: border-pulse 2s infinite;
}

@keyframes border-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 1);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
}

.locate-active {
  fill: red;
}

.locate-button {
  position: absolute;
  top: 5px;
  left: 10px;
  width: 26px;
  height: 26px;
  z-index: 999;
  cursor: pointer;
  display: none;
  padding: 5px;
  background: #fff;
  border: none;
  border-radius: 4px;
  box-shadow: 0 1px 5px rgb(0 0 0 / 65%);
}

.leaflet-touch .locate-button {
  width: 34px;
  height: 34px;
}
#print-png-btn{
margin-top:5px!important;
}
