/* =============================================
   Joelma Imóveis - Estilos Profissionais
   ============================================= */

/* Variáveis CSS */
:root {
    --primary-color: #1a5f7a;
    --primary-dark: #134e5e;
    --secondary-color: #57c5b6;
    --accent-color: #159895;
    --text-dark: #2c3e50;
    --text-light: #666;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --gray-light: #e9ecef;
    --success: #28a745;
    --danger: #dc3545;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Dark Mode */
[data-theme="dark"] {
    --primary-color: #1a7fa0;
    --primary-dark: #135a7f;
    --secondary-color: #4db8aa;
    --accent-color: #3cb8a8;
    --text-dark: #e0e0e0;
    --text-light: #b0b0b0;
    --white: #242424;
    --light-bg: #353535;
    --gray-light: #444444;
    --success: #28a745;
    --danger: #dc3545;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Utility Classes */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
    font-size: 2rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gradiente);
    border-radius: 2px;
}

.section-header p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.section-tag {
    display: inline-block;
    background: var(--gradiente);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 15px;
}

/* Botões */
.btn-primary,
.btn-secondary,
.btn-details,
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradiente);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 95, 122, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-details {
    width: 100%;
    justify-content: center;
    background: var(--light-bg);
    color: var(--text-dark);
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
}

.btn-details:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-submit {
    width: 100%;
    justify-content: center;
    background: var(--gradiente);
    color: var(--white);
    font-size: 1rem;
    padding: 16px 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.2);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(26, 95, 122, 0.35);
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* =============================================
   HEADER
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-top {
    background: var(--gradiente);
    padding: 10px 0;
    font-size: 0.9rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 25px;
    color: var(--white);
}

.contact-info a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    opacity: 0.9;
}

.contact-info a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--menu-height, 60px) / 2 - 15px) 0;
    min-height: var(--menu-height, 60px);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.8rem;
}

.creci-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--gradiente-sec);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(87, 197, 182, 0.2);
}

.creci-badge i {
    font-size: 0.85rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

/* =============================================
   COOKIE BANNER
   ============================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-text h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.cookie-text p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.btn-cookie-accept,
.btn-cookie-reject {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-cookie-accept {
    background: var(--primary-color);
    color: var(--white);
}

.btn-cookie-accept:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 95, 122, 0.3);
}

.btn-cookie-reject {
    background: var(--gray-light);
    color: var(--text-dark);
}

.btn-cookie-reject:hover {
    background: var(--border-light);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .btn-cookie-accept,
    .btn-cookie-reject {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    margin-top: var(--menu-height, 60px);
}

.hero-slide {
    height: var(--banner-height, 400px);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.85), rgba(21, 152, 149, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 700px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--white);
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
}

/* Search Box */
.search-box {
    background: var(--white);
    padding: 28px;
    margin-top: -55px;
    position: relative;
    z-index: 20;
    border-radius: var(--border-radius, 16px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    margin-left: auto;
    margin-right: auto;
    max-width: 1140px;
    backdrop-filter: blur(8px);
}

.search-form {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.search-field {
    flex: 1;
    min-width: 150px;
}

.search-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.search-field select,
.search-field input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-light);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

.search-field select:focus,
.search-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.15);
}

.btn-search {
    padding: 13px 32px;
    background: var(--gradiente);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.btn-search:active {
    transform: translateY(0);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 95, 122, 0.3);
}

/* =============================================
   FEATURED PROPERTIES
   ============================================= */
.featured-properties {
    padding: 50px 0;
    background: var(--light-bg);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.property-card {
    background: var(--white);
    border-radius: var(--theme-card-radius, 16px);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.property-card .property-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
}

.property-card .btn-details {
    margin-top: auto;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.1);
}

.property-image {
    position: relative;
    height: 215px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: var(--theme-card-radius, 16px) var(--theme-card-radius, 16px) 0 0;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.property-card:hover .property-image img {
    transform: scale(1.08);
}

.property-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

.property-tag.venda {
    background: var(--primary-color);
    color: var(--white);
}

.property-tag.locação,
.property-tag.locacao {
    background: var(--secondary-color);
    color: var(--white);
}

.property-tag.venda-e-locação,
.property-tag.venda-e-locacao {
    background: var(--gradiente);
    color: var(--white);
}

.property-featured {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #ffc107;
    color: #1e293b;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.35);
}

.property-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.property-location i {
    color: var(--primary-color);
    font-size: 0.95rem;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 14px;
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.035);
    padding: 4px 10px;
    border-radius: 6px;
}

.property-features i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.property-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

/* Preço de locação exibido junto ao preço de venda (cards e modais) */
.property-price .property-price-locacao,
.modal-price .property-price-locacao {
    display: block;
    margin-top: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--text-light, #64748b);
}

.modal-price .property-price-locacao {
    margin-top: 4px;
    font-size: 0.62em;
}

.property-price .price-periodo,
.modal-price .price-periodo {
    margin-left: 2px;
    font-size: 0.7em;
    font-weight: 600;
    color: inherit;
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.no-results i {
    font-size: 3rem;
    color: var(--gray-light);
    margin-bottom: 15px;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {
    padding: 25px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius);
    width: 100%;
}

.about-experience {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: var(--gradiente);
    color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.about-experience .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
}

.about-experience .text {
    font-size: 0.85rem;
    opacity: 0.9;
}

.about-content .section-tag {
    margin-bottom: 10px;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 15px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0 30px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-feature i {
    color: var(--success);
    font-size: 1.1rem;
}

.about-feature span {
    font-weight: 500;
    color: var(--text-dark);
}

/* =============================================
   SERVICES SECTION
   ============================================= */
.services-section {
    padding: 50px 0;
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradiente);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-section {
    padding: 70px 0;
    background: linear-gradient(180deg, rgba(26, 95, 122, 0.03) 0%, rgba(87, 197, 182, 0.03) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.contact-item:hover {
    box-shadow: 0 8px 24px rgba(26, 95, 122, 0.12);
    transform: translateY(-2px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradiente);
    border-radius: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.2);
}

.contact-icon i {
    font-size: 1.3rem;
    color: var(--white);
}

.contact-details h4 {
    margin-bottom: 6px;
    color: var(--text-dark);
    font-size: 1.05rem;
    font-weight: 600;
}

.contact-details p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.5;
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 35px;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-bg), #f5f5f5);
    border-radius: 50%;
    color: var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--gradiente);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(26, 95, 122, 0.2);
}

.social-icon.whatsapp {
    background: linear-gradient(135deg, #25d366, #20ba5a);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

.social-icon.whatsapp:hover {
    background: linear-gradient(135deg, #20ba5a, #1aa552);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.contact-form-wrapper {
    background: linear-gradient(135deg, var(--white) 0%, rgba(87, 197, 182, 0.02) 100%);
    padding: 45px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(26, 95, 122, 0.08);
    border: 1px solid rgba(87, 197, 182, 0.1);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
    background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #bbb;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(87, 197, 182, 0.1);
    background: rgba(87, 197, 182, 0.02);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

#form-message {
    margin-top: 20px;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

#form-message .success {
    color: #155724;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border-radius: 10px;
    border-left: 4px solid var(--success);
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.1);
}

#form-message .error {
    color: #721c24;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    border-radius: 10px;
    border-left: 4px solid var(--danger);
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   CONTACT FORM SECTION
   ============================================= */
.contact-form-section {
    padding: 20px 0;
    background: linear-gradient(180deg, rgba(26, 95, 122, 0.03) 0%, rgba(87, 197, 182, 0.03) 100%);
}

.contact-form-container {
    max-width: 100%;
    margin: 0 auto;
    background: var(--white);
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(26, 95, 122, 0.08);
    border: 1px solid rgba(87, 197, 182, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.form-group.full-width {
    grid-column: 1 / -1;
    margin-bottom: 12px;
}

.contact-form-section .form-group {
    margin-bottom: 0;
}

.contact-form-section .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-dark);
    font-size: 0.8rem;
    letter-spacing: 0.2px;
}

.contact-form-section .form-group input,
.contact-form-section .form-group textarea {
    width: 100%;
    padding: 8px 11px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-dark);
    transition: var(--transition);
    background: var(--white);
}

.contact-form-section .form-group input::placeholder,
.contact-form-section .form-group textarea::placeholder {
    color: #ccc;
}

.contact-form-section .form-group input:focus,
.contact-form-section .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(87, 197, 182, 0.1);
    background: rgba(87, 197, 182, 0.02);
}

.contact-form-section textarea {
    resize: vertical;
    min-height: 70px;
}

.form-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
}

.contact-form-section .btn-submit {
    flex: 1;
    padding: 10px 14px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-form-container {
        padding: 30px;
    }
}

/* =============================================
   MAP SECTION
   ============================================= */
.map-section {
    padding: 30px 0;
    background: linear-gradient(180deg, rgba(26, 95, 122, 0.03) 0%, rgba(87, 197, 182, 0.03) 100%);
}

.map-container {
    height: 350px;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(26, 95, 122, 0.08);
    border: 1px solid rgba(87, 197, 182, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: linear-gradient(180deg, #f8f9fa 0%, #f0f2f5 100%);
    color: var(--text-dark);
    padding: 40px 0 20px;
}

.footer-top {
    padding: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Card de Sobre (Azul) */
.footer-about {
    background: linear-gradient(135deg, #1a5f7a 0%, #2a7fa0 100%);
    padding: 25px;
    border-radius: 14px;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.15);
    grid-column: span 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
    font-size: 0.85rem;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Card de Links (Teal) */
.footer-links {
    background: linear-gradient(135deg, #57c5b6 0%, #3ab5a8 100%);
    padding: 25px;
    border-radius: 14px;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(87, 197, 182, 0.15);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 6px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    font-weight: 600;
    padding-left: 2px;
}

/* Card de Contato (Verde) */
.footer-contact {
    background: linear-gradient(135deg, #159895 0%, #0f8080 100%);
    padding: 25px;
    border-radius: 14px;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(21, 152, 149, 0.15);
}

.footer-contact ul {
    list-style: none;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 7px;
    font-size: 0.78rem;
    line-height: 1.3;
}

.footer-contact i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-bottom {
    background: var(--text-dark);
    padding: 12px 0;
    text-align: center;
    margin-top: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    margin: 0;
}

.footer-bottom .fa-heart {
    color: #e74c3c;
}

/* =============================================
   WHATSAPP FLOAT
   ============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float i {
    font-size: 1.8rem;
    color: var(--white);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* =============================================
   RESPONSIVO
   ============================================= */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .footer-about {
        grid-column: span 1;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .logo-wrapper {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .creci-badge {
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid var(--gray-light);
        width: 100%;
    }
    
    .btn-whatsapp {
        display: none;
    }
    
    .hero {
        margin-top: 70px;
    }
    
    .hero-slide {
        height: 350px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-field {
        width: 100%;
    }
    
    .btn-search {
        width: 100%;
        justify-content: center;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .about-experience {
        right: 20px;
        bottom: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer-about,
    .footer-links,
    .footer-contact {
        padding: 18px;
    }

    .footer-logo {
        font-size: 0.95rem;
    }

    .footer-about p {
        font-size: 0.75rem;
    }

    .footer-social {
        justify-content: flex-start;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero-slide {
        height: 300px;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .search-box {
        padding: 20px 15px;
        margin-top: -40px;
    }
    
    .property-features {
        flex-direction: column;
        gap: 10px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-card {
    animation: fadeInUp 0.5s ease forwards;
}

.property-card:nth-child(1) { animation-delay: 0.1s; }
.property-card:nth-child(2) { animation-delay: 0.2s; }
.property-card:nth-child(3) { animation-delay: 0.3s; }
.property-card:nth-child(4) { animation-delay: 0.4s; }
.property-card:nth-child(5) { animation-delay: 0.5s; }
.property-card:nth-child(6) { animation-delay: 0.6s; }

/* Loader */
.loader {
    text-align: center;
    padding: 40px;
}

.loader i {
    font-size: 2rem;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Dark Mode - Property Listing Page Improvements */
[data-theme="dark"] .search-box,
[data-theme="dark"] .table-container,
[data-theme="dark"] .filter-container {
    background: #333333;
}

[data-theme="dark"] .property-card {
    background: #2f2f2f;
    border: 1px solid #444;
}

[data-theme="dark"] .btn-filter {
    background: #3a3a3a;
    color: #e0e0e0;
    border: 1px solid #555;
}

[data-theme="dark"] .btn-filter:hover,
[data-theme="dark"] .btn-filter-primary {
    background: var(--primary-color);
    color: var(--white);
}

[data-theme="dark"] .results-header {
    color: #e0e0e0;
}

[data-theme="dark"] .property-content h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .property-location,
[data-theme="dark"] .property-price,
[data-theme="dark"] .property-features p {
    color: #b0b0b0;
}

[data-theme="dark"] .active-filters {
    background: #333333;
}

[data-theme="dark"] .filter-tag {
    background: #444;
    color: #e0e0e0;
    border: 1px solid #555;
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: #333333;
    color: #e0e0e0;
    border-color: #555;
}

/* Category Buttons - Dark Mode */
[data-theme="dark"] .btn {
    color: #333;
}

[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn[style*="background: #007bff"],
[data-theme="dark"] .btn[style*="background: #28a745"],
[data-theme="dark"] .btn[style*="background: #17a2b8"],
[data-theme="dark"] .btn[style*="background: #ffc107"] {
    color: white;
}

/* Popup Modal */
.popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.popup-content {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.popup-close:hover {
    color: #333;
}

.popup-body h2 {
    margin-bottom: 15px;
    color: var(--primary);
}

.popup-body p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #555;
}

.popup-form .form-group {
    margin-bottom: 15px;
}

.popup-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.popup-form input,
.popup-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
}

.popup-form input:focus,
.popup-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.popup-form .btn-primary {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
}