/* CSS consolidado para o Mapa do Turismo da Home */

/* Container principal do mapa */
.containerMap {
  width: 100%;
  height: 100%;
  max-width: 1250px;
  height: 900px;
  overflow: hidden;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /*background: #f8f9fa;*/
}

/* Container da imagem do mapa */
#MapImgcontainer {
  flex: 1;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Controles de zoom */
#controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zoom-buttons {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  padding: 5px;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  gap: 10px;
}

.zoom-buttons button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-buttons button:hover {
  opacity: 0.8;
}

.img-button {
  height: 30px;
  width: 30px;
}

/* Controle de range do zoom */
.rangecontrol {
  display: flex;
  align-items: center;
}

#zoomRange {
  width: 100px;
  margin: 0 10px;
}

/* Imagem do mapa */
#image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.8);
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: grab;
  transition: transform 0.3s ease-out;
  transform-origin: center center;
  will-change: transform;
}

#image:active {
  cursor: grabbing;
}

/* Lista de regiões */
.regions-list {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.regions-list ul {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.regions-list ul li {
  display: flex;
  align-items: center;
  padding: 3px;
  border-radius: 4px;
  transition: background-color 0.3s;
  margin-bottom: 8px;
}

.regions-list ul li:last-child {
  margin-bottom: 0;
}

.color-box {
  width: 30px;
  height: 20px;
  border-radius: 0px;
  margin-right: 10px;
  display: inline-block;
}

.region-number {
  font-weight: bold;
  margin-right: 10px;
  min-width: 30px;
}

.region-name {
  font-size: 18px;
  color: #333;
}

.regions-title {
  text-align: left;
  padding-bottom: 15px;
}

.regions-title h3 {
  font-size: 26px;
  font-weight: 600;
  color: #255C1B;
  margin: 0;
}

/* Media Queries Responsivas */
@media (max-width: 768px) {
  .col-md-6 {
    margin-bottom: 30px;
  }

  .regions-list, .containerMap {
    min-height: 400px;
  }

  .containerMap {
    min-height: 400px;
    height: auto;
    max-height: 600px;
  }

  #MapImgcontainer {
    min-height: 400px;
    height: 400px;
    width: 100%;
  }

  #image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .zoom-buttons {
    position: absolute;
    bottom: 10px;
    right: 10px;
    margin: 0;
    justify-content: center;
    z-index: 20;
  }
}

@media (min-width: 320px) and (max-width: 767px) {
  .containerMap {
    height: auto;
    min-height: 400px;
    max-height: 500px;
    overflow: hidden;
  }

  #MapImgcontainer {
    height: 400px;
    width: 100%;
    overflow: hidden;
  }

  #image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .zoom-buttons {
    bottom: 8px;
    right: 8px;
    padding: 4px;
  }

  .zoom-buttons button {
    padding: 4px;
  }

  .img-button {
    height: 28px;
    width: 28px;
  }

  .regions-list {
    padding: 15px;
    margin-bottom: 20px;
  }

  .regions-list ul li {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .color-box {
    width: 25px;
    height: 16px;
  }

  .region-number {
    font-size: 14px;
    min-width: 25px;
  }

  .region-name {
    font-size: 14px;
  }

  .regions-title h3 {
    font-size: 16px;
  }
}

@media (max-width: 460px) {
  .containerMap {
    min-height: 350px;
    max-height: 400px;
  }

  #MapImgcontainer {
    height: 350px;
  }

  .zoom-buttons {
    bottom: 5px;
    right: 5px;
    padding: 3px;
  }

  .zoom-buttons button {
    padding: 3px;
  }

  .img-button {
    height: 25px;
    width: 25px;
  }

  .regions-list {
    padding: 10px;
  }

  .regions-list ul li {
    font-size: 13px;
    margin-bottom: 5px;
  }

  .color-box {
    width: 20px;
    height: 14px;
  }

  .region-number {
    font-size: 13px;
    min-width: 20px;
  }

  .region-name {
    font-size: 13px;
  }

  .regions-title h3 {
    font-size: 15px;
  }
}
