/*============================================================================================*/
/* Your custom styles below */
/*============================================================================================*/


/* Estilos básicos del selector de idioma */
.language-switcher {
  position: relative;
  display: inline-block;
  font-family: inherit;
  margin-left: 10px;
}

.language-switcher__button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-switcher__icon {
  font-size: 1rem;
}

.language-switcher__menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.4rem;
  list-style: none;
  padding: 0.4rem 0;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  border-radius: 0.6rem;
  min-width: 140px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  display: none; /* luego lo abrimos con JS */
}

.language-switcher__menu li {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  margin-left: 0;
}



.language-switcher__menu li:hover {
  background: rgba(255, 255, 255, 0.08);
}

.language-switcher.is-open .language-switcher__menu {
  display: block;
}

.language-switcher__menu li.is-active {
  background: rgba(255, 255, 255, 0.15);
}

/* Ajustes switcher idioma en mobile/tablet */
@media (max-width: 991px) {
  .main-menu #mainNav .language-switcher {
    display: block;
    width: 100%;
    margin: 20px 0 10px;
  }

  .main-menu #mainNav .language-switcher__button {
    width: 100%;
    justify-content: center;
  }

  /* El menú se coloca debajo ocupando el ancho del panel */
  .main-menu #mainNav .language-switcher__menu {
    position: static;
    margin-top: 8px;
    width: 100%;
    box-shadow: none;
    border-radius: 12px;
  }

  .main-menu #mainNav .language-switcher__menu li {
    text-align: left;
    width: 100%;
  }
}

.fslightbox-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Estilos para la sección del mapa */
.map-container {
  height: 100%;
}

.map-container h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.google-map-wrapper {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.google-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.illustrated-map-wrapper {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: #f5f5f5;
}

.illustrated-map-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Marcadores del mapa ilustrado */
.map-marker {
  position: absolute;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.3s ease;
}

.map-marker:hover {
  transform: scale(1.1);
}

.marker-dot {
  width: 16px;
  height: 16px;
  background: #978667;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
}

.marker-label {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.map-marker:hover .marker-label {
  opacity: 1;
}

/* Posicionamiento de los marcadores (ajustar según la imagen del mapa) */
.marker-kasa-kefi {
  top: 30%;
  left: 40%;
}

.marker-kasa-kascada {
  top: 50%;
  left: 60%;
}

.marker-vinedos {
  top: 20%;
  left: 50%;
}

.marker-accesos {
  top: 70%;
  left: 30%;
}

/* Responsive */
@media (max-width: 991px) {
  .google-map-wrapper,
  .illustrated-map-wrapper {
    height: 350px;
  }
  
  .map-marker {
    transform: scale(0.9);
  }
  
  .marker-label {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
}

/* Estilos para Photo Tour estructurado */
#photo-tour {
  background: #faf8f5;
}

/* Navegación por pestañas */
.photo-tour-nav {
  background: #fff;
  border-bottom: 2px solid #e9e9e9;
  margin-bottom: 60px;
  position: sticky;
  top: 80px;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.photo-tour-tabs {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.photo-tour-tabs li {
  margin: 0;
}

.photo-tour-tab {
  background: transparent;
  border: none;
  padding: 20px 30px;
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  position: relative;
  text-transform: capitalize;
  font-family: inherit;
}

.photo-tour-tab:hover {
  color: #978667;
  background: rgba(151, 134, 103, 0.05);
}

.photo-tour-tab.active {
  color: #978667;
  border-bottom-color: #978667;
  background: rgba(151, 134, 103, 0.05);
}

/* Contenido de las pestañas */
.photo-tour-content {
  position: relative;
}

.photo-tour-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.photo-tour-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subsecciones (Living Room, Kitchen, etc.) */
.photo-tour-subsection {
  margin-bottom: 80px;
}

.photo-tour-subsection:last-child {
  margin-bottom: 0;
}

.photo-tour-subsection-header {
  text-align: center;
  margin-bottom: 40px;
}

.photo-tour-subsection-header h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  text-transform: capitalize;
}

/* Galería de imágenes */
.photo-tour-gallery {
  margin-top: 2rem;
  padding: 0px 15px;
}

.photo-tour-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}

.photo-tour-link {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.photo-tour-link img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

/* Lazy loading styles - solo para imágenes sin src (con data-src) */
.photo-tour-link img.lazy-img:not([src]) {
  opacity: 0;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  min-height: 300px;
  display: block;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.photo-tour-link picture {
  display: block;
  width: 100%;
}

/* Responsive Photo Tour */
@media (max-width: 768px) {
  #photo-tour {
    padding: 40px 0;
  }
  
  .photo-tour-nav {
    top: 70px;
    margin-bottom: 40px;
  }
  
  .photo-tour-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .photo-tour-tabs::-webkit-scrollbar {
    display: none;
  }
  
  .photo-tour-tab {
    padding: 15px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  
  .photo-tour-subsection {
    margin-bottom: 60px;
  }
  
  .photo-tour-subsection-header h3 {
    font-size: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .photo-tour-tab {
    padding: 18px 24px;
  }
}

.casa-item {
  margin-bottom: 30px;
}

.casa-item:last-child {
  margin-bottom: 0;
}

.casa-item .box_cat_rooms {
  width: 100%;
  margin-bottom: 0;
}

/* Estilos para la sección de Amenidades y Habitaciones */
#amenities-rooms-section {
  background: #faf8f5;
}

.amenity-room-item {
  padding: 30px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

.amenity-room-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.amenity-room-item i {
  font-size: 2.5rem;
  color: #978667;
  margin-bottom: 15px;
  display: block;
}

.amenity-room-item.text-center i {
  font-size: 3rem;
  margin-bottom: 20px;
}

.amenity-room-item h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin: 10px 0 5px;
  line-height: 1.2;
}

.amenity-room-item p {
  font-size: 1rem;
  color: #666;
  margin: 5px 0;
  text-align: center;
  line-height: 1.4;
}

.amenity-room-item p strong {
  font-size: 1.3rem;
  color: #978667;
  font-weight: 700;
}

.amenity-room-item small {
  font-size: 0.85rem;
  color: #999;
  display: block;
  margin-top: 5px;
  text-align: center;
}

#amenities-rooms-section h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
  .amenity-room-item {
    padding: 25px 15px;
    min-height: 130px;
  }
  
  .amenity-room-item i {
    font-size: 2rem;
  }
  
  .amenity-room-item.text-center i {
    font-size: 2.5rem;
  }
  
  .amenity-room-item h4 {
    font-size: 1.3rem;
  }
  
  .amenity-room-item p {
    font-size: 0.9rem;
  }
  
  .amenity-room-item p strong {
    font-size: 1.1rem;
  }
  
  .amenity-room-item small {
    font-size: 0.8rem;
  }
  
  #amenities-rooms-section h3 {
    font-size: 1.5rem;
  }
}