/*
---------------------------------------------
locations section
---------------------------------------------
*/

.locations-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
  position: relative;
  margin-top: -20px;
}

.locations-section .section-heading {
  margin-bottom: 50px;
}

.locations-content {
  width: 100%;
}

.locations-list.locations-list--simple .location-info p {
  display: none;
}

.locations-gallery {
  max-width: 100%;
  margin-top: 20px;
}

.peru-map-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.map-background {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8f4f8 0%, #f0f8fb 100%);
}

.peru-map-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  z-index: 1;
}

.location-markers-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 5;
}

.marker-point {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #ff511a;
  border: 3px solid white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.marker-point:hover {
  width: 24px;
  height: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.marker-point.green {
  background: #43ba7f;
}

.location-labels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 10px;
  overflow: visible;
  z-index: 20;
}

.location-label {
  position: absolute;
  pointer-events: all;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.label-cloud {
  background: white;
  border: 2px solid #43ba7f;
  border-radius: 20px;
  padding: 10px 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  min-width: 130px;
  white-space: nowrap;
}

.label-cloud::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid white;
}

.label-cloud strong {
  display: block;
  color: #43ba7f;
  font-size: 14px;
  font-weight: 600;
}

.label-cloud p {
  color: #666;
  font-size: 12px;
  margin: 3px 0 0 0;
}

/* Curtain Labels */
.curtain-labels {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.curtain-label-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.curtain-label {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #43ba7f;
  padding: 8px 6px;
  background: rgba(67, 186, 127, 0.08);
  border-radius: 6px;
  border-bottom: 2px solid #43ba7f;
}

/* Images Curtain Styles */
.images-curtain {
  display: flex;
  gap: 0;
  height: 100%;
  min-height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.curtain-image {
  flex: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.4s ease;
}

.curtain-image:hover {
  flex: 1.3;
}

/* Responsive */
@media (max-width: 991px) {
  .locations-section {
    padding: 50px 0;
  }

  .peru-map-container {
    margin-bottom: 30px;
  }

  .images-curtain {
    min-height: 350px;
  }

  .curtain-label {
    font-size: 13px;
    padding: 6px 4px;
  }
  
  .label-cloud {
    padding: 8px 12px;
    font-size: 12px;
    min-width: 110px;
  }

  .label-cloud strong {
    font-size: 12px;
  }

  .label-cloud p {
    font-size: 11px;
  }
}

@media (max-width: 767px) {
  .locations-section {
    padding: 40px 0;
  }

  .peru-map-container,
  .images-curtain {
    max-width: 100%;
    margin: 0 -15px;
    border-radius: 0;
  }

  .images-curtain {
    min-height: 300px;
    margin-bottom: 20px;
  }

  .curtain-labels {
    flex-direction: column;
    gap: 10px;
  }

  .curtain-label-group {
    flex-direction: row;
    gap: 8px;
  }

  .curtain-label {
    font-size: 11px;
    padding: 6px 4px;
    flex: 1;
  }

  .label-cloud {
    padding: 8px 12px;
    font-size: 12px;
    min-width: 110px;
  }

  .label-cloud strong {
    font-size: 12px;
  }

  .label-cloud p {
    font-size: 11px;
  }

  .marker-point {
    width: 12px;
    height: 12px;
    border-width: 2px;
  }

  .marker-point:hover {
    width: 18px;
    height: 18px;
  }
}
