/* Custom Gallery Styles */
.detalle-galeria {
  margin-bottom: 40px;
  background-color: #0F0F0F;
  padding: 20px;
  border-radius: 8px;
}

.galeria-principal {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background-color: #0F0F0F;
}

.galeria-principal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
  position: relative;
  z-index: 1;
}

.galeria-principal img.fade-out {
  opacity: 0;
}

.galeria-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.galeria-nav svg {
  width: 20px;
  height: 20px;
  color: #F0F0F0;
}

.galeria-nav:hover {
  background-color: #C5A059;
}

.galeria-prev {
  left: 20px;
}

.galeria-next {
  right: 20px;
}

.galeria-thumbs {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.thumb-item {
  width: 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  object-fit: cover;
}

.thumb-item:hover,
.thumb-item.active {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: #C5A059;
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
  color: #F0F0F0;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: #C5A059;
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
  color: #F0F0F0;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

@media (max-width: 768px) {
  .galeria-nav {
    width: 40px;
    height: 40px;
  }
  
  .galeria-nav svg {
    width: 16px;
    height: 16px;
  }
  
  .thumb-item {
    height: 50px;
  }
  
  .lightbox-nav {
    width: 45px;
    height: 45px;
  }
}

/* Mapa */
.mapa-container {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  filter: grayscale(100%) contrast(1.2);
}

.mapa-container iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(100%);
}