:root {
    --navy: #0a1628;
    --navy-light: #1a2d4a;
    --gold: #c9a84c;
    --gold-light: #e8d5a3;
    --gray-light: #f5f5f7;
    --white: #ffffff;
}

* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: #333; padding-top: 76px; }
h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; }
.text-gold { color: var(--gold) !important; }
.bg-light-gray { background: var(--gray-light); }

#mainNav { background: rgba(10, 22, 40, 0.95); backdrop-filter: blur(10px); transition: all .3s; }
#mainNav .nav-link { color: rgba(255,255,255,.85) !important; font-weight: 500; padding: .5rem 1rem !important; }
#mainNav .nav-link:hover { color: var(--gold) !important; }
.btn-gold { background: var(--gold); color: var(--navy) !important; border: none; font-weight: 600; padding: .6rem 1.5rem; border-radius: 4px; transition: all .3s; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline-gold { border: 2px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }

/* Shared photo-header treatment (Início + páginas internas) */
.photo-header-bg {
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
}
.photo-header-overlay {
    background: linear-gradient(90deg, rgba(10,22,40,.48) 0%, rgba(10,22,40,.18) 50%, rgba(10,22,40,.08) 100%);
}

.hero-section { position: relative; margin-top: -76px; }
.hero-slide {
    height: 85vh;
    min-height: 520px;
    width: 100%;
    background-size: cover;
    background-position: center 40%;
}
.hero-bg {
    position: relative;
    background-color: var(--navy);
    overflow: hidden;
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(135deg, rgba(10, 22, 40, 0.55), rgba(26, 45, 74, 0.28)),
        url('/images/hero-premium.jpg');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    opacity: 1;
    transition: opacity 0.35s ease;
}
.has-js .hero-bg:not(.is-photo-ready)::before {
    opacity: 0;
}
.hero-overlay {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: inherit;
    background: linear-gradient(90deg, rgba(10,22,40,.48) 0%, rgba(10,22,40,.18) 50%, rgba(10,22,40,.08) 100%);
    display: flex;
    align-items: center;
    padding: 5rem 0 4rem;
}
.hero-title { color: #fff; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; text-shadow: 0 2px 18px rgba(0,0,0,.35); margin-bottom: .35rem; }
.hero-tagline {
    color: var(--gold-light);
    font-size: calc(clamp(2rem, 5vw, 3.5rem) * 0.7);
    font-family: 'Playfair Display', serif;
    line-height: 1.25;
    margin-bottom: 0;
    text-shadow: 0 1px 10px rgba(0,0,0,.35);
}
.hero-subtitle { color: var(--gold-light); font-size: 1.25rem; text-shadow: 0 1px 10px rgba(0,0,0,.35); }

.brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    white-space: normal;
}
.brand-line { display: inline-flex; align-items: center; }
.brand-tagline {
    display: block;
    font-size: 0.7em;
    font-weight: 400;
    color: var(--gold-light);
    margin-top: .15rem;
    max-width: none;
    width: max-content;
    white-space: nowrap;
    line-height: 1.2;
}
.brand-tagline-footer {
    color: var(--gold-light);
    font-size: 0.7em;
    margin: 0;
    line-height: 1.3;
}
.brand-tagline-page {
    color: var(--navy-light);
    font-size: 0.7em;
    font-family: 'Playfair Display', serif;
    margin: 0;
}

.sobre-montagem {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: none;
}

.search-box { position: relative; margin-top: -60px; z-index: 10; }
.search-box .container { background: #fff; border-radius: 12px; padding: 2rem; box-shadow: 0 20px 60px rgba(0,0,0,.15); }

.section-padding { padding: 2rem 0; }
/* Espaço após o search-box sobreposto ao hero */
.section-destaques { padding: 3rem 0 2rem; }
.section-tag { color: var(--gold); text-transform: uppercase; letter-spacing: 3px; font-size: .85rem; font-weight: 600; }
.section-title { font-size: 2.5rem; color: var(--navy); }

.imovel-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.08); transition: all .4s; height: 100%; }
.imovel-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,.15); }
.imovel-card-img { position: relative; height: 220px; overflow: hidden; }
.imovel-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.imovel-card:hover .imovel-card-img img { transform: scale(1.08); }
.badge-destaque { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--navy); padding: 4px 12px; border-radius: 4px; font-size: .75rem; font-weight: 700; }
.badge-status { position: absolute; top: 12px; right: 12px; background: var(--navy); color: #fff; padding: 4px 12px; border-radius: 4px; font-size: .75rem; }
.imovel-card-body { padding: 1.5rem; }
.imovel-tipo { color: var(--gold); font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; }
.imovel-card h5 a { color: var(--navy); text-decoration: none; }
.imovel-local { color: #888; font-size: .9rem; }
.imovel-features { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #666; margin: .75rem 0; }
.imovel-features .text-gold, .imovel-features i { color: var(--gold) !important; }
.imovel-preco { color: var(--navy); font-weight: 700; font-size: 1.1rem; }

.page-header {
    position: relative;
    margin-top: -76px;
    text-align: center;
    color: #fff;
    background-color: var(--navy);
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(135deg, rgba(10, 22, 40, 0.68), rgba(26, 45, 74, 0.40)),
        url('/images/hero-goiania-aerea.jpg');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    opacity: 1;
    transition: opacity 0.35s ease;
}
.has-js .page-header:not(.is-photo-ready)::before {
    opacity: 0;
}
.page-header-overlay {
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, rgba(10,22,40,.58) 0%, rgba(10,22,40,.28) 50%, rgba(10,22,40,.16) 100%);
    padding: 8rem 0 4rem;
}
.page-header h1 {
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
    margin-bottom: .35rem;
}
.page-header p {
    color: var(--gold-light);
    text-shadow: 0 1px 10px rgba(0,0,0,.35);
    margin-bottom: 0;
}
.filter-card { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 20px rgba(0,0,0,.08); position: sticky; top: 90px; }
.imovel-list-item { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.08); }

.detail-features .feature-item { padding: 1rem; background: var(--gray-light); border-radius: 8px; text-align: center; height: 100%; }
.detail-features .feature-icon { color: var(--gold); font-size: 1.35rem; margin-bottom: .35rem; display: block; }
.detail-features .feature-label { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: #888; }
.detail-features .feature-value { color: var(--navy); font-weight: 600; margin-top: .2rem; }

.plantas-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: .75rem 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid rgba(0,0,0,.08);
    padding-bottom: .35rem;
}
.plantas-tab {
    appearance: none;
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    color: #888;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: .45rem .15rem .7rem;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}
.plantas-tab:hover { color: var(--navy); }
.plantas-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}
.planta-panel { display: none; }
.planta-panel.active { display: block; }
.planta-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
.planta-split-img {
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    min-height: 280px;
}
.planta-split-img .planta-card-img { height: 100%; min-height: 280px; }
.planta-split-img img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: contain;
    background: #f8f8f8;
}
.planta-split-body { padding: .25rem 0; }
.planta-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.08); height: 100%; }
.planta-card-plain { box-shadow: none; background: transparent; }
.planta-card-img { display: block; background: var(--gray-light); height: 100%; }
.planta-card-img img { width: 100%; height: 100%; min-height: 280px; object-fit: contain; background: #f8f8f8; }
.planta-card-body { padding: 1.5rem 0; }
.planta-indice { color: var(--gold); text-transform: uppercase; letter-spacing: 2px; font-size: .75rem; font-weight: 600; margin: 0; }
.planta-tipo { color: var(--gold); font-size: 1.35rem; margin-bottom: .35rem; }
.planta-desc { color: #666; }
.planta-specs { display: flex; flex-direction: column; gap: .55rem; margin-top: 1rem; }
.planta-spec { display: flex; gap: .65rem; align-items: flex-start; color: #444; font-size: .95rem; }
.planta-spec i { color: var(--gold); margin-top: .2rem; width: 1.1rem; text-align: center; }
.planta-itens { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .65rem 1rem; }
.planta-itens-stack { grid-template-columns: 1fr; }
.planta-itens li { display: flex; gap: .55rem; align-items: flex-start; color: #444; font-size: .92rem; }
.planta-itens i { color: var(--gold); margin-top: .15rem; width: 1.1rem; text-align: center; }
@media (max-width: 767.98px) {
    .planta-split { grid-template-columns: 1fr; }
    .plantas-tabs { gap: .5rem 1rem; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
    .plantas-tab { white-space: nowrap; }
}

.testimonials-section { background: var(--navy); }
.testimonial-card { background: rgba(255,255,255,.05); border: 1px solid rgba(201,168,76,.2); border-radius: 12px; padding: 2rem; color: #fff; }
.contact-quick-card { background: #fff; border-radius: 12px; padding: 2.5rem; box-shadow: 0 10px 40px rgba(0,0,0,.1); }

.footer-dark { background: var(--navy); color: #fff; }
.footer-links { list-style: none; padding: 0; }
.footer-links a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.text-light-muted { color: rgba(255,255,255,.6); }

.whatsapp-float { position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; background: #25d366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 4px 20px rgba(37,211,102,.5); z-index: 9999; transition: transform .3s; text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

.detail-gallery img { border-radius: 8px; cursor: pointer; }
.detail-price { font-size: 2rem; color: var(--gold); font-weight: 700; }
.map-container { border-radius: 12px; overflow: hidden; height: 350px; background: var(--gray-light); }
.mapa-endereco { color: #555; font-size: .95rem; }

.admin-sidebar { background: var(--navy); min-height: 100vh; padding: 2rem 0; }
.admin-sidebar a { color: rgba(255,255,255,.8); text-decoration: none; display: block; padding: .75rem 1.5rem; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(201,168,76,.2); color: var(--gold); }
.admin-content { padding: 2rem; }
.stat-card { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 4px 15px rgba(0,0,0,.08); border-left: 4px solid var(--gold); }
.stat-card h3 { font-size: 2rem; color: var(--navy); margin: 0; }

/* Overlay AJAX admin — bloqueia cliques durante POST */
.admin-ajax-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(10, 22, 40, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}
.admin-ajax-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
body.admin-ajax-busy {
    overflow: hidden;
}
.admin-ajax-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(201, 168, 76, 0.25);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: admin-ajax-spin .7s linear infinite;
}
.admin-ajax-label {
    margin: 0;
    color: var(--gold-light);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .04em;
}
@keyframes admin-ajax-spin {
    to { transform: rotate(360deg); }
}

/* Zebrado por item admin (dados + comentários como um bloco) */
.table > tbody > tr.admin-zebra-odd > * {
    --bs-table-bg: #ffffff;
    --bs-table-bg-type: #ffffff;
    background-color: #ffffff;
}
.table > tbody > tr.admin-zebra-even > * {
    --bs-table-bg: #f0f1f4;
    --bs-table-bg-type: #f0f1f4;
    background-color: #f0f1f4;
}
.table-hover > tbody > tr.admin-zebra-odd:hover > * {
    --bs-table-bg-state: #fafbfc;
}
.table-hover > tbody > tr.admin-zebra-even:hover > * {
    --bs-table-bg-state: #e8eaee;
}

/* Linha de comentários sob cada item (leads / agendamentos) */
.admin-comentarios-row > .admin-comentarios-cell {
    border-top: 0;
    padding: .45rem 1rem .55rem;
    vertical-align: middle;
}
.admin-comentarios-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .65rem;
    width: 100%;
}
.admin-comentarios-form .form-label {
    flex: 0 0 auto;
    font-size: .8rem;
    font-weight: 600;
    color: #445;
    margin-bottom: 0;
}
.admin-comentarios-form textarea {
    flex: 1 1 auto;
    min-width: 0;
    resize: vertical;
}
.admin-comentarios-form .btn {
    flex: 0 0 auto;
}

.admin-access-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.55);
    color: var(--gold);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all .25s;
}
.admin-access-btn:hover { background: rgba(201, 168, 76, 0.15); color: var(--gold-light); }
.detail-cover img { border-radius: 12px; }

.telefone-img-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    gap: .15rem;
}
.telefone-img {
    height: 22px;
    width: auto;
    vertical-align: middle;
}
.telefone-img-footer {
    height: 20px;
}
.whatsapp-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #25d366;
    color: #fff !important;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform .2s;
}
.whatsapp-inline:hover { transform: scale(1.08); color: #fff !important; }
.contato-email-link {
    color: rgba(255,255,255,.6);
    text-decoration: none;
}
.contato-email-link:hover { color: var(--gold); }
.contato-email-link-dark {
    color: #333;
}
.contato-email-link-dark:hover { color: var(--gold); }

@media (max-width: 768px) {
    .search-box { margin-top: -24px; }
    .search-box .container { border-radius: 12px; padding: 1.25rem; }
    .hero-slide {
        height: auto;
        min-height: 72vh;
        min-height: 72dvh;
    }
    .hero-bg::before,
    .page-header::before {
        background-position: 65% center;
    }
    .hero-overlay {
        background: linear-gradient(180deg, rgba(10,22,40,.62) 0%, rgba(10,22,40,.45) 55%, rgba(10,22,40,.55) 100%);
        padding: 6.5rem 0 4.5rem;
        align-items: flex-end;
    }
    .page-header-overlay {
        background: linear-gradient(180deg, rgba(10,22,40,.72) 0%, rgba(10,22,40,.55) 55%, rgba(10,22,40,.65) 100%);
        padding: 6.5rem 0 3rem;
    }
    .hero-title { font-size: clamp(1.75rem, 8vw, 2.4rem); line-height: 1.15; }
    .hero-subtitle { font-size: 1.05rem; margin-bottom: .25rem; }
    .section-destaques { padding: 1.75rem 0 1.5rem; }
}
