/* cards_imoveis.css - CSS COMPLETO OTIMIZADO */
/* CORREÇÕES: removida duplicação de código + cores do #caixaSucesso ajustadas */

:root {
  --gold: #d4aa6d;
  --dark-green: #0b2e26;
  --medium-green: #11332d;
  --light-green: #1a4d42;
  --light-text: #e0e0e0;
  --dark-text: #333;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-green);
  color: var(--light-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  opacity: 0.9;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  background-color: var(--gold);
  color: var(--dark-text);
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: #b88f52;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================ */
/* CABEÇALHO - IGUAL AO aldeia-aruana.html     */
/* ============================================ */

.hero {
  position: relative;
  height: 60vh;
  max-height: 600px;
  display: flex;
  align-items: center;
  background-color: #000;
  overflow: hidden;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/fundo.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 0;
}

.hero .content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hero .logo {
  max-width: 450px;
  margin-bottom: 0px;
}

.hero .contact-image {
  position: absolute;
  top: 38px;
  right: 20px;
  max-width: 287px;
  height: auto;
  z-index: 10;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.hero h1 {
  font-size: clamp(1.5rem, 5vw, 2.0rem);
  color: var(--gold);
  margin-bottom: 0;
  margin-top: 35px;
  margin-right: auto;
}

.btn-container {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 35px;
}

.hero .header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ============================================ */
/* CARROSSEL COM DESCRIÇÃO DINÂMICA            */
/* ============================================ */

.carousel-fixed-description-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  align-items: stretch;
  justify-content: center;
}

.fixed-details-card {
  width: 100%;
  max-width: 560px;
  background-color: var(--medium-green);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fixed-details-card h2 {
  color: var(--gold);
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.fixed-details-card p {
  margin-bottom: 10px;
}

/* Estilos para as descrições dinâmicas do carrossel */
.description-item {
  display: none;
}

.description-item h3 {
  color: var(--gold);
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.description-item p {
  margin-bottom: 10px;
}

.description-item.active {
  display: block;
}

.right-column-container {
  flex: 2;
  min-width: 300px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: var(--dark-green);
}

.carousel {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-track img.slide {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  height: 400px;
  border-radius: 10px;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 10px;
}

.carousel-btn {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.dots {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  gap: 10px;
}

.dot {
  height: 12px;
  width: 12px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--gold);
}

.dynamic-description-card {
  background-color: var(--medium-green);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  margin-top: 10px;
}

/* ============================================ */
/* SEÇÃO DE LOCALIZAÇÃO E FORMULÁRIO           */
/* ============================================ */

.content-section {
  background-color: var(--light-green);
  padding: 40px 0;
  margin: 30px 0;
}

.video-form-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  justify-content: center;
  align-items: stretch;
}

.video-container {
  flex: 1;
  min-width: 300px;
  max-width: 560px;
  background-color: var(--medium-green);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.video-container iframe {
  width: 100%;
  height: 500px;
  display: block;
  border: none;
  border-radius: 8px;
}

.form-container {
  flex: 1;
  min-width: 300px;
  max-width: 560px;
  background-color: var(--medium-green);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-container h3 {
  color: var(--gold);
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.form-container form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-container input[name="nome"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background-color: var(--dark-green);
  color: var(--light-text);
  font-size: 0.95rem;
}

.dual-column {
  display: flex;
  gap: 15px;
  width: 100%;
}

.dual-column input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background-color: var(--dark-green);
  color: var(--light-text);
  font-size: 0.95rem;
}

.form-container textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background-color: var(--dark-green);
  color: var(--light-text);
  font-size: 0.95rem;
  resize: vertical;
  min-height: 80px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
}

.checkbox-container input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-container label {
  font-size: 0.85rem;
  line-height: 1.3;
}

.form-container .btn {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  font-size: 1rem;
}

/* ============================================ */
/* CAIXA DE SUCESSO DO FORMULÁRIO              */
/* CORES AJUSTADAS CONFORME SOLICITADO         */
/* ============================================ */

#caixaSucesso {
  display: none;
  text-align: center;
  padding: 40px 10px;
}

#caixaSucesso .check-icon {
  background-color: #E8F5E9;
  color: #2E7D32;
  font-size: 36px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

#caixaSucesso h4 {
  color: var(--gold) !important;  /* Mesma cor do "Receba mais informações" */
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  font-weight: 600;
}

#caixaSucesso p {
  color: #FFFFFF !important;  /* Branco puro para a frase de confirmação */
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ============================================ */
/* SEÇÃO DE MAPA EM LARGURA TOTAL              */
/* ============================================ */

.full-width-map-section {
  background-color: var(--medium-green);
  padding: 30px 0;
  margin: 40px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.full-width-map-section h2 {
  color: var(--gold);
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}

.full-width-map-section iframe {
  height: 300px;
  border-radius: 10px;
  width: 100%;
}

/* ============================================ */
/* PÁGINA DE EMPREENDIMENTOS - FILTROS E CARDS */
/* ============================================ */

.main-content {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb {
  color: var(--gold);
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Filtros */
.filtro-container {
  background-color: var(--medium-green);
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.filtro-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--gold);
}

.disclaimer-precos {
  font-size: 0.75rem;
  text-align: center;
  color: var(--light-text);
  opacity: 0.7;
  margin-top: 5px;
}

.filtro-linha {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 15px;
  margin-bottom: 0;
}

.filtro-linha select {
  padding: 10px;
  border-radius: 8px;
  border: none;
  background-color: var(--light-green);
  color: var(--light-text);
  min-width: 160px;
  cursor: pointer;
  flex: 1;
}

.filtro-linha select option {
  background-color: var(--medium-green);
}

.filtro-preco {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1.5;
  min-width: 200px;
}

.filtro-preco label {
  color: var(--light-text);
  font-size: 0.9rem;
  white-space: nowrap;
}

#filtro-preco-range {
  flex: 1;
  min-width: 120px;
  -webkit-appearance: none;
  height: 6px;
  background: var(--light-green);
  border-radius: 3px;
  outline: none;
  margin: 0;
}

#filtro-preco-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--gold);
  border-radius: 50%;
  cursor: pointer;
}

#preco-valor {
  font-weight: bold;
  color: var(--gold);
  font-size: 0.95rem;
  white-space: nowrap;
  min-width: 90px;
}

.filtro-botoes {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-secundario {
  background-color: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-secundario:hover {
  background-color: var(--light-green);
  transform: translateY(-2px);
}

/* Cards de empreendimentos */
.empreendimentos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.empreendimento-card {
  background-color: var(--medium-green);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.empreendimento-card:hover {
  transform: translateY(-5px);
}

.card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-image img:hover {
  transform: scale(1.05);
}

.card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.empreendimento-card h3 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.card-content p {
  color: var(--light-text);
  margin-bottom: 20px;
  line-height: 1.5;
}

.card-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 30px;
  margin: 15px 0;
  padding-top: 15px;
  border-top: 1px dashed rgba(255,255,255,0.1);
}

.detail-item {
  margin-bottom: 8px;
}

.detail-label {
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0.7;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.detail-value {
  font-weight: bold;
  font-size: 0.95rem;
}

.detail-item.highlight .detail-value {
  color: var(--gold);
  font-size: 1.1rem;
}

.card-content .btn {
  margin-top: 10px;
  width: 100%;
  max-width: 100%;
}

/* ============================================ */
/* MODAL DE POLÍTICA DE PRIVACIDADE            */
/* ============================================ */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal[hidden] {
  display: none;
}

.modal-content {
  background-color: var(--medium-green);
  padding: 30px;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  position: relative;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #aaa;
  cursor: pointer;
  background: none;
  border: none;
}

.close:hover {
  color: #fff;
}

/* ============================================ */
/* FOOTER (RODAPÉ)                             */
/* ============================================ */

footer {
  padding: 30px 0;
  background-color: var(--dark-green);
  border-top: 1px solid var(--light-green);
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: flex;
  align-items: center;
  gap: 30px;
}

.footer-logo {
  max-width: 150px;
  height: auto;
  order: -1;
}

.footer-life {
  max-width: 150px;
  height: auto;
}

.footer-text {
  flex: 1;
  text-align: left;
}

footer p {
  margin: 5px 0;
  color: var(--gold);
  font-size: 0.9rem;
}

footer a {
  color: var(--gold);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.privacy-link {
  display: inline;
  margin-left: 5px;
}

/* ============================================ */
/* RESPONSIVIDADE                               */
/* ============================================ */

@media (max-width: 1024px) {
  .filtro-linha {
    flex-wrap: wrap;
  }
  
  .filtro-linha select {
    min-width: 140px;
  }
  
  .filtro-preco {
    min-width: 250px;
  }
  
  .empreendimentos-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .video-form-wrapper {
    flex-wrap: wrap;
  }
  .video-container,
  .form-container {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 70vh;
  }
  
  .hero .content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero .logo {
    margin-bottom: 20px;
    max-width: 100%;
    width: 300px;
    order: 1;
  }
  
  .hero .contact-image {
    position: relative;
    top: auto;
    right: auto;
    max-width: 150px;
    margin: 0 auto 20px auto;
    order: 2;
  }
  
  .hero .header-row {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    order: 3;
  }
  
  .hero h1 {
    margin-top: 0;
    margin-right: 0;
  }
  
  .btn-container {
    justify-content: center;
    margin-top: 15px;
    flex-direction: column;
    gap: 10px;
  }
  
  .carousel-fixed-description-container {
    flex-direction: column;
  }
  
  .carousel-track img.slide {
    height: 300px;
  }
  
  .form-container {
    padding: 15px;
  }
  
  .form-container form {
    gap: 10px;
  }
  
  .fixed-details-card {
    height: auto;
  }
  
  .description-item:not(.active) {
    display: none;
  }
  
  .filtro-linha {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filtro-linha select,
  .filtro-preco,
  .filtro-botoes {
    width: 100%;
  }
  
  .filtro-botoes {
    flex-direction: row;
    justify-content: center;
  }
  
  .filtro-botoes .btn {
    flex: 1;
    text-align: center;
  }
  
  .empreendimentos-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-logo {
    order: 0;
    margin-bottom: 15px;
  }
  
  .footer-text {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .dual-column {
    flex-direction: column;
    gap: 12px;
  }
  .dual-column input {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  .fixed-details-card h2 {
    font-size: 1.4rem;
  }
  .form-container h3 {
    font-size: 1.3rem;
  }
  .checkbox-container label {
    font-size: 0.8rem;
  }
  .card-details {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .empreendimento-card h3 {
    font-size: 1.3rem;
  }
  .btn-container .btn {
    max-width: 200px;
  }
}