/* style.css - Design Premium BetterHomes */

/* Utilities */
.mb-4 { margin-bottom: 1.5rem; }

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

:root {
    --primary-color: #D31221; /* Vermelho do logótipo */
    --primary-hover: #b00f1c;
    --secondary-color: #0B132B; /* Navy Escuro Premium */
    --text-color: #2b2f38;       /* Cinza-tinta suave, menos duro que preto */
    --text-muted: #697586;       /* Texto secundário */
    --light-bg: #f6f7f9;         /* Fundo claro mais limpo e fresco */
    --soft-bg: #f1f3f6;          /* Superfícies suaves (cards neutros) */
    --white: #ffffff;
    --border-color: #e8eaef;     /* Bordas mais subtis */

    /* Escala de espaçamento consistente (ritmo vertical) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;
    --section-y: clamp(56px, 7vw, 104px);   /* Padding vertical das secções */

    /* Escala de raios */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Sombras suaves em camadas (tom navy para coerência da marca) */
    --shadow-xs: 0 1px 2px rgba(11,19,43,.05);
    --shadow-sm: 0 2px 10px -2px rgba(11,19,43,.08);
    --shadow: 0 8px 28px -10px rgba(11,19,43,.14), 0 2px 6px rgba(11,19,43,.05);
    --shadow-md: 0 16px 40px -14px rgba(11,19,43,.18), 0 4px 12px rgba(11,19,43,.06);
    --shadow-lg: 0 28px 70px -20px rgba(11,19,43,.24);

    /* Transições mais suaves */
    --transition: all .28s cubic-bezier(.4, 0, .2, 1);
    --transition-fast: all .16s cubic-bezier(.4, 0, .2, 1);

    /* ── Escala tipográfica UNIFICADA (fluida, mobile-first) ──────────
       Usada em TODAS as páginas para garantir tamanhos consistentes
       entre home, listagens, Sobre Nós, Contactos e Serviços. */
    --fs-hero:    clamp(1.45rem, 5.2vw, 3.1rem);   /* títulos de hero */
    --fs-h2:      clamp(1.3rem, 4vw, 2.2rem);       /* títulos de secção */
    --fs-cta:     clamp(1.4rem, 4.4vw, 2.4rem);     /* títulos de CTA */
    --fs-lead:    clamp(0.92rem, 2.6vw, 1.08rem);   /* subtítulos / lead */
    --fs-body:    clamp(0.88rem, 2.4vw, 0.97rem);   /* texto de corpo */
    --fs-card-h:  clamp(0.95rem, 2.6vw, 1.05rem);   /* títulos de cartão */
    --fs-eyebrow: clamp(0.64rem, 1.9vw, 0.72rem);   /* eyebrows / tags */
}

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

html, body {
    overflow-x: hidden; /* Proibição total de scroll horizontal */
    width: 100%;
}

/* Neutraliza o filtro de blur/brilho aplicado pelo Google Translate ao inicializar */
html, body {
    -webkit-filter: none !important;
    filter: none !important;
}

/* Esconde a barra do Google Translate e evita o deslocamento da página */
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight {
    display: none !important;
}
body { top: 0 !important; }

/* Evita o flash de opacidade durante o processo de tradução */
.goog-te-spinner-pos { display: none !important; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.65;
    overflow-x: hidden;
    padding-top: 90px; /* Compensa o header fixo */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
}

/* Hierarquia tipográfica refinada — títulos mais nítidos e elegantes */
h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
    line-height: 1.18;
    letter-spacing: -0.02em;
    font-weight: 700;
}
h1 { letter-spacing: -0.03em; }
p { color: var(--text-color); }

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Header */
.main-header {
    background-color: var(--white);
    box-shadow: 0 1px 0 var(--border-color), var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    gap: 20px; /* Garante espaço entre logo, nav e ações */
}

.logo {
    flex-shrink: 0;
    margin-right: 40px; /* Mais espaço entre logo e menu */
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
    mix-blend-mode: multiply; /* Remove fundo branco se existir no ficheiro */
}

.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.main-nav > ul {
    display: flex;
    gap: 15px; /* Reduzido de 25px para evitar quebra de layout */
}

.main-nav a {
    font-weight: 500;
    font-size: 0.85rem; /* Ligeiramente menor para caber em mais idiomas */
    color: var(--secondary-color);
    transition: var(--transition);
    display: block;
    padding: 10px 2px;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a.active {
    border-bottom: 2px solid var(--primary-color);
}

/* Ajustes Responsivos para o Header - Evita quebra de layout em diferentes idiomas */
@media (max-width: 1200px) {
    .header-container {
        gap: 10px;
    }
    .logo {
        margin-right: 15px;
    }
    .main-nav > ul {
        gap: 10px;
    }
    .main-nav a {
        font-size: 0.8rem;
        padding: 10px 1px;
    }
}

@media (max-width: 1100px) {
    /* Ativa o menu mobile mais cedo para evitar sobreposição */
    .main-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex !important;
    }
    .header-container {
        height: 70px;
    }
}

body {
    padding-top: 90px;
}

@media (max-width: 1100px) {
    body {
        padding-top: 70px;
    }
}

/* Dropdown Styles */
.main-nav li {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    min-width: 200px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    z-index: 1000;
    padding: 8px 0;
    list-style: none;
}

.dropdown li {
    width: 100%;
    display: block;
}

.dropdown a {
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 400;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown li:last-child a {
    border-bottom: none;
}

.dropdown a:hover {
    background-color: var(--light-bg);
    padding-left: 25px; /* Efeito de deslize ao passar o rato */
}

.main-nav li:hover > .dropdown {
    display: block;
}

/* Icone de seta para dropdowns */
.has-dropdown > a::after {
    content: ' \25BE';
    font-size: 0.8rem;
}

/* Lang Selector */
.lang-selector {
    position: relative;
}

.lang-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    color: var(--secondary-color);
    padding: 10px;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    min-width: 120px;
    overflow: hidden;
}

.lang-selector:hover .lang-dropdown {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 10px 15px;
    color: var(--secondary-color);
    transition: var(--transition);
}

.lang-dropdown a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

/* Hero Slider */
.hero-slider {
    height: 560px;
    position: relative;
    overflow: hidden;
    background-color: #333;
}

.slider-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    max-width: 95%; /* Aumentado para permitir uma linha única */
    width: 100%;
}

@media (max-width: 1200px) {
    .hero-slider { height: 520px; }
    .hero-content h1 { font-size: 3rem; }
}

@media (max-width: 992px) {
    .hero-slider { height: 440px; }
    .hero-content h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .hero-slider { height: 500px; }
    .hero-content h1 { font-size: 2rem; padding: 0 15px; }
}

@media (max-width: 576px) {
    .hero-slider { height: 480px; }
    .hero-content h1 { font-size: 1.6rem; padding: 0 10px; line-height: 1.3; }
    .search-wrapper { margin-top: -30px; }
}

@media (max-width: 400px) {
    .hero-slider { height: 460px; }
    .hero-content h1 { font-size: 1.35rem; }
}

/* Search Component Redesign - Premium Refinement */
.search-wrapper {
    margin-top: -60px;
    position: relative;
    z-index: 20;
}

/* Desktop: barra de pesquisa mais larga que o container padrão */
@media (min-width: 1101px) {
    .search-wrapper {
        max-width: 1440px;
    }
}

.search-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: -1px;
}

.tab-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: var(--secondary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 -5px 15px rgba(211, 18, 33, 0.2);
}

.search-box-new {
    background: #fff;
    padding: 15px 25px;
    border-radius: 0 15px 15px 15px;
    box-shadow: var(--shadow-md);
}

.search-grid {
    display: flex;
    gap: 0;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.search-field {
    flex: 1;
    border-right: 1px solid #eee;
    position: relative;
}

.search-field-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: 1px solid #eef0f2;
    border-radius: 9px;
    color: #0B132B;
    font-size: 0.82rem;
    pointer-events: none;
    z-index: 1;
    transition: all 0.25s ease;
}

.search-field:focus-within .search-field-icon {
    background: rgba(204, 0, 0, 0.05);
    border-color: rgba(204, 0, 0, 0.15);
    color: var(--primary-color, #CC0000);
}

.search-field select {
    width: 100%;
    border: none !important;
    background: #fff !important;
    padding: 15px 38px 15px 52px !important;
    font-size: 0.95rem;
    color: #555;
    cursor: pointer;
    text-overflow: ellipsis;
    white-space: nowrap;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23555' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    box-shadow: none !important;
}

.search-field-main {
    flex: 2;
    padding-left: 15px;
}

.search-field-main input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 15px 0;
    font-size: 0.95rem;
    outline: none;
    color: #333;
}

.btn-search-main {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 45px;
    margin: 8px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(211, 18, 33, 0.2);
}

.btn-search-main:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(211, 18, 33, 0.3);
}

@media (max-width: 992px) {
    .search-grid {
        flex-direction: column;
        border: none;
    }
    .search-field, .search-field-main {
        width: 100%;
        border: 1px solid #eee;
        margin-bottom: 10px;
        border-radius: 8px;
    }
    .search-field-main {
        padding-left: 15px;
    }
    .btn-search-main {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .tab-btn {
        font-size: 0.85rem;
        padding: 12px 20px;
    }
}

@media (max-width: 576px) {
    .tab-btn {
        font-size: 0.75rem;
        padding: 10px 15px;
    }
}

/* Fim da Secção de Pesquisa */

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 13px 28px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 0 6px 18px -6px rgba(211,18,33,.45);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -8px rgba(211,18,33,.5);
}

/* Sections */
.section {
    padding: var(--section-y) 0;
}

/* Listagem: garante fundo consistente mesmo com poucos/nenhum imóvel */
.listing-section {
    background-color: var(--light-bg);
    min-height: calc(100vh - 90px);
}

/* Subtítulo da listagem */
.listing-subtitle {
    text-align: center;
    color: #666;
    max-width: 640px;
    margin: -20px auto 40px;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .listing-subtitle {
        margin: 12px auto 30px;
        font-size: 0.95rem;
        padding: 0 10px;
    }
}

/* Estado vazio — painel central premium */
.empty-state {
    max-width: 520px;
    margin: 30px auto 60px;
    text-align: center;
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02);
}
.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(211, 18, 33, 0.07);
    color: var(--primary-color, #D31221);
    font-size: 2rem;
}
.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary-color, #0B132B);
    margin-bottom: 10px;
}
.empty-state p {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 26px;
    line-height: 1.6;
}
.empty-state .btn-primary {
    display: inline-block;
}
.empty-state-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.empty-state-actions .btn-secondary {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    transition: background 0.2s ease;
}
.empty-state-actions .btn-secondary:hover {
    background: #e5e7eb;
}

.section-title {
    text-align: center;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--secondary-color);
    margin-bottom: var(--space-7);
}

.section-title::after {
    content: '';
    display: block;
    width: 52px;
    height: 3px;
    border-radius: 3px;
    background-color: var(--primary-color);
    margin: var(--space-4) auto 0;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* ─── Paginação ─────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}
.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid #e5e7eb;
    color: #374151;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* ── Dropdown pesquisável (searchable select) ───────────────────── */
.ss-wrap { position: relative; width: 100%; }
.ss-wrap > select.ss-native { display: none !important; }
.ss-control {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    width: 100%; box-sizing: border-box; cursor: pointer;
    background: #fff; color: #555; font-size: 0.95rem; white-space: nowrap; overflow: hidden;
}
.ss-value { overflow: hidden; text-overflow: ellipsis; }
.ss-value.ss-placeholder { color: #9ca3af; }
.ss-caret { font-size: 0.7rem; color: #9ca3af; flex-shrink: 0; transition: transform 0.2s ease; }
.ss-wrap.ss-open .ss-caret { transform: rotate(180deg); }
.ss-panel {
    position: fixed; z-index: 9999;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18); padding: 8px; display: none;
}
.ss-panel.ss-show { display: block; }
.ss-search {
    width: 100%; box-sizing: border-box; height: 38px; padding: 0 12px; margin-bottom: 6px;
    border: 1px solid #e5e7eb; border-radius: 8px; font-size: 0.88rem; font-family: inherit;
    outline: none; color: #111827;
}
.ss-search:focus { border-color: var(--primary-color, #D31221); box-shadow: 0 0 0 3px rgba(211,18,33,0.08); }
.ss-list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; }
.ss-option {
    padding: 9px 12px; border-radius: 8px; font-size: 0.9rem; color: #374151; cursor: pointer;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ss-option:hover { background: #f3f4f6; }
.ss-option.ss-selected { background: rgba(211,18,33,0.08); color: var(--primary-color, #D31221); font-weight: 600; }
.ss-empty { padding: 12px; text-align: center; color: #9ca3af; font-size: 0.85rem; }

/* Contexto: pesquisa hero (home) — deixar espaço para o ícone à esquerda */
.search-field .ss-control { padding: 15px 38px 15px 52px; }
/* Contexto: barra de filtros (página de listagem) */
.filtro-group .ss-control {
    height: 44px; padding: 0 12px; border: 1px solid #e5e7eb; border-radius: 10px;
    background: #fafbfc; color: #111827; font-size: 0.9rem;
}
.filtro-group .ss-wrap.ss-open .ss-control { border-color: var(--primary-color, #D31221); box-shadow: 0 0 0 3px rgba(211,18,33,0.1); }
.pagination-link:hover:not(.disabled):not(.active) {
    border-color: var(--primary-color, #D31221);
    color: var(--primary-color, #D31221);
    transform: translateY(-2px);
}
.pagination-link.active {
    background: var(--primary-color, #D31221);
    border-color: var(--primary-color, #D31221);
    color: #fff;
    cursor: default;
}
.pagination-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ─── Barra de Filtros ──────────────────────────── */
.filtros-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    background: #fff;
    border: 1px solid #eceef1;
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02);
}
.filtro-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 160px;
    min-width: 140px;
}
.filtro-group label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}
.filtro-group select,
.filtro-group input {
    height: 44px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafbfc;
    font-size: 0.9rem;
    font-family: inherit;
    color: #111827;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.filtro-group input { cursor: text; }
.filtro-group select:focus,
.filtro-group input:focus {
    border-color: var(--primary-color, #D31221);
    box-shadow: 0 0 0 3px rgba(211, 18, 33, 0.1);
}
.filtro-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
}
.filtro-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #e0142a 0%, var(--primary-color, #D31221) 60%, #a30d1c 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(211, 18, 33, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.filtro-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(211, 18, 33, 0.4);
}
.filtro-clear {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    padding: 0 6px;
    transition: color 0.2s ease;
}
.filtro-clear:hover { color: var(--primary-color, #D31221); }

@media (max-width: 768px) {
    .filtros-bar { padding: 16px; gap: 12px; }
    .filtro-group { flex: 1 1 100%; }
    .filtro-actions { flex: 1 1 100%; }
    .filtro-btn { flex: 1; justify-content: center; }
}

.property-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 485px; /* Fixed height: ALL cards identical, sized to fit a 2-line title without clipping */
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(211, 18, 33, 0.18);
}

.property-img {
    height: 230px;
    min-height: 230px;
    flex-shrink: 0; /* Never shrink the image area */
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.property-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.property-card:hover .property-img::after {
    opacity: 0.8;
}

.carousel-track img {
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.property-card:hover .carousel-track img {
    transform: scale(1.06);
}

.property-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #e0142a 0%, var(--primary-color, #CC0000) 55%, #a30d1c 100%);
    color: var(--white);
    padding: 5px 12px;
    font-size: 0.62rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 14px rgba(204, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
    z-index: 2;
    transition: all 0.3s ease;
}

.property-type-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
    color: #1a1a1a;
    padding: 5px 12px;
    font-size: 0.62rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 2;
    transition: all 0.3s ease;
}

.property-condicao-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, rgba(11,19,43,0.82), rgba(11,19,43,0.68));
    color: #fff;
    padding: 5px 12px;
    font-size: 0.62rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 4px 14px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.18);
    border: 1px solid rgba(255, 255, 255, 0.16);
    z-index: 2;
    transition: all 0.3s ease;
}
.property-condicao-badge i { font-size: 0.7rem; }
.property-condicao-badge.is-novo {
    background: linear-gradient(135deg, #138a4a 0%, #0f7a40 100%);
    border-color: rgba(255,255,255,0.22);
    box-shadow: 0 4px 14px rgba(19,138,74,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
}

.property-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(31, 41, 55, 0.7);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 2;
    border: none;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.property-favorite:hover {
    background: var(--primary-color, #CC0000);
    transform: scale(1.05);
}

.property-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 19, 43, 0.55);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    font-size: 1rem;
    z-index: 3;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    opacity: 0.85;
}

.property-nav-arrow.prev {
    left: 12px;
}

.property-nav-arrow.next {
    right: 12px;
}

.property-card:hover .property-nav-arrow {
    opacity: 1;
}

.property-nav-arrow:hover {
    background: var(--primary-color, #CC0000);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.property-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
    align-items: center;
}

.property-dots .dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.property-dots .dot.active {
    background: #0033cc; /* Ajuste para a cor azul indicada na imagem */
    width: 8px;
    height: 8px;
    background: var(--primary-color, #0033cc); /* Se houver uma variável de cor secundária, idealmente usaria ela */
}
.property-dots .dot.active { background: #0055ff; } /* Azul brilhante similar à imagem */

.property-card:hover .property-badge {
    transform: scale(1.05);
}

.property-card:hover .property-type-badge {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.05);
}

.property-content {
    padding: 20px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    position: relative;
    z-index: 2;
    overflow: hidden; /* Safety clip; content is sized to fit so nothing is actually cut */
}

.property-content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2px;
}

.property-info-main {
    flex-grow: 1;
    min-width: 0; /* Prevent flex overflow */
}

.property-agent-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    border: 3px solid #fff;
    background: #f3f4f6;
    transition: transform 0.3s ease;
}

.property-agent-avatar:hover {
    transform: scale(1.1);
}

.property-agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0B132B;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.property-price .price-on-request {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0B132B;
    letter-spacing: 0;
}

.property-title {
    font-size: 0.82rem;
    color: #4b5563;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.35;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.7em; /* Exactly 2 lines */
}

.property-card:hover .property-title {
    color: var(--primary-color);
}

.property-location {
    color: #6b7280;
    font-size: 0.68rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Clip long addresses */
}

.property-location i {
    color: var(--primary-color);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.property-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 10px;
    border-top: 1px solid #f3f4f6;
    padding-top: 18px;
    margin-top: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    transition: transform 0.2s ease;
}

.property-card:hover .feature-item {
    transform: translateX(2px);
}

.feature-item i {
    color: #374151;
    font-size: 1.05rem;
    background: #f9fafb;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.property-card:hover .feature-item i {
    color: var(--primary-color, #CC0000);
    background: rgba(204, 0, 0, 0.04);
    border-color: rgba(204, 0, 0, 0.1);
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.15;
}

.feature-text strong {
    font-size: 0.88rem;
    font-weight: 800;
    color: #111827;
}

.feature-text span {
    font-size: 0.58rem;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.2px;
    font-weight: 600;
    white-space: nowrap;
}

/* Call to Action (CTA) - Sempre Visível & Premium */
.property-cta {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--primary-color, #CC0000);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.property-cta i {
    font-size: 1rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.property-card:hover .property-cta {
    color: var(--primary-hover, #b30000);
}

.property-card:hover .property-cta i {
    transform: translateX(5px);
}

/* Footer */
.main-footer {
    background-color: #f1f3f5; /* Cinza Suave Premium - Ligeiramente mais escuro */
    color: #4b5563; /* Cinza Escuro para texto */
    padding: 80px 0 30px;
    margin-top: 0; /* Remove top margin to stick to sections if needed */
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 25px;
    mix-blend-mode: multiply; /* Remove o fundo branco do logotipo */
    filter: none;
}

.footer-col p {
    color: #374151; /* Cinza Escuro para máxima visibilidade */
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-col h3 {
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a; /* Títulos em preto */
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #374151;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-property-list li {
    margin-bottom: 15px;
    position: relative;
}

.footer-has-dropdown > a::after {
    content: ' \25BE';
    font-size: 0.8rem;
    color: #9ca3af;
    transition: var(--transition);
}

.footer-has-dropdown:hover > a::after {
    color: var(--primary-color);
}

.footer-sublinks {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 5px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-5px);
}

.footer-property-list li:hover .footer-sublinks {
    max-height: 50px;
    opacity: 1;
    transform: translateY(0);
}

.footer-sublinks a {
    font-size: 0.8rem !important;
    color: #6b7280 !important;
    display: inline-block;
}

.footer-sublinks a:hover {
    color: var(--primary-color) !important;
    padding-left: 0 !important;
    text-decoration: underline;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #374151;
    font-size: 0.95rem;
}

.footer-contact-item i {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.footer-contact-item a {
    color: #374151;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-item a:hover {
    color: var(--primary-color);
}

.social-links {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: #e5e7eb;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: 50%;
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1;
    transition: var(--transition);
    -webkit-transition: var(--transition);
}

.social-links a i {
    display: block;
    line-height: 1;
    pointer-events: none;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    -webkit-transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e0e3e7;
    font-size: 0.92rem;
    color: #4b5563;
    font-weight: 500;
}

.dev-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.dev-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .main-nav {
        display: none; /* Seria substituído por menu mobile */
    }
}

/* Custom Language Selector */
.custom-lang-selector {
    position: relative;
    display: inline-block;
}

.custom-lang-selector .lang-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 50px; /* Estilo arredondado premium */
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.custom-lang-selector .lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.custom-lang-selector .lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: transparent; /* Fundo transparente para o container para evitar gap */
    padding-top: 10px; /* Cria o espaço visual sem perder o hover */
    min-width: 160px;
    z-index: 2000;
}

/* O conteúdo real do dropdown com fundo branco */
.custom-lang-selector .lang-dropdown-content {
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 8px 0;
}

.custom-lang-selector:hover .lang-dropdown {
    display: block;
}

.custom-lang-selector .lang-dropdown li {
    list-style: none;
}

.custom-lang-selector .lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--secondary-color);
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.custom-lang-selector .lang-dropdown a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

/* Google Translate - Remoção Forçada da Barra */
.goog-te-banner-frame.skiptranslate, 
.goog-te-banner-frame, 
#goog-gt-tt, 
.goog-te-balloon-frame, 
.goog-te-gadget-icon {
    display: none !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

body {
    top: 0px !important;
    position: static !important;
}

iframe.skiptranslate {
    display: none !important;
}

/* Mas não esconder o nosso seletor customizado! */
.custom-lang-selector .skiptranslate,
#google_translate_element {
    display: none !important;
}

.custom-lang-selector {
    display: inline-block !important;
}
/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--secondary-color);
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition);
}

.page-btn.active, .page-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-btn.next, .page-btn.prev {
    margin: 0 5px;
}

/* Testimonials Section - Ultra Premium Design */
.testimonials-section {
    background-color: #fafbfc;
    padding: 70px 0 60px 0;
    position: relative;
}

/* ========================================= */
/* TESTIMONIALS PREMIUM REDESIGN             */
/* ========================================= */
.testimonials-section-premium {
    position: relative;
    padding: 100px 0 120px;
    background-color: #fafafa;
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
    overflow: hidden;
    text-align: center;
}

.bg-quote {
    position: absolute;
    font-size: 300px;
    color: rgba(0,0,0,0.03);
    z-index: 1;
    top: 15%;
    line-height: 1;
}
.left-quote { left: 20px; }
.right-quote { right: 20px; }

.testimonials-header {
    position: relative;
    z-index: 2;
    margin-bottom: 70px;
}
.test-subtitle {
    color: #CC0000;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 6px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.test-separator {
    width: 30px;
    height: 2px;
    background: #CC0000;
    margin: 0 auto 25px auto;
}
.test-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 15px;
}
.test-title .highlight-red {
    color: #CC0000;
}
.test-desc {
    color: #777;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.testimonials-section-premium .container {
    max-width: 1300px !important;
    width: 100%;
    margin: 0 auto;
}

.testimonials-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-content: center;
    justify-items: center;
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0 auto;
}

.test-card-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.test-bubble {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px solid #CC0000;
    background: #fff;
    box-shadow: 0 15px 40px rgba(204,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 35px;
    text-align: center;
    position: relative;
    margin: 0 auto;
}

.test-icon {
    color: #CC0000;
    font-size: 3.2rem;
    font-weight: 900;
    font-family: Georgia, serif;
    line-height: 1;
    margin-bottom: 8px;
    margin-top: -10px;
}

.test-text {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

.test-author-box {
    text-align: center;
    margin-top: -45px;
    position: relative;
    z-index: 3;
}

.test-img-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 auto 10px auto;
    overflow: hidden;
    background: #fff;
}
.test-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.test-name {
    color: #CC0000;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.test-role {
    color: #777;
    font-size: 0.85rem;
}

@media (max-width: 1200px) {
    .bg-quote { font-size: 200px; }
}

@media (max-width: 992px) {
    .testimonials-grid-premium {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 80px;
    }
}

@media (max-width: 768px) {
    .testimonials-grid-premium {
        grid-template-columns: 1fr;
    }
    .test-title { font-size: 1.8rem; }
    .bg-quote { display: none; }
    .test-bubble {
        width: 360px;
        height: 360px;
        padding: 0 35px;
    }
    .test-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .test-bubble {
        width: 320px;
        height: 320px;
        padding: 0 25px;
    }
    .test-text {
        font-size: 0.78rem;
        line-height: 1.45;
    }
    .test-icon {
        font-size: 2.4rem;
        margin-bottom: 5px;
        margin-top: -5px;
    }
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Contact Section - Premium Design */
.contact-section {
    background-color: var(--white);
    padding: 60px 0 80px 0;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(135deg, #0B132B 0%, #1a2238 100%);
    color: var(--white);
    padding: 40px 40px;
    position: relative;
}

.contact-info h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
}

.contact-info p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 1.1rem;
    color: var(--white);
}

.contact-list li i {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-list li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list li a:hover {
    color: var(--primary-color);
}

.contact-form-container {
    flex: 1.5;
    min-width: 350px;
    padding: 40px 40px;
    background-color: var(--white);
}

.contact-form-container h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 30px;
}

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

.premium-form input,
.premium-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e1e5eb;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #333;
    background-color: #fafbfc;
    transition: all 0.3s ease;
}

.premium-form input:focus,
.premium-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(211, 18, 33, 0.1);
}

.premium-form input::placeholder,
.premium-form textarea::placeholder {
    color: #a0a5b1;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: #b50f1c; /* slightly darker primary */
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(211, 18, 33, 0.3);
}

@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
    }
    .contact-info, .contact-form-container {
        padding: 40px 30px;
    }
}

/* Property Detail Page */
.property-detail-wrapper {
    padding-bottom: 80px;
    background-color: var(--white);
}

.property-hero {
    margin-bottom: 40px;
}

.hero-image-main {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.property-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
}

.property-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.header-left h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 10px 0;
    color: var(--secondary-color);
}

.detail-badge {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.header-left .location {
    font-size: 1.1rem;
    color: #6b7280;
}

.detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    background: #fff5f5;
    padding: 10px 20px;
    border-radius: 12px;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    padding: 25px;
    background-color: #f9fafb;
    border-radius: 15px;
}

.stat-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-box i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-box strong {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.stat-box span {
    font-size: 0.9rem;
    color: #6b7280;
}

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

.detail-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

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

/* Sidebar Sidebar */
.sidebar-card {
    background-color: var(--white);
    border: 1px solid #f3f4f6;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    position: sticky;
    top: 110px;
}

.sidebar-card h3 {
    margin-bottom: 15px;
}

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

.sidebar-form input,
.sidebar-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-family: inherit;
}

.sidebar-form textarea {
    height: 100px;
    resize: none;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25d366;
    color: white;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
}

.share-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.share-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f3f4f6;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.share-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 1024px) {
    .property-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .property-header-info {
        flex-direction: column;
        gap: 20px;
    }
    .detail-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-image-main {
        height: 300px;
    }
    .header-left h1 {
        font-size: 1.8rem;
    }
}

/* Why Choose Us Section */
.why-choose-section {
    background-color: #f8fafc;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.why-item {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid transparent;
}

.why-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(211, 18, 33, 0.1);
}

.why-icon {
    width: 70px;
    height: 70px;
    background-color: #f0f2f5;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 2rem;
    margin: 0 auto 25px;
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
    border: 1.5px solid #e5e7eb;
}

.why-item:hover .why-icon {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 24px rgba(211,18,33,.25);
}

.why-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.why-item p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

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

@media (max-width: 640px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
    .why-item {
        padding: 30px 20px;
    }
}

/* === HERO BANNERS TEXTS === */
.hero-slide-container {
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-promo-content {
    max-width: 720px;
    z-index: 10;
    text-align: left;
}

/* Filete decorativo acima do título — toque editorial/premium */
.hero-promo-content::before {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin-bottom: 28px;
    background: linear-gradient(90deg, #E11221 0%, #ff4d5e 100%);
    border-radius: 3px;
    transform-origin: left center;
    animation: heroAccentIn 1s cubic-bezier(.22,1,.36,1) both;
}

.hero-promo-title {
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 0;
    font-family: 'Poppins', 'Montserrat', sans-serif;
    letter-spacing: -1px;
    color: #ffffff;
    text-shadow: 0 2px 24px rgba(0,0,0,0.45), 0 1px 3px rgba(0,0,0,0.35);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
    animation: heroTextIn 1.1s cubic-bezier(.22,1,.36,1) both;
}

.hero-promo-title .highlight-red {
    display: inline-block;
    margin-top: 0.12em;
}

@keyframes heroTextIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroAccentIn {
    from { opacity: 0; transform: scaleX(0); }
    to   { opacity: 1; transform: scaleX(1); }
}

.hero-promo-subtitle {
    font-size: 1.1rem;
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.highlight-red {
    color: #E11221;
    font-weight: 800;
}

/* Destaque do hero em gradiente — elegante e premium */
.hero-promo-title .highlight-red {
    background: linear-gradient(100deg, #ff5663 0%, #E11221 55%, #b00d1a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #E11221; /* fallback */
    text-shadow: none;
    filter: drop-shadow(0 2px 14px rgba(0,0,0,0.35));
}

.promo-banner-logo {
    display: inline-block;
    margin-bottom: 20px;
    font-family: 'Poppins', 'Montserrat', sans-serif;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 18px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.promo-banner-logo .logo-better {
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.promo-banner-logo .logo-homes {
    font-weight: 800;
    font-size: 1.5rem;
    color: #CC0000;
    position: relative;
    letter-spacing: -0.2px;
}

.promo-banner-logo .logo-homes .house-icon {
    position: absolute;
    top: -11px;
    left: 2px;
    font-size: 0.55em;
    color: #CC0000;
}

.promo-banner-logo .logo-tagline {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #cbd5e1;
    margin-top: -2px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 4px;
}

.promo-banner-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.icon-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.15);
}

.icon-item i {
    color: #CC0000;
    font-size: 1.2rem;
}

.icon-item span {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #ffffff;
}

@media (max-width: 992px) {
    .hero-promo-title { font-size: 2.4rem; }
}

@media (max-width: 768px) {
    .hero-promo-title { font-size: 2rem; text-shadow: 0 2px 8px rgba(0,0,0,0.8); }
    .hero-promo-content { text-align: center; margin: 0 auto; padding: 0 15px; }
    .promo-banner-icons { justify-content: center; }
}

@media (max-width: 576px) {
    .hero-promo-content { padding: 0 10px; }
    .hero-promo-title { font-size: 1.6rem; }
    .hero-promo-subtitle { font-size: 0.9rem; }
    .icon-item span { font-size: 0.7rem; }
    .icon-item { padding: 6px 12px; }
    .promo-banner-logo .logo-better, .promo-banner-logo .logo-homes { font-size: 1.2rem; }
    .promo-banner-icons { gap: 8px; }
}

/* Hero Slider Navigation Arrows */
.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-slider-nav:hover {
    background: #CC0000;
    border-color: #CC0000;
    color: #fff;
    box-shadow: 0 8px 25px rgba(204, 0, 0, 0.4);
    transform: translateY(-50%) scale(1.08);
}

.hero-slider-prev {
    left: 40px;
}

.hero-slider-next {
    right: 40px;
}

@media (max-width: 768px) {
    .hero-slider-nav { width: 45px; height: 45px; font-size: 1rem; }
    .hero-slider-prev { left: 15px; }
    .hero-slider-next { right: 15px; }
}
@media (max-width: 576px) {
    .hero-slider-nav { width: 35px; height: 35px; font-size: 0.8rem; }
    .hero-slider-prev { left: 5px; }
    .hero-slider-next { right: 5px; }
}
/* === FIM HERO BANNERS TEXTS === */

/* ==========================================================================
   PROPERTY DETAIL PREMIUM LAYOUT
   ========================================================================== */
.top-full-header {
    background: var(--secondary-color);
    padding: 20px 0;
    color: #fff;
    margin-bottom: 0;
}

.top-breadcrumb {
    margin-bottom: 15px;
}

.top-breadcrumb a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
    font-weight: 500;
    transition: opacity 0.2s;
}

.top-breadcrumb a:hover {
    opacity: 1;
}

.top-full-header .detail-premium-header {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
    align-items: center;
}

.top-full-header .header-main h1 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.top-full-header .location-badge {
    color: #cbd5e1;
}

.btn-action-icon {
    background: #fff;
    color: var(--secondary-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action-icon:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.top-full-header .header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.property-detail-premium {
    padding: 0 0 60px 0;
    background-color: #fcfcfc;
}

.detail-premium-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 20px;
}

.header-main h1 {
    font-size: 2.2rem;
    color: #111827;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
}

.location-badge {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
}

.location-badge i {
    color: var(--primary-color, #CC0000);
}

.header-actions {
    display: flex;
    gap: 15px;
    position: relative;
}

.btn-action {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.btn-action:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.btn-action i {
    color: var(--primary-color, #CC0000);
    font-size: 1.1rem;
}

.share-dropdown {
    position: relative;
}

.share-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 160px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 12px;
    margin-top: 10px;
    z-index: 100;
    overflow: hidden;
    border: 1px solid #f3f4f6;
}

.share-menu.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.share-menu a {
    color: #4b5563;
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
    font-weight: 500;
}

.share-menu a:hover {
    background: #f9fafb;
    color: var(--primary-color, #CC0000);
}

.detail-price-big {
    margin-bottom: 25px;
}

.detail-price-big h2 {
    font-size: 2.5rem;
    color: var(--primary-color, #CC0000);
    font-weight: 900;
    letter-spacing: -1px;
}

.detail-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 26px;
    align-items: start;
}

/* Galeria Superior e Slider Inferior */
.detail-gallery-container {
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    margin-bottom: 16px;
}

.gallery-main-image {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
    cursor: zoom-in; /* Cursor de Zoom */
}

.gallery-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.gallery-main-image:hover img {
    transform: scale(1.05); /* Efeito de Zoom leve ao passar o rato */
}

/* Setas de Navegação da Galeria */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    color: #111827;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    opacity: 0; /* Escondido por defeito */
}

.gallery-main-image:hover .gallery-nav-btn {
    opacity: 1; /* Aparece quando o rato passa pela imagem */
}

.gallery-nav-btn:hover {
    background: #fff;
    color: var(--primary-color, #CC0000);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev {
    left: 15px;
}

.gallery-nav-btn.next {
    right: 15px;
}

.gallery-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;   /* Centra o badge secundário (menor) com o principal */
    gap: 8px;
}

/* Badge principal — finalidade (Venda/Arrendamento). Elemento dominante. */
.badge-status {
    background: var(--primary-color, #CC0000);
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-shadow: 0 6px 16px -4px rgba(211, 18, 33, 0.45);
}

/* Badge secundário — tipo de imóvel. Hierarquia mais discreta. */
.badge-type {
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
    color: var(--secondary-color, #0B132B);
    padding: 5px 11px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.64rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(11, 19, 43, 0.10);
}

/* Wrapper das Miniaturas com Setas Laterais */
.thumbnails-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.gallery-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: scroll; /* scroll necessário para scrollBy() funcionar */
    flex: 1;
    padding-bottom: 5px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE e Edge */
    scrollbar-width: none;     /* Firefox */
}

.gallery-thumbnails::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.thumb-item {
    min-width: 120px;
    flex-shrink: 0;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
}

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

.thumb-item:hover,
.thumb-item.active {
    opacity: 1;
    border-color: var(--primary-color, #CC0000);
}

/* Setas Laterais das Miniaturas */
.thumb-nav-btn {
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.thumb-nav-btn:hover {
    background: var(--primary-color, #CC0000);
    color: #fff;
    border-color: var(--primary-color, #CC0000);
    transform: scale(1.08);
}

/* Lightbox Modal (Zoom de Imagem) */
.lightbox-modal {
    display: none; /* Escondido por defeito */
    position: fixed;
    z-index: 9999; /* Sobrepor tudo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--primary-color, #CC0000);
}

/* Lightbox Navegação */
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav-btn:hover {
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev {
    left: 20px;
}

.lightbox-nav-btn.next {
    right: 20px;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Secções de Conteúdo */
.detail-section {
    background: #fff;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
}

.detail-section h3 {
    font-size: 1.05rem;
    color: #111827;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
    font-weight: 700;
}

.description-text {
    color: #4b5563;
    line-height: 1.75;
    font-size: 0.93rem;
}

/* Grid de Features Premium */
.features-grid-premium {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.feat-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feat-box:hover {
    transform: translateY(-2px);
    background: #fff;
    border-color: rgba(211, 18, 33, 0.12);
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.feat-box i {
    font-size: 0.95rem;
    color: var(--primary-color, #D31221);
    background: rgba(211, 18, 33, 0.06);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.feat-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.feat-info span {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 600;
    letter-spacing: 0.6px;
}

.feat-info strong {
    font-size: 1rem;
    color: #111827;
    font-weight: 700;
}

/* Vídeo Container */
.video-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Barra Lateral (Sidebar) */
.agent-contact-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
    border: 1px solid #f1f5f9;
}

.agent-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.agent-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.agent-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Avatar de iniciais (quando o contacto não tem foto) */
.agent-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color, #D31221);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
    border-radius: inherit;
    font-size: clamp(1rem, 2.2vw, 1.7rem);
}
.sticky-agent-info .agent-initials {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    flex-shrink: 0;
    font-size: 0.95rem;
}
.property-agent-avatar .agent-initials { font-size: 1.15rem; }

.agent-info h4 {
    font-size: 1.05rem;
    color: #111827;
    font-weight: 700;
    margin-bottom: 3px;
}

.agent-info p {
    color: #9ca3af;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.agent-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f9fafb;
    padding: 8px 16px;
    border-radius: 50px;
    color: #111827;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    transition: all 0.25s ease;
}

.agent-phone:hover {
    background: var(--primary-color, #D31221);
    color: #fff;
    border-color: var(--primary-color, #D31221);
}

.agent-form-container h5 {
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 14px;
    font-weight: 700;
}

.form-group-premium {
    margin-bottom: 10px;
}

.form-group-premium input,
.form-group-premium textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.875rem;
    transition: all 0.25s ease;
    background: #f9fafb;
}

.form-group-premium input:focus,
.form-group-premium textarea:focus {
    outline: none;
    border-color: var(--primary-color, #CC0000);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(204, 0, 0, 0.05);
}

.form-terms {
    margin-bottom: 12px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 1.4;
}

.checkbox-container input {
    margin-top: 2px;
    flex-shrink: 0;
}

.btn-submit-premium {
    width: 100%;
    background: var(--primary-color, #D31221);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-submit-premium:hover {
    background: var(--primary-hover, #b30000);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(211, 18, 33, 0.2);
}

.whatsapp-action {
    margin-top: 10px;
}

.btn-whatsapp-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #25D366;
    color: #fff;
    padding: 13px;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.btn-whatsapp-premium:hover {
    background: #128C7E;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25);
}

/* Responsivo */
@media (max-width: 992px) {
    .detail-grid-layout {
        grid-template-columns: 1fr;
    }
    
    .agent-contact-card {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .detail-premium-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .gallery-main-image {
        height: 300px;
    }
    
    .features-grid-premium {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MOBILE STICKY AGENT & MODAL
   ========================================================================== */
/* ── Barra fixa de contacto (todos os dispositivos) ──────────────────────── */
.mobile-sticky-agent {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--secondary-color);
    color: #fff;
    padding: 0 24px;
    height: 64px;
    z-index: 900;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.18);
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

/* Margem de fundo para o conteúdo não ficar atrás da barra */
.property-detail-premium {
    padding-bottom: 80px;
}

.sticky-agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.sticky-agent-info img {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.25);
    flex-shrink: 0;
}

.sticky-agent-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.sticky-agent-text strong {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.sticky-agent-text span {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-wa-sticky {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s;
}
.btn-wa-sticky:hover { background: #128C7E; }

.btn-contact-sticky {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.5);
    padding: 0 20px;
    height: 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}
.btn-contact-sticky:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
}

/* Ajuste desktop: mostrar preço na barra */
.sticky-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    padding: 0 20px;
    border-left: 1px solid rgba(255,255,255,0.15);
    border-right: 1px solid rgba(255,255,255,0.15);
    letter-spacing: -0.3px;
}
.sticky-price small {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    margin-left: 4px;
}

@media (max-width: 600px) {
    .sticky-price { display: none; }
    .mobile-sticky-agent { padding: 0 14px; gap: 10px; }
    .btn-contact-sticky { padding: 0 14px; font-size: 0.82rem; }
}

/* Modal Overlay */
.agent-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 15px;
    backdrop-filter: blur(3px);
}

.agent-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.agent-modal-content {
    background: #f4f7f9;
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #1e293b;
    cursor: pointer;
    z-index: 10;
}

.modal-agent-header {
    background: #fff;
    padding: 55px 20px 20px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 15px;
}

.modal-agent-photo {
    position: relative;
    width: 95px;
    height: 115px;
    border-radius: 15px 15px 45px 45px;
    overflow: hidden;
    flex-shrink: 0;
}

.modal-agent-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-collection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #00284f;
    color: #fff;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 0;
}

.modal-agent-info h3 {
    font-size: 1.15rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 2px;
    line-height: 1.2;
}

.modal-agency-name {
    color: #0066cc;
    font-weight: 500;
    margin-bottom: 2px;
    font-size: 0.85rem;
}

.modal-team-name {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.modal-agent-actions {
    display: flex;
    gap: 10px;
}

.btn-icon-blue, .btn-icon-green {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
}

.btn-icon-blue { background: #0044b3; }
.btn-icon-green { background: #25d366; }

.modal-phones-list {
    background: #fff;
    padding: 20px;
    margin-bottom: 10px;
}

.phone-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.phone-number {
    font-size: 1rem;
    color: #0f172a;
    font-weight: 600;
}

.btn-view-phone {
    color: #0044b3;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
}

.phone-desc {
    color: #64748b;
    font-size: 0.85rem;
}

.modal-form {
    padding: 20px;
}

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

.form-group-modal label {
    display: block;
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.form-group-modal input, 
.form-group-modal textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
}

.form-group-modal textarea {
    height: 80px;
    resize: none;
}

.btn-submit-modal {
    width: 100%;
    background: #fff;
    color: #00284f;
    border: 2px solid #00284f;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit-modal:hover {
    background: #00284f;
    color: #fff;
}

/* =============================================
   FAVORITOS - Toast Notification
   ============================================= */
.fav-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--secondary-color, #0d1b3e);
    color: #fff;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    z-index: 99999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.fav-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.fav-toast.add {
    border-left: 4px solid #e74c3c;
}

.fav-toast.remove {
    border-left: 4px solid #9ca3af;
}

/* Transição suave do ícone de coração */
#heart-icon {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

#btn-favorito {
    transition: color 0.3s ease;
}

/* ==========================================================================
   PROPERTY HIGHLIGHT BAR (ESTILO IMAGEM 2)
   ========================================================================== */
.property-highlight-bar {
    background: #fff;
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-bottom: 14px;
    border: 1px solid #f1f5f9;
}

.highlight-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.highlight-price-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.highlight-price {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.highlight-status-badge {
    background: #fff5f5;
    border: 1px solid rgba(211, 18, 33, 0.2);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
}

.highlight-ref-id {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.highlight-features-row {
    display: flex;
    gap: 20px;
    margin-top: 14px;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    flex-wrap: wrap;
}

.highlight-feature {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
}

.highlight-feature i {
    color: var(--primary-color);
    font-size: 1rem;
}

@media (max-width: 1024px) {
    .highlight-price {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .highlight-price {
        font-size: 1.2rem;
    }
    .highlight-features-row {
        gap: 14px;
    }
    .highlight-feature {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .highlight-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .highlight-ref-id {
        align-self: flex-start;
    }

    .highlight-price {
        font-size: 1.15rem;
    }

    .highlight-features-row {
        gap: 12px;
    }

    .highlight-feature {
        font-size: 0.82rem;
    }
}

/* ==========================================================================
   DETAIL PAGE — PREMIUM ENHANCEMENTS (v2)
   ========================================================================== */

/* Container top padding override */
.detail-container-padded {
    padding-top: 20px;
    padding-bottom: 60px;
}

/* ── Cabeçalho: título no banner navy ───────────────────────────────────── */
.top-full-header .header-main h1 {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;
}

/* ── Section titles com ícone lateral (apenas na página de detalhe) ──────── */
.detail-container-padded .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    letter-spacing: 0.1px;
}

.section-title-icon {
    width: 32px;
    height: 32px;
    background: rgba(211, 18, 33, 0.07);
    color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ── Preço: small tag para a moeda ─────────────────────────────────────── */
.highlight-price small {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    margin-left: 4px;
}

/* ── Referência com ícone ───────────────────────────────────────────────── */
.highlight-ref-id i {
    font-size: 0.75rem;
    margin-right: 2px;
    color: #94a3b8;
}

/* ── Contador de imagens na galeria ─────────────────────────────────────── */
.gallery-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 5;
    pointer-events: none;
}

/* ── Badge de status sobre a imagem ─────────────────────────────────────── */
.gallery-status-pill {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--st-bg, #dcfce7);
    color: var(--st-color, #16a34a);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    pointer-events: none;
}

/* ── Features grid: 3 colunas quando tem 6 itens ───────────────────────── */
.features-grid-premium {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .features-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .features-grid-premium {
        grid-template-columns: 1fr;
    }
}

/* ── Linha de meta-dados (referência, tipo, finalidade) ────────────────── */
.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e9eef4;
    border-radius: 8px;
    padding: 9px 13px;
    flex: 1 1 140px;
}

.detail-meta-item > i {
    font-size: 0.9rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.detail-meta-item > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.detail-meta-item > div span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    font-weight: 600;
}

.detail-meta-item > div strong {
    font-size: 0.85rem;
    color: #1e293b;
    font-weight: 700;
}

/* ── Barra de endereço do mapa ──────────────────────────────────────────── */
.map-address-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e9eef4;
    border-radius: 9px;
    padding: 10px 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.map-address-bar > i {
    color: var(--primary-color);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.map-address-bar > span {
    flex: 1;
    font-size: 0.87rem;
    color: #334155;
    font-weight: 500;
}

.btn-open-maps {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--secondary-color);
    color: #fff !important;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
    white-space: nowrap;
}

.btn-open-maps:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
}

/* ── Container do mapa ──────────────────────────────────────────────────── */
.map-embed-container {
    width: 100%;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    border: 1px solid #e2e8f0;
    line-height: 0;
}

.map-embed-container iframe {
    width: 100% !important;
    max-width: 100%;
    height: 380px;
    display: block;
    margin: 0;
    border: 0;
}

/* ── Sidebar: ícone no título do formulário ─────────────────────────────── */
.agent-form-container h5 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent-form-container h5 i {
    color: var(--primary-color);
}

/* ── Sidebar: tag de referência ─────────────────────────────────────────── */
.sidebar-ref-tag {
    margin-top: 16px;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
}

/* ── Botão WhatsApp na sticky bar mobile ───────────────────────────────── */
.btn-wa-sticky {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s;
}

.btn-wa-sticky:hover {
    background: #128C7E;
}

/* ── Botão submit com ícone ─────────────────────────────────────────────── */
.btn-submit-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ── Responsivo para o mapa ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .map-embed-container iframe {
        height: 280px;
    }
    .map-address-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-open-maps {
        align-self: flex-start;
    }
    .detail-meta-row {
        gap: 10px;
    }
    .detail-meta-item {
        flex: 1 1 140px;
        padding: 10px 12px;
    }
    .top-full-header .header-main h1 {
        font-size: 1.3rem;
    }
    .detail-container-padded .section-title {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 576px) {
    .gallery-counter {
        font-size: 0.75rem;
        padding: 5px 10px;
        bottom: 12px;
        right: 12px;
    }
    .gallery-status-pill {
        font-size: 0.7rem;
        padding: 4px 10px;
        bottom: 12px;
        left: 12px;
    }
    .detail-meta-item {
        flex: 1 1 100%;
    }
}
/* ── Secção de Características (site público) ───────────────────────────── */
.caract-display-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.caract-display-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e9eef4;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #334155;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
}

.caract-display-item:hover {
    background: #fff5f5;
    border-color: rgba(211, 18, 33, 0.15);
}

.caract-display-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

@media (max-width: 768px) {
    .caract-display-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .caract-display-grid {
        grid-template-columns: 1fr;
    }
}
/* ── Fim DETAIL PAGE ENHANCEMENTS ────────────────────────────────────────── */



/* Premium Testimonials Section */
.testimonials-section-premium {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background-color: #fafafa;
}

.bg-quote {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 350px;
    color: rgba(0, 0, 0, 0.03);
    z-index: 0;
    line-height: 1;
    pointer-events: none;
}
.left-quote { left: -20px; }
.right-quote { right: -20px; }

.testimonials-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
    margin-top: 40px;
    padding-bottom: 40px;
}

.test-card-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.test-bubble {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px dashed rgba(204, 0, 0, 0.4);
    background-color: #fff;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.test-bubble:hover {
    transform: translateY(-5px);
    border-color: rgba(204, 0, 0, 0.8);
    border-style: solid;
}

.test-icon {
    font-size: 2.5rem;
    color: #CC0000;
    font-weight: 900;
    font-family: serif;
    margin-bottom: 10px;
    line-height: 1;
}

.test-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    font-style: italic;
}

.test-author-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -35px; /* Overlap effect */
    position: relative;
    z-index: 2;
}

.test-img-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 12px;
    background: #f0f0f0;
}

.test-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.test-name {
    color: #CC0000;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.test-role {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .testimonials-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }
    .test-card-premium:last-child {
        grid-column: span 2;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .testimonials-grid-premium {
        grid-template-columns: 1fr;
    }
    .test-card-premium:last-child {
        grid-column: auto;
    }
    .test-bubble {
        width: 100%;
        max-width: 320px;
        height: auto;
        min-height: 320px;
        border-radius: 30px;
    }
    .bg-quote {
        display: none;
    }
}

/* ==========================================================================
   REFINAMENTOS PREMIUM — RESPONSIVIDADE GLOBAL HOME
   ========================================================================== */

/* ─── Container & Secções ───────────────────────── */
@media (max-width: 768px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .section { padding: 48px 0; }
    .section-title { font-size: 1.55rem; margin-bottom: 28px; }
    .section-title::after { width: 44px; }
}
@media (max-width: 480px) {
    .container { padding-left: 12px; padding-right: 12px; }
    .section { padding: 36px 0; }
    .section-title { font-size: 1.35rem; margin-bottom: 22px; }
}

/* ─── Hero Slider Mobile ────────────────────────── */
@media (max-width: 768px) {
    .hero-slider { height: 420px; min-height: 400px; }

    /* Imagem a preencher toda a hero (sem fundo). Foca o centro da cena. */
    .slide {
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
    }
    /* Escurecimento subtil para o texto sobreposto ficar legível */
    .slide::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,.30) 100%);
        z-index: 1;
        pointer-events: none;
    }

    /* Texto centrado vertical e horizontalmente, sobre a imagem */
    .hero-slide-container { align-items: center; padding-bottom: 0; }
    .hero-promo-content {
        text-align: center;
        margin: 0 auto;
        padding: 0 24px;
        max-width: 100%;
    }

    /* Filete decorativo centrado */
    .hero-promo-content::before {
        margin-left: auto;
        margin-right: auto;
        width: 52px;
        margin-bottom: 16px;
    }

    .hero-promo-title {
        font-size: 1.8rem;
        line-height: 1.2;
        letter-spacing: -0.3px;
        text-shadow: 0 2px 12px rgba(0,0,0,.85), 0 1px 3px rgba(0,0,0,.6);
    }
}
@media (max-width: 576px) {
    .hero-slider { height: 400px; min-height: 380px; }
    .hero-promo-content { padding: 0 20px; }
    .hero-promo-title { font-size: 1.6rem; line-height: 1.22; }
    .hero-promo-content::before { width: 44px; height: 3px; margin-bottom: 13px; }
}
@media (max-width: 375px) {
    .hero-slider { height: 370px; min-height: 350px; }
    .hero-promo-title { font-size: 1.42rem; }
}

/* ─── Search Box Mobile/Tablet ──────────────────── */
/* Tablet + mobile (campos empilhados a partir de 992px): mais compacto */
@media (max-width: 992px) {
    .search-box-new { padding: 14px 16px; border-radius: 0 12px 12px 12px; }
    .tab-btn { padding: 10px 20px; font-size: 0.82rem; }
    .search-field, .search-field-main { margin-bottom: 8px; }
    .search-field select {
        padding: 12px 14px 12px 50px !important;
        font-size: 0.85rem !important;
    }
    .search-field-main input { padding: 12px 14px !important; font-size: 0.85rem !important; }
    .btn-search-main { padding: 13px 24px; font-size: 0.9rem; margin-top: 2px; }
}
@media (max-width: 768px) {
    .search-wrapper { margin-top: -30px; }
}
@media (max-width: 480px) {
    .search-wrapper { margin-top: -20px; }
    .search-box-new { padding: 12px 12px; }
    .tab-btn { padding: 9px 16px; font-size: 0.76rem; }
    .search-field, .search-field-main { margin-bottom: 7px; }
    .search-field select {
        padding: 11px 13px 11px 48px !important;
        font-size: 0.82rem !important;
    }
    .search-field-main input { padding: 11px 13px !important; font-size: 0.82rem !important; }
    .btn-search-main { padding: 12px 20px; font-size: 0.85rem; }
}

/* ─── Properties Grid (mobile-first responsivo) ──── */
/* Tablet + Mobile (zona do menu hambúrguer): sempre 2 colunas → 10 cards = 5×2 */
@media (max-width: 1100px) {
    .properties-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .property-card { height: auto; min-height: 420px; }
    /* Texto reduzido para 2 colunas — evita quebras */
    .property-price { font-size: 1.02rem; }
    .property-title { font-size: 0.85rem; }
    .property-location { font-size: 0.72rem; }
    .feature-text strong { font-size: 0.82rem; }
    .feature-text span { font-size: 0.52rem; white-space: normal; line-height: 1.15; }
    .property-cta { font-size: 0.74rem; }
}
/* Telemóvel: 1 card por linha */
@media (max-width: 600px) {
    .properties-grid { grid-template-columns: 1fr; gap: 16px; }
    .property-card { min-height: 0; }
    .property-img { height: 200px; min-height: 200px; }
    .property-content { padding: 16px; }
    .property-info-main { width: 100%; }
    .property-price { font-size: 0.90rem; letter-spacing: -0.3px; }
    .property-title { font-size: 0.80rem; line-height: 1.3; }
    .property-location { font-size: 0.6rem; margin-bottom: 11px; }
    .property-features { gap: 14px 10px; padding-top: 14px; }
    .feature-item i { width: 26px; height: 26px; font-size: 0.78rem; border-radius: 7px; }
    .feature-item { gap: 8px; }
    .feature-text strong { font-size: 0.78rem; }
    .feature-text span { font-size: 0.52rem; }
    .property-cta { font-size: 0.72rem; padding-top: 12px; }
    .property-badge, .property-type-badge { font-size: 0.56rem; padding: 4px 9px; }
}

/* ─── Why Choose Mobile/Tablet ──────────────────── */
@media (max-width: 992px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
    .why-item { padding: 24px 16px; border-radius: 18px; }
    .why-icon { width: 50px; height: 50px; font-size: 1.35rem; margin-bottom: 14px; }
    .why-item h3 { font-size: 0.98rem; margin-bottom: 8px; }
    .why-item p { font-size: 0.82rem; line-height: 1.5; }
}
@media (max-width: 420px) {
    .why-grid { grid-template-columns: 1fr; gap: 12px; }
    .why-item { padding: 22px 16px; }
    .why-icon { width: 46px; height: 46px; font-size: 1.25rem; }
    .why-item h3 { font-size: 0.94rem; }
    .why-item p { font-size: 0.8rem; }
}

/* ─── Testimonials Mobile (override inline styles) ── */
@media (max-width: 992px) {
    .testimonials-grid-premium { grid-template-columns: repeat(2, 1fr) !important; row-gap: 70px !important; }
    .test-bubble { width: 320px !important; height: 320px !important; padding: 0 28px !important; }
    .test-text { font-size: 0.88rem !important; }
}
@media (max-width: 640px) {
    .testimonials-grid-premium { grid-template-columns: 1fr !important; row-gap: 56px !important; }
    .test-bubble { width: 100% !important; max-width: 290px !important; height: 290px !important; padding: 0 24px !important; }
    .test-card-premium:last-child { grid-column: auto !important; }
    .testimonials-section-premium { padding: 56px 0 70px; }
    .test-text { font-size: 0.82rem !important; line-height: 1.5 !important; }
    .test-name { font-size: 1.1rem !important; }
    .test-role { font-size: 0.78rem !important; }
    .testimonials-header p { font-size: 0.95rem !important; margin-top: 16px !important; }
}
@media (max-width: 360px) {
    .test-bubble { max-width: 260px !important; height: 260px !important; padding: 0 20px !important; }
    .test-text { font-size: 0.76rem !important; }
}

/* ─── Contact Section Mobile/Tablet ─────────────── */
@media (max-width: 992px) {
    .contact-wrapper { flex-direction: column; }
    .contact-info { padding: 30px 22px; }
    .contact-info h2 { font-size: 1.5rem; }
    .contact-info p { font-size: 0.9rem; line-height: 1.6; }
    .contact-list li { font-size: 0.9rem; }
    .contact-form-container { padding: 30px 22px; min-width: unset; }
    .contact-form-container h3 { font-size: 1.3rem; margin-bottom: 20px; }
    .premium-form input,
    .premium-form textarea { font-size: 0.9rem; padding: 13px 15px; }
    .btn-submit { font-size: 0.92rem; padding: 14px; }
}
@media (max-width: 480px) {
    .contact-info { padding: 26px 16px; }
    .contact-info h2 { font-size: 1.35rem; }
    .contact-info p { font-size: 0.86rem; }
    .contact-form-container { padding: 26px 16px; }
    .contact-form-container h3 { font-size: 1.2rem; }
    .contact-list li { font-size: 0.86rem; gap: 12px; }
    .premium-form input,
    .premium-form textarea { font-size: 0.86rem; padding: 12px 14px; }
    .btn-submit { font-size: 0.88rem; }
}

/* ─── Footer Responsivo (mobile-first) ──────────── */
/* Tablet: 2 colunas + padding reduzido */
@media (max-width: 900px) {
    .main-footer { padding: 56px 0 28px; }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 36px 28px; margin-bottom: 44px; }

    /* UX táctil: sublinks sempre visíveis (não dependem de :hover) */
    .footer-sublinks {
        max-height: none;
        opacity: 1;
        transform: none;
        margin-top: 6px;
    }
    .footer-has-dropdown > a::after { display: none; }  /* esconde a seta, já não há toggle */
}
/* Telemóvel: 1 coluna, centrado e arejado */
@media (max-width: 560px) {
    .main-footer { padding: 44px 0 90px; }  /* espaço extra p/ o copyright não ficar sob o botão flutuante WhatsApp */
    .footer-container { grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; text-align: center; }
    .footer-col h3 { margin-bottom: 16px; font-size: 1rem; }
    .footer-col p { font-size: 0.9rem; margin-bottom: 16px; }
    .footer-col ul li { margin-bottom: 12px; }
    .footer-logo { height: 50px; }

    /* Centrar elementos que por defeito alinham à esquerda */
    .social-links { justify-content: center; }
    .footer-sublinks { text-align: center; }

    /* Cada contacto centra-se como um grupo coeso (ícone + texto juntos) */
    .footer-contact-item {
        justify-content: flex-start;
        text-align: left;
        width: fit-content;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Alvos de toque maiores nos links */
    .footer-col ul li a { display: inline-block; padding: 4px 0; font-size: 0.95rem; }

    .footer-bottom { padding-top: 24px; }
    .footer-bottom p { font-size: 0.8rem; text-align: center; padding: 0 12px; line-height: 1.5; }
}
/* Ecrã estreito */
@media (max-width: 360px) {
    .footer-contact-item { font-size: 0.88rem; gap: 10px; }
    .footer-contact-item i { width: 32px; height: 32px; }
}

/* ==========================================================================
   SEPARADORES VISUAIS ENTRE SECÇÕES
   ========================================================================== */
.section-divider {
    position: relative;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #e0e3e8 30%, #e0e3e8 70%, transparent);
    margin: 0;
    border: none;
    overflow: visible;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #D31221;
    opacity: 0.35;
    border-radius: 2px;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 18px;
    height: 18px;
    border: 1.5px solid #D31221;
    opacity: 0.18;
    border-radius: 3px;
}

.section-divider--red {
    height: 2px;
    background: linear-gradient(to right, transparent, #D31221 30%, #D31221 70%, transparent);
    opacity: .22;
}

/* ==========================================================================
   BOTÃO VOLTAR AO TOPO
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 46px;
    height: 46px;
    background: #0B132B;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease, background .2s;
    box-shadow: 0 4px 16px rgba(11,19,43,.25);
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.back-to-top:hover {
    background: #D31221;
    box-shadow: 0 6px 20px rgba(211,18,33,.35);
}
@media (max-width: 480px) {
    .back-to-top { right: 16px; bottom: 82px; width: 42px; height: 42px; font-size: 1rem; }
}

/* ==========================================================================
   BOTÃO FLUTUANTE WHATSAPP
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 901;
    box-shadow: 0 6px 24px rgba(37,211,102,.40);
    text-decoration: none;
    transition: opacity .35s ease, transform .35s ease, box-shadow .25s ease;
    animation: waPulse 2.5s infinite;
    /* Oculto até passar o hero (revelado por JS a partir da 1ª secção) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(.92);
    pointer-events: none;
}
.whatsapp-float.wa-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 32px rgba(37,211,102,.55);
    animation: none;
}
.whatsapp-float .wa-tooltip {
    position: absolute;
    left: 68px;
    background: #0B132B;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.whatsapp-float .wa-tooltip::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #0B132B;
    border-left: none;
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; }

@keyframes waPulse {
    0%,100% { box-shadow: 0 6px 24px rgba(37,211,102,.40); }
    50%      { box-shadow: 0 6px 32px rgba(37,211,102,.65), 0 0 0 8px rgba(37,211,102,.10); }
}
@media (max-width: 480px) {
    .whatsapp-float { left: 16px; bottom: 16px; width: 52px; height: 52px; font-size: 1.4rem; }
    .whatsapp-float .wa-tooltip { display: none; }
}

/* ════════════════════════════════════════════════════════════════════
   HOME — TIPOGRAFIA FLUIDA MOBILE-FIRST
   Escala contínua com clamp(min, fluido-vw, max): em qualquer dispositivo
   o texto reduz suavemente do telemóvel ao desktop, sem saltos bruscos.
   Colocado no fim do ficheiro para governar a cascata de forma coerente.
   ════════════════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero-promo-title {
    font-size: var(--fs-hero);
    line-height: 1.14;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
}
.hero-promo-subtitle { font-size: var(--fs-lead); }

/* ── Títulos de secção ────────────────────────────────────────────── */
.section-title { font-size: var(--fs-h2); }

/* ── Cartões de imóvel ────────────────────────────────────────────── */
.property-price    { font-size: clamp(0.92rem, 2.6vw, 1.1rem); letter-spacing: -0.01em; }
.property-title    { font-size: clamp(0.8rem, 2.2vw, 0.9rem); line-height: 1.3; }
.property-location { font-size: clamp(0.64rem, 1.9vw, 0.72rem); letter-spacing: 0.3px; }
.property-features .feature-text strong { font-size: clamp(0.76rem, 2vw, 0.85rem); }
.property-features .feature-text span   { font-size: clamp(0.55rem, 1.6vw, 0.62rem); letter-spacing: 0.5px; }
.property-features .feature-item i { font-size: clamp(0.88rem, 2.1vw, 1rem); }

/* ── Porquê escolher ──────────────────────────────────────────────── */
.why-item h3 { font-size: clamp(1.02rem, 2.7vw, 1.25rem); }
.why-item p  { font-size: clamp(0.85rem, 2.3vw, 0.95rem); }

/* ── Testemunhos (inline no HTML → precisa de !important) ──────────── */
.testimonials-header p { font-size: clamp(0.9rem, 2.6vw, 1.15rem) !important; }
.test-name { font-size: clamp(1.02rem, 2.8vw, 1.25rem) !important; }
.test-text { font-size: clamp(0.86rem, 2.4vw, 0.95rem) !important; }
.test-role { font-size: clamp(0.76rem, 2vw, 0.85rem) !important; }
.test-icon { font-size: clamp(2.2rem, 6vw, 3.2rem); }

/* ── Contacto ─────────────────────────────────────────────────────── */
.contact-info h2          { font-size: var(--fs-h2); }
.contact-info p           { font-size: var(--fs-lead); }
.contact-form-container h3 { font-size: var(--fs-h2); }
.premium-form input,
.premium-form textarea    { font-size: clamp(0.88rem, 2.3vw, 1rem); }

/* ── Rodapé ───────────────────────────────────────────────────────── */
.footer-col h3 { font-size: clamp(1rem, 2.5vw, 1.1rem); }
.footer-col p  { font-size: clamp(0.85rem, 2.3vw, 0.95rem); }
.footer-col ul li a,
.footer-contact-item a { font-size: clamp(0.85rem, 2.3vw, 0.95rem); }

/* ── Barra de pesquisa ────────────────────────────────────────────── */
.tab-btn            { font-size: clamp(0.72rem, 2.2vw, 0.85rem); }
.search-field select { font-size: clamp(0.85rem, 2.3vw, 0.95rem); }
.btn-search-main    { font-size: clamp(0.9rem, 2.4vw, 1rem); }

/* ── Afinação fina para ecrãs muito pequenos (≤360px) ─────────────── */
@media (max-width: 360px) {
    .hero-promo-title { line-height: 1.18; }
    .section-title { margin-bottom: var(--space-6); }
    .property-card .property-content { padding: 14px; }
}

/* ════════════════════════════════════════════════════════════════════
   SUBPÁGINAS — TIPOGRAFIA FLUIDA MOBILE-FIRST
   (Listagens de imóveis e página de detalhe — classes definidas neste
   ficheiro, pelo que estas regras posteriores governam a cascata.)
   ════════════════════════════════════════════════════════════════════ */

/* ── Listagem (Apartamentos, Casas, Terrenos, Armazéns, Lojas) ─────── */
.listing-subtitle { font-size: var(--fs-lead); }
.filtro-group label  { font-size: clamp(0.62rem, 1.8vw, 0.68rem); }
.filtro-group select,
.filtro-group input  { font-size: clamp(0.85rem, 2.3vw, 0.92rem); }

/* ── Página de detalhe do imóvel ──────────────────────────────────── */
.header-main h1 { font-size: clamp(1.4rem, 4.6vw, 2.2rem); line-height: 1.22; }
.top-full-header .header-main h1 { font-size: clamp(1.2rem, 4vw, 1.5rem); }
.detail-price       { font-size: clamp(1.45rem, 4.4vw, 2rem); }
.detail-price-big h2 { font-size: clamp(1.7rem, 5.4vw, 2.5rem); }

/* ── Conter OVERFLOW HORIZONTAL na página de detalhe (mobile) ─────────────
   Em grid/flex os filhos têm min-width:auto por defeito e não encolhem abaixo
   do conteúdo — a fila de miniaturas (120px cada, com scroll) empurrava a
   coluna para além do ecrã. min-width:0 deixa as colunas encolherem; o resto
   garante que nenhuma media/iframe ultrapassa a largura do ecrã. */
.property-detail-premium { overflow-x: hidden; }
.detail-grid-layout { max-width: 100%; }
.detail-grid-layout > *,
.detail-main-column,
.detail-sidebar-column { min-width: 0; }
.thumbnails-wrapper { min-width: 0; max-width: 100%; }
.gallery-thumbnails { min-width: 0; }
.property-detail-premium img,
.property-detail-premium iframe,
.property-detail-premium video { max-width: 100%; }

/* ── Cabeçalho navy do detalhe — refinamento mobile ──────────────────────── */
@media (max-width: 768px) {
    .top-full-header { padding: 14px 0 18px; }
    .top-breadcrumb { margin-bottom: 12px; }
    .top-breadcrumb a {
        font-size: 0.8rem;
        gap: 6px;
        align-items: flex-start;
        line-height: 1.35;
        opacity: .85;
    }
    .top-breadcrumb a i { margin-top: 2px; }
    .top-full-header .detail-premium-header { gap: 14px; }
    .top-full-header .header-main h1 { margin-bottom: 6px; }
    .top-full-header .location-badge {
        font-size: 0.86rem;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    /* Botões de partilha/favorito: mais compactos e elegantes */
    .top-full-header .header-actions { gap: 10px; }
    .top-full-header .btn-action-icon {
        width: 40px;
        height: 40px;
        font-size: 1.02rem;
        border-radius: 11px;
        box-shadow: 0 4px 12px rgba(0,0,0,.18);
    }
}
@media (max-width: 400px) {
    .top-full-header .btn-action-icon { width: 38px; height: 38px; font-size: .95rem; }
    .top-breadcrumb a { font-size: 0.76rem; }
}

/* ── Conteúdo do detalhe — fontes reduzidas no mobile ───────────────────── */
@media (max-width: 768px) {
    /* Títulos das secções (Descrição, Detalhes, Características, Localização) */
    .detail-container-padded .section-title { font-size: 0.95rem !important; }
    /* Cartão de preço */
    .highlight-price { font-size: 1.2rem; }
    .highlight-price small { font-size: 0.82rem; }
    .highlight-status-badge { font-size: 0.76rem; }
    .highlight-ref-id { font-size: 0.78rem; }
    .highlight-feature { font-size: 0.82rem; }
    /* Cartões de detalhe (Quartos, Área, Província…) */
    .feat-info span   { font-size: 0.64rem; }
    .feat-info strong { font-size: 0.9rem; }
    /* Descrição, características e localização */
    .description-text { font-size: 0.86rem; }
    .caract-display-item { font-size: 0.82rem; }
    .map-address-bar > span { font-size: 0.82rem; }
    .btn-open-maps { font-size: 0.82rem; }
}
@media (max-width: 400px) {
    .detail-container-padded .section-title { font-size: 0.9rem !important; }
    .highlight-price { font-size: 1.1rem; }
    .feat-info strong { font-size: 0.86rem; }
    .feat-info span { font-size: 0.62rem; }
    .description-text { font-size: 0.84rem; }
    .caract-display-item { font-size: 0.8rem; }
}

/* ── reCAPTCHA v3: esconder a bandeira (canto inferior direito) ─────────── */
.grecaptcha-badge { visibility: hidden !important; }
