/**
 * WENTZ IMÓVEIS V3 - ESTILOS PRINCIPAIS
 * HyperFoundation Style - Independente
 */

/* ==================== VARIÁVEIS CSS ==================== */
:root {
    /* Cores HyperFoundation - Azul, Verde, Prata */
    --hyper-dark-primary: #0a0a0f;
    --hyper-dark-secondary: #1a1a2e;
    --hyper-blue-accent: #00d4ff;        /* Azul */
    --hyper-green-accent: #4caf50;      /* Verde */
    --hyper-silver-accent: #C0C0C0;     /* Prata */
    --primary-color: #00d4ff;           /* Cor primária (azul) */
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg-hover: rgba(255, 255, 255, 0.15);
    
    /* Gradientes - Azul, Verde, Prata */
    --gradient-text: linear-gradient(135deg, #00d4ff, #4caf50, #C0C0C0);
    --gradient-bg: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
    
    /* Espaçamento */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Tipografia Premium */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-display: 'Outfit', sans-serif;
}

/* ==================== RESET E BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--gradient-bg);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==================== TIPOGRAFIA ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    /* Otimizacao de layout para evitar CLS */
    contain: layout style;
}

/* ==================== OTIMIZACOES DE RENDERIZACAO ==================== */
/* Reservar espaco fixo para secoes para evitar CLS */
#galeria {
    min-height: 900px;
    contain: layout style;
}

#sobre {
    min-height: 400px;
    contain: layout style;
}

#contato {
    min-height: 500px;
    contain: layout style;
}

/* Wrapper das secoes de imoveis - reservar espaco */
.rural-section-wrapper,
.urban-section-wrapper {
    min-height: 420px;
    contain: layout style;
}

/* ==================== HYPER BACKGROUND ==================== */
.hyper-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--gradient-bg);
    overflow: hidden;
}

.particles-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* ==================== HEADER ==================== */
.hyper-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    padding: var(--spacing-sm) 0;
}

.hyper-header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.hyper-logo {
    display: flex;
    align-items: center;
}

.hyper-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.hyper-logo img {
    height: 85px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.hyper-logo img:hover {
    transform: scale(1.05);
}

.hyper-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    /* Altura fixa para evitar CLS */
    min-height: 44px;
}

.hyper-nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 8px;
}

.hyper-nav-link:hover {
    color: var(--hyper-blue-accent);
    background: var(--glass-bg);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.header-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 168, 204, 0.2) 100%) !important;
    border: 1px solid rgba(0, 212, 255, 0.4) !important;
    color: #00d4ff !important;
    transition: all 0.3s ease;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-install-btn:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(0, 168, 204, 0.3) 100%) !important;
    border-color: rgba(0, 212, 255, 0.6) !important;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    transform: translateY(-1px);
    color: #00d4ff !important;
}

.header-install-text {
    white-space: nowrap;
    font-size: 0.85rem;
}

/* Esconder texto em telas pequenas, mostrar apenas icone */
@media (max-width: 1024px) {
    .header-install-text {
        display: none;
    }
    
    .header-install-btn {
        padding: 0.5rem;
        min-width: 36px;
        justify-content: center;
    }
}

.creci-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--hyper-silver-accent);
    white-space: nowrap;
    flex-shrink: 0;
}

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

.creci-text {
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Melhorar responsividade do CRECI no desktop */
@media (min-width: 1025px) {
    .creci-badge {
        font-size: 0.85rem;
        padding: 0.45rem 0.9rem;
        gap: 0.4rem;
    }
    
    .creci-badge i {
        font-size: 0.8rem;
    }
}

@media (min-width: 1200px) {
    .creci-badge {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* Ajustar header-actions para melhor layout no desktop */
@media (min-width: 1025px) {
    .header-actions {
        gap: 0.75rem;
        flex-wrap: nowrap;
    }
    
    .creci-badge {
        margin-right: 0;
    }
}

.header-mobile-actions {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.header-mobile-install-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 168, 204, 0.2) 100%);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 6px;
    color: #00d4ff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-mobile-install-btn:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(0, 168, 204, 0.3) 100%);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    transform: scale(1.05);
}

/* ==================== ADMIN LOGIN (Header) ==================== */
/* Icon button — inside header-actions on desktop */
.admin-header-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.admin-header-login:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
    color: var(--hyper-blue-accent);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}

/* "Área do Corretor" link — hidden on desktop, visible in mobile menu */
.admin-login-mobile {
    display: none !important;
}

@media (max-width: 768px) {
    /* Hide icon in header-actions on mobile (it's inside the nav which becomes hamburger) */
    .admin-header-login {
        display: none;
    }
    /* Show "Área do Corretor" in mobile hamburger menu */
    .admin-login-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        margin-top: var(--spacing-xs);
        padding: 0.85rem var(--spacing-sm);
        background: rgba(0, 212, 255, 0.06);
        border: 1px solid rgba(0, 212, 255, 0.2);
        border-radius: 12px;
        color: var(--hyper-blue-accent) !important;
        font-weight: 600;
        font-size: 0.95rem;
        text-decoration: none;
    }
    .admin-login-mobile:hover {
        background: rgba(0, 212, 255, 0.12);
        border-color: rgba(0, 212, 255, 0.4);
    }
}

/* ==================== BOTÕES ==================== */
.hyper-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-text);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hyper-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

/* ==================== SECTIONS ==================== */
.hyper-section {
    padding: var(--spacing-xl) 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.hyper-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.section-alt {
    background: rgba(26, 26, 46, 0.3);
}

/* ==================== HERO ==================== */
.hyper-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
}

.hero-container {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    min-height: 600px;
}

.hyper-hero-content {
    min-height: 220px;
    max-height: 220px;
    width: 100%;
    overflow: hidden;
}

.logo-animated-container {
    margin: 0 auto var(--spacing-md) auto;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Container do Logo GIF - mesma estrutura do handshake */
.logo-gif-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 515px;
    position: relative;
}

.logo-gif {
    width: 515px;
    height: 515px;
    object-fit: contain;
    /* Esconder ate JS carregar o src */
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.logo-gif[src] {
    opacity: 1;
}

@media (max-width: 1024px) {
    .logo-gif-container {
        min-height: 386px;
    }
    .logo-gif {
        width: 386px;
        height: 386px;
    }
}

@media (max-width: 768px) {
    .logo-gif-container {
        min-height: 309px;
    }
    .logo-gif {
        width: 309px;
        height: 309px;
    }
}

@media (max-width: 480px) {
    .logo-gif-container {
        min-height: 257px;
    }
    .logo-gif {
        width: 257px;
        height: 257px;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hyper-hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
}

.hyper-hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
    max-height: 100px;
    overflow: hidden;
}

.hero-scroll {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    min-height: 40px;
    opacity: 0;
    animation: fadeInBounce 1s ease 0.5s forwards, bounce 2s infinite 1.5s;
}

@keyframes fadeInBounce {
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.hero-scroll a {
    color: var(--hyper-blue-accent);
    font-size: 2rem;
    text-decoration: none;
}

/* ==================== CARDS ==================== */
.hyper-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: var(--spacing-md);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    /* Otimizacao de layout para evitar CLS */
    contain: layout style;
}

/* Card do mapa - reservar espaco minimo (apenas o container do mapa, nao os controles) */
#mapa-interativo > .container > .hyper-card:not(.map-filters-card):not(.map-stats-wrapper) {
    min-height: var(--fluid-map-h, 400px);
}

/* Cards de controle NAO devem ter min-height */
.map-filters-card,
.map-stats-wrapper {
    min-height: auto !important;
}

.hyper-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
}

/* ==================== MAPA ==================== */
.map-controls {
    margin-bottom: 1.5rem;
}

/* Card de filtros - layout compacto */
.map-filters-card {
    padding: 0.9rem 1.1rem !important;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Container dos botoes de filtro */
.map-filter-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.6rem;
    flex-shrink: 0;
}

.map-filter-btn {
    margin: 0;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.map-filter-btn.active {
    background: var(--hyper-blue-accent);
}

.map-filter-rural {
    background: linear-gradient(135deg, #2d7d32, #4caf50);
}

.map-filter-urban {
    background: linear-gradient(135deg, #1976d2, #2196f3);
}

/* Campo de pesquisa */
.map-search {
    flex: 1;
    min-width: 200px;
    max-width: 340px;
}

#map-search-input {
    width: 100%;
    padding: 0.6rem 5rem 0.6rem 1rem;
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: white;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

#map-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Card do contador - compacto */
.map-stats-wrapper {
    padding: 0.5rem 0.75rem !important;
    margin-top: 0.6rem;
}

.map-stats {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.map-stats-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--hyper-blue-accent);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ==================== MAPA - CARD DE CONTAGEM ==================== */
.map-stats-card {
    width: 100%;
    max-width: 100%;
    padding: 0.6rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.10), rgba(124, 77, 255, 0.06));
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.map-stats-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 140px at 20% 0%, rgba(0, 212, 255, 0.16), transparent 60%),
                radial-gradient(600px 140px at 80% 100%, rgba(124, 77, 255, 0.10), transparent 60%);
    pointer-events: none;
}

.map-stats-main {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.map-stats-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    flex: 0 0 auto;
}

.map-stats-icon i {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.map-stats-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1 1 auto;
    min-width: 0;
}

.map-stats-card .stat-number {
    font-size: 1.7rem;
    line-height: 1;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    color: transparent;
    background: linear-gradient(135deg, #00d4ff, #7c4dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.map-stats-card .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.78);
}

.map-stats-loading {
    position: relative;
    width: 54px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.map-stats-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 212, 255, 0.25);
    border-top-color: rgba(0, 212, 255, 0.95);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.map-stats-dots {
    display: none;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.map-stats-dots span {
    width: 6px;
    height: 6px;
    background: var(--hyper-blue-accent);
    border-radius: 50%;
    animation: dot-bounce 1.4s infinite ease-in-out;
}
.map-stats-dots span:nth-child(2) { animation-delay: 0.2s; }
.map-stats-dots span:nth-child(3) { animation-delay: 0.4s; }

.map-stats-card.is-loading .map-stats-spinner { display: block; }
.map-stats-card.is-loading .map-stats-dots { display: none; }
.map-stats-card.is-loading-more .map-stats-spinner { display: none; }
.map-stats-card.is-loading-more .map-stats-dots { display: flex; }

.map-stats-card.is-loading .stat-number {
    text-shadow: 0 0 26px rgba(0, 212, 255, 0.28);
}

/* ==================== MAPA - BUSCA (INPUT + LUPA) ==================== */
.map-search-wrapper {
    position: relative;
    width: 100%;
}

.map-search-clear-btn {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
    opacity: 0;
    pointer-events: none;
}

.map-search-wrapper.has-value .map-search-clear-btn {
    opacity: 1;
    pointer-events: auto;
}

.map-search-clear-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-50%) scale(1.04);
}

.map-search-clear-btn:active {
    transform: translateY(-50%) scale(0.98);
}

.map-search-clear-btn:focus-visible {
    outline: 2px solid rgba(0, 212, 255, 0.75);
    outline-offset: 2px;
}

.map-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.map-search-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-50%) scale(1.04);
}

.map-search-btn:active {
    transform: translateY(-50%) scale(0.98);
}

.map-search-btn:focus-visible {
    outline: 2px solid rgba(0, 212, 255, 0.75);
    outline-offset: 2px;
}

#hyper-map {
    height: 600px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    /* Garantir dimensoes minimas para evitar colapso */
    min-height: 340px;
    min-width: 100%;
    /* DESKTOP: dimensoes fixas e estaveis */
    position: relative;
    z-index: 1;
}

/* Garantir que o container pai do mapa nao interfira */
.hyper-card:has(#hyper-map),
.hyper-card:has(#map-loading-wrapper) {
    display: block !important;
    position: relative;
    /* DESKTOP: container com dimensoes fixas */
    min-height: 600px;
}

/* Forcar dimensoes estaveis no desktop */
@media (min-width: 769px) {
    #hyper-map {
        height: 600px !important;
        max-height: 600px;
    }
    
    .hyper-card:has(#hyper-map) {
        min-height: 600px;
        max-height: 600px;
    }
}

/* ==================== SOBRE GRID ==================== */
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* ==================== CONSULTORES ==================== */
.consultores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

#consultores .consultant-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto var(--spacing-md);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.3);
    border: 2px solid var(--hyper-blue-accent);
    transition: all 0.3s ease;
}

#consultores .consultant-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#consultores .consultant-name {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: filter 0.3s ease;
}

/* ==================== FOOTER ==================== */
.hyper-footer {
    background: var(--hyper-dark-secondary);
    padding: var(--spacing-md) 0 var(--spacing-sm);
    border-top: 1px solid var(--glass-border);
    margin-top: var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-column {
    display: flex;
    flex-direction: column;
}

/* Coluna Empresa */
.footer-company {
    align-items: flex-start;
}

.footer-logo img {
    height: 101px;
    width: auto;
    margin-bottom: var(--spacing-sm);
    filter: brightness(0) invert(1);
}

.footer-company-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
    font-family: var(--font-heading);
}

.footer-company-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 var(--spacing-md) 0;
    font-weight: 300;
}

.footer-company-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 0.5rem 0;
    line-height: 1.6;
}

.footer-creci-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: var(--spacing-sm);
}

.creci-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.creci-name {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Coluna Navegação */
.footer-nav {
    align-items: flex-start;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 var(--spacing-md) 0;
    font-family: var(--font-heading);
}

.footer-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav-links a {
    color: var(--hyper-blue-accent);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-nav-links a:hover {
    color: #ffffff;
    padding-left: 0.5rem;
}

/* Coluna Contato */
.footer-contact {
    align-items: flex-start;
}

.footer-contact-item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    align-items: flex-start;
}

.footer-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.footer-contact-content {
    flex: 1;
}

.footer-contact-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.footer-contact-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.footer-contact-text a {
    color: var(--hyper-blue-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-text a:hover {
    color: #ffffff;
}

/* Coluna Redes Sociais */
.footer-social {
    align-items: flex-start;
}

.footer-social-icons {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.footer-social-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hyper-blue-accent);
    border-radius: 8px;
    color: var(--hyper-blue-accent);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.footer-social-icon:hover {
    background: var(--hyper-blue-accent);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-social-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0;
}

/* Separador */
.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: var(--spacing-sm) 0;
}

/* Copyright */
.footer-copyright {
    text-align: center;
    padding-top: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

/* ==================== FOOTER OTIMIZADO V2 ==================== */

/* Redes Sociais no Topo */
.footer-social-top {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding-bottom: var(--spacing-sm);
}

/* Conteudo Principal */
.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Brand */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand .footer-logo img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-brand-info {
    display: flex;
    flex-direction: column;
}

.footer-brand-info .footer-company-name {
    font-size: 1.1rem;
    margin: 0;
}

.footer-brand-info .footer-company-subtitle {
    font-size: 0.75rem;
    margin: 0;
}

.footer-creci-inline {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
}

/* Navegacao Inline */
.footer-nav-inline {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-nav-inline a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-nav-inline a:hover {
    color: var(--hyper-blue-accent);
}

/* Como Chegar na Parte Inferior */
.footer-address-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: var(--spacing-sm) auto;
    max-width: fit-content;
    flex-wrap: wrap;
}

.footer-address-bottom:hover {
    background: rgba(0, 102, 166, 0.15);
    border-color: rgba(0, 102, 166, 0.4);
    transform: translateY(-2px);
}

.footer-address-bottom > i {
    color: var(--hyper-blue-accent);
    font-size: 0.85rem;
}

.footer-address-bottom > span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-directions-link {
    color: var(--hyper-blue-accent) !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
}

.footer-directions-link i {
    font-size: 0.65rem;
}

.footer-address-bottom:hover .footer-directions-link {
    color: #ffffff !important;
}

/* Parte Inferior */
.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding-top: 0.5rem;
    flex-wrap: wrap;
}

.footer-year {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
}

/* Credito do Desenvolvedor */
.footer-dev-credit {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid transparent;
}

.footer-dev-credit:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-dev-text {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-dev-name {
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-dev-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-dev-credit:hover .footer-dev-logo {
    opacity: 1;
}

.footer-dev-url {
    font-size: 0.55rem;
    color: rgba(100, 180, 255, 0.6);
}

.footer-dev-credit:hover .footer-dev-text {
    color: rgba(255, 255, 255, 0.5);
}

.footer-dev-credit:hover .footer-dev-name {
    color: rgba(255, 255, 255, 0.8);
}

.footer-dev-credit:hover .footer-dev-url {
    color: rgba(100, 180, 255, 0.9);
}

/* Responsividade Footer */
@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav-inline {
        justify-content: center;
    }
    
    .footer-address-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .footer-social-top {
        gap: 0.75rem;
    }
    
    .footer-nav-inline {
        gap: 1rem;
    }
    
    .footer-nav-inline a {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ==================== UTILITÁRIOS ==================== */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

/* ==================== LOADING ==================== */
.loading {
    text-align: center;
    padding: var(--spacing-xl);
}

.loading i {
    font-size: 2rem;
    color: var(--hyper-blue-accent);
    margin-bottom: var(--spacing-sm);
    animation: spin 1s linear infinite;
}

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

/* ==================== PROPERTIES GRID ==================== */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

/* ==================== SCROLL SUAVE ==================== */
html {
    scroll-padding-top: 80px;
}

/* ==================== SECOES DE IMOVEIS - TITULOS RESPONSIVOS ==================== */
.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.rural-section-title,
.urban-section-title {
    font-size: clamp(1.2rem, 4vw, 2rem);
    margin: 0;
    white-space: nowrap;
}

.rural-section-title {
    color: #4caf50;
}

.urban-section-title {
    color: #2196f3;
}

.rural-section-title i,
.urban-section-title i {
    margin-right: 0.5rem;
}

/* Spinner de loading ao lado do titulo */
.section-loading-spinner {
    display: inline-flex;
    align-items: center;
    margin-left: 0.75rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.section-loading-spinner i {
    font-size: 1rem;
    color: var(--hyper-blue-accent);
    margin: 0;
}

.section-loading-spinner.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Container vazio enquanto carrega */
.properties-horizontal-scroll:empty {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.properties-horizontal-scroll:empty::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-top-color: var(--hyper-blue-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ==================== SCROLL HORIZONTAL DE IMOVEIS ==================== */
.properties-horizontal-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 2rem;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative;
    scrollbar-width: none; /* Firefox - esconder scrollbar no desktop */
    -ms-overflow-style: none; /* IE e Edge - esconder scrollbar */
}

/* Esconder scrollbar no desktop, mostrar no mobile */
.properties-horizontal-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera - esconder scrollbar no desktop */
}

/* No mobile, mostrar scrollbar */
@media (max-width: 768px) {
    .properties-horizontal-scroll {
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 212, 255, 0.5) rgba(255, 255, 255, 0.1);
    }
    
    .properties-horizontal-scroll::-webkit-scrollbar {
        display: block;
        height: 6px;
    }
    
    .properties-horizontal-scroll::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }
    
    .properties-horizontal-scroll::-webkit-scrollbar-thumb {
        background: rgba(0, 212, 255, 0.5);
        border-radius: 10px;
    }
}

/* Container com botões de navegação para desktop */
.properties-scroll-wrapper {
    position: relative;
    padding: 0 60px; /* Espaço para os botões */
}

.properties-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 212, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none; /* Escondido por padrão, mostrado apenas no desktop */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.properties-nav-btn:hover {
    background: rgba(0, 212, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.properties-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.properties-nav-btn.prev {
    left: 0;
}

.properties-nav-btn.next {
    right: 0;
}

.properties-nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Mostrar botões apenas no desktop */
@media (min-width: 769px) {
    .properties-nav-btn {
        display: flex;
    }
}

/* Esconder botões no mobile e remover padding */
@media (max-width: 768px) {
    .properties-scroll-wrapper {
        padding: 0;
    }
    
    .properties-nav-btn {
        display: none !important;
    }
}

.property-card {
    min-width: 350px;
    max-width: 350px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.property-card .property-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.property-card-content {
    padding: 1.5rem;
}

.property-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.property-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--hyper-silver-accent);
    margin-bottom: 1rem;
}

.property-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-address {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #128C7E, #075E54);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.property-btn:hover {
    background: linear-gradient(135deg, #075E54, #128C7E);
    transform: scale(1.05);
}

/* Responsivo para scroll horizontal */
@media (max-width: 768px) {
    .property-card {
        min-width: 280px;
        max-width: 280px;
    }
    
    .properties-horizontal-scroll {
        gap: 1.5rem;
    }
}

/* ==================== CONTAINER DE IMAGEM COM BOTÃO ==================== */
.property-image-container {
    position: relative;
    overflow: hidden;
}

.property-image-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.view-more-photos-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.view-more-photos-btn:hover {
    background: rgba(0, 212, 255, 0.9);
    transform: scale(1.05);
}

.view-more-photos-btn i {
    font-size: 1rem;
}

/* ==================== MODAL DE GALERIA DE FOTOS ==================== */
.photo-gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.photo-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.photo-gallery-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 10001;
}

.photo-gallery-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10002;
}

.photo-gallery-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.photo-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10002;
}

.photo-gallery-nav:hover {
    background: rgba(0, 212, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.photo-gallery-prev {
    left: 20px;
}

.photo-gallery-next {
    right: 20px;
}

.photo-gallery-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.photo-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.photo-gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.photo-gallery-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.photo-gallery-thumbnails img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.photo-gallery-thumbnails img.active {
    opacity: 1;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.photo-gallery-info {
    text-align: center;
    color: white;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.photo-gallery-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.photo-gallery-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsivo para modal */
@media (max-width: 768px) {
    .photo-gallery-container {
        width: 95%;
        height: 95vh;
    }
    
    .photo-gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .photo-gallery-prev {
        left: 10px;
    }
    
    .photo-gallery-next {
        right: 10px;
    }
    
    .photo-gallery-thumbnails img {
        width: 60px;
        height: 60px;
    }
    
    .photo-gallery-close {
        top: -40px;
        width: 35px;
        height: 35px;
    }
}

/* ==================== EFEITO DE IMÓVEL VENDIDO ==================== */
.property-sold {
    opacity: 0.7;
    filter: grayscale(60%);
    position: relative;
}

.property-sold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    z-index: 1;
    pointer-events: none;
}

.property-sold .property-image-container img {
    filter: grayscale(50%) brightness(0.8);
}

.property-sold .property-card-content {
    position: relative;
    z-index: 2;
}

/* Carimbo de VENDIDO */
.sold-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.5);
    transform: rotate(-5deg);
    animation: stampPulse 2s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.sold-badge i {
    font-size: 1rem;
}

.sold-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 25px;
    z-index: -1;
}

@keyframes stampPulse {
    0%, 100% {
        transform: rotate(-5deg) scale(1);
        box-shadow: 0 4px 15px rgba(211, 47, 47, 0.5);
    }
    50% {
        transform: rotate(-5deg) scale(1.05);
        box-shadow: 0 6px 20px rgba(211, 47, 47, 0.7);
    }
}

/* Preço riscado para vendidos */
.price-sold {
    text-decoration: line-through;
    opacity: 0.6;
    color: rgba(192, 192, 192, 0.5) !important;
}

/* Botão desabilitado para vendidos */
.property-btn-sold {
    background: rgba(128, 128, 128, 0.5) !important;
    cursor: not-allowed !important;
    pointer-events: none;
    opacity: 0.6 !important;
}

/* Ajustar hover para vendidos */
.property-sold:hover {
    transform: translateY(-2px);
    filter: grayscale(50%);
}

.property-sold:hover .sold-badge {
    animation: stampPulse 1s ease-in-out infinite;
}

/* ==================== MODAL DE DETALHES DA PROPRIEDADE ==================== */
.property-details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow-y: auto;
}

.property-details-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.property-details-container {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.property-details-back {
    display: none;
}

.property-details-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.property-details-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.property-details-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.property-details-images {
    position: sticky;
    top: 2rem;
    align-self: flex-start;
    width: 100%;
}

.property-details-main-image-wrapper {
    position: relative;
    width: 100%;
}

.property-details-main-image {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 700px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: grab;
    user-select: none;
    margin-bottom: 1rem;
}

.property-details-main-image:active {
    cursor: grabbing;
}

.property-details-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.property-details-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
}

.property-details-main-image:hover .property-details-nav {
    opacity: 1;
}

.property-details-nav:hover {
    background: rgba(0, 212, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.property-details-nav-prev {
    left: 1rem;
}

.property-details-nav-next {
    right: 1rem;
}

.property-details-image-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.property-details-thumbnails {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.property-details-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.property-details-thumbnails img:hover,
.property-details-thumbnails img.active {
    border-color: #00d4ff;
    transform: scale(1.1);
}

.property-details-info {
    width: 100%;
    padding: 0 1rem;
}

.property-details-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.property-details-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 1rem;
}

.property-details-address,
.property-details-city {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.property-details-description {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.property-details-description h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.property-details-description p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    white-space: pre-wrap;
}

.property-details-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.property-details-btn {
    flex: 1;
    min-width: 200px;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.property-details-btn-whatsapp {
    background: linear-gradient(135deg, #128C7E, #075e54);
}

.property-details-btn-facebook {
    background: linear-gradient(135deg, #1877f2, #0d5dbf);
}

.property-details-btn-sold {
    background: linear-gradient(135deg, #666, #444);
    cursor: not-allowed;
}

.property-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* ==================== SISTEMA DE NÓS SOBRE O MAPA ==================== */
.city-node-system-overlay {
    position: absolute;
    z-index: 1000;
    pointer-events: all;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 500px;
    max-width: 700px;
    will-change: transform, opacity;
}

/* Garantir que o container do mapa tenha position relative */
#hyper-map {
    position: relative;
}

/* ==================== WRAPPER DO INDICADOR (FORA DO MAPA) ==================== */
#map-loading-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    pointer-events: none;
    display: none;
    align-items: center;
    justify-content: center;
}

/* ==================== INDICADOR DE CARREGAMENTO DO MAPA ==================== */
.map-loading-indicator {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3),
                0 0 40px rgba(0, 212, 255, 0.2);
    border: 2px solid rgba(0, 212, 255, 0.4);
}

.map-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.city-node-system-header {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px 15px 0 0;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    margin-bottom: 0;
}

.city-node-system-header h3 {
    font-size: 1.3rem;
    margin: 0 0 0.3rem 0;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.city-node-system-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.city-node-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 35px;
    height: 35px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.city-node-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

/* ==================== MODAL DE DISTRIBUIÇÃO POR CIDADE (COMPATIBILIDADE) ==================== */
.city-distribution-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow-y: auto;
}

.city-distribution-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.city-distribution-container {
    position: relative;
    max-width: 1400px;
    margin: 2rem auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    min-height: 600px;
}

.city-distribution-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.city-distribution-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.city-distribution-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.city-distribution-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.city-distribution-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* ==================== SISTEMA DE NÓS E EXPANSÃO RADIAL ==================== */
.city-node-system {
    position: relative;
    width: 100%;
    height: 500px;
    min-height: 500px;
    margin: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 15px 15px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.node-connections-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.city-node-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.node-center-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 0.5rem;
}

.node-center-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 212, 255, 0.5));
}

.node-center-info {
    text-align: center;
}

.node-center-info h3,
.node-center-info h4 {
    font-size: 1rem;
    color: white;
    margin-bottom: 0.2rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.node-center-info p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.city-node-items {
    position: relative;
    width: 100%;
    height: 100%;
}

.city-node-item {
    position: absolute;
    width: 120px;
    height: 140px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.3s ease;
}

.city-node-item:hover {
    transform: translate(-50%, -50%) scale(1.15);
    z-index: 15;
}

.node-item-connection-point {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #00d4ff;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    z-index: 2;
}

.node-item-image {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid rgba(0, 212, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.city-node-item:hover .node-item-image {
    border-color: #00d4ff;
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6);
}

.node-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.node-item-label {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 0.2rem;
}

/* Responsivo para sistema de nós */
@media (max-width: 768px) {
    .city-node-system {
        height: 400px;
        min-height: 400px;
    }
    
    .city-node-center {
        width: 100px;
        height: 100px;
    }
    
    .node-center-logo {
        width: 60px;
        height: 60px;
    }
    
    .city-node-item {
        width: 90px;
        height: 110px;
    }
    
    .node-item-image {
        width: 75px;
        height: 75px;
    }
    
    .node-item-label {
        font-size: 0.65rem;
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .property-details-content {
        grid-template-columns: 1fr;
    }
    
    .city-distribution-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .property-details-actions {
        flex-direction: column;
    }
    
    .property-details-btn {
        width: 100%;
    }
}

/* ==================== BADGE DE PROPRIEDADE (JANELA ABAIXO) ==================== */
.property-badge {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 0;
    overflow: hidden;
}

.property-badge.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    max-height: 2000px;
    overflow-y: auto;
}

.property-badge-content {
    position: relative;
}

.property-badge-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
    backdrop-filter: blur(10px);
}

.property-badge-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

.property-badge-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.property-badge-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.property-badge-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #00d4ff;
}

.property-badge-gallery {
    margin-bottom: 1rem;
}

.property-badge-main-image {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
}

.property-badge-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.property-badge-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.property-badge-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.property-badge-prev {
    left: 15px;
}

.property-badge-next {
    right: 15px;
}

.property-badge-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.property-badge-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.property-badge-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.property-badge-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.property-badge-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.property-badge-thumbnails img:hover,
.property-badge-thumbnails img.active {
    border-color: #00d4ff;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.property-badge-info {
    margin-bottom: 1rem;
}

.property-badge-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.property-badge-address,
.property-badge-city {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.property-badge-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.property-badge-btn {
    flex: 1;
    min-width: 140px;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.property-badge-btn-whatsapp {
    background: linear-gradient(135deg, #128C7E, #075e54);
}

.property-badge-btn-details {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.property-badge-btn-back {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
}

.property-badge-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.property-badge-btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsivo para badge */
@media (max-width: 768px) {
    .property-badge {
        margin-top: 1rem;
        padding: 1rem;
        max-height: 60vh;
        border-radius: 15px;
    }
    
    .property-badge-main-image {
        height: 250px;
    }
    
    .property-badge-nav {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .property-badge-prev {
        left: 10px;
    }
    
    .property-badge-next {
        right: 10px;
    }
    
    .property-badge-thumbnails img {
        width: 60px;
        height: 60px;
    }
    
    .property-badge-actions {
        flex-direction: column;
    }
    
    .property-badge-btn {
        width: 100%;
        min-width: 100%;
    }
    
    .property-badge-header h3 {
        font-size: 1.1rem;
    }
    
    .property-badge-price {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .property-badge-main-image {
        height: 200px;
    }
    
    .property-badge-thumbnails img {
        width: 50px;
        height: 50px;
    }
    
    .property-badge-close {
        width: 35px;
        height: 35px;
        top: -5px;
        right: -5px;
    }
}

/* ==================== MODAL DE SELEÇÃO DE CONSULTOR ==================== */
.consultant-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.consultant-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.consultant-modal {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.consultant-modal-overlay.active .consultant-modal {
    transform: scale(1) translateY(0);
}

.consultant-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.consultant-modal-header h3 {
    color: var(--hyper-blue-accent);
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.consultant-modal-header p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.consultant-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.consultant-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.consultant-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: var(--hyper-blue-accent);
}

.consultant-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--hyper-blue-accent);
    flex-shrink: 0;
}

.consultant-info {
    flex: 1;
}

.consultant-name {
    color: var(--hyper-blue-accent);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.consultant-phone {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.consultant-whatsapp-icon {
    color: #25D366;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.consultant-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.consultant-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

@media (max-width: 768px) {
    .consultant-modal {
        padding: 1.5rem;
    }
    
    .consultant-photo {
        width: 60px;
        height: 60px;
    }
    
    .consultant-name {
        font-size: 1rem;
    }
}

/* ==================== RESPONSIVIDADE DO MODAL DE DETALHES ==================== */
/* Layout desktop: lado a lado */
@media (min-width: 1024px) {
    .property-details-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .property-details-images {
        position: sticky;
        top: 2rem;
        height: fit-content;
    }
    
    .property-details-main-image {
        height: 70vh;
        max-height: 800px;
    }
    
    .property-details-info {
        padding: 0;
    }
}

/* Mobile: empilhado com scroll */
@media (max-width: 1023px) {
    .property-details-container {
        margin: 0;
        border-radius: 0;
        padding: 1rem;
        min-height: 100vh;
    }
    
    .property-details-content {
        flex-direction: column;
    }
    
    .property-details-images {
        position: relative;
        top: 0;
    }
    
    .property-details-main-image {
        height: 50vh;
        min-height: 300px;
        max-height: 500px;
    }
    
    .property-details-nav {
        opacity: 1;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .property-details-nav-prev {
        left: 0.5rem;
    }
    
    .property-details-nav-next {
        right: 0.5rem;
    }
    
    .property-details-info {
        padding: 0;
    }
    
    .property-details-info h2 {
        font-size: 1.5rem;
    }
    
    .property-details-actions {
        flex-direction: column;
    }
    
    .property-details-btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .property-details-main-image {
        height: 40vh;
        min-height: 250px;
    }
    
    .property-details-thumbnails {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }
    
    .property-details-thumbnails img {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
}

/* ==================== ANIMAÇÕES DE LOADING E CONTADOR ==================== */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dot-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    }
    50% {
        opacity: 0.7;
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    }
}

@keyframes counter-pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.loading-pulse {
    animation: pulse-glow 1.5s ease-in-out infinite;
}

.counter-animate {
    animation: counter-pop 0.3s ease-out;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

/* ==================== RESULTADOS DE BUSCA ==================== */
.search-results-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1200;
}

.search-results-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.search-results-container {
    position: fixed;
    left: 50%;
    bottom: 0.75rem;
    transform: translateX(-50%) translateY(120%);
    width: min(980px, calc(100% - 1.5rem));
    max-height: min(76vh, 720px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.25rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1201;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.28s ease;
}

.search-results-container.is-open {
    transform: translateX(-50%) translateY(0);
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    flex: 0 0 auto;
}

.search-results-header h3 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-results-close {
    width: 35px;
    height: 35px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-results-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.search-results-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 0;
    padding-right: 0.25rem;
}

.search-results-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.7);
    flex: 0 0 auto;
}

.search-results-more p {
    margin: 0;
    font-size: 0.9rem;
}

.search-result-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.search-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    border-color: #00d4ff;
}

.search-result-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    /* Forcar imagens grandes a renderizar menores */
    max-width: 100%;
    max-height: 100%;
}

.search-result-card:hover .search-result-image img {
    transform: scale(1.1);
}

.search-result-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 3rem;
}

.search-result-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.search-result-badge-rural {
    background: rgba(45, 125, 50, 0.9);
    color: white;
}

.search-result-badge-urban {
    background: rgba(25, 118, 210, 0.9);
    color: white;
}

.search-result-info {
    padding: 1rem;
}

.search-result-info h4 {
    margin: 0 0 0.5rem 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.search-result-price {
    color: #00d4ff;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.search-result-city {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-result-address {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0.25rem 0 0 0;
}

.search-results-empty {
    text-align: center;
    padding: 3rem 1.5rem;
}

.search-results-empty-message {
    color: rgba(255, 255, 255, 0.7);
}

.search-results-empty-message i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.search-results-empty-message p {
    margin: 0.5rem 0;
}

.search-results-suggestion {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
}

/* Responsivo para resultados de busca */
@media (max-width: 768px) {
    .search-results-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* FORCAR cards proporcionais com imagens visiveis */
    .search-result-card {
        display: flex !important;
        flex-direction: column !important;
        min-height: 300px !important;
        max-height: none !important;
    }
    
    .search-result-image {
        width: 100% !important;
        height: clamp(200px, 55vw, 320px) !important;
        min-height: 200px !important;
        max-height: 320px !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
    }
    
    .search-result-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    .search-result-info {
        flex: 1 !important;
        padding: 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }

    .search-results-header h3 {
        font-size: 1.15rem;
    }

    .search-results-close {
        width: 44px;
        height: 44px;
    }

    /* No mobile, a lista vira tela cheia (nao precisa overlay separado) */
    .search-results-overlay {
        display: none;
    }
    
    .search-results-container {
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        transform: translateY(100%);
        padding: calc(env(safe-area-inset-top, 0px) + 1rem) 1rem calc(env(safe-area-inset-bottom, 0px) + 1rem);
    }

    .search-results-container.is-open {
        transform: translateY(0);
    }

    /* Em DETAIL, nunca mostrar a lista (1 contexto por vez) */
    body[data-map-shell="1"][data-view-mode="detail"] .search-results-container {
        display: none;
    }

    /* ==================== MOBILE MAP SHELL (TELA UNICA) ==================== */
    body[data-map-shell="1"] .hyper-header {
        display: none;
    }

    body[data-map-shell="1"] #mapa-interativo.hyper-section {
        position: fixed;
        inset: 0;
        /* Abaixo das bandejas do mapa (tray.css usa 1000/1001), acima do restante da pagina */
        z-index: 900;
        padding: 0;
        margin: 0;
        min-height: 0;
        background: var(--gradient-bg);
        display: block;
    }

    body[data-map-shell="1"] #mapa-interativo .container {
        width: 100%;
        max-width: none;
        height: 100vh;
        height: 100dvh;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    body[data-map-shell="1"] #mapa-interativo .section-header,
    body[data-map-shell="1"] #mapa-interativo .container > div:last-child {
        display: none;
    }

    body[data-map-shell="1"] #mapa-interativo .map-controls {
        margin: 0;
        padding: 0.75rem;
    }

    body[data-map-shell="1"] #mapa-interativo > .container > .hyper-card {
        flex: 1 1 auto;
        border-radius: 0;
        margin: 0;
    }

    body[data-map-shell="1"] #hyper-map {
        flex: 1 1 auto;
        height: auto;
        border-radius: 0;
    }

    .mobile-map-exit,
    .mobile-map-list {
        position: fixed;
        /* Acima do mapa, abaixo das bandejas (tray.css) */
        z-index: 950;
        align-items: center;
        justify-content: center;
        height: 40px;
        padding: 0 0.9rem;
        border: 1px solid var(--glass-border);
        border-radius: 999px;
        background: rgba(10, 10, 15, 0.75);
        color: #ffffff;
        backdrop-filter: blur(12px);
        display: inline-flex;
        user-select: none;
    }

    .mobile-map-exit {
        top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
        right: 0.75rem;
    }

    .mobile-map-list {
        bottom: calc(env(safe-area-inset-bottom, 0px) + 0.75rem);
        right: 0.75rem;
        display: none; /* JS liga quando houver resultados */
    }

    /* Em DETAIL, esconder botoes do shell para nao brigar com o detalhe */
    body[data-map-shell="1"][data-view-mode="detail"] .mobile-map-exit,
    body[data-map-shell="1"][data-view-mode="detail"] .mobile-map-list,
    body[data-map-shell="1"][data-view-mode="list"] .mobile-map-exit,
    body[data-map-shell="1"][data-view-mode="list"] .mobile-map-list {
        display: none;
    }
}

/* ==================== GIF HANDSHAKE - SECAO SOBRE ==================== */
.handshake-gif-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 186px;
    position: relative;
}

.handshake-gif {
    width: 186px;
    height: 186px;
    object-fit: contain;
    /* Esconder ate JS carregar o src */
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.handshake-gif[src] {
    opacity: 1;
}

/* Desktop: mostrar gif desktop, esconder mobile */
.handshake-desktop {
    display: block;
}

.handshake-mobile {
    display: none;
}

/* Mobile: mostrar gif mobile, esconder desktop */
@media (max-width: 768px) {
    .handshake-desktop {
        display: none;
    }
    
    .handshake-mobile {
        display: block;
    }
    
    .handshake-gif {
        width: 148px;
        height: 148px;
    }
}

