/* ==========================================
   AMS REALTY - IDENTIDADE VISUAL
   ==========================================
   Cores:
   - #1a2332 (Navy Intenso - Principal)
   - #4a6d6d (Teal Sofisticado - Destaques)
   - #ffffff (Branco Puro)
   - #f8f8f8 (Cinza Clarinho - Gradientes)
   - #e8e8e8 (Cinza Claro - Bordas)

   Fontes:
   - Abril Fatface (Títulos)
   - Work Sans Light 300 (Textos)

   Paleta Inspirada: Jaqueta Nike (IMG_7146.PNG)
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Work+Sans:wght@300;400;500;600&display=swap');

/* ==========================================
   VARIÁVEIS CSS - PADRONIZAÇÃO
   ========================================== */

:root {
    /* ==========================================
       CORES BASE - Nomenclatura Descritiva
       ========================================== */
    --azul-petroleo: #1a2332;
    --verde-petroleo: #4a6d6d;

    --branco: #ffffff;
    --cinza-claro: #f8f8f8;
    --cinza-borda: #e8e8e8;

    /* ==========================================
       CORES PRINCIPAIS - Nomenclatura Funcional
       (use estas no código)
       ========================================== */
    --primary: var(--azul-petroleo);
    --secondary: var(--verde-petroleo);

    /* ==========================================
       CORES NEUTRAS
       ========================================== */
    --white: #ffffff;
    --black: #000000;
    --gray-200: #f8f8f8;
    --gray-400: #e8e8e8; /* Mantida - essencial para bordas */

    /* ==========================================
       CORES DE ESTADO (Bootstrap)
       ========================================== */
    --success: #28a745;
    --error: #dc3545;
    --info: #17a2b8;
    --warning: #ffc107;

    --success-bg: #f0fff4;
    --error-bg: #fff5f5;
    --info-bg: #f0f9ff;
    --warning-bg: #fffbf0;

    /* ==========================================
       RGB CHANNELS - Para transparências
       ========================================== */
    --primary-rgb: 26, 35, 50;
    --secondary-rgb: 74, 109, 109;
    --white-rgb: 255, 255, 255;
    --black-rgb: 0, 0, 0;

    /* ==========================================
       TIPOGRAFIA - FAMILIES
       ========================================== */
    --font-display: 'Abril Fatface', serif;
    --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Aliases funcionais */
    --font-heading: var(--font-display);
    --font-body: var(--font-sans);

    /* Compatibilidade (manter) */
    --font-title: var(--font-display);

    /* ==========================================
       TIPOGRAFIA - WEIGHTS (Validação 2026-01-19)
       ========================================== */
    --weight-light: 300;    /* ✅ PADRÃO Work Sans */
    --weight-regular: 400;  /* ⚠️  Exceções pontuais */
    --weight-medium: 500;   /* ⚠️  Exceções pontuais */
    --weight-semibold: 600; /* ⚠️  Exceções pontuais */

    /* ==========================================
       TIPOGRAFIA - SIZES (Validação 2026-01-19)
       Mantidos apenas tamanhos aprovados + compatibilidade
       ========================================== */

    /* ✅ APROVADOS - Abril Fatface */
    --text-7xl: 5em;        /* Hero home APENAS */
    --text-6xl: 3em;        /* Títulos principais (H1) */
    --text-4xl: 1em;        /* Subtítulos (H2) - Abril Fatface */

    /* ✅ APROVADOS - Work Sans */
    --text-2xl: 1.2em;      /* Texto grande/destaque */
    --text-base: 1em;       /* Texto padrão */
    --text-sm: 0.8em;       /* Texto pequeno */

    /* ⚠️ COMPATIBILIDADE - Manter para não quebrar código existente */
    --text-xs: 0.75em;      /* Labels, badges (revisar uso) */
    --text-md: 1em;         /* Base (alias de text-base) */
    --text-xl: 1.1em;       /* Intermediário (revisar uso) */
    --text-3xl: 1.5em;      /* Intermediário (revisar uso) */
    --text-5xl: 2em;        /* Intermediário (revisar uso) */

    /* ==========================================
       TIPOGRAFIA - LINE HEIGHTS
       ========================================== */
    --leading-none: 1;
    --leading-tight: 1.2;
    --leading-normal: 1.6;

    /* ==========================================
       TIPOGRAFIA - LETTER SPACING (Validação 2026-01-19)
       ========================================== */
    --tracking-normal: 1px;     /* ✅ PADRÃO APROVADO - Aplicado globalmente */
    --tracking-wider: 2px;      /* ⚠️ PONTUAL - Avaliar exceções */
    --tracking-none: 0;         /* Compatibilidade - sem espaçamento */

    /* ==========================================
       CORES SEMÂNTICAS
       ========================================== */
    --text-primary: var(--primary);
    --text-secondary: var(--secondary);
    --text-on-light: var(--primary);
    --text-on-dark: var(--white);

    --bg-primary: var(--white);
    --bg-secondary: var(--gray-200);

    --border-light: var(--gray-400);
    --border-dark: var(--primary);

    /* ==========================================
       OPERAÇÕES - Sistema Dinâmico
       (alteradas via data-operation-mode no body)
       ========================================== */
    --operation-color: var(--primary);
    --operation-color-dark: var(--primary-dark);
    --operation-color-rgb: var(--primary-rgb);

    /* ==========================================
       COMPORTAMENTO
       ========================================== */
    --hover-opacity: 0.5;
}

/* ==========================================
   ÍCONES EM BOTÕES - Validação 2026-01-19
   ========================================== */

/* REGRA: Ícones sobre botão colorido DEVEM ser brancos */
button[style*="background: var(--verde-petroleo)"] .material-symbols-outlined,
button[style*="background: var(--azul-petroleo)"] .material-symbols-outlined,
button[style*="background: var(--success)"] .material-symbols-outlined,
button[style*="background: var(--error)"] .material-symbols-outlined,
button[style*="background: var(--warning)"] .material-symbols-outlined,
button[style*="background: var(--info)"] .material-symbols-outlined,
button[style*="background:#4a6d6d"] .material-symbols-outlined,
button[style*="background:#1a2332"] .material-symbols-outlined,
button[style*="background:#28a745"] .material-symbols-outlined,
button[style*="background:#dc3545"] .material-symbols-outlined,
.btn-primary .material-symbols-outlined,
.btn-success .material-symbols-outlined,
.btn-danger .material-symbols-outlined,
.newsletter-button .material-symbols-outlined {
    color: white !important;
}

/* ==========================================
   SEM BORDAS ARREDONDADAS - Validação 2026-01-19
   ========================================== */

/* REGRA: Botões e inputs SEM border-radius (salvo exceções) */
button:not(.btn-glass):not(.btn-glass-circle):not(.badge):not([class*="badge"]):not([class*="property-badge"]),
input:not([type="radio"]):not([type="checkbox"]),
select,
textarea,
.btn:not(.badge):not([class*="badge"]) {
    border-radius: 0 !important;
}

/* Exceções mantidas:
   - .btn-glass, .btn-glass-circle (design específico hero)
   - badges/property-badge (design semântico)
   - radio/checkbox (nativos do browser)
*/

/* ==========================================
   SISTEMA PROPORCIONAL DE BOTÕES - Validação 2026-01-19
   ========================================== */

/* REGRA: Padding 50% maior que o texto, altura uniforme, largura variável */
button:not(.btn-icon):not(.btn-glass):not(.btn-glass-circle),
.btn:not(.btn-icon) {
    /* Padding proporcional: 50% maior que 1em = 0.5em vertical, 1em horizontal */
    padding: 0.5em 1em;

    /* Altura proporcional ao tamanho da fonte */
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em; /* Espaço entre texto e ícone */

    /* Transições suaves */
    transition: all 0.3s ease;

    /* Tipografia - font-size HERDADO ou inline (não forçar) */
    font-family: var(--font-sans);
    /* font-size: removido - permite herança/inline */
    font-weight: 500;

    /* Remove estilos padrão */
    border: none;
    cursor: pointer;
}

button:hover:not(:disabled),
.btn:hover:not(:disabled) {
    opacity: 0.8;
}

button:disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Ícones Material herdam tamanho do botão */
button .material-symbols-outlined,
.btn .material-symbols-outlined {
    font-size: 1em;
}

/* ==========================================
   BOTÕES DE ÍCONE - Validação 2026-01-19
   ========================================== */

/* Botão apenas com ícone (usado em tabelas, ações rápidas) */
.btn-icon {
    padding: 0.5em;
    background: transparent;
    border: 1px solid var(--gray-400);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 0;
    aspect-ratio: 1; /* Quadrado */
}

.btn-icon:hover {
    background: var(--gray-200);
    border-color: var(--azul-petroleo);
}

.btn-icon .material-symbols-outlined {
    font-size: 1em;
    color: var(--azul-petroleo);
}

.btn-icon.btn-danger {
    border-color: var(--error);
}

.btn-icon.btn-danger:hover {
    background: var(--error);
    border-color: var(--error);
}

.btn-icon.btn-danger:hover .material-symbols-outlined {
    color: white;
}

/* ==========================================
   RESET E BASE
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 300;
    background: var(--white);
    color: var(--primary);
    line-height: 1.6;
    letter-spacing: var(--tracking-normal); /* ✅ 1px padrão - Validação 2026-01-19 */
}

/* ==========================================
   PADRÕES DE INTERATIVIDADE GLOBAL
   Validado: 2026-01-20
   ========================================== */

/* Transição padrão para todos elementos interativos */
a, button, .btn, .card, input, select, textarea {
    transition: all 0.3s ease;
}

/* OPACITY - Padrão Global */
a {
    text-decoration: none;
    color: inherit;
    opacity: 1;
}

a:hover {
    opacity: 0.8;
}

button:hover, .btn:hover {
    opacity: 0.8;
}

/* Disabled states */
button:disabled, .btn:disabled, input:disabled, select:disabled, textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* TRANSFORM - EXCEÇÃO: Apenas cards */
.card:hover, .similar-card:hover, .card-venda:hover, .card-locacao:hover, .property-card:hover {
    transform: translateY(-2px);
}

/* ==========================================
   NAVEGAÇÃO
   ========================================== */

nav {
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.2) 70%,
        transparent 100%);
    padding: 0 40px;
    height: 60px;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

/* Logo com imagem (páginas internas: detalhes, admin) */
.logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}



/* Dropdown de Configurações */
.nav-dropdown {
    position: absolute;
    right: 40px;
    padding: 8px;
}

.nav-dropdown .material-symbols-outlined {
    font-size: 24px;
    opacity: 0.9;
}

.nav-dropdown:hover .material-symbols-outlined {
    opacity: 1;
}

.dropdown-trigger {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 15px;
    background: #fafafa !important;
    border-radius: 0;
    box-shadow: none;
    width: max-content;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--primary) !important;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    opacity: var(--hover-opacity);
}

/* ==========================================
   HERO SECTION - FULL-SCREEN ELLIMAN STYLE
   ========================================== */

.hero {
    height: 98vh;
    background: url('https://images.unsplash.com/photo-1524661135-423995f22d0b?w=1920') center/cover;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}

/* Overlay mais suave */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: saturate(1.1);
}

.hero-video.hidden {
    display: none;
}

.hero h1 {
    font-family: 'Abril Fatface', serif;
    font-size: 5em;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1;
}

/* Busca Rápida do Hero - Estilo Glass */
.hero-quick-search {
    display: flex;
    align-items: stretch;
    max-width: 600px;
    margin: 40px auto 0;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid white;
    border-radius: 2em;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    opacity: 0.8;
}

.hero-search-input {
    flex: 1;
    padding: 1em 1.5em;
    font-size: 1em;
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    letter-spacing: 1px;
    color: white;
    background: transparent !important;
    border: none;
    outline: none;
    caret-color: white;
}

.hero-search-input::placeholder {
    color: white;
    opacity: 0.8;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Prevenir autofill branco do navegador */
.hero-search-input:-webkit-autofill,
.hero-search-input:-webkit-autofill:hover,
.hero-search-input:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset;
    transition: background-color 5000s ease-in-out 0s;
}

.hero-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5em;
    background: transparent;
    border: none;
    border-left: 1px solid white;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-search-btn:hover {
    transform: scale(1.5);
}

.hero-search-btn .material-symbols-outlined {
    font-size: 24px;
}

/* Barra de busca expansível (legacy) */
.hero-search-bar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px 35px;
    border-radius: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.4s ease;
    text-align: center;
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.hero-search-bar.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.hero-search-bar:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.hero-search-label {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    opacity: 0.8;
}


.location-group {
    text-align: left;
    margin-bottom: 15px;
}

.location-group h4 {
    font-size: 0.85em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.location-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
    color: var(--primary);
}

.location-item:hover {
    background: var(--white);
    color: var(--primary);
}

/* Navbar Principal - Fixa no topo */
.hero-bottom-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    background: linear-gradient(to bottom, #273c54, #4a6d6d);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}



/* Logo - sempre visível */
.hero-bar-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Abril Fatface', serif;
    font-size: 2em;
    color: white;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
    opacity: 1;
    visibility: visible;
    transition: color 0.3s ease;
    z-index: 1102;
}

.hero-bar-logo a {
    color: inherit;
    text-decoration: none;
}

.hero-bottom-left {
    display: flex;
    align-items: center;
}

.hero-bottom-right {
    display: flex;
    align-items: center;
}

/* Links de navegação */
.hero-nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-nav-link {
    padding: 8px 16px;
    color: white;
    text-decoration: none;
    font-size: 1em;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.hero-nav-link:hover {
    opacity: 0.8;
}

.hero-nav-bullet {
    color: white;
    opacity: 0.5;
}

.hero-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: opacity 0.3s;
    padding: 6px;
}

/* Padding 6px em todos os elementos do menu */
.hero-bottom-bar .hero-bar-logo,
.hero-bottom-bar .hero-lancamentos {
    padding: 6px;
}

.hero-search-icon:hover {
    opacity: 0.7;
}

.hero-search-icon .material-symbols-outlined {
    font-size: 26px;
}

/* Dropdown Full-Width da Lupa */
.hero-tab-wrapper .hero-search-dropdown {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 8px 12px -6px rgba(0, 0, 0, 0.15);
    padding: 40px;
    z-index: 1003;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s ease;
    pointer-events: none;
}

/* Remover estilo de box dos filtros quando dentro do dropdown */
.hero-search-dropdown .filters-bar {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 20px;
}

.hero-search-dropdown .advanced-filters {
    background: transparent;
    padding: 20px 0 0 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}


.hero-operation-tabs {
    display: flex;
    gap: 35px;
    align-items: center;
}

.hero-operation-tab {
    background: transparent;
    border: none;
    color: white;
    padding: 6px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
    white-space: nowrap;
    display: inline-block;
}

.hero-operation-tab:hover {
    opacity: 0.7;
}

.hero-operation-tab.active {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 2px;
}

/* Wrapper para abas com dropdown */
.hero-tab-wrapper {
    position: relative;
    display: inline-block;
}

/* Área invisível para manter hover */
.hero-tab-wrapper::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
    z-index: 1999;
}

/* Dropdown das abas */
.hero-tab-dropdown {
    position: absolute;
    top: 49px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    box-shadow: 0 8px 12px -6px rgba(0, 0, 0, 0.15);
    border-radius: 0;
    width: max-content;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
    pointer-events: none;
}


.hero-tab-dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--primary);
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.hero-tab-dropdown a:hover {
    opacity: var(--hover-opacity);
}

.hero-lancamentos {
    background: transparent;
    color: white;
    padding: 6px;
    font-size: 1.05em;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.hero-lancamentos:hover {
    opacity: 0.7;
}

/* Responsivo Mobile */
@media (max-width: 768px) {
    .hero {
        height: 60vh;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-search-bar {
        max-width: 90%;
        padding: 16px 20px;
    }

    .hero-search-label {
        font-size: 0.8em;
    }

    .hero-quick-search {
        max-width: 90%;
        margin: 30px auto 0;
    }

    .hero-search-input {
        padding: 0.8em 1em;
        font-size: 0.9em;
    }

    .hero-search-btn {
        padding: 0 1em;
    }

    .hero-bottom-bar {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .hero-bottom-left {
        justify-content: center;
    }

    .hero-operation-tabs {
        flex: 1;
    }

    .hero-lancamentos {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   CONTAINER
   ========================================== */

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

.admin-container {
    width: 100%;
    padding: 40px 60px;
}

.admin-container .form-card {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 40px 0;
    border-top: 1px solid rgba(26, 35, 50, 0.08);
}

.admin-container .form-card:first-of-type {
    border-top: none;
}

.admin-container .form-section-title {
    font-size: 1.1em;
    letter-spacing: 1px;
}

.admin-container .admin-table {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid rgba(26, 35, 50, 0.2);
}

.admin-container .submit-btn {
    width: auto;
    border-radius: 0;
    box-shadow: none;
    padding: 12px 24px;
}

.admin-container .submit-btn:hover {
    transform: none;
    box-shadow: none;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.admin-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
    color: var(--primary);
}

.admin-checkbox input {
    width: auto;
}

.admin-form-submit {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}
.admin-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.admin-card {
    border: 1px solid rgba(26, 35, 50, 0.15);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

.admin-card-title {
    font-weight: 500;
    color: var(--primary);
}

.admin-empty {
    text-align: center;
    padding: 60px 20px;
    border: 1px dashed rgba(26, 35, 50, 0.2);
    color: var(--primary);
}

.admin-empty h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
}

.admin-empty p {
    margin-bottom: 15px;
    color: var(--secondary);
}

.share-dropdown {
    position: relative;
}

.share-dropdown .share-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: var(--white);
    border: 1px solid rgba(26, 35, 50, 0.2);
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

.share-dropdown .share-menu a,
.share-dropdown .share-menu button {
    border: none;
    background: none;
    text-align: left;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.95em;
    color: var(--primary);
    text-decoration: none;
    padding: 6px 0;
    cursor: pointer;
}

.share-dropdown .share-menu a:hover,
.share-dropdown .share-menu button:hover {
    color: var(--secondary);
}

.share-dropdown.active .share-menu {
    display: flex;
}

.operation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.operation-option {
    border: 1px solid rgba(26, 35, 50, 0.15);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.operation-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
    color: var(--primary);
}

.operation-price {
    display: none;
    padding: 10px 12px;
    border: 1px solid rgba(26, 35, 50, 0.2);
    border-radius: 0;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.95em;
}

.operation-option.active .operation-price {
    display: block;
}

.admin-container table.admin-table th,
.admin-container table.admin-table td {
    padding: 8px 14px;
    font-size: 0.95em;
}

.admin-container table.admin-table thead th,
.admin-table thead th {
    text-align: center !important;
}

.admin-container table.admin-table tbody tr {
    border-bottom: 1px solid rgba(26, 35, 50, 0.08);
    transition: none;
}

.admin-container table.admin-table tbody tr:last-child {
    border-bottom: none;
}

.admin-container table.admin-table tbody tr:hover {
    background: var(--gray-200);
}

/* ==========================================
   FILTROS - COLAPSÁVEIS
   ========================================== */

/* ==========================================
   FILTROS ESTILO ELLIMAN
   ========================================== */

.filters-bar {
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filters-inline {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group input {
    width: 140px;
    padding: 10px 14px;
    border: 1px solid var(--secondary);
    border-radius: 6px;
    font-size: 0.9em;
    font-family: 'Work Sans', sans-serif;
    transition: all 0.2s;
}

.filter-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-select {
    padding: 10px 14px;
    border: 1px solid var(--secondary);
    border-radius: 6px;
    font-size: 0.9em;
    font-family: 'Work Sans', sans-serif;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
}

.filter-select:hover {
    border-color: var(--primary);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.more-filters-btn {
    padding: 10px 16px;
    border: 1px solid var(--secondary);
    border-radius: 6px;
    background: white;
    color: var(--primary);
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.more-filters-btn:hover {
    background: #f8faf9;
    border-color: var(--primary);
}

.filters-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.action-btn {
    padding: 10px 16px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    background: white;
    color: var(--primary);
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.search-btn {
    padding: 10px 12px;
}

/* Filtros Avançados */
.advanced-filters {
    background: white;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    display: none;
}

.advanced-filters.open {
    display: block;
}

.advanced-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.filter-select-advanced,
.filter-input-advanced {
    padding: 12px 16px;
    border: 1px solid var(--secondary);
    border-radius: 6px;
    font-size: 0.95em;
    font-family: 'Work Sans', sans-serif;
    transition: all 0.2s;
    width: 100%;
}

.filter-select-advanced:focus,
.filter-input-advanced:focus {
    outline: none;
    border-color: var(--primary);
}

.apply-filters-btn {
    flex: 1;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.apply-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.clear-filters-btn {
    flex: 0.4;
    padding: 12px 24px;
    background: var(--secondary);
    color: var(--primary);
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
}

.clear-filters-btn:hover {
    background: #b0c4b3;
}

/* Responsivo */
@media (max-width: 968px) {
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filters-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group input {
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

    .filters-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   GRID DE IMÓVEIS
   ========================================== */

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

.property-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.property-image {
    width: 100%;
    height: 224px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4em;
    position: relative;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Removido - conflito com property-tags badges */

.property-content {
    padding: 12px 16px;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.property-title {
    font-family: 'Abril Fatface', serif;
    font-size: 1em;
    color: var(--primary);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.property-details {
    font-size: 0.8em;
    color: var(--primary);
    margin: 0 0 4px 0;
    opacity: 0.8;
}

.property-address {
    color: var(--primary);
    margin: 0;
    font-size: 0.8em;
    opacity: 0.8;
}

.property-price {
    font-family: 'Work Sans', sans-serif;
    font-size: 1em;
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
}

.property-features {
    display: flex;
    gap: 25px;
    padding-top: 20px;
    border-top: 2px solid var(--white);
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 500;
}

.feature .material-icons {
    font-size: 18px;
    color: var(--primary);
}

/* ==========================================
   PÁGINA DE DETALHES
   ========================================== */

.gallery-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.main-image {
    width: 100%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 6em;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

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

.detail-container {
    width: 100%;
    margin: 0;
    padding: 0;
    scroll-snap-type: y mandatory;
}

.main-content {
    background: white;
    padding: 80px 60px;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Property Tags/Badges */
.property-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 0;
}

/* ==========================================
   BADGES - TIPOGRAFIA GLOBAL (Validação 2026-01-19)
   ========================================== */
[class*="badge"] {
    /* Tipografia */
    font-size: var(--text-sm) !important; /* ✅ 0.8em - menor fonte */
    font-weight: var(--weight-semibold) !important; /* ✅ 600 - semibold */
    text-transform: uppercase !important; /* ✅ MAIÚSCULAS */
    letter-spacing: var(--tracking-normal) !important; /* ✅ 1px */
    font-family: var(--font-sans) !important;

    /* Padding proporcional (igual aos botões) */
    padding: 0.5em 1em !important; /* ✅ PROPORCIONAL - 50% maior que texto */

    /* Display */
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
}

/* Badges em cards - Validado 2026-01-20 */
.card .property-badge,
.property-card .property-badge,
.similar-card .property-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    opacity: 0.9;
    /* font-size definido em BADGE SIZE VARIANTS */
}

.property-badge {
    display: inline-block;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.property-badge:hover {
    opacity: 0.8;
}

/* ==========================================
   BADGE COLOR VARIANTS
   ========================================== */

/* Status badges */
.badge-success {
    background: var(--success);
    color: var(--white);
}

.badge-error {
    background: var(--error);
    color: var(--white);
}

.badge-warning {
    background: var(--warning);
    color: #000;
}

.badge-info {
    background: var(--info);
    color: var(--white);
}

/* Tag badges (neutral) */
.badge-tag {
    background: var(--gray-400);
    color: var(--azul-petroleo);
    border-radius: 0; /* Sem arredondamento */
}

/* Numeric badges */
.badge-numeric {
    border-radius: 999px; /* Completamente arredondado */
}

/* Property badges - cores específicas */
.badge-destaque,
.property-badge.destaque {
    background: var(--warning);
    color: #000;
}

.badge-novo,
.property-badge.novo {
    background: var(--success);
    color: var(--white);
}

.badge-lancamento,
.property-badge.lancamento {
    background: var(--info);
    color: var(--white);
}

.badge-exclusivo,
.property-badge.exclusivo {
    background: var(--azul-petroleo);
    color: var(--white);
}

/* Blog badges */
.badge-category,
.badge-operation {
    background: var(--operation-color, var(--primary));
    color: var(--white);
    /* font-size herdado do [class*="badge"]: 0.8em */
}

/* ==========================================
   BADGE SIZE VARIANTS - Design System
   sm=0.8em (padrão), md=1em, lg=1.2em
   ========================================== */
.badge-sm { font-size: 0.8em !important; }
.badge-md { font-size: 1em !important; }
.badge-lg { font-size: 1.2em !important; }

/* Badges em cards sempre usam tamanho específico */
.card .property-badge,
.property-card .property-badge,
.similar-card .property-badge {
    font-size: 0.6em !important;
}

.property-title {
    font-family: 'Abril Fatface', serif;
    margin-bottom: 30px;
    color: var(--primary);
    font-weight: 400;
    line-height: 1.2;
}

.property-address {
    font-size: 1.2em;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0.8;
}

.property-price {
    font-family: 'Abril Fatface', serif;
    color: var(--primary);
    font-weight: 400;
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--white);
}

.feature-item {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    transition: all 0.3s;
}

.feature-item:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 2em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon .material-icons {
    font-size: 2em;
    color: var(--primary);
}

.feature-label {
    font-size: 0.85em;
    color: var(--primary);
    margin-bottom: 5px;
    opacity: 0.8;
}

.feature-value {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--primary);
}

.section-title {
    font-family: 'Abril Fatface', serif;
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 400;
    display: flex;
    align-items: center;
}

.section-title .material-icons {
    font-size: 1.2em;
}

.description {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--primary);
    margin-bottom: 40px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid var(--primary);
}

.info-card-label {
    font-size: 0.9em;
    color: var(--primary);
    margin-bottom: 5px;
    opacity: 0.8;
}

.info-card-value {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--primary);
}


/* ==========================================
   PAINEL ADMINISTRATIVO
   ========================================== */

/* Admin Header - Estilo Control (linha embaixo) */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1em;
    padding-bottom: 1em;
    margin-bottom: 1.5em;
    border-bottom: 2px solid var(--primary);
}

.admin-header h1 {
    font-size: 1.2em; /* lg */
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.admin-header p {
    font-size: 1em; /* md */
    color: var(--secondary);
    margin-top: 0.5em;
}

.form-card {
    background: white;
    padding: 2em;
    border: 1px solid var(--gray-400);
}

.form-section {
    margin-bottom: 40px;
}

.form-section-title {
    font-family: 'Abril Fatface', serif;
    font-size: 1.5em;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--white);
    font-weight: 400;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-row.form-row-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
    display: block;
    margin-bottom: 10px;

    /* Tipografia - Validação 2026-01-19 */
    text-transform: uppercase; /* ✅ MAIÚSCULAS */
    font-weight: 600; /* Exceção - labels são "títulos" dos campos */
    font-size: var(--text-sm); /* ✅ 0.8em - MENOR que inputs */
    letter-spacing: var(--tracking-normal); /* 1px */

    color: var(--primary);
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--secondary);
    border-radius: 10px; /* Será sobrescrito por border-radius: 0 do CSS global */

    /* Tipografia aprovada - Validação 2026-01-19 */
    font-size: var(--text-sm); /* ✅ 0.8em - MESMO tamanho que labels */
    font-weight: var(--weight-light); /* 300 - Light */
    letter-spacing: var(--tracking-normal); /* 1px */
    font-family: var(--font-sans); /* Work Sans */

    transition: all 0.3s;
    background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 18px 35px;
    border: none;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Work Sans', sans-serif;
}

.submit-btn .material-icons {
    font-size: 24px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   BOTÃO FLUTUANTE
   ========================================== */

.admin-btn {
    position: fixed;
    bottom: 35px;
    right: 35px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s;
    z-index: 999;
}

.admin-btn:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   ESTADO VAZIO
   ========================================== */

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--primary);
}

.empty-state h3 {
    font-family: 'Abril Fatface', serif;
    font-size: 2.2em;
    margin-bottom: 18px;
    color: var(--primary);
    font-weight: 400;
}

/* ==========================================
   RESPONSIVIDADE
   ========================================== */

@media (max-width: 1024px) {
    .detail-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.1em;
    }

    nav {
        padding: 15px 20px;
    }

    nav .logo {
        height: 40px;
    }

    .nav-links {
        gap: 20px;
        font-size: 0.9em;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-row.form-row-3 {
        grid-template-columns: 1fr;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 40px 20px;
    }
}

/* ==========================================
   AMENIDADES - BADGES
   ========================================== */

.amenities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.amenity-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary);
    color: var(--primary);
    padding: 10px 18px;
    border-radius: 25px;

    /* Tipografia - Validação 2026-01-19 */
    font-size: var(--text-sm); /* ✅ 0.8em - menor fonte */
    font-weight: var(--weight-semibold); /* ✅ 600 - semibold */
    text-transform: uppercase; /* ✅ MAIÚSCULAS */
    letter-spacing: var(--tracking-normal); /* ✅ 1px */
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.amenity-badge .material-icons {
    font-size: 20px;
}

.amenity-badge:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.amenity-badge.featured {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
    color: var(--white);
    font-weight: 600;
    border: 2px solid var(--secondary);
}

.amenity-badge.featured:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.meta-line {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 6px;
}

.meta-label {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    opacity: 0.8;
}

.meta-value {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9em;
    color: #4b5563;
}

/* ==========================================
   CAMPO DE BUSCA
   ========================================== */

#busca {
    font-family: 'Work Sans', sans-serif;
}

#busca:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

#busca::placeholder {
    color: var(--primary);
    opacity: 0.6;
}

/* ==========================================
   TABELA DE IMÓVEIS (Admin)
   ========================================== */

.imoveis-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.imoveis-table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
}

.imoveis-table thead th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--white);
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.imoveis-table thead th:last-child {
    text-align: center;
}

.imoveis-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--white);
}

.imoveis-table tbody tr:hover {
    background: #f5f9f6;
    transform: scale(1.01);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.imoveis-table tbody tr:last-child {
    border-bottom: none;
}

.imoveis-table tbody td {
    padding: 16px 20px;
    color: var(--primary);
    font-size: 0.95em;
}

.imoveis-table tbody td a {
    transition: color 0.3s ease;
}

.imoveis-table tbody td a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Overrides para tela de amenidades (sem animações) */
.admin-container .admin-table tbody tr,
.admin-container .admin-table tbody tr:hover {
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.admin-container .admin-table tbody tr:hover {
    background: #f4f4f6 !important;
}

/* Botões da tabela - Validado 2026-01-20 */
.table-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0;
    text-decoration: none;
    font-size: 1em;
    cursor: pointer;
    border: 1px solid var(--gray-400);
    background: transparent;
    color: var(--azul-petroleo);
    transition: all 0.3s ease;
}

.table-btn .material-icons {
    font-size: 20px;
}

.table-btn.edit {
    border-color: var(--azul-petroleo);
    color: var(--azul-petroleo);
}

.table-btn.delete {
    border-color: var(--error);
    color: var(--error);
}

.table-btn:hover {
    opacity: 0.8;
    background: var(--gray-200);
}

.table-btn.edit:hover {
    background: rgba(26, 35, 50, 0.1);
}

.table-btn.delete:hover {
    background: rgba(179, 38, 30, 0.1);
}

/* Responsividade da tabela */
@media (max-width: 768px) {
    .imoveis-table {
        font-size: 0.9em;
    }

    .imoveis-table thead th,
    .imoveis-table tbody td {
        padding: 12px 10px;
    }

    .table-btn {
        width: 34px;
        height: 34px;
        font-size: 1em;
    }
}

/* ==========================================
   SEÇÕES INSTITUCIONAL / HEROES
   ========================================== */

.full-section {
    min-height: 98vh;
    padding-top: 4em;
    box-sizing: border-box;
    position: relative;
    scroll-snap-align: start;
}

.institutional-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--white) 100%);
    padding: 9em 2.5em 5em 2.5em;
    display: flex;
    align-items: center;
}

.institutional-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.institutional-text {
    flex: 1;
    text-align: left;
}

.institutional-stats {
    flex: 1;
}

.institutional-title {
    font-family: 'Abril Fatface', serif;
    font-size: 3.5em;
    color: var(--text-on-light);
    margin-bottom: 15px;
}

.institutional-subtitle {
    font-size: 1.2em;
    color: var(--verde-petroleo);
    margin-bottom: 0;
    opacity: 0.85;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    position: relative;
    align-items: end;
    min-height: 280px;
}

.stat-item {
    background: var(--white);
    padding: 35px 20px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    text-align: center;
    transition: all 0.3s ease;
    clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
}

/* Escalonamento diagonal - cada card mais alto */
.stat-item:nth-child(1) {
    margin-bottom: 90px;
}

.stat-item:nth-child(2) {
    margin-bottom: 60px;
}

.stat-item:nth-child(3) {
    margin-bottom: 30px;
}

.stat-item:nth-child(4) {
    margin-bottom: 0;
}

/* Linha diagonal removida - nao conversa com design system */

.stat-item {
    z-index: 1;
}

/* Efeito hover nos cards */
.stat-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-family: 'Abril Fatface', serif;
    font-size: 3em;
    color: var(--verde-escuro);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85em;
    color: var(--verde-petroleo);
    line-height: 1.4;
}

.featured-carousel-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
}

.featured-hero {
    position: relative;
    width: 100vw;
    height: 98vh;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

/* Ken Burns zoom - aplicado ao slide ativo */
@keyframes slowZoom {
    0% {
        background-size: 100%;
    }
    100% {
        background-size: 105%;
    }
}

/* Slide entra da direita (próximo) */
@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Slide entra da esquerda (anterior) */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Slide sai pela esquerda */
@keyframes slideOutToLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Slide sai pela direita */
@keyframes slideOutToRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
    }
}

.featured-hero-slide {
    position: absolute;
    inset: 0;
    background-size: 100%;
    background-position: center;
    transform: translateX(100%);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--text-on-dark);
    text-decoration: none;
}

.featured-hero-slide.active {
    transform: translateX(0);
    pointer-events: auto;
    animation: slowZoom 6s linear forwards;
}

/* Animações de entrada */
.featured-hero-slide.slide-in-right {
    animation: slideInFromRight 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) forwards,
               slowZoom 6s linear forwards;
}

.featured-hero-slide.slide-in-left {
    animation: slideInFromLeft 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) forwards,
               slowZoom 6s linear forwards;
}

/* Animações de saída */
.featured-hero-slide.slide-out-left {
    animation: slideOutToLeft 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

.featured-hero-slide.slide-out-right {
    animation: slideOutToRight 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

/* Exceção: carousel slides não devem ter hover opacity */
.featured-hero-slide:hover {
    opacity: 1 !important;
}

.featured-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0) 30%);
    z-index: 1;
}

.featured-hero-info {
    position: relative;
    z-index: 2;
    padding: 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    color: var(--white);
}

.featured-hero-title {
    font-family: 'Abril Fatface', serif;
    font-size: 2em;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
}

.featured-hero-summary {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    font-size: 1em;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.featured-hero-summary .summary-item {
    color: rgba(255, 255, 255, 0.85);
}

.summary-separator {
    width: 6px;
    height: 6px;
    background: currentColor;
    transform: rotate(45deg);
    opacity: 0.5;
}

.featured-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.featured-hero-nav.prev {
    left: 30px;
}

.featured-hero-nav.next {
    right: 30px;
}

/* Sobrescreve hover para manter centralização vertical */
.featured-hero-nav.btn-glass-circle:hover {
    transform: translateY(-50%) scale(1.05);
}


.category-hero-section {
    background: linear-gradient(to bottom, rgba(var(--primary-rgb), 1) 0%, #0a0a0a 100%);
    padding-left: 2.5em;
    padding-right: 2.5em;
}

.category-hero-section .category-hero-content {
    min-height: calc(98vh - 60px); /* 98vh menos o padding-top do full-section */
}

.category-hero-content {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.category-hero-header {
    text-align: center;
}

.category-hero-title {
    font-family: var(--font-title);
    font-size: 3em;
    font-weight: 400;
    color: var(--text-on-dark);
    letter-spacing: 1px;
}

.category-hero-title .underline-animate {
    position: relative;
    display: inline;
    background: linear-gradient(to right, white 0%, white 100%);
    background-size: 0% 80%;
    background-repeat: no-repeat;
    background-position: left bottom;
    padding: 0 4px;
    margin: 0 -4px;
    transition: background-size 0.6s ease, color 0.6s ease;
}

.category-hero-section.visible .category-hero-title .underline-animate {
    background-size: 99% 80%;
    color: var(--primary);
}

.category-hero-subtitle {
    font-size: 1.05em;
    color: rgba(255, 255, 255, 0.85);
}

.category-hero-grid {
    display: flex;
    justify-content: space-evenly;
    align-items: stretch;
}

.category-hero-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    min-height: 65vh;
    width: 24%;
    text-decoration: none;
    color: var(--text-on-dark);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #0f131a;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.category-hero-card-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
    transition: transform 0.6s ease;
}

.category-hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 9, 13, 0) 30%, rgba(7, 9, 13, 0.85) 100%);
    z-index: 1;
}

.category-hero-card-info {
    position: relative;
    z-index: 2;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-hero-card-title {
    font-family: 'Abril Fatface', serif;
    font-size: 1.2em;
    letter-spacing: 1px;
    color: white;
}

.category-hero-card-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    font-weight: 300;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
}

.category-hero-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 35px 60px rgba(255, 255, 255, 0.15);
    opacity: 1 !important; /* Exceção: cards não ficam semi-transparentes */
}

.category-hero-card:hover .category-hero-card-image {
    transform: scale(1.08);
}

.category-hero-cta {
    text-decoration: none;
    align-self: center;
}

@media (max-width: 1200px) {
    .category-hero-grid {
        flex-wrap: wrap;
        gap: 20px;
    }

    .category-hero-card {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .institutional-section {
        padding: 120px 20px 60px 20px;
    }

    .category-hero-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .category-hero-grid {
        flex-direction: column;
        align-items: center;
    }

    .category-hero-card {
        width: 100%;
        min-height: 35vh;
    }
}

/* ==========================================
   FLASH MESSAGES
   ========================================== */

.flash-messages {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 450px;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    background: white;
    border-left: 5px solid var(--primary);
    animation: slideInRight 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.3s ease;
}

.flash-message:hover {
    transform: translateX(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.flash-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.flash-text {
    flex: 1;
    font-size: 1.05em;
    font-weight: 500;
    color: var(--primary);
    line-height: 1.4;
}

.flash-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.flash-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.flash-close .material-icons {
    font-size: 20px;
    color: var(--primary);
}

/* Flash Message - Success */
.flash-success {
    border-left-color: var(--success);
    background: linear-gradient(135deg, var(--success-bg) 0%, var(--white) 100%);
}

.flash-success .flash-icon {
    color: var(--success);
}

/* Flash Message - Error */
.flash-error {
    border-left-color: var(--error);
    background: linear-gradient(135deg, var(--error-bg) 0%, var(--white) 100%);
}

.flash-error .flash-icon {
    color: var(--error);
}

/* Flash Message - Info */
.flash-info {
    border-left-color: var(--info);
    background: linear-gradient(135deg, var(--info-bg) 0%, var(--white) 100%);
}

.flash-info .flash-icon {
    color: var(--info);
}

/* Flash Message - Warning */
.flash-warning {
    border-left-color: var(--warning);
    background: linear-gradient(135deg, var(--warning-bg) 0%, var(--white) 100%);
}

.flash-warning .flash-icon {
    color: var(--warning);
}

/* Animação */
@keyframes slideInRight {
    from {
        transform: translateX(500px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsividade Flash Messages */
@media (max-width: 768px) {
    .flash-messages {
        top: 80px;
        right: 15px;
        left: 15px;
        max-width: none;
    }

    .flash-message {
        padding: 15px 20px;
        font-size: 0.95em;
    }

    .flash-icon {
        font-size: 24px;
    }

    .flash-close .material-icons {
        font-size: 18px;
    }

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

/* ==========================================
   GLASS BUTTON COMPONENT - Padrão do Site
   ========================================== */

.btn-glass {
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    border: 1px solid white;
    border-radius: 2em;
    padding: 1em 1.5em;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-glass:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: white;
    transform: scale(1.05);
}

/* Variantes de tamanho */
.btn-glass-sm { font-size: 0.8em; }
.btn-glass-md { font-size: 1em; }
.btn-glass-lg { font-size: 1.2em; }

/* Variante circular para ícones */
.btn-glass-circle {
    width: 3em;
    height: 3em;
    border-radius: 50%;
    padding: 0;
}

.btn-glass-circle:hover {
    transform: scale(1.05);
}

/* ==========================================
   OPERATION TOGGLE COMPONENT - Venda/Locacao
   Proporcional: todos os valores em em
   ========================================== */
.operation-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.15em;
    background: #f1f2f4;
    border-radius: 999px;
    min-width: 11em;
    cursor: pointer;
    border: 1px solid var(--operation-color);
}

.operation-toggle-slider {
    position: absolute;
    top: 0.15em;
    bottom: 0.15em;
    left: 0.15em;
    width: calc(50% - 0.25em);
    background: var(--secondary);
    border-radius: 999px;
    transition: left 0.3s ease, background 0.3s ease;
    border: none;
    box-sizing: border-box;
}

.operation-toggle[data-active="Venda"] .operation-toggle-slider {
    left: calc(50% + 0.1em);
    background: var(--primary);
}

.operation-toggle-option {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Work Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4em 0.8em;
    z-index: 1;
    transition: color 0.3s ease;
    position: relative;
    text-align: center;
    pointer-events: none;
    font-weight: 600;
}

.operation-toggle-option[data-operation="Venda"] {
    color: var(--primary);
    transform: translateX(0.15em);
}

.operation-toggle-option[data-operation="Locação"] {
    color: var(--secondary);
    transform: translateX(-0.1em);
}

.operation-toggle-option.active {
    color: var(--white) !important;
}

/* Variantes de tamanho */
.operation-toggle-sm { font-size: 0.8em; }
.operation-toggle-md { font-size: 1em; }
.operation-toggle-lg { font-size: 1.2em; }

/* ==========================================
   FLOATING BUTTONS - PADRÃO DO SITE
   ========================================== */

/* GUIA DE ESTILO - BOTÕES FLUTUANTES:
   Estado normal:
   - Background: Gradiente escuro (linear-gradient(to bottom, #1a2332, #1a2332))
   - Conteúdo: Branco (#ffffff)
   - Borda: Branca (border: 2px solid #ffffff)

   Estado hover:
   - Transform: scale(1.1) - aumento de 10%
   - Background: Gradiente claro (linear-gradient(to bottom, var(--secondary), var(--white)))
   - Conteúdo: Azul petróleo (#1a2332)
   - Borda: Azul petróleo (border: 2px solid #1a2332)
*/

.floating-admin-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.fab-trigger {
    width: 60px;
    height: 60px;
}

.fab-trigger .material-symbols-outlined {
    font-size: 28px;
}

.fab-menu {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: #fafafa !important;
    border-radius: 0;
    box-shadow: none;
    width: max-content;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.floating-admin-btn:hover .fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--primary);
    font-size: 0.95em;
    transition: all 0.2s;
}

.fab-menu a:hover {
    opacity: var(--hover-opacity);
}

/* Responsividade para FAB */
@media (max-width: 768px) {
    .floating-admin-btn {
        bottom: 20px;
        right: 20px;
    }

    .fab-trigger {
        width: 56px;
        height: 56px;
    }

    .fab-trigger .material-symbols-outlined {
        font-size: 24px;
    }
}

/* ==========================================
   INSTITUTIONAL + INSTAGRAM SECTION COMBINADA
   ========================================== */

.institutional-instagram-section {
    background: var(--secondary);
}

.institutional-instagram-section .institutional-half {
    height: calc((98vh - 60px) * 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(var(--secondary-rgb), 1) 0%, #0a0a0a 100%);
}

/* Blog Grid alinhado à esquerda */
.blog-home-grid {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    height: 100%;
    padding: 20px 50px;
    box-sizing: border-box;
}

.blog-home-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 20%;
    padding-right: 20px;
}

.blog-home-header h2 {
    color: #fff;
    font-size: 2em;
    margin-bottom: 18px;
    font-family: 'Abril Fatface', serif;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 1px;
}

.blog-home-header p {
    color: #fff;
    font-size: 1em;
    opacity: 1;
    line-height: 1.6;
    margin-bottom: 26px;
    letter-spacing: 1px;
}

.blog-home-header .btn-glass {
    align-self: flex-start;
}

.blog-card-home {
    width: 22%;
    text-decoration: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid white;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.institutional-instagram-section .instagram-half {
    height: calc((98vh - 60px) * 0.3);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
    background: linear-gradient(to bottom, #9ca3af, #e5e7eb);
}

.instagram-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
}

.instagram-grid {
    display: flex;
    flex-direction: row;
    gap: 4px;
    width: 100%;
    height: 100%;
    padding: 4px;
    box-sizing: border-box;
}

.instagram-grid .instagram-post {
    flex: 1;
    max-width: calc((100% - 5 * 4px) / 6);
}

.instagram-grid .instagram-cta-box {
    flex: 0 0 auto;
    width: calc((100% - 5 * 4px) / 6);
    order: 999;
}

.instagram-post {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #0f131a;
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
    width: calc(100% - 1px);
    height: calc(100% - 1px);
}

.instagram-cta-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #273c54;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    width: calc(100% - 1px);
    height: calc(100% - 1px);
}

.instagram-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.instagram-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-icon {
    font-size: 48px;
    color: white;
}

.instagram-post:hover .instagram-overlay {
    opacity: 1;
}

.instagram-post:hover .instagram-image {
    transform: scale(1.1);
}

/* Botão Seguir como 5ª coluna */
.instagram-cta-box {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.4s ease;
    padding: 20px;
    text-align: center;
    gap: 8px;
}

.instagram-cta-box .cta-text-main {
    font-family: 'Abril Fatface', serif;
    font-size: 1.8em;
    font-weight: 400;
    line-height: 1;
}

.instagram-cta-box .cta-text-handle {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.1em;
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
}

.instagram-cta-box .cta-text-subtitle {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.95em;
    font-weight: 400;
    line-height: 1;
    opacity: 0.85;
}

.instagram-cta-box:hover {
    background: linear-gradient(135deg, #4a6d6d 0%, #ffffff 100%);
    color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    opacity: 1 !important;
}

.instagram-cta-box:hover .cta-text-handle {
    color: var(--primary);
}

/* Newsletter Half (50% inferior) */
.newsletter-half {
    background: var(--primary);
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-content {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5em;
    align-items: center;
    padding: 0 4em;
    box-sizing: border-box;
}

.newsletter-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.newsletter-title {
    font-family: 'Abril Fatface', serif;
    font-size: 2em;
    font-weight: 400;
    color: white;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 1px;
}

.newsletter-subtitle {
    font-size: 1em;
    color: white;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 1px;
    margin: 0;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.newsletter-input-wrapper {
    display: flex;
    gap: 0.75em;
    align-items: center;
}

.newsletter-input {
    flex: 1;
    height: 3em;
    padding: 0 1.5em;
    font-size: 0.8em;
    letter-spacing: 1px;
    border: 1px solid white;
    background: white;
    color: var(--primary);
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    border-color: #4a6d6d;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

.newsletter-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.newsletter-button {
    padding: 18px 32px;
    background: linear-gradient(to bottom, var(--secondary), var(--white));
    color: var(--primary);
    border: 2px solid transparent;
    font-weight: 700;
    font-size: 1.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.newsletter-button:hover {
    background: white;
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.newsletter-privacy {
    font-size: 0.8em;
    color: white;
    letter-spacing: 1px;
    text-align: center;
}

/* Responsivo Tablet */
@media (max-width: 1024px) {
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .instagram-cta-box {
        grid-column: span 3;
        aspect-ratio: auto;
        min-height: 140px;
        padding: 20px;
    }

    .instagram-cta-box .cta-text-main {
        font-size: 1.6em;
    }

    .instagram-cta-box .cta-text-handle {
        font-size: 1.05em;
    }
}

@media (max-width: 768px) {
    .institutional-instagram-section,
    .newsletter-footer-section {
        flex-direction: column;
    }

    .institutional-half {
        height: auto;
        min-height: 50vh;
        padding: 80px 20px;
    }

    .institutional-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .institutional-text {
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .instagram-half {
        height: auto;
        min-height: 50vh;
        padding: 60px 20px 40px 20px;
    }

    .newsletter-footer-section .newsletter-half {
        height: auto;
        min-height: 50vh;
        padding: 80px 20px;
    }

    .footer-half {
        min-height: 50vh;
        padding: 0;
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .instagram-cta-box {
        grid-column: span 2;
        min-height: 120px;
        padding: 15px;
    }

    .instagram-cta-box .cta-text-main {
        font-size: 1.5em;
    }

    .instagram-cta-box .cta-text-handle {
        font-size: 1em;
    }

    .instagram-cta-box .cta-text-subtitle {
        font-size: 0.9em;
    }

    .newsletter-content {
        flex-direction: column;
        gap: 40px;
    }

    .newsletter-text {
        text-align: center;
    }

    .newsletter-title {
        font-size: 1.8em;
    }

    .newsletter-subtitle {
        font-size: 0.95em;
    }

    .newsletter-form {
        width: 100%;
    }

    .newsletter-input-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-input,
    .newsletter-button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .newsletter-button {
        padding: 16px 28px;
    }

    .newsletter-privacy {
        text-align: center;
    }
}

/* ==========================================
   NEWSLETTER + FOOTER SECTION COMBINADA
   ========================================== */

.newsletter-footer-section {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    justify-content: space-between;
    background: var(--primary);
    padding-top: 0;
}

/* Newsletter Half - Expanded */
.newsletter-footer-section .newsletter-half {
    height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer Half - Auto height based on content */
.footer-half {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    height: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
}

/* ==========================================
   FOOTER - Estilos de conteúdo
   ========================================== */

/* Removido .site-footer - estilos inline no componente */

.footer-content {
    width: 100%;
    padding: 2em 2.5em;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5em;
    color: var(--white);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.footer-column:first-child {
    text-align: center;
    align-self: center;
}

.footer-logo {
    font-family: 'Abril Fatface', serif;
    font-size: 2em;
    font-weight: 400;
    color: white;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
}

.footer-tagline {
    font-size: 1em;
    color: var(--white);
    font-weight: 300;
    letter-spacing: 1px;
    margin: 0;
}

.footer-description {
    font-size: 0.95em;
    line-height: 1.7;
    color: var(--white);
}

.footer-heading {
    font-family: 'Abril Fatface', serif;
    font-size: 1.2em;
    font-weight: 400;
    color: var(--white);
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1em;
    font-weight: 300;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    opacity: 0.5;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 1em;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--white);
}

.footer-icon {
    font-size: 1em;
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 0.75em;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    opacity: 0.8;
}

.social-link .material-symbols-outlined {
    font-size: 22px;
    color: var(--white);
}

.social-link img {
    width: 22px;
    height: 22px;
    display: block;
    filter: brightness(0) invert(1);
}

.footer-newsletter-link {
    margin-top: 10px;
    font-size: 0.95em;
    color: var(--white);
}

.footer-newsletter-link a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-newsletter-link a:hover {
    opacity: 0.7;
}

.footer-bottom {
    background: #000000;
    padding: 10px 0;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom-content {
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--white);
}

.footer-copyright {
    font-size: 0.8em;
    color: var(--white);
    opacity: 0.7;
}

.footer-legal {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.8em;
    color: var(--white);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-legal a:hover {
    opacity: 0.5;
}

.footer-separator {
    color: var(--white);
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 120px 20px 0 20px;
        min-height: 100vh;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 40px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }

    .footer-separator {
        display: none;
    }
}
