/* ============================================================
   BASE E VARIÁVEIS
   ============================================================ */
:root {
    --primary: #1b2a4a;
    --accent: #d4af37;
    --gray-50: #f8f9fa;
    --gray-400: #6c757d;
    --gray-500: #adb5bd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #fff;
    color: #212529;
    line-height: 1.6;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
    background: var(--primary);
    color: #fff;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- UPDATED LOGO TEXT CLASSES --- */
.logo-text {
    display: inline-block;
    white-space: nowrap; /* Prevents text from breaking onto separate lines */
}
.logo .brand-suffix { 
    color: var(--accent); /* Only applies the gold accent color to "CImóveis" */
}
/* --------------------------------- */

.logo img { height: clamp(40px, 8vw, 64px); width: auto; }

.btn-whatsapp {
    background: #25D366;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.btn-whatsapp:hover { transform: scale(1.05); }
.btn-whatsapp svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.hamburger-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: 0.2s;
}
.hamburger-btn:hover { background: rgba(255,255,255,0.18); }
.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

/* ============================================================
   MENU LATERAL (DRAWER)
   ============================================================ */
body.drawer-open { overflow: hidden; }

.side-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 200;
}
.side-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.side-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 88vw);
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 201;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.side-drawer.open {
    transform: translateX(0);
}
.side-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem;
    background: var(--primary);
    color: #fff;
    flex-shrink: 0;
}
.side-drawer-title {
    font-size: 1.2rem;
    font-weight: 700;
}
.side-drawer-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.3rem;
}
.side-drawer-body {
    padding: 1rem;
}
.side-drawer-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: var(--gray-50);
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    text-align: left;
}
.side-drawer-menu-item-arrow {
    transition: transform 0.25s ease;
}
.side-drawer-menu-item[aria-expanded="true"] .side-drawer-menu-item-arrow {
    transform: rotate(90deg);
}
.side-drawer-accordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.side-drawer-accordion.open {
    max-height: 700px;
}
.side-drawer-accordion-intro {
    margin: 1rem 0 0.5rem;
    color: #444;
    font-size: 0.9rem;
}
.side-drawer-requirements {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
.side-drawer-requirements li {
    padding: 0.5rem 0.5rem 0.5rem 1.6rem;
    position: relative;
    font-size: 0.9rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}
.side-drawer-requirements li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}
.side-drawer-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #25D366;
    color: #fff;
    padding: 0.7rem 1rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.5rem;
}
.side-drawer-whatsapp-btn:hover { background: #1ebe5e; }
.side-drawer-whatsapp-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* ============================================================
   MAIN
   ============================================================ */
main { max-width: 1280px; margin: 0 auto; padding: 1.5rem; }

/* ============================================================
   SEÇÃO E HERO
   ============================================================ */
.page-section { margin-bottom: 2rem; }
.hidden { display: none !important; }

/* Wrapper de seção genérico (usado em index.php e nas listagens do front-page.php) */
.section { padding: 1rem 0; }
.section-title {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

/* Botão genérico usado no "Voltar" (single-imovel.php e front-page.php) */
.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.2s;
}
.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.hero {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, #2a5a7a 100%);
    color: #fff;
    border-radius: 1.5rem;
    margin-bottom: 2rem;
}
.hero h1 {
    font-size: clamp(1.4rem, 5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    overflow-wrap: break-word;
    text-wrap: balance;
}
.hero .subtitle {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1.5rem;
    overflow-wrap: break-word;
}

/* Busca — input e botão sempre lado a lado, também no celular (evita ficar alto) */
.search-form {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}
.search-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 2rem;
    font-size: 1rem;
    outline: none;
    text-align: left;
}
.search-btn {
    flex: 0 0 auto;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.8rem 1.75rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}
.search-btn:hover { background: #b8943e; }

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 50;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}
.autocomplete-dropdown.active { display: block; }
.autocomplete-item {
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    color: #333;
}
.autocomplete-item:hover { background: #f0f0f0; }

/* ============================================================
   FILTROS
   ============================================================ */
.filter-toggle-area {
    text-align: center;
    margin: 1rem 0;
}
.filter-toggle-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.6rem 2rem;
    border-radius: 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}
.filter-toggle-btn:hover { background: #2a5a7a; }

.filter-panel {
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.filter-panel.open { display: block; }

.filter-category {
    margin-bottom: 1.2rem;
}
.filter-category h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.3rem;
}
.filter-subcategory h4 {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin: 0.5rem 0 0.3rem;
}
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.filter-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 0.4rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.15s;
}
.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.filter-btn:hover { background: #e9ecef; }
.filter-btn.active:hover { background: #2a5a7a; }

.clear-filters-btn {
    background: transparent;
    border: 1px dashed #999;
    color: #666;
    padding: 0.4rem 1.5rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.9rem;
}
.clear-filters-btn:hover { background: #eee; }

/* ============================================================
   ESTADO VAZIO (sem imóveis / sem resultado de filtro)
   ============================================================ */
.no-properties {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
    background: #f8f9fa;
    border-radius: 1rem;
    grid-column: 1 / -1;
}
.no-properties span { font-size: 3rem; display: block; }

/* ============================================================
   CARDS DE IMÓVEIS
   ============================================================ */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.property-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.25s, transform 0.25s;
    border: none;
    cursor: default;
}
.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
@keyframes propertyCardHighlight {
    0% { box-shadow: 0 0 0 3px var(--accent); }
    100% { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
}
.property-card-highlight {
    animation: propertyCardHighlight 1.6s ease;
}
.card-no-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    color: #999;
    font-size: 0.85rem;
    background: #f0f0f0;
}
.property-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.property-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #f0f0f0;
}
.property-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.property-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}
.property-watermark span {
    color: rgba(255,255,255,0.55);
    font-weight: 700;
    letter-spacing: 0.03em;
    transform: rotate(-22deg);
    text-shadow: 0 1px 3px rgba(0,0,0,0.35);
    white-space: nowrap;
}
.property-card-image .property-watermark span {
    font-size: 0.85rem;
}
.gallery .property-watermark span {
    font-size: clamp(1.1rem, 4vw, 2.2rem);
}
.card-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}
.card-gallery-img {
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.card-gallery-img.is-active {
    opacity: 1;
    pointer-events: auto;
}
.card-gallery-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.card-gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: 0.2s;
}
.card-gallery-dot.active { background: #fff; transform: scale(1.2); }

.property-card-body {
    padding: 1rem;
}
.property-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1b2a4a;
    font-weight: 600;
}
.property-title {
    font-size: 1.1rem;
    margin: 0.2rem 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.property-location {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin: 0.2rem 0;
}
.property-features {
    font-size: 0.85rem;
    color: #555;
    margin: 0.4rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.6rem;
}
.property-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.3rem 0;
}
.price-sale, .price-rent {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}
.price-rent small {
    font-size: 0.7rem;
    font-weight: 400;
    color: #666;
}
.property-ref {
    font-size: 0.75rem;
    color: #999;
}

/* ============================================================
   BOTÃO CARREGAR MAIS
   ============================================================ */
.btn-load-more {
    display: block;
    margin: 1.5rem auto;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}
.btn-load-more:hover { background: #2a5a7a; }
.btn-load-more.hidden { display: none; }

/* ============================================================
   PÁGINA DE DETALHE — GALERIA
   ============================================================ */
.gallery {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #f0f0f0;
}
.gallery .gallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.gallery .gallery-img.is-active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    z-index: 2;
}
.gallery-nav:hover { background: rgba(0,0,0,0.7); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: 0.2s;
}
.gallery-dot.active { background: #fff; transform: scale(1.2); }

@media (max-width: 768px) {
    .gallery { height: 340px; }
}
@media (max-width: 480px) {
    .gallery { height: 260px; }
}

.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}
@media (max-width: 768px) {
    .detail-layout { grid-template-columns: 1fr; }
}

.detail-ref {
    color: #999;
    font-size: 0.9rem;
}
.detail-title {
    font-size: 1.8rem;
    margin: 0.2rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.property-type-badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--primary);
    background: var(--gray-50);
    border: 1px solid #e9ecef;
    padding: 0.2rem 0.7rem;
    border-radius: 1rem;
    margin-bottom: 0.3rem;
}
.detail-address {
    color: var(--gray-400);
    margin-bottom: 0.5rem;
}

/* ============================================================
   COMPARTILHAR
   ============================================================ */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.6rem 0 1rem;
    flex-wrap: wrap;
}
.share-label {
    font-size: 0.85rem;
    color: var(--gray-400);
    font-weight: 600;
}
.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    flex-shrink: 0;
}
.share-btn svg { width: 18px; height: 18px; fill: #fff; }
.share-btn-whatsapp { background: #25D366; }
.share-btn-whatsapp:hover { background: #1ebe5e; }
.share-btn-facebook { background: #1877F2; }
.share-btn-facebook:hover { background: #1461cc; }
.share-btn-copy { background: var(--primary); }
.share-btn-copy:hover { background: #2a5a7a; }
.share-btn-copy.copied::after {
    content: "Link copiado!";
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 0.3rem;
    white-space: nowrap;
}

/* ============================================================
   CALCULADORA DE FINANCIAMENTO
   ============================================================ */
.financing-section h2 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}
.financing-calculator {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    background: var(--gray-50);
    padding: 1.2rem;
    border-radius: 1rem;
    border: 1px solid #e9ecef;
}
.financing-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.financing-field label {
    font-size: 0.78rem;
    color: var(--gray-400);
    font-weight: 600;
}
.financing-field input {
    padding: 0.6rem 0.7rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    width: 100%;
}
.financing-btn {
    grid-column: 1 / -1;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.7rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.financing-btn:hover { background: #2a5a7a; }
.financing-result {
    grid-column: 1 / -1;
    margin-top: 0.2rem;
}
.financing-result-main {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.financing-result-detail {
    font-size: 0.82rem;
    color: #555;
    margin-top: 0.1rem;
}
.financing-error {
    color: #c0392b;
    font-size: 0.85rem;
}
.financing-disclaimer {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.7rem;
    font-style: italic;
}
.detail-price {
    margin: 0.5rem 0;
}
.detail-price-sale,
.detail-price-rent {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0 0.2rem;
}
.detail-price-rent small {
    font-size: 0.8rem;
    font-weight: 400;
    color: #666;
}
.detail-condominio,
.detail-iptu {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--gray-50);
    padding: 0.2rem 0.8rem;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}
.features-grid-detail {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
}
.feature-item {
    background: #f1f3f5;
    padding: 0.5rem;
    text-align: center;
    border-radius: 0.5rem;
}
.feature-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}
.feature-label {
    font-size: 0.7rem;
    color: #666;
}
.description {
    margin: 1.5rem 0;
}
.description h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}
.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.amenity-tag {
    background: #e9ecef;
    padding: 0.2rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.85rem;
}
.highlights-list {
    list-style: none;
    padding: 0;
}
.highlights-list li {
    margin: 0.3rem 0;
}

.map-container {
    margin: 1rem 0;
    border-radius: 1rem;
    overflow: hidden;
    background: #f1f3f5;
    min-height: 250px;
}
.map-embed-shell {
    width: 100%;
    height: 250px;
}
.map-embed-shell iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.map-embed-shell-clean {
    border-radius: 1rem;
    overflow: hidden;
}
.location-card-empty {
    padding: 2rem;
    text-align: center;
    color: #888;
}

/* ============================================================
   AGENT CARD
   ============================================================ */
.agent-card {
    background: #f8f9fa;
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}
.agent-card p { margin: 0.3rem 0; }
.agent-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 0.5rem;
    border: 3px solid var(--accent);
    flex-shrink: 0;
}
.agent-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.agent-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}
.agent-creci {
    color: #666;
    font-size: 0.9rem;
}
.agent-slogan {
    color: var(--accent);
    font-weight: 600;
    margin: 0.5rem 0;
}
.whatsapp-link { margin-top: 0.8rem; }
.whatsapp-link a {
    display: inline-block;
    background: #25D366;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}
.whatsapp-link a:hover { background: #1ebe5e; }
.visit-link { margin-top: 0.6rem; }
.visit-btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}
.visit-btn:hover { background: #2a5a7a; }

/* ============================================================
   PÁGINAS (Quem Somos e genéricas)
   ============================================================ */
.page-content {
    max-width: 760px;
    margin: 0 auto 2rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}
.page-content p { margin-bottom: 1rem; }

.consultation-cta {
    max-width: 700px;
    margin: 2rem auto;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, #2a5a7a 100%);
    color: #fff;
    padding: 2.5rem 1.5rem;
    border-radius: 1.5rem;
}
.consultation-cta h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.consultation-cta p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.2rem;
}
.consultation-btn {
    display: inline-block;
    background: var(--accent);
    color: #1b2a4a;
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
}
.consultation-btn:hover { background: #b8943e; color: #fff; }

.testimonials-section {
    max-width: 1000px;
    margin: 2.5rem auto 0;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.testimonial-card {
    background: var(--gray-50);
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    padding: 1.5rem;
}
.testimonial-stars {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}
.testimonial-text {
    font-size: 0.95rem;
    color: #333;
    font-style: italic;
    margin-bottom: 0.8rem;
}
.testimonial-name {
    font-size: 0.85rem;
    color: var(--gray-400);
    font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--primary);
    color: #fff;
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: 2rem;
}
.footer-content { text-align: center; }
.footer-brand {
    font-size: 1.6rem;
    font-weight: 700;
}
.footer-brand span:first-child { color: #fff; }
.footer-brand span:last-child { color: var(--accent); }
.footer-slogan {
    font-size: 1.2rem;
    color: var(--accent);
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    display: inline-block;
    margin: 0.5rem 0 1rem;
}
.footer-about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
    text-align: left;
}
.footer-about-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.footer-about-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
    flex-shrink: 0;
}
.footer-about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.footer-about-text {
    text-align: left;
    max-width: 500px;
    color: #fff;
}
.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}
.footer-social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
}
.footer-social-link:hover {
    background: var(--accent);
    transform: scale(1.05);
}
.footer-social-link svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

/* ============================================================
   ACESSIBILIDADE — foco visível e movimento reduzido
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.gallery-dot:focus-visible,
.card-gallery-dot:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   RESPONSIVIDADE (CELULAR)
   ============================================================ */
@media (max-width: 480px) {
    .header-container {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    .logo {
        font-size: 1.05rem;
        gap: 0.4rem;
        min-width: 0;
        flex-shrink: 1;
        overflow: hidden;
    }
    .logo img {
        height: 34px;
        flex-shrink: 0;
    }
    .header-actions {
        flex-shrink: 0;
        gap: 0.5rem;
    }
    .btn-whatsapp,
    .hamburger-btn {
        width: 38px;
        height: 38px;
    }
    .btn-whatsapp svg {
        width: 21px;
        height: 21px;
    }
    .hero {
        padding: 1.5rem 1rem;
    }
    .hero h1 {
        font-size: 1.35rem !important;
    }
    .hero .subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 1rem;
    }
    .search-form {
        gap: 0.4rem;
    }
    .search-input {
        padding: 0.65rem 0.85rem;
        font-size: 0.85rem;
    }
    .search-btn {
        padding: 0.65rem 1rem;
        font-size: 0.8rem;
    }
    .footer-slogan {
        font-size: 0.9rem !important;
        white-space: normal;
        max-width: 100%;
        overflow: visible;
        text-overflow: clip;
    }
    .footer-about {
        flex-direction: column;
        text-align: center;
    }
    .footer-about-left {
        flex-direction: column;
        text-align: center;
    }
    .footer-about-text {
        text-align: center;
    }
    .footer-social {
        flex-direction: row;
        justify-content: center;
    }
    .agent-card {
        padding: 1rem 0.5rem;
    }
    .detail-price-sale,
    .detail-price-rent {
        font-size: 1.2rem;
    }
    .property-title {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    .detail-title {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
}