/* Efeito de Fade para o Magnific Popup */
.mfp-fade.mfp-bg { opacity: 0; transition: all 0.3s ease-out; }
.mfp-fade.mfp-bg.mfp-ready { opacity: 0.9; }
.mfp-fade.mfp-bg.mfp-removing { opacity: 0; }
.mfp-fade.mfp-wrap .mfp-content { opacity: 0; transition: all 0.3s ease-out; transform: scale(0.95); }
.mfp-fade.mfp-wrap.mfp-ready .mfp-content { opacity: 1; transform: scale(1); }
.mfp-fade.mfp-wrap.mfp-removing .mfp-content { opacity: 0; transform: scale(0.95); }
.imovel-page-wrapper {
  background-color: #EEEEEE;
  padding-bottom: 50px;
  overflow-x: hidden;
}

/* Banner de Fundo */
.banner-fundo {
  width: 100%;
  height: 530px;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.banner-fundo::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.container-imovel {
  max-width: 1300px;
  margin: -400px auto 0 auto;
  position: relative;
  z-index: 10;
  padding: 0 15px;
}

.card-principal {
  background-color: #ffffff;
  border-radius: 15px;
  padding: 40px;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); */
  display: flex;
  gap: 40px;
  min-height: 600px;
}

.dados-imovel {
  flex: 1;
}

.tags-container {
  margin-bottom: 15px;
}

.tag {
  background-color: #000;
  color: #fff;
  padding: 5px 25px;
  border-radius: 20px;
  font-size: 16px;
  display: inline-block;
  margin-right: 10px;
  font-family: "amsiprocond-semi-bold", sans-serif;
}

.dados-imovel h1 {
  font-size: 40px;
  font-weight: bold;
  margin: 0 0 5px 0;
  line-height: 1.2;
  font-family: "amsiprocond-black", sans-serif;
}

.cidade-estado {
  font-size: 20px;
  color: #666;
  margin-bottom: 30px;
  font-family: "amsiprocond-semi-bold", sans-serif;
}

.specs-grid {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.spec-box {
  font-family: "amsiprocond-black", sans-serif;
  border: 1px solid #eaeaea;
  border-radius: 20px;
  padding: 22px 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  color: #202020;
  flex: 1;
  min-width: 140px;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.1);
}

.spec-box img {
  width: 24px;
  height: 24px;
}

/* Valores */
.valores-container {
  margin-bottom: 30px;
  display: flex;
  gap: 30px;
  align-items: center;
}

.valor-item {
  font-size: 40px;
  font-family: "amsiprocond-black", sans-serif;
}

.descricao-imovel {
  font-size: 19px;
  color: #444444;
  line-height: 1.6;
  margin-bottom: 40px;
  font-family: "amsiprocond-semi-bold", sans-serif;
}

/* BotÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Âµes de AÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â§ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â£o */
.botoes-acao {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-acao {
  border-radius: 30px;
  font-size: 18px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: transform 0.2s;
  font-family: "amsiprocond-semi-bold", sans-serif;

  /* NOVAS REGRAS PARA ALINHAMENTO */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1; /* Remove espaÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â§os invisÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â­veis extras da fonte */

  /* Se o Flexbox sozinho nÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â£o resolver, ajuste o padding manualmente: 
           (Top, Right, Bottom, Left). 
           Como o texto estÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¡ caindo, deixamos o Top menor que o Bottom. */
  padding: 20px 50px 25px 50px;
}

.btn-acao:hover {
  transform: translateY(-2px);
}

.btn-preto {
  background-color: #000;
  color: #fff;
}

.btn-amarelo {
  background-color: #e8af00;
  color: #fff;
}

.card-corretor {
  width: 317px;
  height: 270px;
  background-color: #ffffff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: -80px;
  position: relative;
  z-index: 20;
}

.corretor-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
}

.corretor-foto {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.corretor-info {
  display: flex;
  flex-direction: column;
}

.corretor-nome {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 5px 0;
  color: #333;
}

.corretor-creci {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.btn-corretor {
  width: 100%;
  padding: 15px 0;
  margin-bottom: 15px;
  border: 1px solid #eaeaea;
  background: #fff;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: background 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.btn-corretor:hover {
  background: #f9f9f9;
}

/* Responsividade */
@media (max-width: 992px) {
    .card-principal {
        flex-direction: column;
        padding-top: 40px; 
    }

    .card-corretor {
        width: 100%;
        height: auto;
        align-self: stretch;
        margin-top: 30px; 
    }

    .valores-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .valor-item {
        font-size: 32px;
    }

    .botoes-acao {
        display: grid; 
        grid-template-columns: 1fr 1fr; 
        gap: 10px;
    }

    .btn-acao {
        padding: 15px 10px 18px 10px; 
        font-size: 15px;
        width: 100%; 
    }
}

.secao-extras {
  margin-top: 60px;
  padding: 0 20px;
}

.titulo-extra {
  font-family: "amsiprocond-black", sans-serif;
  font-size: 32px;
  color: #000;
  margin-bottom: 30px;
  margin-top: 50px;
}

.grid-extras {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 25px 20px;
}

.item-extra {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "amsiprocond-semi-bold", sans-serif;
  font-size: 20px;
  color: #000000;
  line-height: 1;
}

.item-extra svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.svg-black {
  stroke: #000;
}

.svg-blue {
  stroke: #0073e6;
}

@media (max-width: 768px) {
  .grid-extras {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-extras {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   CARROSSEL DE IMAGENS DO IMÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã¢â‚¬Å“VEL
========================================= */
.secao-carrossel {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 80px;
    overflow: hidden; 
    padding-bottom: 50px;
}

.carrossel-center-window {
    width: 1260px; /* Largura exata para 2 imagens de 620px + 20px de gap */
    margin: 0 auto;
    position: relative;
}

.carrossel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide-item {
    width: 620px;
    height: 440px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Camada esbranquiÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â§ada padrÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â£o (para imagens nas bordas) */
.slide-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(238, 238, 238, 0.75); 
    transition: opacity 0.5s ease;
    z-index: 2;
}

/* Remove a camada branca das imagens ativas no centro */
.slide-item.is-visible .slide-overlay {
    opacity: 0;
}

/* Controles (Setas e Dots) */
.carrossel-controles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 35px;
}

.btn-seta {
    width: 44px;
    height: 44px;
    background-color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}

.btn-seta:hover {
    transform: scale(1.1);
}

.btn-seta svg {
    width: 30px;
    height: 30px;
    stroke: #fff;
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.carrossel-dots {
    background-color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    display: flex;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.dot {
    width: 14px;
    height: 14px;
    background-color: #d0d0d0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #000;
}

/* Responsividade BÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¡sica */
@media (max-width: 1300px) {
    .carrossel-center-window {
        width: 100%;
        padding: 0 20px;
    }
    .slide-item {
        width: calc(50vw - 30px); /* Ajusta no tablet */
        height: auto;
        aspect-ratio: 620 / 440;
    }
}

@media (max-width: 768px) {
    .slide-item {
        width: 85vw; 
    }
    
    .carrossel-dots {
        display: none !important;
    }
}

.secao-video-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 100px;
    padding-bottom: 120px;
    overflow-x: hidden;
}

.video-container {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    padding: 0 15px;
    display: flex;
}

.video-card {
    width: 810px;
    height: 455px;
    position: relative;
    z-index: 2; 
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1); 
}

.play-button svg {
    width: 35px;
    height: 35px;
    fill: #3BB4E5; 
    margin-left: 5px; 
}

.video-black-bleed {
    position: absolute;
    top: 80px; 
    height: 450px; 
    left: 300px;
    width: 100vw; 
    background-color: #000000;
    z-index: 1; 
}

@media (max-width: 992px) {
    .video-card {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9; /* MantÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â©m a proporÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â§ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â£o de vÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â­deo sem usar altura fixa */
    }
    
    .video-black-bleed {
        top: 40px;
        left: 50px; /* No mobile ele vaza um pouco menos */
        height: calc(100% - 20px); 
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button svg {
        width: 25px;
        height: 25px;
    }
}

/* =========================================
   IMÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…â€œVEIS RELACIONADOS
========================================= */
.secao-relacionados-wrapper {
    position: relative;
    margin-top: 50px;
    padding-bottom: 80px;
    /* Ocultamos overflow para que a faixa preta infinita nÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â£o crie barra de rolagem horizontal no body */
    overflow-x: hidden; 
}

/* O Segredo da Faixa Preta que Vaza para a Esquerda */
.secao-relacionados-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    /* Alinha a borda direita da faixa preta com a borda direita do container de 1300px */
    right: calc(50% - 477px);
    width: 100vw; /* Estica infinitamente para a esquerda */
    height: 450px; /* Cobre o tÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â­tulo e a metade superior dos cards */
    background-color: #000000;
    z-index: 1;
}

.relacionados-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2; /* Fica acima da faixa preta */
}

.rel-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 60px;
    margin-bottom: 40px;
    position: relative;
    gap: 40px;
}

.rel-title {
    color: #fff;
    font-family: 'amsiprocond-black', sans-serif;
    font-size: 42px;
}

.rel-nav {
    /* position: absolute; */
    right: 0;
    display: flex;
    gap: 10px;
}

.btn-rel-nav {
    width: 35px;
    height: 35px;
    background-color: transparent;
    border: 1.5px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-rel-nav:hover {
    background-color: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.btn-rel-nav svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Carrossel Interno */
.rel-carousel-viewport {
    overflow: hidden;
    padding-bottom: 20px;
    padding-top: 40px;
}

.rel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease-in-out;
}

.rel-card {
    flex: 0 0 calc((100% - 40px) / 3);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
}

.rel-img-box {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    /* box-shadow: 0 10px 20px rgba(0,0,0,0.3); */
}

.rel-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rel-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: black;
    color: #fff;
    font-family: 'amsiprocond-semi-bold', sans-serif;
    font-size: 20px;
    padding: 5px 15px 9px 15px;
    border-radius: 5px;
    text-transform: uppercase;
}

.rel-info-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    padding: 40px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.rel-cidade {font-family: 'amsiprocond-semi-bold', sans-serif;font-size: 20px;color: white;}
.rel-bairro {font-family: 'amsiprocond-black', sans-serif;font-size: 39px;line-height: 1.1;margin: 3px 0;}
.rel-desc {font-family: 'amsiprocond-semi-bold', sans-serif;font-size: 20px;margin-bottom: 5px;color: white;}
.rel-preco {font-family: 'amsiprocond-semi-bold', sans-serif;font-size: 18px;}

/* RodapÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â© de ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Âcones */
.rel-specs {
    display: flex;
    justify-content: space-between;
    padding: 20px 10px;
    color: black;
    font-family: 'amsiprocond-semi-bold', sans-serif;
    font-size: 16px;
}

.rel-spec-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 22px;
}

.rel-spec-item svg {
    width: 33px;
    height: 33px;
}

/* Responsividade Mobile */
@media (max-width: 992px) {
    .rel-card { flex: 0 0 calc((100% - 20px) / 2); } 
    .secao-relacionados-wrapper::before { right: 0; } 
    .rel-nav { position: relative; margin-left: 20px; }
    .rel-header { justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .rel-card { flex: 0 0 100%; } 
}

/* =========================================
   MODAL DE VÃƒÆ’Ã‚ÂDEO
========================================= */
.video-modal {
    display: none; /* Escondido por padrÃƒÆ’Ã‚Â£o */
    position: fixed;
    z-index: 999999; /* Fica por cima de TUDO no site */
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85); /* Fundo preto transparente */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px); /* Efeito de desfoque no fundo (moderno) */
}

/* Classe que o JS adiciona para mostrar o modal */
.video-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.video-modal-content video {
    width: 100%;
    height: auto;
    display: block;
}

.close-video {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1000000;
    line-height: 1;
}

.close-video:hover {
    color: #E8AF00; /* Fica amarelo ao passar o mouse */
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz o vÃƒÆ’Ã‚Â­deo se comportar como um background-size: cover */
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* =========================================
   RESPONSIVIDADE DO MAPA MODAL
========================================= */
.mapa-iframe {
    height: 650px; 
    transition: height 0.3s ease;
}

@media (max-width: 768px) {
    .mapa-iframe {
        height: 60vh; 
        max-height: 450px; 
    }
}

@media (max-width: 768px) {
    /* Faz o card ocupar 100% da largura da tela no celular */
    .rel-card { 
        flex: 0 0 100%; 
    } 
    
    /* Empilha o título e os botões de navegação à esquerda */
    .rel-header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding-top: 95px;
        margin-bottom: 0px;
    }

    /* Ajusta o tamanho do título e força a quebra de linha igual ao layout */
    .rel-title {
        font-size: 38px;
        line-height: 1.1;
        max-width: 250px;
        text-align: center;
    }

    /* Tira a margem da navegação para alinhar com o texto */
    .rel-nav {
        margin-left: 0;
        position: relative;
    }

    /* Aumenta a altura da faixa preta para compensar o texto empilhado */
    .secao-relacionados-wrapper::before {
        height: 540px; 
        right: 0;
        left: 0;
    }

    /* Ajustes finos no card para não espremer as informações em telas menores */
    .rel-img-box {
        height: 280px;
    }
    
    .rel-bairro {
        font-size: 30px;
    }

    /* Permite que os ícones do rodapé quebrem de linha se faltar espaço */
    .rel-specs {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 15px 25px;
    }
}