/* ==========================
   MOD-INFO-IMOVEL.CSS
   Layout unificado de informações do imóvel
   ========================== */

.info-imovel-container {
    /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
    padding: 1rem 0;
    margin: 0;
    display: block;
    width: 100%;
    min-height: 400px;
}

.info-imovel-container .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.info-imovel-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* ==========================
   COLUNA ESQUERDA - INFORMAÇÕES DO IMÓVEL
   ========================== */

.info-imovel-left {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Valores do imóvel */
.valores-imovel-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.valor-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--cor-primaria);
    border-radius: 8px;
    min-width: 120px;
    justify-content: flex-start;
}

.valor-tipo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cor-texto);
}

.valor-preco {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cor-texto);
    line-height: 1.2;
}

/* Título do imóvel */
.imovel-titulo {
    margin-bottom: 2rem;
    text-align: left;
}

.imovel-titulo h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #2c3e50;
    text-transform: none;
    letter-spacing: -0.5px;
    text-align: center;
}

/* Informações principais do imóvel */
.imovel-info-principal {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 0.5rem;
    background-color: #fafafa;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    flex-wrap: nowrap;
    justify-content: space-evenly;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    padding: 0.3rem 0.2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    min-width: 140px;
}



.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2D587A 0%, #1D2F45 100%);
    border-radius: 8px;
    color: white;
}

.info-icon i {
    font-size: 16px;
    color: white;
    width: 16px;
    height: 16px;
    display: inline-block !important;
    align-items: center;
    justify-content: center;
    font-family: "Font Awesome 7 Pro" !important;
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}

.info-text {
    white-space: nowrap;
    font-weight: 600;
    color: #2c3e50;
}

/* Informações estruturadas */
.info-estruturada {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0rem 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}



.info-label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #495057;
    gap: 0.75rem;
}

.info-label i {
    font-size: 18px;
    color: #2D587A;
    width: 18px;
    height: 18px;
    display: inline-block !important;
    align-items: center;
    justify-content: center;
    font-family: "Font Awesome 7 Pro" !important;
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
}

.info-label span {
    font-size: 1rem;
    font-weight: 600;
}

.info-value {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1rem;
    text-align: right;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

/* Descrição do imóvel */
.descricao-imovel {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.descricao-imovel h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #2D587A;
}

.corpo-texto {
    line-height: 1.8;
    color: #495057;
    font-size: 1rem;
    text-align: justify;
}

.corpo-texto p {
    margin-bottom: 1rem;
}

.corpo-texto p:last-child {
    margin-bottom: 0;
}

.corpo-texto strong,
.corpo-texto b {
    font-weight: 600;
    color: #2c3e50;
}

.corpo-texto em,
.corpo-texto i {
    font-style: italic;
    color: #6c757d;
}

.corpo-texto ul,
.corpo-texto ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.corpo-texto li {
    margin-bottom: 0.5rem;
}

/* ==========================
   COLUNA DIREITA - FORMULÁRIO FUTURO
   ========================== */

.info-imovel-right {
    /* Removido position: sticky para permitir rolagem normal */
}

/* ==========================
   BOTÕES DE CONTATO E COMPARTILHAMENTO
   ========================== */

.botoes-contato-compartilhamento {
    margin-bottom: 2rem;
}

/* Layout dos botões */
.botoes-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-whatsapp {
    background-color: #25d366;
    border-color: #25d366;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    width: 100%;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    border-color: #128c7e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
}

.whatsapp-icon {
    filter: brightness(0) invert(1);
}

/* Estilos para compartilhamento */
.compartilhamento-container {
    position: relative;
    z-index: 10;
    width: 100%;
}

.btn-compartilhar {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-compartilhar:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(45, 88, 122, 0.25) !important;
}

.btn-compartilhar:hover {
    color: #2D587A;
    background-color: #e9ecef;
    border-color: #2D587A;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.texto-compartilhar {
    font-weight: 500;
}

.opcoes-compartilhamento {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transform-origin: top center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 0.5rem;
}

.opcoes-compartilhamento.ativo {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.opcao-compartilhamento {
    flex: 1;
    text-align: center;
}

.opcao-compartilhamento a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    color: #495057;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 1.2rem;
    min-height: 44px;
    min-width: 44px;
    border-radius: 6px;
}

.opcao-compartilhamento a:hover {
    background-color: #f8f9fa;
    color: #2D587A;
    text-decoration: none;
}

.opcao-compartilhamento i {
    font-size: 1.2rem;
    text-align: center;
    color: #6c757d;
}

/* Estilos para ícones de imagem das redes sociais */
.share-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.opcao-compartilhamento a:hover .share-icon {
    transform: scale(1.1);
}

.formulario-placeholder {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.placeholder-content i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.placeholder-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.placeholder-content p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 250px;
}

/* ==========================
   RESPONSIVO
   ========================== */

@media (max-width: 1200px) {
    .info-imovel-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .info-imovel-right {
        order: -1;
    }
    
    .formulario-placeholder {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .info-imovel-container {
        padding: 2rem 0;
    }
    
    .info-imovel-left {
        padding: 2rem;
    }
    
    .valores-imovel-container {
        gap: 0.75rem;
    }
    
    .valor-item {
        min-width: 100px;
        padding: 0.5rem 0.75rem;
    }
    
    .valor-tipo {
        font-size: 1rem;
    }
    
    .valor-preco {
        font-size: 1rem;
    }
    
    .imovel-titulo h1 {
        font-size: 1.8rem;
    }
    
    .imovel-info-principal {
        gap: 1rem;
        padding: 1rem;
        flex-direction: column;
    }
    
    .info-item {
        min-width: auto;
        width: 100%;
        justify-content: center;
    }
    
    .info-row {
        padding:0.5rem 0.5rem;
        flex-direction: row;
        align-items: flex-start;
        gap: 0.5rem;
        justify-content: space-between
    }
    
    .info-value {
        padding: 0.5rem 0.2rem 0.5rem 1rem;
    }

    .info-label {
        padding: 0.5rem 0rem;
    }    
    
    /* Botões de contato e compartilhamento responsivos */
    .botoes-layout {
        gap: 0.75rem;
    }
    
    .btn-whatsapp {
        padding: 0.6rem 1rem;
    }
    
    .btn-compartilhar {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .texto-compartilhar {
        font-size: 0.9rem;
    }
    
    .descricao-imovel {
        padding: 1.5rem;
    }
    
    .formulario-placeholder {
        padding: 2rem;
    }
}

@media (max-width: 960px) {
    /* Reorganizar ordem dos elementos na versão mobile */
    .info-imovel-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    /* Informações do imóvel primeiro */
    .info-imovel-left {
        order: 1;
    }
    
    /* Botões de contato e compartilhamento segundo - movidos para fora da coluna direita */
    .botoes-contato-compartilhamento {
        order: 2;
        width: 100%;
        margin-bottom: 2rem;
        background: white;
        border-radius: 16px;
        padding: 2rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        /* Remover da coluna direita no mobile */
        position: relative;
        z-index: 10;
    }
    
    /* Formulário por último */
    .info-imovel-right {
        order: 3;
    }
    
    /* Ajustar layout dos botões para ocupar toda a largura */
    .botoes-layout {
        width: 100%;
    }
    
    /* Garantir que os botões tenham espaçamento adequado */
    .btn-whatsapp,
    .btn-compartilhar {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .info-imovel-container {
        padding: 1.5rem 0;
    }
    
    .info-imovel-container .container {
        padding: 0 15px;
    }
    
    .info-imovel-left {
        padding: 1.5rem;
    }
    
    .valores-imovel-container {
        gap: 0.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .valor-item {
        min-width: 150px;
        padding: 0.75rem;
    }
    
    .valor-tipo {
        font-size: 0.95rem;
    }
    
    .valor-preco {
        font-size: 0.95rem;
    }
    
    .imovel-titulo h1 {
        font-size: 1.5rem;
    }
    
    .imovel-info-principal {
        margin-bottom: 2rem;
    }
    
    .info-item {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }
    
    .info-icon {
        width: 28px;
        height: 28px;
    }
    
    .info-icon i {
        font-size: 14px;
    }
    
    .descricao-imovel {
        padding: 1rem;
    }
    
    .corpo-texto {
        font-size: 0.95rem;
        text-align: left;
    }
    
    .formulario-placeholder {
        padding: 1.5rem;
    }
    
    .placeholder-content h3 {
        font-size: 1.3rem;
    }
    
    .placeholder-content p {
        font-size: 0.95rem;
    }
    
    /* Ajustes específicos para os botões na versão mobile pequena */
    .botoes-contato-compartilhamento {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-whatsapp {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .btn-compartilhar {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .texto-compartilhar {
        font-size: 0.95rem;
    }
}
