:root {
    --gold: #c9a84c;
    --gold-light: #e2c97e;
    --gold-dark: #a07830;
    --dark: #1a1a1a;
    --dark-mid: #222222;
    --dark-card: #1e1e1e;
    --bg-section: #d4b87a;
    --text-light: #f0e8d5;
}

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-color: var(--bg-section);
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    margin: 0;
    padding: 0;
}

/* ========================
    NAVBAR
======================== */
#navbar {
    background-color: var(--dark);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: none !important;
}

.navbar-top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 8px 30px 4px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.navbar-top-bar a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
}

.navbar-top-bar .phone-link {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--gold-light);
}

.navbar-top-bar .redes {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--gold-light);
}

.navbar-logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -35px; 
    padding: 10px 0;
}

.navbar-logo-row img {
    max-height: 85px;
}

.navbar-links {
    display: flex;
    justify-content: center;
    gap: 0;
    background-color: var(--dark);
    border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.navbar-links a {
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    padding: 12px 28px;
    text-transform: uppercase;
    transition: color 0.2s, background-color 0.2s;
    font-weight: 600;
}

.navbar-links a:hover {
    color: var(--gold);
    background-color: rgba(201, 168, 76, 0.08);
}

/* Mobile navbar */
.navbar-mobile {
    background-color: var(--dark);
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 15px;
    align-items: center;
    justify-content: space-between;
}

.navbar-mobile img {
    max-height: 38px;
}

.navbar-mobile .btn-whatsapp {
    background-color: var(--gold);
    color: var(--dark);
    border: none;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

/* Offcanvas customizado */
.offcanvas {
    background-color: var(--dark) !important;
    width: 75% !important;
}

.offcanvas-header {
    background-color: var(--dark) !important;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.offcanvas-body {
    background-color: var(--dark) !important;
    padding: 20px 0 !important;
}

.offcanvas-body a {
    color: var(--text-light) !important;
    font-family: 'Cinzel', serif !important;
    text-decoration: none !important;
}

.offcanvas-body a:hover {
    color: var(--gold) !important;
}

/* ========================
    HERO / TOPO
======================== */
#home {
    padding-top: 180px;
}

.img-topo {
    width: 100%;
    object-fit: cover;
}

/* ========================
    BUSCA
======================== */
#busca-wrapper {
    background-color: var(--dark);
    padding: 18px 30px;
}

#busca-wrapper form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
}

.busca-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.busca-field label {
    color: var(--gold-light);
    font-family: 'Cinzel', serif;
    font-size: 0.62rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.busca-field select,
.busca-field input {
    background-color: #2a2a2a;
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: var(--text-light);
    padding: 8px 14px;
    font-size: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    border-radius: 3px;
    min-width: 160px;
    appearance: none;
    outline: none;
}

.busca-field select:focus,
.busca-field input:focus {
    border-color: var(--gold);
}

.btn-buscar {
    background-color: var(--gold);
    color: var(--dark);
    border: none;
    padding: 8px 28px;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 2px;
    font-weight: 700;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-transform: uppercase;
    align-self: flex-end;
}

.btn-imovel {
    background-color: var(--gold);
    color: var(--dark);
    border: none;
    padding: 8px 28px;
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 2px;
    font-weight: 700;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-transform: uppercase;
    align-self: flex-end;
}

.btn-buscar:hover {
    background-color: var(--gold-light);
}

.btn-imovel:hover {
    background-color: var(--gold-light);
}

/* ========================
    SECTION TITLES
======================== */
.section-title {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    letter-spacing: 5px;
    color: var(--dark);
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 300px;
    height: 2px;
    background: var(--gold-dark);
    margin: 10px auto 0;
}

/* ========================
    DESTAQUE SECTION
======================== */
#destaque {
    background-color: var(--bg-section);
    padding: 60px 0;
}

.card-imovel {
    background-color: var(--dark-card);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.card-imovel:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ========================
    CARD IMÓVEL - IMAGEM
======================== */
/* Remove o antigo .card-img-wrap .slideshow e o .carousel-inner img com height fixo */

.card-img-wrap .carousel,
.card-img-wrap .carousel-inner,
.card-img-wrap .carousel-item {
    width: 100%;
    height: 100%;
}

.card-img-wrap .carousel-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.card-img-wrap .carousel-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.4s ease;
}

.card-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background-color: var(--dark);
}

/* .card-img-wrap .slideshow {
    width: 100%;
    height: 100%;
} */

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.4s ease;
}

/* .card-img-wrap .carousel-inner img {
    height: 220px;
    object-fit: cover;
} */

.card-imovel:hover .card-img-wrap img {
    transform: scale(1.04);
}

.card-tipo {
    background-color: var(--dark);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    letter-spacing: 2px;
    padding: 6px 12px;
    text-transform: uppercase;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

.card-status {
    background-color: #7e372f;
    color: white;
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    letter-spacing: 2px;
    padding: 6px 12px;
    text-transform: uppercase;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

.card-titulo {
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 400;
    margin-bottom: 6px;
    line-height: 1.4;
}

.card-valor {
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.btn-info-imovel {
    background-color: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.2s;
    display: inline-block;
}

.btn-info-imovel:hover {
    background-color: var(--gold);
    color: var(--dark);
}

.badge-lancamento {
    background-color: #c0392b;
    color: white;
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    text-transform: uppercase;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

/* ========================
    PAGINAÇÃO
======================== */
.pagination .page-link {
    background-color: var(--dark);
    border-color: rgba(201, 168, 76, 0.3);
    color: var(--gold-light);
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
}

.pagination .page-item.active .page-link {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
}

.pagination .page-link:hover {
    background-color: rgba(201, 168, 76, 0.15);
    color: var(--gold);
}

/* ========================
    QUEM SOMOS
======================== */
#sobre {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    color: var(--text-light);
    padding-left: 3rem;   /* desktop: padding maior */
    padding-right: 3rem;
}

.sobre-content {
    position: relative;
    z-index: 1;
    padding: 70px 20px;
}

.sobre-logo {
    max-height: 200px;
    margin-bottom: 25px;
    filter: drop-shadow(0px 4px 12px rgba(0, 0, 0, 0.50));
}

.sobre-text {
    font-size: 0.90rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.88);
    margin: 0 auto;
}

/* ========================
    FALE CONOSCO
======================== */
#contato {
    background-color: var(--bg-section);
    padding: 60px 20px;
}

.contato-card {
    background-color: var(--dark);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 4px;
    padding: 35px 25px;
    text-align: center;
    color: var(--text-light);
    height: 100%;
}

.contato-card h5 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.contato-card p,
.contato-card a {
    font-size: 0.82rem;
    color: rgba(240, 232, 213, 0.8);
    line-height: 1.8;
}

.contato-card a {
    color: var(--gold-light);
    text-decoration: none;
}

.contato-card a:hover {
    color: var(--gold);
}

.contato-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 15px;
    display: block;
}

/* ========================
    FOOTER RODAPÉ
======================== */
#rodape {
    background-color: var(--dark) !important;
}

/* ========================
    WHATSAPP FLOAT
======================== */
.float {
    position: fixed;
    width: 54px;
    height: 54px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 1.8rem;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* ========================
    COOKIE BANNER
======================== */
#cookie-banner {
    display: none;
    /* escondido por padrão */
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 360px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 20px;
    font-size: 14px;
    z-index: 9999;
    animation: cookieFade .5s ease;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#cookie-banner button {
    background: #C2B197;
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 5px;
    cursor: pointer;
}

#cookie-banner button:hover {
    opacity: 0.9;
}

#cookie-banner a {
    color: #C2B197;
    text-decoration: none;
}

@keyframes cookieFade {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========================
    RESPONSIVE
======================== */

/* DESKTOP — acima de 992px */
@media (min-width: 992px) {
    #navbar {
        display: flex !important;
        flex-direction: column;
    }

    .navbar-mobile {
        display: none !important;
    }

    .img-topo.d-lg-block {
        display: block !important;
    }

    .img-topo.d-lg-none {
        display: none !important;
    }

    #home {
        padding-top: 170px;
    }
}

/* MOBILE — até 991px */
@media (max-width: 991px) {
    #navbar {
        display: none !important;
        position: static !important;
    }

    .navbar-mobile {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        background-color: var(--dark) !important;
        padding: 10px 15px !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .img-topo.d-lg-block {
        display: none !important;
    }

    .img-topo.d-lg-none {
        display: block !important;
    }

    #home {
        padding-top: 110px;
    }
}

@media (max-width: 768px) {
    #sobre {
        padding-left: 0.75rem;  /* desktop: padding maior */
        padding-right: 0.75rem;
    }
    
    #busca-wrapper form {
        flex-direction: column;
        align-items: stretch;
    }

    .busca-field select,
    .busca-field input {
        min-width: 100% !important;
        width: 100%;
    }

    .btn-buscar {
        width: 100%;
        align-self: stretch;
    }
    
    .btn-imovel {
        width: 100%;
        align-self: stretch;
    }

    .section-title {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.2rem;
        letter-spacing: 2px;
        margin-bottom: 30px;
    }

    #busca-wrapper {
        padding: 12px 15px;
    }

    .busca-field label {
        font-size: 0.58rem;
    }

    .busca-field select,
    .busca-field input {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .btn-buscar {
        padding: 6px 20px;
        font-size: 0.68rem;
    }
    
    .btn-imovel {
        padding: 6px 20px;
        font-size: 0.68rem;
    }

    .contato-card {
        padding: 25px 15px;
    }

    .sobre-logo {
        max-height: 80px;
    }

    .sobre-text {
        font-size: 0.78rem;
    }

    /* Imagens um pouco mais largas em telas pequenas */
    .card-img-wrap {
        aspect-ratio: 3 / 2;
    }

    #cookie-banner {
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
        bottom: 10px;
    }
}