/* Version 1.0.2 */
.hero-detalhes {
  position: relative;
  height: 60vh;
  min-height: 450px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.hero-detalhes::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-content h1 {
  font-size: 60px;
  font-weight: 600;
  margin: 0 0 20px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: white;
}

.hero-location {
  font-size: 24px;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-status {
  padding: 20px 0;
  background-color: #2f2f2f;
}

.status-banner {
  text-align: center;
}

.status-text {
  display: inline-block;
  background-color: #2f2f2f;
  color: white;
  padding: 15px 40px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
}

.detalhes-section {
  padding: 60px 0;
  background-color: white;
}

.section-title {
  font-size: 36px;
  font-weight: 600;
  color: var(--cor-principal);
  margin-bottom: 40px;
  text-align: center;
}

.detalhes-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  background-color: #f5f5f5;
  border-radius: 8px;
  font-size: 18px;
  color: #333;
}

.info-item i {
  color: var(--cor-principal);
  font-size: 28px;
}

.amenidades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.amenidade-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amenidade-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.amenidade-item i {
  font-size: 48px;
  color: var(--cor-principal);
  margin-bottom: 10px;
}

.amenidade-item span {
  font-size: 14px;
  color: #333;
  text-align: center;
}

.galeria-section {
  padding: 60px 0;
  background-color: #f5f5f5;
}

.galeria-principal {
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.galeria-principal img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.galeria-thumbnails {
  margin-top: 20px;
}

.galeria-carousel-wrapper {
  position: relative;
  padding: 0 60px;
}

#galeria-thumbnails {
  width: 100%;
}

.galeria-nav {
  background-color: var(--cor-principal);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.galeria-prev {
  left: 20px;
}

.galeria-next {
  right: 20px;
}

.galeria-nav span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.galeria-nav .material-icons {
  font-size: 28px;
}

.galeria-nav:hover,
.galeria-nav:focus {
  background-color: var(--cor-secundaria, #333);
  transform: translateY(-50%) scale(1.02);
  outline: none;
}

.galeria-nav:active {
  transform: translateY(-50%) scale(0.95);
}

@media (max-width: 768px) {
  .galeria-carousel-wrapper {
    padding: 0 40px;
  }

  .galeria-nav {
    width: 40px;
    height: 40px;
  }

  .galeria-nav .material-icons {
    font-size: 24px;
  }
}

@media (max-width: 540px) {
  .galeria-carousel-wrapper {
    padding: 0 20px;
  }

  .galeria-nav {
    width: 36px;
    height: 36px;
  }

  .galeria-nav .material-icons {
    font-size: 22px;
  }
}

.galeria-thumbnails .item {
  cursor: pointer;
  margin: 0 10px;
}

.galeria-thumbnails .item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  transition: opacity 0.3s ease;
  border: 3px solid transparent;
}

.galeria-thumbnails .item img:hover {
  opacity: 0.8;
  border-color: var(--cor-principal);
}

.status-obra-section {
  padding: 60px 0;
}

.etapas-obra {
  max-width: 900px;
  margin: 0 auto;
}

.etapa-item {
  margin-bottom: 25px;
}

.etapa-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.etapa-nome {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.etapa-percentual {
  font-size: 16px;
  font-weight: 600;
  color: var(--cor-principal);
}

.progress-bar {
  width: 100%;
  height: 25px;
  background-color: #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background-color: var(--cor-principal);
  transition: width 0.5s ease;
  border-radius: 12px;
}

.progress-geral {
  height: 30px;
}

.etapa-geral {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #ddd;
}

.etapa-geral .etapa-nome {
  font-size: 20px;
  font-weight: 600;
}

.localizacao-section {
  padding: 60px 0;
  background-color: white;
}

.endereco-info {
  text-align: center;
  margin-bottom: 30px;
}

.endereco-texto {
  font-size: 20px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.endereco-texto i {
  color: var(--cor-principal);
  font-size: 28px;
}

.mapa-container {
  width: 100%;
  height: 450px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mapa-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media only screen and (max-width: 768px) {
  .hero-detalhes {
    height: 50vh;
    min-height: 300px;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-location {
    font-size: 18px;
  }

  .status-text {
    font-size: 16px;
    padding: 12px 20px;
  }

  .detalhes-info {
    flex-direction: column;
    align-items: stretch;
  }

  .info-item {
    justify-content: center;
  }

  .amenidades-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .galeria-principal img {
    height: 300px;
  }

  .galeria-thumbnails .item img {
    height: 80px;
  }

  .section-title {
    font-size: 28px;
  }

  .mapa-container {
    height: 300px;
  }
}

