/* ==========================================
   1. RESET PADRÃO E CONFIGURAÇÕES GERAIS
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f9f9f9;
    overflow-x: hidden; /* Evita rolagem horizontal por conta do menu mobile */
}

/* ==========================================
   2. ESTRUTURA DO CABEÇALHO (HEADER)
   ========================================== */
.main-header {
    background-color: #ffffff;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 20px;
    height: 95px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 150px;
    width: auto;
    display: block;
}

/* MENU */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    color: #2c4866;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #4a76a1;
}

/* BOTÃO MENU MOBILE */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #2c4866;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==========================================
   3. BANNER PRINCIPAL
   ========================================== */
.main-banner {
    position: relative;
    width: 100%;
    height: 500px; 
    background-image: url('../jpg/banner-bg.jpg'); 
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center; 
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25); 
    z-index: 1;
}

.banner-container-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
    top: 40px; 
}

.banner-content {
    max-width: 600px;
    width: 100%;
    text-align: left;
}

.banner-title {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff; 
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.25;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
    font-family: 'Open Sans', sans-serif;
    color: #f0f0f0; 
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 24px;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.banner-btn {
    font-family: 'Montserrat', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #2c4866;
    color: #ffffff;
    text-decoration: none;
    padding: 0 25px; 
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px; 
    transition: background-color 0.3s ease;
    height: 43px; 
    width: auto; 
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.banner-btn:hover {
    background-color: #4a76a1;
}

/* ==========================================
   4. BARRA DE PESQUISA (FILTRO)
   ========================================== */
.search-section {
    width: 100%;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.search-container {
    max-width: 750px; 
    margin: 0 auto;
    background-color: #ffffff;
    padding: 20px 25px; 
    border-radius: 12px;
    border: 2px solid #2c4866; 
    box-shadow: 0 10px 25px rgba(44, 72, 102, 0.12);
    transform: translateY(-25%); 
}

.search-title {
    font-family: 'Montserrat', sans-serif;
    color: #2c4866;
    font-size: 18px; 
    margin-bottom: 15px; 
    text-align: center;
}

.search-form {
    display: flex;
    gap: 15px; 
    align-items: flex-end;
    width: 100%;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.form-group label {
    font-family: 'Montserrat', sans-serif;
    color: #2c4866;
    font-size: 12px;
    font-weight: 700;
}

.form-group select,
.form-group input {
    font-family: 'Open Sans', sans-serif;
    width: 100%;
    padding: 10px 12px; 
    border: 2px solid #2c4866;
    border-radius: 6px;
    background-color: #fdfdfd;
    color: #2c4866;
    font-size: 14px;
    outline: none;
}

.search-submit-btn {
    font-family: 'Montserrat', sans-serif;
    background-color: #2c4866;
    color: #ffffff;
    border: none;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px !important;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 43px; 
}

.search-submit-btn:hover {
    background-color: #4a76a1;
}

/* ==========================================
   5. CONFIGURAÇÃO DE TÍTULOS GLOBAIS
   ========================================== */
.section-header, .services-header, .about-summary-header {
    text-align: center;
    margin-bottom: 45px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px; 
    font-weight: 700;
    margin-bottom: 8px;
}

.section-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px; 
    font-weight: 600;
    line-height: 1.5;
}

.text-dark { color: #2c4866; }
.text-muted { color: #4a76a1; }
.text-light { color: #ffffff; }
.text-light-muted { color: #f0f5fa; }

/* ==========================================
   6. SEÇÃO: IMÓVEIS EM DESTAQUE
   ========================================== */
.featured-section {
    background-color: #f4f6f8; 
    padding: 100px 20px 60px 20px; 
    width: 100%;
}

.cards-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
}

.cards-grid .property-card {
    width: 100%;
    box-sizing: border-box;
}

.property-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    padding: 22px;
    text-align: left; 
}

.property-title {
    font-family: 'Montserrat', sans-serif;
    color: #2c4866;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.property-price {
    font-family: 'Montserrat', sans-serif;
    color: #4a76a1;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 18px;
}

.property-features {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eeeeee;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #7a92a3;
}

/* ==========================================
   7. SEÇÃO: NOSSOS SERVIÇOS
   ========================================== */
.services-section {
    background-color: #4a76a1;
    padding: 70px 20px;
    width: 100%;
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    width: 100%;
}

.service-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    width: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 20px 18px;
    text-align: left; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-title {
    font-family: 'Montserrat', sans-serif;
    color: #2c4866;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card-text {
    font-family: 'Open Sans', sans-serif;
    color: #555555;
    font-size: 13.5px;
    line-height: 1.5;
    min-height: 45px;
}

/* ==========================================
   8. SEÇÃO: RESUMO SOBRE NÓS
   ========================================== */
.about-summary-section {
    background-color: #ffffff; 
    padding: 85px 20px;
    width: 100%;
}

.about-summary-container {
    max-width: 1100px; 
    margin: 0 auto;
    width: 100%;
}

.about-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 45px;
    align-items: center;
}

.about-summary-image {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.about-summary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-summary-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-summary-text {
    font-family: 'Open Sans', sans-serif; 
    color: #4f5f6f; 
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

.about-summary-actions {
    margin-top: 15px;
    display: flex;
    justify-content: flex-start; 
    width: 100%;
}

.about-summary-btn {
    font-family: 'Montserrat', sans-serif; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #2c4866; 
    color: #ffffff;
    text-decoration: none;
    padding: 0 35px; 
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px; 
    transition: background-color 0.3s ease;
    height: 43px; 
    width: auto; 
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-summary-btn:hover {
    background-color: #4a76a1; 
}

/* ==========================================
   9. SEÇÃO: RODAPÉ GLOBAL (FOOTER PROFISSIONAL)
   ========================================== */
.main-footer {
    background: linear-gradient(180deg, #5c84ad 0%, #4d78a3 100%);
    color: #ffffff;
    width: 100%;
    padding: 40px 20px 0;
    border-top: 4px solid #2c4866;
    margin-top: 40px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 35px;
    align-items: start;
}

.footer-column {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.footer-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 18px;
    letter-spacing: 0.8px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: "";
    width: 42px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.85);
    position: absolute;
    left: 0;
    bottom: 0;
    border-radius: 10px;
}

.footer-title-spacing {
    margin-top: 28px;
}

.footer-text,
.footer-address,
.footer-email {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.96);
    font-style: normal;
}

.footer-email {
    max-width: 100%;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}

.footer-social-links {
    display: flex;
    gap: 14px;
    margin-top: 22px;
}

.footer-social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    color: #4d78a3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.footer-social-links a:hover {
    transform: translateY(-3px);
    background: #2c4866;
    color: #ffffff;
}

.footer-phone-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-phone-list a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
}

.footer-phone-list a:hover {
    color: #dcecff;
    transform: translateX(3px);
}

.phone-icon {
    width: 25px;
    height: 25px;
    background: #ffffff;
    color: #25d366;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 18px 0;
}

.footer-bottom-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: 0.3px;
}

/* ==========================================
   10. SEÇÃO: SOBRE (QUEM SOMOS PÁGINA INTERNA)
   ========================================== */
.about-section {
    background-color: #ffffff;
    padding: 60px 20px;
    width: 100%;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 50px;
}

.about-title {
    font-family: 'Montserrat', sans-serif;
    color: #2c4866;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.about-subtitle {
    font-family: 'Open Sans', sans-serif;
    color: #7f8c8d;
    font-size: 16px;
}

.about-grid-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.about-text-block p {
    font-family: 'Open Sans', sans-serif;
    color: #4f5f6f;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.about-text-block strong {
    color: #2c4866;
    font-weight: 600;
}

.about-creci-inline {
    display: flex;
    gap: 25px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.creci-inline-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: #4f5f6f;
}

.creci-inline-item i {
    color: #4a76a1;
    font-size: 18px;
}

.creci-inline-item strong {
    color: #2c4866;
}

.about-image-block {
    width: 100%;
}

.about-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.06);
}

/* Estrutura de Cards para o CRECI */
.creci-container {
    margin-top: 30px;
}

.creci-title {
    font-family: 'Montserrat', sans-serif;
    color: #2c4866;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.creci-subtitle {
    font-family: 'Open Sans', sans-serif;
    color: #a0aec0;
    font-size: 14px;
    margin-bottom: 25px;
}

.creci-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.creci-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.creci-icon {
    color: #4a76a1;
    font-size: 24px;
    margin-bottom: 10px;
}

.creci-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.creci-number {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #2c4866;
    margin-top: 3px;
}

/* ==========================================
   11. SEÇÃO: PILARES / VALORES
   ========================================== */
.values-section {
    background-color: #f4f6f8;
    padding: 60px 20px;
    width: 100%;
}

.values-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.values-section .section-header {
    text-align: center;
    margin-bottom: 45px;
    width: 100%;
}

.values-section .section-subtitle {
    max-width: 380px; 
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
    font-size: 15px;
    display: block;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); 
    gap: 30px;
    width: 100%;
}

.value-item {
    background-color: #ffffff;
    padding: 30px 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
    height: 100%; 
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-icon-box {
    width: 60px;
    height: 60px;
    background-color: #f4f6f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-icon-box i {
    color: #4a76a1;
    font-size: 24px;
}

.value-item-title {
    font-family: 'Montserrat', sans-serif;
    color: #2c4866;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.value-item-text {
    font-family: 'Open Sans', sans-serif;
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================
   12. PÁGINA DE DETALHES DO IMÓVEL & CARROSSEL
   ========================================== */
.details-section {
    padding: 60px 20px;
    background-color: #f8fafc;
    min-height: 70vh;
    width: 100%;
}

.details-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

/* Layout em duas colunas no Desktop */
.details-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Estrutura do Carrossel */
.carousel-container {
    flex: 1.2;
    position: relative;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botões do Carrossel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.85);
    color: #2c4866;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color 0.3s, color 0.3s;
}

.carousel-btn:hover {
    background-color: #2c4866;
    color: #ffffff;
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* Indicadores de bolinha (Dots) */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: #ffffff;
}

/* Caixa de Informações (Coluna da Direita) */
.details-info-box {
    flex: 1;
    background-color: #ffffff;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.property-badge {
    display: inline-block;
    background-color: #e2e8f0;
    color: #2c4866;
    padding: 6px 14px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.property-main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    color: #2c4866;
    font-weight: 700;
    margin-bottom: 8px;
}

.property-location-text {
    color: #7a92a3;
    font-size: 15px;
    margin-bottom: 20px;
    font-family: 'Open Sans', sans-serif;
}

.property-price-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    color: #2c4866;
    font-weight: 800;
}

.details-divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 25px 0;
}

/* Grid de Características */
.property-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.property-description-p {
    font-family: 'Open Sans', sans-serif;
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: justify;
}

/* Botão WhatsApp */
.contact-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #2c4866;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    transition: background-color 0.3s;
    box-shadow: 0 4px 12px rgba(44, 72, 102, 0.2);
    width: 100%;
    max-width: 280px;
    margin: 15px 0 0 0;
}

.contact-whatsapp-btn:hover {
    background-color: #4a76a1;
}

/* ==========================================
   13. REGRAS DE RESPONSIVIDADE (MEDIA QUERIES)
   ========================================== */
@media (max-width: 992px) {
    .about-grid-content {
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    
    .about-image-block {
        order: -1; 
    }
    
    .about-img {
        height: 280px;
    }

    .details-layout {
        flex-direction: column;
    }
    
    .carousel-container {
        width: 100%;
        flex: none;
    }
    
    .details-info-box {
        width: 100%;
        padding: 25px;
    }
}

@media (max-width: 900px) {
    .footer-container {
        gap: 30px;
    }

    .footer-title {
        font-size: 17px;
    }

    .footer-text,
    .footer-address,
    .footer-email,
    .footer-phone-list a {
        font-size: 13px;
    }

    .footer-email {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 8px 15px;
        height: 80px;
    }

    .logo-img {
        max-height: 120px;
    }

    .menu-toggle { display: flex; }
    
    .nav-menu {
        position: fixed; 
        top: 0; 
        right: -100%; 
        width: 70%; 
        height: 100vh;
        background-color: #ffffff; 
        flex-direction: column; 
        align-items: center;
        justify-content: center; 
        gap: 40px; 
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .nav-menu.active { right: 0; }
    
    .banner-container-content {
        top: 15px; 
    }

    .banner-title {
        font-size: 26px;
    }

    .search-container {
        transform: translateY(0);
        margin: 20px auto;
        max-width: 100%;
        padding: 20px;
    }
    
    .search-form { 
        flex-direction: column; 
        gap: 15px; 
        align-items: stretch;
        width: 100%;
    }

    .form-group {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .form-group select,
    .form-group input {
        width: 100%;
        box-sizing: border-box;
    }
    
    .search-submit-btn { 
        width: 100%; 
        height: 45px;
    }

    .section-title { font-size: 26px; }
    .section-subtitle { font-size: 14px; }
    
    /* RECONSTRUÇÃO COMPLETA DAS REGRAS MOBILE SEM CONFLITOS */
    .cards-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .values-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .featured-section {
        padding: 40px 20px;
    }

    .about-summary-section {
        padding: 50px 20px; 
    }

    .about-summary-grid {
        grid-template-columns: 1fr; 
        gap: 30px;
    }

    .about-summary-image {
        height: 250px; 
    }

    .about-summary-text {
        font-size: 15px; 
    }

    .about-summary-actions {
        margin-top: 25px;
        justify-content: center; 
    }

    .main-footer {
        padding: 45px 20px 0 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-bottom: 40px;
    }

    .footer-column {
        align-items: center; 
        text-align: center;
    }

    .footer-social-links {
        justify-content: center;
    }

    .footer-phone-list {
        align-items: center;
    }

    .details-container {
        padding: 15px;
    }
    
    .details-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .details-title, .details-price {
        font-size: 22px;
    }
    
    .details-specs {
        gap: 15px;
        justify-content: space-between;
    }
    
    .spec-info-item {
        font-size: 14px;
        width: 45%; 
    }

    .about-section {
        padding: 40px 15px;
    }
    
    .about-title {
        font-size: 28px;
    }
    
    .creci-grid {
        gap: 15px;
    }
    
    .creci-card {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-column {
        text-align: center;
        align-items: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social-links {
        justify-content: center;
    }

    .footer-phone-list a {
        justify-content: center;
    }

    .footer-email {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .about-creci-inline {
        flex-direction: column;
        gap: 10px;
    }

    .property-main-title {
        font-size: 22px;
    }
    
    .property-price-tag {
        font-size: 26px;
    }
    
    .property-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   14. AJUSTES DE FLUXO DINÂMICO (FIREBASE)
   ========================================== */
.card-image img {
    transition: transform 0.3s ease;
}

.property-card:hover .card-image img {
    transform: scale(1.03);
}

/* Garante espaçamento uniforme para botões injetados nos cards */
.card-info .banner-btn {
    margin-top: 10px;
}

/* Ajuste responsivo para os ícones de detalhes do imóvel */
@media (max-width: 600px) {
    .features-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    .features-grid .feature-item {
        flex: 1 1 45% !important; /* 45% + 45% = 90%, ocupando quase a linha toda com dois itens */
        max-width: 45% !important; 
        box-sizing: border-box;
    }
}

/* --- PADRÃO DOS CARDS DE IMÓVEIS --- */
.property-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.card-image-box {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #2c4866;
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
}

.card-info-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-title {
    font-size: 18px;
    color: #2c4866;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.card-location {
    font-size: 14px;
    color: #777;
    margin: 0;
}

.card-price {
    font-size: 20px;
    font-weight: 700;
    color: #27ae60;
    margin: 5px 0;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    justify-content: center;
}

.feature-item {
    background: #f8fafc;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    white-space: nowrap;
    color: #4a76a1;
}

.card-action-btn {
    display: block;
    text-align: center;
    background: #2c4866;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    font-weight: 700;
    border-radius: 4px;
    margin-top: 5px;
    font-size: 14px;
}

/* --- ESTILOS EXCLUSIVOS PARA OS CARDS (ISOLADOS) --- */
.card-ams-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.card-ams-img-box {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-ams-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-ams-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #2c4866;
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
}

.card-ams-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-ams-title {
    font-size: 18px;
    color: #2c4866;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-ams-location {
    font-size: 14px;
    color: #777;
    margin: 0;
}

.card-ams-price {
    font-size: 20px;
    font-weight: 700;
    color: #2c4866;
    margin: 5px 0;
}

.card-ams-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    justify-content: center;
}

.card-ams-item {
    background: #f8fafc;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #4a76a1;
}

/* Botão com transição suave */
.card-ams-btn {
    display: block;
    text-align: center;
    background: #2c4866;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    font-weight: 700;
    border-radius: 4px;
    margin-top: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease; /* Adicionei esta linha */
}

/* Efeito Hover do botão */
.card-ams-btn:hover {
    background-color: #4a76a1;
}

.card-ams-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    justify-content: center;
}
.card-ams-item {
    background: #f8fafc;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #4a76a1;
}
