/*
Theme Name: Houzez Child
Theme URI: http://www.favethemes.com/
Author: Favethemes
Author URI: http://www.favethemes.com/
Description: Houzez Child Theme - Nuvem Concept
Version: 1.0
Template: houzez
*/

@import url("../houzez/style.css");
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
    /* Paleta Nuvem Concept */
    --color-praia: #006d77;
    --color-campo: #2d6a4f;
    --color-urbano: #343a40;
    --color-terrenos: #a0522d;
    --color-gold: #c5a059;
    
    /* Tipografia */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

/* === Títulos Elegantes (Estilo Internacional) === */
h1, h2, h3, h4, h5, h6, 
.houzez-prop-card-title,
.item-title {
    font-family: var(--font-heading) !important;
    font-weight: 600;
    letter-spacing: -0.5px;
}

body {
    font-family: var(--font-body);
}

/* === Cards de Imóveis Modernos (Flat 2.0) === */
.item-wrap {
    border: none !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    border-radius: 8px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Garante que nada saia do card */
    background: #fff;
}

.item-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important;
}

/* Fix Imagens Gigantes */
.item-thumb {
    overflow: hidden;
    position: relative;
}

.item-thumb img,
.item-wrap img {
    width: 100% !important;
    height: 250px !important; /* Altura fixa para uniformizar */
    object-fit: cover !important;
    display: block !important;
}

.item-body {
    padding: 20px !important;
}

/* Labels de Status mais discretos */
.label-status {
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* === Calculadora Nuvem === */
.nuvem-calc-wrapper {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.nuvem-calc-wrapper h3 {
    margin-top: 0;
    color: var(--color-urbano);
}

.nuvem-calc-form .form-group {
    margin-bottom: 15px;
}

.nuvem-calc-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    color: #666;
}

.nuvem-calc-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-body);
}

.btn-nuvem-calc {
    background-color: var(--color-praia);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
    transition: background 0.3s;
}

.btn-nuvem-calc:hover {
    background-color: #00565e;
}

.calc-result-box {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-left: 4px solid var(--color-gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: none; /* Escondido até calcular */
}

.calc-result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}

.calc-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-praia);
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

/* === Adaptações Mobile === */
@media (max-width: 991.98px) {
    .logo-desktop img {
        max-height: 60px !important;
    }
}

/* Force Logo Size */
.logo-desktop img {
    max-height: 100px !important;
    width: auto !important;
    height: auto !important;
}

/* Align Corretores/Imoveis/Pos Vendas Ler Mais */
.elementor-image-box-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.elementor-image-box-description {
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Fix: Galeria mobile - forçar visibilidade quando lightSlider não inicializa */
@media (max-width: 991.98px) {
    /* Forçar visibilidade do container da galeria */
    .visible-on-mobile .cS-hidden,
    .visible-on-mobile #property-gallery-js {
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
        min-height: 300px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Mostrar imagens inline com scroll horizontal */
    .visible-on-mobile #property-gallery-js > div {
        display: inline-block !important;
        vertical-align: top !important;
        width: 85vw !important;
        max-width: 400px !important;
        margin-right: 10px !important;
        white-space: normal !important;
    }
    
    .visible-on-mobile #property-gallery-js img {
        width: 100% !important;
        height: auto !important;
        max-height: 400px !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    /* Esconder thumbnails do lightSlider que não inicializou */
    .visible-on-mobile .lSGallery,
    .visible-on-mobile .lSPager {
        display: none !important;
    }
}
