@media (max-width: 420px) {
    .detail-sidebar {
        padding: 0;
    }
}

@media (max-width: 640px) {
    .btn {
        font-size: 15px;
        padding: 20px 24px;
    }
}












/* Estilos visuais do componente (sem interferir nas regras do grid) */
.property-header {
    background-color: #f7f5f0;
    /* Fundo suave conforme a imagem */
    padding-top: 98px !important;
    padding-bottom: 6px;
}

/* Breadcrumbs */
.property-breadcrumb {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a38f68;
}

.property-breadcrumb a {
    color: #a38f68;
    text-decoration: none;
}

/* Título */
.property-title {
    font-size: 1.4rem;
    line-height: 1.15;
    font-weight: 400;
}



/* Bloco de Preço */
.property-price-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: 4px;
    margin-top: 10px;
}

.property-price-label {
    font-size: 1rem;
    color: #a38f68;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1;
}

.property-price-value {
    font-size: 1.45rem;
    color: #1a1a1a;
    white-space: nowrap;
    line-height: 1;
}

@media (min-width: 992px) {
    .property-header {
    background-color: #f7f5f0;
    padding-top: 120px !important;
    padding-bottom: 6px;
}
.property-price-wrapper {
   
    margin-top: 0;
}
    .property-title {
        font-size: 1.75rem;
        margin-top: 7px !important;
    }
}









/*=========================================
   ESTILOS DA GALERIA (BENTO GRID MOBILE-FIRST)
   =========================================*/

.detalhes-titulo {
    font-size: clamp(32px, 2.444vw, 40px);
}

/* CONTAINER DA GALERIA */
.bento-gallery-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
    background-color: rgb(197, 164, 89, .115);
}

/* MOBILE-FIRST: 1 COLUNA DE DESTAQUE */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 280px;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    overflow: hidden;
}

.bento-grid .gallery-item {
    position: relative;
    overflow: hidden;
    background-color: #a38f68;
    display: block;
    text-decoration: none;
}

.bento-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* No Mobile exibe apenas a primeira foto do loop */
.bento-grid .gallery-item:not(:first-child) {
    display: none;
}

/* BOTÃO SUPERIOR (ALTERNAR IMÓVEL / PLANTA) */
.btn-gallery-toggle {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ffffff;
    color: #0d131f;
    border: 1px solid #a38f68;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
}

.btn-gallery-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.btn-gallery-toggle.active-floorplan {
    background: #a38f68;
    color: #ffffff;
    border-color: #a38f68;
}

/* BOTÃO INFERIOR (ABRIR FANCYBOX) */
.btn-open-gallery {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    color: #0d131f;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.btn-open-gallery:hover {
    background: #ffffff;
    transform: translateY(-1px);
}








/* 1ª imagem */

.bento-grid .gallery-item:nth-child(1) img,
.bento-grid .gallery-item:nth-child(1) {
    border-radius: 10px;
}

/* 3ª imagem */
.bento-grid .gallery-item:nth-child(3) img,
.bento-grid .gallery-item:nth-child(3) {
    border-radius: 0 10px 0 0;
}

/* 5ª imagem */
.bento-grid .gallery-item:nth-child(5) img,
.bento-grid .gallery-item:nth-child(5) {
    border-radius: 0 0 10px 0;
}

/* MEDIA QUERY: DESKTOP (BENTO GRID COMPLETO) */
@media (min-width: 768px) {

    /* 1ª imagem */
    .bento-grid .gallery-item:nth-child(1) img,
    .bento-grid .gallery-item:nth-child(1) {
        border-radius: 10px 0 0 10px;
    }

    .bento-grid {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: repeat(2, 220px);
        gap: 10px;
        padding: 10px;
        border-radius: 10px;
        overflow: hidden;
    }

    /* Exibe até 5 fotos no grid */
    .bento-grid .gallery-item:nth-child(-n+5) {
        display: block;
    }

    /* Oculta as fotos do 6º item em diante (permanecem no DOM para o Fancybox) */
    .bento-grid .gallery-item:nth-child(n+6) {
        display: none !important;
    }

    /* Primeira foto do loop assume o destaque principal (2 colunas / 2 linhas) */
    .bento-grid .gallery-item:first-child {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }

    .bento-grid .gallery-item:hover img {
        transform: scale(1.04);
    }

    .btn-gallery-toggle {
        top: 20px;
        left: 20px;
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .btn-open-gallery {
        bottom: 20px;
        right: 20px;
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}





/* =========================================
   ESTRUTURA HTML + TAGS DO SEU BACKEND
   =========================================*/




    .property-detail-label{
        position: relative;
        margin-bottom: 0;
        padding-bottom: 0;
        display: flex;
        gap: 4px;
    }

    .property-detail-label svg{
        color: #a58b57;
        width: 27px;
        height: 27px; 
    }

    .property-detail-label h2{
        font-family: var(--font-sans);
        /* font-size: clamp(20px,2vw,24px); */
        font-weight: 420;
        font-size: 1.12em;
        margin-bottom: 12px;
    }

   /* .property-detail-label::after{
    position: absolute;
    content:'';
    width: 30px;
    height: 2px;
    background-color: #bba579;
    bottom: 0; 
   } */



.property-infos{
    border-top: 1px solid rgba(0, 0, 0, 0.045);
    margin-top: 28px;
    padding-top: 28px;
}

.property-infos--descricao{
    margin-top: 0 !important;
    padding-top: 0 !important;
    border: none !important;
}




.detail-specs{
    margin-bottom: 0 !important;
}

   .imovel-item-img-2 img {
        border-radius: 20px;
        width: 100%;
        max-width: 450px;
        height: auto; 
        margin: 0 auto;
    }
.imovel-item-img-2 {
    margin-bottom: 0 !important;
}

    .arquivos-download-wrapper {
    width: fit-content;
    padding-top: 0 !important;
    display: flex;
    gap: 16px;
    justify-content: start;
    flex-wrap: wrap !important;
    margin-bottom: 0 !important;
}


.descricao-imovel p {
  margin-bottom: 1.2rem; /* Espaçamento entre os parágrafos */
  line-height: 1.6;     /* Melhora a leitura */
  font-weight: 300;
}

/* Evita que o último parágrafo crie uma margem desnecessária no final do container */
.descricao-imovel p:last-child {
  margin-bottom: 0;
}

.amenities-flex{
    margin-top: 0 !important;
}




.descricao-imovel {
  /* 1. Cria um contexto isolado (BFC) e esconde estouros gigantes */
  display: block;
  contain: inline-size;             /* CSS moderno: isola o layout interno */
  min-width: 0 !important;          /* Impede flex/grid de expandir a div */
  max-width: 100% !important;
  overflow-x: auto;                 /* Se houver algo gigante (como uma tabela), cria scroll interno em vez de quebrar o site */
  
  /* 2. Trava de quebra de palavras e links */
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

/* 3. Blinda elementos filhos com estilos inline vindos do backend */
.descricao-imovel * {
  max-width: 100% !important;        /* Força qualquer elemento interno a respeitar a largura */
  box-sizing: border-box !important;
  float: none !important;            /* Anula floats colados do backend que quebram o layout */
}

/* 4. Trata imagens e mídias gigantes */
.descricao-imovel img,
.descricao-imovel iframe,
.descricao-imovel video,
.descricao-imovel table {
  max-width: 100% !important;
  height: auto !important;
}
































:root {
  --color-fb: #627aac;
  --color-x: #242526;
  --color-wa: #25d366;
  --color-mail: #bcbcbc;
}

.share-container {
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 20px auto;
}

.share-container h2 {
  font-size: 2rem;
  font-weight: 300;
  color: #1a4d80;
  /* Azul similar ao do seu título */
  margin-bottom: 20px;
  text-transform: none;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  /* Espaçamento moderno sem margens gambitarras */
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: transform 0.2s ease, filter 0.2s ease;
  text-decoration: none;
}

/* Cor dos Ícones (SVGs) internos */
.share-btn svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
  /* Ícones brancos por padrão */
}

/* Cores de fundo específicas */
.share-btn.facebook {
  background-color: var(--color-fb);
}

.share-btn.x-twitter {
  background-color: var(--color-x);
}

.share-btn.whatsapp {
  background-color: var(--color-wa);
}

.share-btn.email {
  background-color: var(--color-mail);
}

/* Efeito moderno ao passar o mouse */
.share-btn:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.share-btn:active {
  transform: scale(0.95);
}




































.spec {
  width: 100%;
  display: flex;
  gap: 3px;
  padding: 0;
  align-items: center;
  padding: 16px;
  gap: 4px;
  justify-content: center;
}

.spec svg {
  margin-bottom: 0;
  width: 30px;
  height: 30px;
}

.spec span {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  margin-top: 1px;
}

.spec .spec-total {
  display: flex;
  gap: 3px;
  align-items: center;
}

.spec .metros-quadrados {
  font-size: 14px;
  margin-left: 3px;
  color: rgb(0, 0, 0, 1);
}















































.amenities-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.amenity-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: oklch(99.155% 0.00011 271.152);
  color: #333;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 400;
  border: 1px solid #eee;
  transition: all 0.2s ease;
}

.amenity-badge:hover {
  background: #fff;
  border-color: var(--gold-dark, #c5a880);
  color: var(--gold-dark, #c5a880);
}

.amenity-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--gold-dark, #c5a880);
  border-radius: 50%;
}


.detail-map>iframe {
  width: 100%;
}









/* CONTAINER PAI */
.youtube-grid-responsive {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
}

/* CARD DO VÍDEO */
.youtube-card {
  width: 100%;
  /* Trava opcional: impede que o vídeo único fique gigante em telas ultra-wide */
  max-width: 850px;
  justify-self: center;
  /* Centraliza o vídeo na tela caso ele atinja a largura máxima */
  border-radius: 12px;
  overflow: hidden;
}

/* CONTAINER DE PROPORÇÃO (Mantém o 16:9) */
.youtube-aspect-ratio {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}

.youtube-aspect-ratio iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* MEDIA QUERY: A partir de Tablet/Desktop */
@media (min-width: 768px) {
  .youtube-grid-responsive {
    /* auto-fit faz a mágica de calcular se tem 1 ou 2 elementos na linha */
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
  }

  /* Se houver 2 vídeos lado a lado, removemos a trava de max-width para eles preencherem o grid perfeitamente */
  .youtube-grid-responsive:has(.youtube-card:nth-child(2):not([style*="display: none"])) .youtube-card {
    max-width: 100%;
  }
}















/* FORMULARIO AGENDAR VISITA */
/* Fundo Escuro do Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
  padding: 20px;
}

/* Estado Ativo do Modal */
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Card do Formuário */
.modal-card {
  background-color: #f9f9f9;
  width: 100%;
  max-width: 540px;
  border-radius: 40px;
  /* Cantos bem arredondados como no print */
  padding: 40px 30px 30px 30px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

/* Botão Fechar (X) */
.modal-close-btn {
  position: absolute;
  top: 25px;
  right: 30px;
  background: none;
  border: none;
  font-size: 28px;
  color: #a38244;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: red;
}

/* Emblema do Calendário Superior */
.modal-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #a38244;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid #f9f9f9;
}

.modal-badge svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* Textos */
.modal-title {
  text-align: center;
  color: #4d4d4d;
  font-size: 26px;
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 12px;
}

.modal-subtitle {
  text-align: center;
  color: #777;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 30px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* Componentes do Formulário */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Grupos de Input com Ícone Interno */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 18px;
  display: flex;
  align-items: center;
  pointer-events: none;
  width: 26px;
  height: 26px;
}

.input-icon svg {
  width: 26px;
  height: 26px;
  color: #a38244;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 16px 16px 16px 52px;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  /* Remove seta padrão do select para customizar */
}

.input-group input:focus,
.input-group select:focus {
  border-color: #999;
}

/* Seta customizada para o select */
.input-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333333'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 24px;
}

/* Placeholder cinza para o select inicial */
.input-group select:invalid {
  color: #757575;
}

/* Botão Enviar */
.modal-submit-btn {
  background-color: #a38244;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 18px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 8px;
}

.modal-submit-btn:hover {
  background-color: #b18c49;
}

/* Botão de teste da página */
.btn-trigger {
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  margin: 40px;
}


.erro-campo {
  padding-left: 11px;
  color: red;
}




.imovel-item-img-2 {
  margin-bottom: 40px;
}

.imovel-item-img-2 img {
  border-radius: 20px;
  max-width: 450px;
  margin: 0 auto;
}

.arquivos-download-wrapper {
  width: fit-content;
  margin-bottom: 50px;
  padding-top: 6px !important;
  display: flex;
  gap: 16px;
  justify-content: start;
}




/* Esconde a seção de downloads por padrão */
.detail-section-arquivos {
  display: none;
}

/* Mostra a seção SOMENTE se houver pelo menos um link com href preenchido */
.detail-section-arquivos:has(a[href]:not([href=""]):not([href="#"])) {
  display: block;
  /* Ou display: grid / flex conforme seu layout */
}