/* ==========================================================================
   SANDRO LOPES - ESPECIALISTA EM TERRENOS & LOTEAMENTOS
   Modern Real Estate Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #0d2818;
    --primary-light: #164e2e;
    --primary-dark: #07180e;
    --primary-accent: #2d6a4f;
    
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --gold-hover: #b89726;
    --gold-dark: #8c6d13;
    
    --secondary: #1f2937;
    --secondary-light: #374151;
    --muted: #6b7280;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --border-subtle: #edf2f7;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 30px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--secondary);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.25;
}

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

a:hover {
    color: var(--gold-dark);
}

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

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    background: #ffffff;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header-topbar {
    background: var(--primary-dark);
    color: #cbd5e1;
    font-size: 12px;
    padding: 6px 0;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-links {
    display: flex;
    gap: 16px;
}

.topbar-links a {
    color: #e2e8f0;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.topbar-links a:hover {
    color: var(--gold-light);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
    flex-shrink: 1;
}

.logo-badge {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    font-family: var(--font-heading);
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary);
    margin: 0;
    line-height: 1.1;
    white-space: nowrap;
}

.logo-sub {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-light);
    padding: 8px 0;
    position: relative;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.btn-header-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 12px rgba(13, 40, 24, 0.2);
}

.btn-header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 40, 24, 0.3);
    color: #ffffff;
}

.mobile-menu-btn {
    display: none;
    background: #f8fafc;
    border: 1px solid var(--border);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: var(--primary);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: #e2e8f0;
}

/* ==========================================================================
   Hero Section & Search Box
   ========================================================================== */
.hero {
    position: relative;
    background: linear-gradient(rgba(7, 24, 14, 0.78), rgba(7, 24, 14, 0.85)), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    color: #ffffff;
    padding: 80px 0 100px 0;
    text-align: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero h2 {
    color: #ffffff;
    font-size: 44px;
    font-weight: 800;
    max-width: 860px;
    margin: 0 auto 16px auto;
    letter-spacing: -1px;
}

.hero p {
    font-size: 18px;
    color: #e2e8f0;
    max-width: 700px;
    margin: 0 auto 36px auto;
    font-weight: 400;
}

.search-box-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xl);
    max-width: 1060px;
    margin: 0 auto;
    color: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
}

.search-tabs::-webkit-scrollbar {
    display: none;
}

.search-tab-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.search-tab-btn.active,
.search-tab-btn:hover {
    background: #ecfdf5;
    color: var(--primary);
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) 120px;
    gap: 14px;
    align-items: flex-end;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary-light);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--secondary);
    background-color: #f8fafc;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(13, 40, 24, 0.1);
}

.btn-search-submit {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.btn-search-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Property Cards & Showcase
   ========================================================================== */
.section-padding {
    padding: 70px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-accent);
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--muted);
    font-size: 16px;
    max-width: 820px;
    margin: 8px auto 0 auto;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

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

.property-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: #cbd5e1;
}

.card-image-wrap {
    position: relative;
    height: 230px;
    background-color: #e2e8f0;
    overflow: hidden;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.card-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-condominio {
    background: rgba(13, 40, 24, 0.9);
    color: var(--gold-light);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.badge-bairro {
    background: rgba(30, 58, 138, 0.9);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.badge-oportunidade {
    background: #dc2626;
    color: #ffffff;
}

.badge-lancamento {
    background: #059669;
    color: #ffffff;
}

.card-ref {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: monospace;
}

.card-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-location {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-title a {
    color: var(--primary-dark);
}

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

.card-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border: 1px solid var(--border-subtle);
}

.spec-item {
    text-align: center;
}

.spec-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.spec-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary);
}

.card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
}

.price-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-accent);
    font-family: var(--font-heading);
}

.price-sqm {
    font-size: 11px;
    color: var(--muted);
}

.card-actions {
    display: flex;
    gap: 8px;
}

.btn-card-details {
    background: #f1f5f9;
    color: var(--secondary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
}

.btn-card-details:hover {
    background: #e2e8f0;
    color: var(--primary);
}

.btn-card-whatsapp {
    background: #25d366;
    color: #ffffff !important;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

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

/* ==========================================================================
   Category Highlight Section (Condomínios vs Bairros)
   ========================================================================== */
.categories-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.cat-banner-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 320px;
    display: flex;
    align-items: flex-end;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.cat-banner-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(7, 24, 14, 0.95) 0%, rgba(7, 24, 14, 0.3) 100%);
    z-index: 1;
}

.cat-banner-card img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cat-banner-card:hover img {
    transform: scale(1.08);
}

.cat-banner-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.cat-banner-content h3 {
    color: #ffffff;
    font-size: 26px;
    margin-bottom: 8px;
}

.cat-banner-content p {
    color: #e2e8f0;
    font-size: 14px;
    margin-bottom: 16px;
    max-width: 440px;
}

.btn-banner-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold-light);
    font-weight: 700;
    font-size: 14px;
}

.btn-banner-link:hover {
    color: #ffffff;
    gap: 10px;
}

/* ==========================================================================
   About Broker Mini Section
   ========================================================================== */
.broker-intro-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: center;
}

.broker-photo-wrap {
    text-align: center;
}

.broker-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px auto;
    border: 4px solid var(--gold-light);
    box-shadow: var(--shadow-md);
}

.broker-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.broker-creci {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

.broker-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.hl-box {
    background: #f8fafc;
    padding: 14px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.hl-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-accent);
    font-family: var(--font-heading);
}

.hl-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 600;
}

/* ==========================================================================
   Single Property Page (Show)
   ========================================================================== */
.property-header-bar {
    background: #ffffff;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.prop-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.prop-main-title h1 {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.prop-breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.prop-price-box {
    text-align: right;
}

.prop-main-price {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-accent);
    font-family: var(--font-heading);
}

/* ==========================================================================
   GALERIA DE FOTOS INTERATIVA COM CARROSSEL (HERO DISPLAY + THUMBNAILS STRIP)
   ========================================================================== */
.property-gallery-container {
    margin: 20px 0 32px 0;
    width: 100%;
}

.gallery-hero-display {
    position: relative;
    width: 100%;
    height: 520px;
    background: #0f172a;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.gallery-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s ease-in-out;
    cursor: pointer;
}

.gallery-hero-img.fade-out {
    opacity: 0.2;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(6px);
    z-index: 10;
    user-select: none;
}

.gallery-nav-btn:hover {
    background: var(--gold);
    color: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

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

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

.gallery-counter-badge {
    position: absolute;
    bottom: 16px;
    right: 18px;
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
    pointer-events: none;
}

/* Faixa Horizontal de Miniaturas (Carrossel) */
.gallery-thumbs-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    width: 100%;
}

.gallery-thumbs-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 2px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) #f1f5f9;
    flex: 1;
}

.gallery-thumbs-scroll::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbs-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.gallery-thumbs-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.gallery-thumbs-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

.thumb-item {
    flex: 0 0 120px;
    height: 84px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.6;
    transition: all 0.2s ease;
    background: #0f172a;
}

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

.thumb-item:hover {
    opacity: 0.95;
    transform: translateY(-2px);
}

.thumb-item.active {
    border-color: var(--gold);
    opacity: 1;
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.thumbs-scroll-btn {
    flex: 0 0 38px;
    height: 84px;
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    user-select: none;
}

.thumbs-scroll-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .gallery-hero-display {
        height: 320px;
    }
    .thumb-item {
        flex: 0 0 95px;
        height: 68px;
    }
    .thumbs-scroll-btn {
        display: none;
    }
}

.prop-layout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: flex-start;
}

.prop-section-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.prop-section-card h3 {
    font-size: 20px;
    margin-bottom: 18px;
    color: var(--primary-dark);
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.specs-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.spec-detail-box {
    background: #f8fafc;
    padding: 14px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-accent);
}

.spec-detail-box .s-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.spec-detail-box .s-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary);
    margin-top: 2px;
}

.amenities-tag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.amenity-tag-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ecfdf5;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: #065f46;
    border: 1px solid #d1fae5;
}

/* Sidebar Lead Box */
.prop-sidebar-sticky {
    position: sticky;
    top: 90px;
}

.lead-capture-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 26px;
    border: 2px solid var(--gold);
    box-shadow: var(--shadow-lg);
}

.lead-capture-header {
    text-align: center;
    margin-bottom: 20px;
}

.lead-capture-header h4 {
    font-size: 20px;
    color: var(--primary-dark);
}

.lead-capture-header p {
    font-size: 13px;
    color: var(--muted);
}

.btn-whatsapp-direct {
    width: 100%;
    background: #25d366;
    color: #ffffff !important;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

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

/* Financing Simulator Widget */
.simulator-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 20px;
}

.sim-slider {
    width: 100%;
    margin: 10px 0;
}

.sim-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    text-align: center;
}

.sim-res-val {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-accent);
    font-family: var(--font-heading);
}

/* ==========================================================================
   WhatsApp Floating Button
   ========================================================================== */
.whatsapp-floating {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #25d366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-floating:hover {
    transform: scale(1.1);
    color: #ffffff;
}

.whatsapp-floating .pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    opacity: 0.7;
    animation: pulse-wave 2s infinite;
    z-index: -1;
}

@keyframes pulse-wave {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--primary-dark);
    color: #94a3b8;
    padding: 60px 0 24px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 700;
}

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

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

.footer-col ul li a {
    color: #94a3b8;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* ==========================================================================
   Alerts & Utilities
   ========================================================================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

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

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

/* ==========================================================================
   Admin Panel Specific Styles
   ========================================================================== */
.admin-wrapper {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
    max-width: 100vw;
}

.admin-sidebar {
    background: var(--primary-dark);
    color: #e2e8f0;
    padding: 24px 16px;
}

.admin-sidebar .admin-logo {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 28px;
    display: block;
    padding: 0 10px;
}

.admin-menu {
    list-style: none;
}

.admin-menu li {
    margin-bottom: 6px;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

.admin-menu a:hover,
.admin-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.admin-content {
    background: #f1f5f9;
    padding: 32px;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.admin-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.admin-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: #ffffff;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.stat-card .s-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

.stat-card .s-title {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

.table-custom,
.admin-table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table-custom th,
.admin-table th {
    background: #f8fafc;
    padding: 12px 10px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.table-custom td,
.admin-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #334155;
    vertical-align: middle;
}

.admin-table tr:hover td,
.table-custom tr:hover td {
    background: #f8fafc;
}

.admin-table-responsive,
.admin-table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
}

/* Scrollbar visível e discreta apenas quando a tela for muito estreita */
.admin-table-responsive::-webkit-scrollbar,
.admin-table-container::-webkit-scrollbar {
    height: 6px;
}
.admin-table-responsive::-webkit-scrollbar-track,
.admin-table-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.admin-table-responsive::-webkit-scrollbar-thumb,
.admin-table-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.admin-table-responsive::-webkit-scrollbar-thumb:hover,
.admin-table-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.btn-admin {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
}

.btn-admin-primary {
    background: var(--primary);
    color: #ffffff !important;
}

.btn-admin-primary:hover {
    background: var(--primary-dark);
}

.btn-admin-danger {
    background: #fee2e2;
    color: #dc2626 !important;
}

.btn-admin-danger:hover {
    background: #fecaca;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .hero h2 { font-size: 32px; }
    .search-grid { grid-template-columns: 1fr 1fr; }
    .prop-layout-grid { grid-template-columns: 1fr; }
    .prop-gallery-main { grid-template-columns: 1fr; height: 320px; }
    .gallery-thumbs { display: none; }
    .categories-banner-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .broker-intro-box { grid-template-columns: 1fr; text-align: center; }
    .admin-wrapper { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .container {
        padding: 0 14px;
    }
    .site-header {
        padding: 0;
    }
    .navbar {
        padding: 10px 0;
        gap: 8px;
    }
    .logo {
        gap: 8px;
        min-width: 0;
        flex-shrink: 1;
    }
    .logo-badge {
        width: 36px;
        height: 36px;
        font-size: 16px;
        flex-shrink: 0;
    }
    .logo-title {
        font-size: 16px;
        letter-spacing: -0.3px;
        line-height: 1.1;
    }
    .logo-sub {
        font-size: 8.5px;
        letter-spacing: 0.6px;
    }
    .nav-links { display: none; }
    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        font-size: 20px;
        padding: 0;
        flex-shrink: 0;
    }
    .hero {
        padding: 40px 0 50px 0;
    }
    .hero-tag {
        font-size: 11px;
        padding: 5px 12px;
        margin-bottom: 12px;
        max-width: 100%;
        line-height: 1.3;
    }
    .hero h2 {
        font-size: 24px;
        letter-spacing: -0.5px;
        margin-bottom: 10px;
    }
    .hero p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    .search-box-card {
        padding: 16px 12px;
        border-radius: var(--radius-md);
    }
    .search-grid { grid-template-columns: 1fr; }
    .properties-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .admin-stats-grid { grid-template-columns: 1fr; }
    .prop-title-row { flex-direction: column; }
    .prop-price-box { text-align: left; margin-top: 12px; }
}

/* ==========================================================================
   Paginação Personalizada e Elegante
   ========================================================================== */
.custom-pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0 20px 0;
    width: 100%;
}

.custom-pagination-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.custom-pagination-list .page-item {
    display: inline-flex;
}

.custom-pagination-list .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    user-select: none;
}

.custom-pagination-list .page-link:hover:not(.disabled):not(.active) {
    background: #f1f5f9;
    color: var(--primary-accent);
    border-color: var(--primary-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.custom-pagination-list .page-num.active {
    background: linear-gradient(135deg, var(--primary-accent) 0%, #047857 100%);
    color: #ffffff !important;
    border-color: var(--primary-accent);
    box-shadow: 0 4px 12px rgba(6, 78, 59, 0.25);
    cursor: default;
}

.custom-pagination-list .page-prev-next {
    font-weight: 700;
    padding: 0 16px;
}

.custom-pagination-list .page-link.disabled,
.custom-pagination-list .page-item.disabled .page-link {
    background: #f8fafc;
    color: #cbd5e1;
    border-color: #e2e8f0;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.custom-pagination-list .page-dots {
    border: none;
    background: transparent;
    box-shadow: none;
    color: var(--muted);
    font-weight: 800;
    letter-spacing: 2px;
    min-width: 24px;
    padding: 0 4px;
}

/* Compatibilidade com classes de paginação padrão */
nav[role="navigation"] svg {
    max-width: 20px;
    max-height: 20px;
}

