/* ===========================
   CORREÇÕES FINAIS site1
   =========================== */

/* 1. SOLUÇÃO ESTÁVEL: SEGUIR PADRÃO DO TEMPLATE ORIGINAL */
/* CORREÇÃO: Seguir exatamente o template original */
.others-section-area {
    background: transparent !important;
    position: relative !important;
    z-index: 10 !important;
    margin: 0 !important;
    padding: 0 !important;
    /* Garantir que qualquer espaço visível seja transparente */
    height: auto !important;
    min-height: 0 !important;
}

/* Posicionamento aplicado no .property-tab-section como no template original */
.others-section-area .property-tab-section {
    position: relative !important;
    z-index: 2 !important;
    margin-top: -120px !important; /* Exatamente como no template original */
    background: transparent !important;
}

/* Ajustar seção de destaques - seguindo template original */
.properties1-section-area.sp2 {
    position: relative !important;
    padding-top: 100px !important; /* Espaço normal para compensar a barra */
}

/* Ajustar heading da seção de destaques */
.properties1-section-area .property-heading {
    margin-top: 0px !important; /* Reset - espaçamento controlado pelo padding da seção */
}

/* Responsividade EXATAMENTE como no template original */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .others-section-area .property-tab-section {
        margin-top: -80px !important; /* Como no template original */
    }
    
    .properties1-section-area.sp2 {
        padding-top: 90px !important;
    }
}

@media (max-width: 767px) {
    .others-section-area .property-tab-section {
        margin-top: -60px !important; /* Como no template original */
    }
    
    .properties1-section-area.sp2 {
        padding-top: 80px !important;
    }
}

/* FORÇAR transparência total - Duplicando método do template original */
.others-section-area,
.others-section-area .property-tab-section,
.others-section-area .container,
.others-section-area .row,
.others-section-area .col-lg-12,
.others-section-area .unified-search-form {
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    outline: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Eliminar qualquer fundo branco residual com máxima especificidade */
.others-section-area::before,
.others-section-area::after,
.others-section-area .property-tab-section::before,
.others-section-area .property-tab-section::after,
.others-section-area .container::before,
.others-section-area .container::after {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    content: none !important;
    display: none !important;
}

/* DESABILITADO - usando clean-search-bar.css */
/* A barra de pesquisa em si mantém seu estilo */
/*.others-section-area .filters {
    background: var(--ztc-bg-bg-1) !important;
    box-shadow: 0px 4px 30px 0px rgba(0, 0, 0, 0.09) !important;
    border-radius: 0px 8px 8px 8px !important;
    padding: 32px 24px !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 2 !important;
}*/

/* DESABILITADO - usando clean-search-bar.css */
/* Manter o tab header */
/*.others-section-area .tab-header {
    border-radius: 16px 16px 0px 0px !important;
    background: #F2F1F1 !important;
    display: inline-block !important;
    overflow: hidden !important;
    border: none !important;
    margin-bottom: -6px !important;
    position: relative !important;
    z-index: 2 !important;
}*/

/* Garantir sobreposição correta sobre o hero */
.hero-area-slider {
    position: relative !important;
    z-index: 1 !important;
}

/* Remover qualquer overlay ou fundo indesejado */
.others-section-area::before,
.others-section-area::after {
    display: none !important;
}

/* DESABILITADO - usando clean-search-bar.css */
/* Ajustar tabs para aparecer corretamente */
/*.others-section-area .tab-header {
    border-radius: 16px 16px 0px 0px;
    background: #F2F1F1;
    display: inline-block;
    overflow: hidden;
    border: none !important;
}*/

/* Área de filtros sem faixa ao redor - DESABILITADA - usando unified-search-bar.css */
/*.others-section-area .filters {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    border-radius: 0px 8px 8px 8px;
    background: var(--ztc-bg-bg-1);
    box-shadow: 0px 4px 30px 0px rgba(0, 0, 0, 0.09);
    padding: 32px 24px;
    position: relative;
    z-index: 1;
    margin-top: -6px;
    border: none !important; /* Remover borda */
/*}*/

/* Ajustar seção de propriedades para dar espaço correto */
.properties-section-area,
.properties1-section-area {
    padding-top: 40px !important; /* Ajustado para ficar próximo da barra de pesquisa */
    margin-top: 0px !important;
}

/* Garantir que a primeira seção após a barra de pesquisa não tenha espaço adicional */
.others-section-area + .properties-section-area,
.others-section-area + .properties1-section-area {
    padding-top: 20px !important; /* Espaçamento mínimo */
}

/* 2. REDUZIR ALTURA DAS FAIXAS NAS PÁGINAS INTERNAS (30%) */
.hero-inner-section-area,
.hero-inner-section-area-sidebar {
    position: relative;
    z-index: 2;
    padding: 112px 0 42px !important; /* Reduzido 30% de 160px/60px para 112px/42px */
}

/* Ajustar em dispositivos móveis */
@media (max-width: 767px) {
    .hero-inner-section-area,
    .hero-inner-section-area-sidebar {
        padding: 84px 0 28px !important; /* Reduzido 30% de 120px/40px para 84px/28px */
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .hero-inner-section-area,
    .hero-inner-section-area-sidebar {
        padding: 84px 0 28px !important; /* Reduzido 30% */
    }
}

/* 3. CENTRALIZAR VERTICALMENTE O TÍTULO NAS PÁGINAS INTERNAS */
.hero-inner-section-area .hero-header-area,
.hero-inner-section-area-sidebar .hero-header-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    text-align: center;
}

.hero-inner-section-area .hero-header-area h1,
.hero-inner-section-area-sidebar .hero-header-area h1 {
    color: var(--ztc-text-text-2) !important; /* Garantir cor branca */
    text-align: center;
    font-family: var(--ztc-family-font1);
    font-size: var(--ztc-font-size-font-s56);
    font-weight: var(--ztc-weight-semibold);
    line-height: 64px;
    margin: 0;
    position: relative;
    z-index: 3;
}

@media (max-width: 767px) {
    .hero-inner-section-area .hero-header-area h1,
    .hero-inner-section-area-sidebar .hero-header-area h1 {
        font-size: var(--ztc-font-size-font-s40);
        line-height: 50px;
    }
}

/* Garantir overlay escuro para legibilidade do título */
.hero-inner-section-area::after,
.hero-inner-section-area-sidebar::after {
    position: absolute;
    content: "";
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    background: #073B3A;
    opacity: 0.6;
    z-index: 1;
}

.hero-inner-section-area .hero-img1,
.hero-inner-section-area-sidebar .hero-img1 {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* 4. AJUSTES PARA RESPONSIVIDADE DA BARRA DE PESQUISA */
@media (max-width: 767px) {
    .others-section-area {
        margin-top: 20px !important; /* Espaçamento adequado em mobile */
        margin-bottom: 30px !important;
    }
    
    .others-section-area .filters {
        padding: 20px 16px;
        flex-direction: column;
        gap: 15px;
    }
    
    .others-section-area .filter-group {
        width: 100%;
    }
    
    .others-section-area .search-button {
        width: 100%;
        margin-top: 10px;
    }
    
    .others-section-area .search-button button {
        width: 100%;
        justify-content: center;
    }
}

/* 5. GARANTIR QUE TAGS DOS IMÓVEIS FIQUEM DENTRO DOS CARDS */
.property-boxarea {
    position: relative;
    overflow: hidden;
}

.property-boxarea .category-list {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.property-boxarea .category-list ul {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.property-boxarea .category-list ul li {
    display: inline-block;
    margin: 0;
}

.property-boxarea .category-list ul li a {
    color: var(--ztc-text-text-2);
    text-align: center;
    font-family: var(--ztc-family-font1);
    font-size: var(--ztc-font-size-font-s16);
    font-weight: var(--ztc-weight-medium);
    line-height: 16px;
    text-transform: capitalize;
    display: inline-block;
    padding: 8px 12px;
    transition: all 0.4s;
    background: var(--ztc-bg-bg-1);
    border-radius: 4px;
    text-decoration: none;
}

/* 6. MELHORAR CONSISTÊNCIA VISUAL */
/* DESABILITADO - usando unified-search-bar.css */
/* Garantir altura uniforme nos inputs e selects */
/*.others-section-area input[type="text"],
.others-section-area select {
    height: 52px;
    padding: 18px 14px;
    border: none;
    outline: none;
    border-radius: 8px;
    background: #F0F1F1;
    font-family: var(--ztc-family-font1);
    font-size: var(--ztc-font-size-font-s16);
    line-height: 16px;
    width: 100%;
    box-sizing: border-box;
}*/

/* DESABILITADO - usando unified-search-bar.css */
/* Estilizar botão de busca */
/*.others-section-area .search-button button {
    height: 52px;
    padding: 16px 40px;
    background: var(--ztc-bg-bg-3);
    color: var(--ztc-text-text-2);
    border: none;
    border-radius: 8px;
    font-family: var(--ztc-family-font1);
    font-size: var(--ztc-font-size-font-s14);
    font-weight: var(--ztc-weight-medium);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s;
    cursor: pointer;
}

.others-section-area .search-button button:hover {
    background: var(--ztc-bg-bg-4);
    color: var(--ztc-text-text-1);
}*/

/* 7. CORREÇÕES PARA Z-INDEX E SOBREPOSIÇÃO */
.hero-area-slider {
    position: relative;
    z-index: 1;
}

.others-section-area {
    position: relative;
    z-index: 10;
}

.properties-section-area,
.properties1-section-area {
    position: relative;
    z-index: 1;
}

/* Garantir que títulos das seções tenham espaçamento adequado */
.property-heading.space-margin60 {
    margin-bottom: 60px;
}

/* 8. REMOVER QUALQUER BORDA INDESEJADA */
.others-section-area *,
.others-section-area *::before,
.others-section-area *::after {
    box-shadow: none !important;
}

/* Garantir que apenas o conteúdo dos filtros tenha sombra */
.others-section-area .filters {
    box-shadow: 0px 4px 30px 0px rgba(0, 0, 0, 0.09) !important;
}

/* 9. AJUSTES PARA MELHOR ESPAÇAMENTO */
/* Espaçamento correto entre seções */
.about1-section-area.sp1,
.testimonial1-section-area.sp1 {
    padding: 100px 0;
}

@media (max-width: 767px) {
    .about1-section-area.sp1,
    .testimonial1-section-area.sp1 {
        padding: 60px 0;
    }
}

/* 10. CORREÇÕES ESPECÍFICAS PARA TABLETS */
@media only screen and (min-width: 768px) and (max-width: 1199px) {
    .others-section-area .filters {
        padding: 24px 20px;
        gap: 8px;
    }
    
    .others-section-area .filter-group {
        flex: 1;
        min-width: 150px;
    }
}

/* 11. GARANTIR QUE CONTEÚDO DAS PÁGINAS INTERNAS TENHA ESPAÇAMENTO ADEQUADO */
.content-section,
.team-section,
.testimonials-section {
    padding: 80px 0;
}

@media (max-width: 767px) {
    .content-section,
    .team-section,
    .testimonials-section {
        padding: 40px 0;
    }
}

/* ===========================
   REDUZIR ESPAÇAMENTO ENTRE SEÇÕES HOME
   =========================== */

/* Reduzir espaçamento entre seção de imóveis em destaque e testemunhos */
.properties1-section-area.sp2 {
    padding: 30px 0 35px !important; /* Reduzido drasticamente o espaçamento superior */
}

@media (max-width: 767px) {
    .properties1-section-area.sp2 {
        padding: 20px 0 10px !important; /* Reduzido ainda mais para mobile */
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .properties1-section-area.sp2 {
        padding: 25px 0 10px !important; /* Reduzido para tablet também */
    }
}

/* ===========================
   CORREÇÕES CARDS DE TESTEMUNHOS
   =========================== */

/* Garantir que todos os cards tenham a mesma altura e footer no fundo - APENAS NA PÁGINA DE TESTEMUNHOS */
.testemunhos-container .testimonial-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 300px !important;
    border: 1px solid #e9ecef !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    background: #fff !important;
    overflow: hidden !important;
}

.testemunhos-container .testimonial-card .testimonial-image {
    flex-shrink: 0 !important;
    max-height: 150px !important;
    overflow: hidden !important;
}

.testemunhos-container .testimonial-card .testimonial-image img {
    width: 100% !important;
    height: 150px !important;
    object-fit: cover !important;
}

.testemunhos-container .testimonial-card .card-body {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    padding: 20px !important;
}

.testemunhos-container .testimonial-card .quote-icon {
    flex-shrink: 0 !important;
    margin-bottom: 15px !important;
}

.testemunhos-container .testimonial-card .testimonial-text {
    flex-grow: 1 !important;
    margin-bottom: 20px !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #666 !important;
}

.testemunhos-container .testimonial-card .testimonial-footer {
    flex-shrink: 0 !important;
    margin-top: auto !important;
    padding-top: 15px !important;
    border-top: 1px solid #eee !important;
    min-height: 60px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

.testemunhos-container .testimonial-card .testimonial-footer .client-name {
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 5px !important;
    font-size: 16px !important;
}

.testemunhos-container .testimonial-card .testimonial-footer .location {
    color: #666 !important;
    font-size: 14px !important;
    margin-bottom: 5px !important;
    min-height: 20px !important;
}

.testemunhos-container .testimonial-card .testimonial-footer .testimonial-date {
    color: #999 !important;
    font-size: 12px !important;
    margin-bottom: 0 !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .testemunhos-container .testimonial-card {
        min-height: 280px !important;
    }
    
    .testemunhos-container .testimonial-card .testimonial-image {
        max-height: 120px !important;
    }
    
    .testemunhos-container .testimonial-card .testimonial-image img {
        height: 120px !important;
    }
    
    .testemunhos-container .testimonial-card .card-body {
        padding: 15px !important;
    }
}

/* ===========================
   CORREÇÕES DE VÍDEO - REDUZIR ESPAÇOS VAZIOS
   =========================== */

/* Reduzir drasticamente o espaçamento vazio no card de vídeo */
.details-siderbar:has(.vide-images),
.video-section-compact {
    padding: 15px !important;
    margin-bottom: 20px !important;
}

/* Reduzir espaçamento interno específico da seção de vídeo */
.details-siderbar .space32 {
    margin-bottom: 8px !important;
}

.details-siderbar .space60 {
    margin-bottom: 12px !important;
}

.video-section-compact .space32 {
    margin-bottom: 8px !important;
}

.video-section-compact .space60 {
    margin-bottom: 12px !important;
}

/* Otimizar o container do vídeo */
.vide-images {
    margin: 0 !important;
    padding: 0 !important;
}

/* Melhorar a aparência do iframe */
.vide-images .ratio {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.vide-images iframe {
    border-radius: 8px;
}

/* Título do vídeo mais compacto */
.details-siderbar h3 {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 0 !important;
}

/* Mobile - ainda mais compacto */
@media (max-width: 768px) {
    .details-siderbar:has(.vide-images),
    .video-section-compact {
        padding: 10px !important;
        margin-bottom: 15px !important;
    }
    
    .details-siderbar .space32,
    .video-section-compact .space32 {
        margin-bottom: 5px !important;
    }
    
    .details-siderbar .space60,
    .video-section-compact .space60 {
        margin-bottom: 8px !important;
    }
    
    .details-siderbar h3 {
        font-size: 18px !important;
    }
}
