.whatsapp-content {
  display: flex;
  align-items: center;
  gap: 8px;
}


.whatsapp {
  position: fixed;
  padding-left: 12px;
  padding-right: 12px;
  padding-top: 0px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  z-index: 100;
  -webkit-box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  -moz-box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  transition: transform 0.2s ease;
}

.whatsapp-icon {
  margin-top: 6px;
}

.whatsapp span {
  font-size: 1rem;
  font-weight: 600;
  font-family: "Source Sans Pro", sans-serif;
  text-transform: uppercase;
}

.whatsapp span :hover {
  color: #ffffff !important;
}

a.whatsapp:hover {
  color: #ffffff !important;
  transform: scale(1.1);
}


.logo {
  display: flex;
  /* Usamos Flexbox */
  justify-content: center;
  /* Centra horizontalmente */
  align-items: center;
  /* Centra verticalmente */
}

.imagen-logo {
  width: 70%;
  height: 70%;
  object-fit: cover;
}

.superhost {
  /* background-color: rgb(0 0 0 / 37%); */
  position: fixed;
  top: 0;
  left: 0;
  padding-left: 4px;
  padding-top: 4px;
  padding-right: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 4px;
  z-index: 11;
  opacity: 0;
  /* Inicialmente invisible */
  animation: fadeIn 1s ease-in-out 1s forwards;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
    /* Desplazamiento opcional */
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


.imagen-superhost-badge {
  margin-bottom: -1rem;
  width: 3rem;
  height: 3rem;
}


.superhost-span {
  color: white;
  font-weight: 600;
  font-size: 1.8rem;
}

.airbnb {
  color: #fd5c63;
  font-weight: 600;
  font-size: 1.8rem;
}

.superhost svg {
  margin-bottom: -9px;
}

.carrusel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carrusel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carrusel img {
  width: 100%;
  height: auto;
  max-height: 65vh;
  display: block;
}

.carrusel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 100%;
}

.carrusel-button:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

#carrusel img {
  max-width: 100%;
  object-fit: contain;
  /* Mantiene las proporciones sin recortar */
  flex-shrink: 0;
  /* Asegura que las imágenes no se reduzcan más allá del contenedor */
  margin: auto;
  /* Centra las imágenes vertical y horizontalmente */
}

article {
  padding-top: 1.5rem !important;
}

article#fotos {
  width: 90vw;
  max-width: 100%;
}


#miniaturas {
  display: grid;
  overflow-y: auto;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  /* Ajusta 100px según el tamaño deseado */
  gap: 10px;
  padding: 10px;
  width: 100%;
  max-height: 65vh;
}


@media (min-width: 768px) {
  #miniaturas {
    display: grid;
    overflow-y: auto;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    padding: 10px;
    width: 100%;
    max-height: 65vh;
    margin-top: 10px;
    /* Espacio entre la imagen principal y las miniaturas */
  }


  #fotos .image.main {
    margin-top: 0rem !important;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    max-height: 65vh;
  }

}

/* Media query para pantallas verticales (móviles) */
@media (max-width: 767px) {
  body:has(#fotos.active) {

    #language-selector,
    .superhost,
    .whatsapp {
      display: none !important;
    }
  }

  #wrapper:has(#fotos.active) {
    margin: 0px !important;
    padding: 0px !important;

    .photo-gallery {
      height: 100vh !important;
    }

    .close:before {
      background-size: 3rem;
    }

    .close {
      margin: 1rem !important;
    }

  }

  #fotos {
    margin: 0px !important;
    padding: 0px !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    z-index: 2548 !important;

    .titulo-fotos {
      display: none !important;
    }
  }

  #fotos .image.main {
    flex-direction: column;
    /* Las imágenes y las miniaturas se apilan en columna */
  }

  #miniaturas {
    display: grid;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    margin-top: 20px;
    height: 30vh !important;
  }

  #miniaturas img {
    max-width: 30vw !important;
    height: auto !important;
  }


  #fotos .image.main {
    margin-top: 0rem !important;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }

  .carrusel-container {
    height: 40vh !important;
  }

  #carrusel {
    height: 100%;
  }

  #carrusel img {
    height: 100%;
  }

  article {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }

  #wrapper {
    padding-top: 10vh !important;
    padding-bottom: 10vh !important;
  }

  #header .logo {
    display: none;
  }

  #header>*:before {
    display: none;
  }

  #header .content {
    margin-top: 0;
  }

}



#miniaturas img {
  max-width: 100%;
  max-height: 100px;
  /* Altura fija para miniaturas */
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

#miniaturas img.activo {
  border-color: #007bff;
  /* Resalta la miniatura activa */
}

#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../../images/bg.jpg") no-repeat center center;
  background-size: cover;
  z-index: -1;
  overflow: hidden;
}

#bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

/* Estilo para la barra de scroll */
::-webkit-scrollbar {
  width: 12px;
  /* Ancho de la barra */
  border-radius: 10px;
  /* Bordes redondeados */
  background-color: #f0f0f0;
  /* Fondo de la barra */
}

/* Color del "thumb" (la parte que se mueve) */
::-webkit-scrollbar-thumb {
  background-color: #888;
  /* Color del thumb */
  border-radius: 10px;
  /* Bordes redondeados */
  border: 3px solid #f0f0f0;
  /* Espacio entre el thumb y el contenedor */
}

/* Color del thumb al hacer hover */
::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

/* Estilo para la parte de las flechas (si existen) */
::-webkit-scrollbar-button {
  background-color: #ccc;
  border-radius: 50%;
}

/* Estilo para el track (la pista sobre la que se mueve el thumb) */
::-webkit-scrollbar-track {
  background-color: #e0e0e0;
  border-radius: 10px;
}

/* Estilo para el track al hacer hover */
::-webkit-scrollbar-track:hover {
  background-color: #d0d0d0;
}

#language-selector {
  position: fixed;
  top: 0;
  right: 0;
  padding: 0.5rem;
  z-index: 11;
  display: inline-flex;
}

#language-selector a {
  border-bottom: 0 !important;
}

#language-selector img {
  width: 1.1rem;
  height: 1rem;
  margin: 4px;
  cursor: pointer;
}

#language-selector a {
  text-decoration: none !important;
  outline: none !important;
  border-bottom: 0 !important;
}

.texto-sombra {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

#fotos {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;

  .titulo-fotos {
    width: 100%;
    align-items: start !important;
    text-align: left !important;
  }
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  width: 100%;
  padding: 10px;
  overflow-y: auto;
  height: 80vh;
}

#full-screen-photo-gallery {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

#full-screen-photo-gallery img {
  max-width: 100vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  width: 100%;
  height: auto;
  display: block;
  flex-shrink: 0;
  margin: auto;
}


.photo-gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.photo-gallery img.horizontal {
  grid-row: span 1;
}

.photo-gallery img.vertical {
  grid-row: span 2;
}

/* Estilo para la barra de scroll */
.photo-gallery::-webkit-scrollbar {
  width: 12px;
  border-radius: 10px;
  background-color: #f0f0f0;
}

.photo-gallery::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
  border: 3px solid #f0f0f0;
}

.photo-gallery::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

#full-screen-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.full-screen-content {
  position: relative;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 100%;
}

.close-button:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.prev-button {
  left: 10px;
}

.next-button {
  right: 10px;
}

.hidden {
  display: none !important;
}