@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --brand: #fa5b0f;
    --brand-dark: #d94b08;
    --brand-light: #fff3ed;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --bg-body: #f4f6f9;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.14);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.25s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-body);
}

button:focus {
    outline: none !important;
}

/* ============================================================
   HEADER
   ============================================================ */
/* backdrop-filter was removed: it creates a stacking context that traps
   child dropdowns inside it, so the menu appeared behind the map. */
#header-container {
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    position: relative;
    z-index: 1200;
}

#navigation ul li ul {
    z-index: 99999 !important;
}

#header {
    padding: 14px 0;
}

#logo {
    width: 171px;
    height: 40px;
    margin-top: 0px;
}

#logo img {
    max-height: 40px;
}

/* Menu */
#navigation ul li ul {
    min-width: 280px;
    max-height: 570px;
    overflow: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border: none;
}

/* Remove margin-top gap that causes the dropdown to disappear on hover.
   Use padding-top instead — padding stays inside the element so hover events
   are never lost while crossing from the parent item to the submenu. */
#navigation ul ul {
    margin: 0 0 0 15px !important;
    padding-top: 6px !important;
}

#navigation ul ul li {
    width: auto;
    min-width: 300px;
}

#navigation.style-1 ul ul li a {
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

#navigation ul li:hover ul a, #navigation ul ul a {
    padding: 6px 16px !important;
}

#navigation.style-1 ul li a:hover {
    color: var(--brand) !important;
}

/* Header CTA button */
.header-widget .button {
    background-color: var(--brand);
    color: #fff;
    border-radius: 50px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    transition: var(--transition);
    border: 2px solid var(--brand);
}

.header-widget .button:hover {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(250,91,15,0.35);
}

/* ============================================================
   MAP
   ============================================================ */
#map-container.fullwidth-home-map {
    height: 520px;
}

.map-box .listing-img-container::before {
    display: block;
    background: none;
}

#map-reset {
    z-index: 991;
    top: -70px;
    left: 15px;
    padding: 6px 14px;
    background-color: #fff;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid var(--brand);
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

#map-reset:hover {
    background-color: var(--brand);
    color: #fff;
    transform: translateY(-1px);
}

.custom-zoom-in, .custom-zoom-out {
    border: 2px solid var(--brand);
    border-radius: 6px;
}

.custom-zoom-in:before, .custom-zoom-out:before {
    line-height: 30px;
}

.infoBox-close {
    border: 2px solid var(--brand) !important;
    border-radius: 50% !important;
    line-height: 23px !important;
    transition: var(--transition);
}

.infoBox-close:hover {
    border: 2px solid #fff !important;
}

/* ============================================================
   BUSCA / SEARCH
   ============================================================ */
.esconder {
    display: none !important;
}

.busca_inpt {
    height: 48px;
    border-radius: var(--radius-sm) !important;
    border: 1.5px solid #e2e8f0 !important;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: none !important;
}

.busca_inpt:focus {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px rgba(250,91,15,0.12) !important;
}

#busca {
    background: linear-gradient(135deg, #fff8f5 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(250,91,15,0.15);
    padding: 10px 0 5px;
}

#busca h2 {
    margin-top: 20px;
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

#busca-form {
    padding: 24px 24px 10px;
    margin-bottom: 24px;
    background-color: var(--bg-white);
    border-radius: var(--radius);
    border: none;
    border-left: 4px solid var(--brand);
    min-height: 100px;
    box-shadow: var(--shadow-md);
}

/* ============================================================
   TITLEBAR
   ============================================================ */
#titlebar {
    padding: 0;
    padding-top: 24px;
    margin-bottom: 16px;
}

#titlebar span {
    margin: 0;
    color: var(--text-muted);
    font-weight: 500;
}

#titlebar h1, #titlebar h2 {
    font-size: 26px;
    line-height: 30px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================================
   PROPERTY CARDS / BLOG POSTS
   ============================================================ */
.blog-post {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    margin-bottom: 28px;
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(250,91,15,0.15);
}

.post-img {
    display: block;
    overflow: hidden;
    border-radius: 0;
    position: relative;
}

.post-img img {
    transition: transform 0.4s ease;
    width: 100%;
}

.blog-post:hover .post-img img {
    transform: scale(1.04);
}

.post-img:before {
    display: none;
}

.post-content h3 {
    margin: 0;
    line-height: 1.3;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.post-content h3 a {
    color: var(--text-primary);
    transition: var(--transition);
}

.post-content h3 a:hover {
    color: var(--brand);
    text-decoration: none;
}

.post-content h6 {
    margin: 4px 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--brand-light);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
}

.post-meta {
    margin: 12px 0;
    padding: 0;
}

.post-meta li {
    list-style: none;
}

.post-meta li a {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    transition: var(--transition);
}

.post-meta li a:hover {
    color: var(--brand);
    text-decoration: none;
}

.post-meta li a i {
    color: var(--brand);
    margin-top: 2px;
    flex-shrink: 0;
}

.blog-page .blog-post .post-content {
    padding: 20px 24px 16px;
}

.post-descricao {
    background: #fafafa;
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 12px;
    border: 1px solid #f0f0f0;
}

.post-descricao p {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.post-descricao-small p {
    font-size: 13px;
    line-height: 18px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.post-botoes {
    margin-top: 20px;
    padding-bottom: 4px;
}

.post-botoes .button {
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    margin: 4px 3px;
    transition: var(--transition);
    letter-spacing: 0.02em;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-botoes .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    text-decoration: none;
}

.info-ilustrativa {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 10px;
    font-style: italic;
}

/* ============================================================
   SIDEBAR / CONTATOS WIDGET
   ============================================================ */
.widget h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.info-box {
    background: linear-gradient(145deg, #fff8f5, #ffffff);
    border: 1.5px solid rgba(250,91,15,0.2);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.dados-corretores {
    padding: 18px 20px 14px;
    border-top: none;
    border-bottom: 1.5px solid rgba(250,91,15,0.12);
    background-color: transparent;
}

.dados-corretores:first-child {
    border-top: none;
}

.dados-corretores h4 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 3px;
}

.dados-corretores span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: #f0f4f8;
    padding: 2px 8px;
    border-radius: 50px;
    display: inline-block;
}

.info-box .button {
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    margin: 0 16px 10px !important;
    width: calc(100% - 32px) !important;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.info-box .button.margin-top-20 {
    margin-top: 14px !important;
}

.info-box .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    opacity: 0.92;
    text-decoration: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    color: rgba(255,255,255,0.8);
    padding: 56px 0 0 0;
    margin-top: 48px;
}

.footer-top {
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 0;
}

/* Brand column */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

img.footer-logo {
    display: block;
    width: 171px;
    height: 40px;
    background: #fff;
    border-radius: var(--radius-sm);
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin: 0;
}

/* Contact cards */
.footer-contact-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 20px 22px;
    transition: var(--transition);
}

.footer-contact-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(250,91,15,0.3);
}

.footer-contact-name {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-contact-name strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.footer-creci {
    font-size: 11px;
    font-weight: 600;
    color: var(--brand);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 2px;
    display: block;
}

.footer-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), #ff8c4b);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.04em;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.footer-contact-list li i {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    font-size: 14px;
}

.footer-contact-list li .fa-phone { color: #1cb0f6; }
.footer-contact-list li .fa-whatsapp { color: #25d366; }
.footer-contact-list li .fa-envelope { color: rgba(255,255,255,0.4); }

.footer-contact-list li a {
    color: rgba(255,255,255,0.75);
    transition: var(--transition);
    text-decoration: none;
}

.footer-contact-list li a:hover {
    color: var(--brand);
    text-decoration: none;
}

/* Bottom bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.4);
    transition: var(--transition);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--brand);
}

/* legacy copyrights (fallback) */
.copyrights {
    margin-top: 0;
    padding: 16px 0;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    text-align: center;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.bg-branco {
    background-color: #FFF;
}

.mt-3p {
    margin-top: 3px;
}

.mr-5p {
    margin-right: 5px;
}

.gradient {
    background: linear-gradient(to bottom, #f7f7f7 0%, rgba(255,255,255,0.5));
    padding-bottom: 10px;
}

/* ============================================================
   BUTTON COLORS
   ============================================================ */
.btn-xs-portal {
    font-size: 13px !important;
    padding: 8px 18px !important;
    border-radius: 50px !important;
}

.btn-portal-360 {
    background-color: var(--brand) !important;
    color: #fff !important;
    border-radius: 50px !important;
    transition: var(--transition) !important;
}

.btn-portal-360:hover {
    background-color: var(--brand-dark) !important;
    transform: translateY(-1px);
}

.btn-ver360 {
    background-color: #2980B9 !important;
    color: #fff !important;
}

.btn-ver360:hover {
    background-color: #1c6a9b !important;
}

.btn-descricao {
    background-color: #1ABC9C !important;
    color: #fff !important;
}

.btn-ver-descricao {
    color: #fff !important;
    background-color: #718096 !important;
    border-color: #718096 !important;
    border-radius: 50px !important;
    transition: var(--transition) !important;
}

.btn-ver-descricao:hover {
    background-color: #4a5568 !important;
    border-color: #4a5568 !important;
}

.btn-ver-mapa {
    background-color: #0FAA5A !important;
    color: #fff !important;
}

.btn-ver-mapa:hover {
    background-color: #0a8c49 !important;
}

.facebook-color {
    background-color: #3b5998 !important;
    color: #fff !important;
}

.whatsapp-color {
    background-color: #25d366 !important;
    color: #fff !important;
}

.whatsapp-color:hover {
    background-color: #1da851 !important;
}

.telefone-color {
    background-color: #1cb0f6 !important;
    color: #fff !important;
}

.link-destaque {
    color: var(--brand) !important;
    font-weight: 700;
    background: var(--brand-light);
    padding: 6px 14px;
    border-radius: 50px;
    transition: var(--transition);
}

.link-destaque:hover {
    background-color: var(--brand);
    color: #fff !important;
    text-decoration: none;
}

/* Replaced flash animation with gentle pulse — less distracting */
.flash-button {
    animation: gentle-pulse 2.5s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(250,91,15,0); }
    50% { opacity: 0.88; box-shadow: 0 0 0 5px rgba(250,91,15,0.12); }
}

/* ============================================================
   MAP INFOBOX
   ============================================================ */
.map-box .listing-title h6 {
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 7px;
    color: var(--text-primary);
}

.map-box .listing-title {
    padding: 15px;
}

.map-box .listing-title p {
    padding: 0;
    line-height: 1.6;
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================================
   STATIC PAGES
   ============================================================ */
.page-text-content h1 {
    font-size: 30px;
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-text-content h2 {
    font-size: 25px;
    margin-top: 25px;
    margin-bottom: 10px;
}

.page-text-content h3 {
    font-size: 22px;
    margin-top: 15px;
    margin-bottom: 10px;
}

.page-text-content p {
    text-align: justify;
    margin-top: 10px;
}

.page-text-content ul {
    padding-left: 35px;
}

.page-text-content li {
    text-align: justify;
    margin-top: 10px;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
#cookie-msg {
    background-color: rgba(15,20,40,0.97) !important;
    z-index: 100;
    border-top: 2px solid var(--brand);
    font-size: 14px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {

    #logo {
        margin-top: 4px;
    }

    .header-widget {
        text-align: center;
        display: block;
        padding-bottom: 0px;
        padding-top: 15px;
        padding-left: 40px;
        padding-right: 40px;
    }

    #map-container.fullwidth-home-map {
        height: 380px;
        margin-bottom: 0;
    }

    #busca-form {
        padding: 18px;
        padding-bottom: 10px;
    }

    #titlebar {
        padding: 20px 0;
        padding-top: 32px;
        margin-bottom: 10px;
    }

    #titlebar h1, #titlebar h2 {
        font-size: 20px;
        line-height: 24px;
    }

    .post-content h3 {
        font-size: 18px;
    }

    .post-meta {
        margin: 8px 0;
        font-size: 13px;
    }

    .blog-page .blog-post .post-content {
        padding: 14px 18px;
    }

    .post-descricao {
        margin-bottom: 12px;
    }

    .post-descricao p {
        font-size: 14px;
        line-height: 1.5;
    }

    .post-botoes {
        padding: 0;
    }

    .fullwidth-mobile {
        width: 100%;
        text-align: center;
    }

    .widget h3 {
        font-size: 20px;
    }

    #footer {
        padding: 36px 0 0 0;
    }

    .footer-contact-card {
        margin-bottom: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    a.button {
        margin-bottom: 5px;
    }
}

/* ============================================================
   ADS BANNER FLY
   ============================================================ */
#ads-fly {
    text-align: center;
    background-color: #FFF;
    width: 700px;
    height: 500px;
    line-height: 0;
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-lg);
    z-index: 998;
}

#ads-fly span {
    padding: 5px 10px;
    color: #FFFFFF;
    background-color: var(--brand);
    font-size: .7em;
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
    line-height: 1;
    border-radius: 4px;
    font-weight: 600;
}

#ads-fly img {
    width: 700px;
    height: 500px;
    border-radius: var(--radius);
}

@media only screen and (max-width: 600px) {
    #ads-fly {
        width: 325px;
        height: 240px;
        top: 170px;
    }

    #ads-fly img {
        width: 325px;
        height: 240px;
    }
}
