/* ============================================
   RESIDENCIAL PARK CLUB - Premium Design
   ============================================ */

:root {
    --primary: #1a3c34;
    --primary-light: #2d5a4e;
    --primary-dark: #0f251f;
    --accent: #c8a84e;
    --accent-light: #dfc170;
    --accent-dark: #a88a2e;
    --white: #ffffff;
    --cream: #faf8f4;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;
    --info: #2563eb;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.05);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: all .3s cubic-bezier(.4,0,.2,1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: 116px; /* topbar 36px + navbar 80px */
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.icon-sm { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }

/* ============ TOPBAR ============ */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--primary-dark);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 8px 0;
    font-size: 12px;
}

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

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,.6);
    transition: var(--transition);
}

a.topbar-item:hover {
    color: var(--accent);
}

.topbar-divider {
    color: rgba(255,255,255,.15);
}

@media (max-width: 768px) {
    .topbar-right { display: none; }
    .topbar-divider { display: none; }
    .topbar-inner { justify-content: center; flex-wrap: wrap; }
    .topbar-left { flex-direction: column; gap: 4px; align-items: center; }
    .topbar-left .topbar-item:not(.topbar-download) { display: none; }
    .topbar-download {
        font-size: 13px !important;
        padding: 8px 24px !important;
        width: auto;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .topbar-left .topbar-item:not(.topbar-download):not(.topbar-whatsapp) { display: none; }
    .topbar-download {
        font-size: 12.5px;
        padding: 6px 20px;
    }
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 60, 52, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 168, 78, 0.2);
    transition: var(--transition);
}

.topbar + .navbar {
    top: 36px;
}

.navbar.scrolled {
    background: rgba(15, 37, 31, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.nav-logo-img {
    height: 42px;
    width: auto;
}

.logo-icon {
    font-size: 28px;
    color: var(--accent);
    line-height: 1;
}

.logo-text {
    display: block;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: .8;
}

.logo-accent {
    display: block;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--white);
}

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

.nav-link {
    color: rgba(255,255,255,.85);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255,255,255,.1);
}

.btn-nav {
    border: 1px solid rgba(255,255,255,.3);
}

.btn-nav:hover { border-color: var(--accent); color: var(--accent); }

.btn-nav-accent {
    background: var(--accent);
    color: var(--primary-dark) !important;
    font-weight: 600;
}

.btn-nav-accent:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    overflow: hidden;
    margin-top: 8px;
}

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

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--gray-700);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--cream);
    color: var(--primary);
}

.dropdown-logout {
    display: block;
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--gray-700);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition);
}

.dropdown-logout:hover {
    background: var(--cream);
    color: var(--danger);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============ HERO SECTION with SLIDESHOW ============ */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: var(--primary-dark);
    margin-top: -80px;
    padding-top: 80px;
}

.hero-stats-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: var(--primary-dark);
    padding: 20px 0;
    border-top: 2px solid rgba(200, 168, 78, 0.4);
}

/* Slideshow container */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img,
.hero-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Zoom lento e suave enquanto a mídia está visível */
    animation: heroZoom 8s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

/* Indicadores do slideshow */
.hero-indicators {
    display: none;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.5);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.hero-indicator.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.2);
}

.hero-indicator:hover {
    border-color: var(--white);
    background: rgba(255,255,255,.3);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        135deg,
        rgba(15, 37, 31, 0.82) 0%,
        rgba(26, 60, 52, 0.65) 50%,
        rgba(15, 37, 31, 0.82) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 960px;
    width: 100%;
    padding: 0 24px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(200, 168, 78, 0.2);
    border: 1px solid rgba(200, 168, 78, 0.4);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
    animation: fadeInUp .8s ease;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 6px;
    animation: fadeInUp .8s ease .1s both;
}

.hero-title .highlight {
    color: var(--accent);
    display: block;
}

.hero-subtitle {
    font-size: clamp(13px, 1.3vw, 15px);
    font-weight: 300;
    opacity: .9;
    margin-bottom: 12px;
    max-width: 600px;
    margin-inline: auto;
    animation: fadeInUp .8s ease .2s both;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
    animation: fadeInUp .8s ease .3s both;
}

/* Stats strip (fora do hero) */
.stats-strip {
    background: var(--primary-dark);
    padding: 24px 0;
    border-top: 2px solid rgba(200, 168, 78, 0.4);
    border-bottom: 1px solid rgba(200,168,78,.15);
}

.stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

.stat-label {
    font-size: 11px;
    color: rgba(255,255,255,.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(200, 168, 78, 0.3);
}

@media (max-width: 768px) {
    .stats-row { gap: 20px; flex-wrap: wrap; }
    .stat-number { font-size: 26px; }
    .stat-divider { display: none; }
    .stat-item { flex: 1; min-width: 120px; }
}

.hero-stats {
    display: none;
    justify-content: center;
    gap: 48px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,.15);
    animation: fadeInUp .8s ease .4s both;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.hero-stat-label {
    font-size: 13px;
    opacity: .7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200,168,78,.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,.4);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,.1);
}

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

.btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 30px;
    font-size: 15px;
}

/* ============ SECTIONS ============ */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--primary-dark);
    color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.7;
}

.section-dark .section-subtitle {
    color: rgba(255,255,255,.6);
}

/* ============ GALLERY GRID ============ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(5) { grid-column: span 2; }

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.08);
}

/* Edit fotos grid */
.edit-fotos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.edit-foto-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-100);
}

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

.edit-foto-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 8px;
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
}

.edit-foto-delete {
    position: absolute;
    top: 6px;
    right: 6px;
}

.edit-foto-delete button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(220,38,38,.85);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.edit-foto-delete button:hover {
    background: var(--danger);
    transform: scale(1.1);
}

.gallery-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}

.gallery-delete button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.85);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-delete button {
    opacity: 1;
}

.gallery-delete button:hover {
    background: var(--danger);
    transform: scale(1.1);
}

.gallery-hidden {
    display: none;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after { opacity: 1; }

.gallery-item .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 60px;
    height: 60px;
    background: rgba(200, 168, 78, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    transition: var(--transition);
}

.gallery-item:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--accent);
}

/* ============ FEATURED LISTINGS (Classificados Destaque) ============ */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}

.listing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

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

.listing-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

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

.listing-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.badge-venda {
    background: var(--accent);
    color: var(--primary-dark);
}

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

.listing-body {
    padding: 24px;
}

.listing-price {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.listing-price small {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-400);
}

.listing-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-800);
}

.listing-location {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.listing-features {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.listing-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-500);
}

.listing-feature strong {
    color: var(--gray-700);
}

/* Listing destaque */
.listing-destaque {
    border: 2px solid var(--accent);
    position: relative;
}

.listing-destaque-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    box-shadow: 0 2px 8px rgba(200,168,78,.4);
}

.listing-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

/* ============ FEATURES / DIFERENCIAIS ============ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    background: rgba(255,255,255,.1);
    border-color: var(--accent);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(200, 168, 78, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.feature-icon svg { width: 28px; height: 28px; }

.feature-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 14px;
    color: rgba(255,255,255,.6);
    line-height: 1.7;
}

/* ============ CTA SECTION ============ */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200,168,78,.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
}

.cta-subtitle {
    font-size: 18px;
    opacity: .8;
    margin-bottom: 40px;
    position: relative;
}

/* ============ CLASSIFIED LISTING PAGE ============ */
.page-header {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 16px;
    opacity: .7;
}

/* Filters */
.filters-bar {
    background: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-top: -30px;
    position: relative;
    z-index: 10;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

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

.filter-btn {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--gray-200);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-600);
}

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

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 20px;
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200,168,78,.15);
}

/* ============ DETAIL PAGE ============ */
.detail-hero {
    padding-top: 80px;
}

.detail-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-auto-rows: 240px;
    gap: 8px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.detail-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s;
}

.detail-gallery img:hover {
    opacity: 0.9;
}

.detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px 0;
}

.detail-info h1 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.detail-description {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 32px;
}

.detail-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.detail-feature {
    background: var(--gray-50);
    padding: 16px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.detail-feature-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.detail-feature-label {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sidebar contact */
.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.contact-price {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.contact-price small {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--gray-400);
}

/* ============ COMMUNITY / MURAL ============ */
.mural-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}

.post-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    transition: var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.post-author { font-weight: 600; font-size: 15px; }
.post-date { font-size: 12px; color: var(--gray-400); }
.post-category {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: rgba(200,168,78,.15);
    color: var(--accent-dark);
    margin-left: auto;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.post-content {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
}

.post-image {
    border-radius: var(--radius-sm);
    margin-top: 16px;
    max-height: 300px;
    width: 100%;
    object-fit: cover;
}

.post-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.post-action {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
    font-family: var(--font-body);
}

.post-action:hover { color: var(--primary); }
.post-action-edit { color: var(--accent) !important; }
.post-action-edit:hover { color: var(--primary) !important; }
.post-action-delete { color: #dc3545 !important; }
.post-action-delete:hover { color: #a71d2a !important; }

/* Sidebar */
.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}

.sidebar-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

/* ============ FORMS ============ */
.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
}

.form-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    color: var(--primary);
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font-body);
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-800);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200,168,78,.15);
}

.form-input::placeholder {
    color: var(--gray-400);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

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

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.form-help {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 4px;
}

.form-error {
    color: var(--danger);
    font-size: 13px;
    margin-top: 4px;
}

/* Error list from Django forms */
.errorlist {
    color: var(--danger);
    font-size: 13px;
    margin-top: 4px;
    list-style: none;
    padding: 0;
}

/* ============ MESSAGE MODAL ============ */
.msg-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,.5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.msg-modal-overlay.active { display: flex; }

.msg-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px 36px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp .4s ease;
}

.msg-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.msg-modal-icon svg { width: 36px; height: 36px; }

.msg-success .msg-modal-icon { background: #ecfdf5; color: #059669; }
.msg-error .msg-modal-icon { background: #fef2f2; color: #dc2626; }
.msg-warning .msg-modal-icon { background: #fffbeb; color: #d97706; }
.msg-info .msg-modal-icon { background: #eff6ff; color: #2563eb; }

.msg-modal-text {
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 24px;
}

.msg-modal-btn {
    padding: 12px 48px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.msg-success .msg-modal-btn { background: #059669; color: white; }
.msg-error .msg-modal-btn { background: #dc2626; color: white; }
.msg-warning .msg-modal-btn { background: #d97706; color: white; }
.msg-info .msg-modal-btn { background: #2563eb; color: white; }

.msg-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============ AUTH PAGES ============ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--gray-100) 100%);
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-xl);
    max-width: 480px;
    width: 100%;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo .logo-icon {
    font-size: 36px;
}

/* ============ PROFILE PAGE ============ */
.profile-header {
    padding: 60px 0 40px;
    background: var(--primary);
    color: var(--white);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    padding: 40px 0;
}

/* ============ ABOUT / SOBRE PAGE ============ */
.about-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 12px;
}

.about-gallery .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.about-gallery .gallery-item:nth-child(4) { grid-column: span 2; }

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.about-feature:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.about-feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(26, 60, 52, .08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.about-feature-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.about-feature-desc {
    font-size: 14px;
    color: var(--gray-500);
}

/* ============ LIGHTBOX ============ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active { display: flex; }

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover { background: rgba(255,255,255,.2); }

.lightbox img,
.lightbox video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius);
}

/* ============ PLANTA BAIXA ============ */
.planta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.planta-img {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    background: var(--white);
    padding: 16px;
}

.planta-img img {
    width: 100%;
    border-radius: var(--radius-sm);
}

.planta-zoom-hint {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(0,0,0,.6);
    color: var(--white);
    border-radius: 50px;
    font-size: 12px;
}

.planta-rooms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.planta-room {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.planta-room svg {
    width: 22px;
    height: 22px;
    min-width: 22px;
}

.planta-room strong {
    display: block;
    font-size: 14px;
    color: var(--gray-800);
}

.planta-room span {
    font-size: 13px;
    color: var(--gray-500);
}

.planta-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.planta-note strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--primary);
}

.planta-note p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Classificados com planta ao lado */
.classificados-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

.planta-sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.planta-sidebar-card img {
    width: 100%;
}

.planta-sidebar-info {
    padding: 16px;
}

.planta-sidebar-info h4 {
    font-family: var(--font-display);
    font-size: 15px;
    margin-bottom: 4px;
}

.planta-sidebar-info p {
    font-size: 13px;
    color: var(--gray-600);
}

@media (max-width: 1024px) {
    .planta-grid { grid-template-columns: 1fr; gap: 32px; }
    .classificados-layout { grid-template-columns: 1fr; }
    .classificados-planta { order: 2; }
    .planta-sidebar-card { position: static; }
}

@media (max-width: 768px) {
    .planta-rooms { grid-template-columns: 1fr; }
}

/* ============ MODERAÇÃO ============ */
.mod-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.mod-stat {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.mod-stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.mod-stat-label {
    font-size: 13px;
    color: var(--gray-500);
}

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

.mod-section-title {
    font-family: var(--font-display);
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.mod-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    margin-bottom: 8px;
    flex-wrap: wrap;
}

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

.mod-card-info p {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 2px;
}

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

.mod-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.mod-media-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--gray-100);
}

.mod-media-card img,
.mod-media-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mod-media-actions {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
}

/* ============ UPLOAD / GALERIA ============ */
.upload-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 40px;
}

.upload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    cursor: pointer;
    transition: var(--transition);
}

.upload-header:hover { background: var(--gray-50); }

.upload-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 18px;
}

.upload-toggle {
    transition: var(--transition);
    color: var(--gray-400);
}

.upload-open .upload-toggle { transform: rotate(180deg); }

.upload-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding .4s ease;
    padding: 0 28px;
}

.upload-open .upload-body {
    max-height: 800px;
    padding: 0 28px 28px;
}

.upload-dropzone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.upload-dropzone:hover {
    border-color: var(--accent);
    background: rgba(200,168,78,.03);
}

.upload-dropzone p {
    margin-top: 8px;
    font-size: 14px;
    color: var(--gray-500);
}

.upload-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.upload-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-100);
}

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

.upload-preview-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 6px;
    background: rgba(0,0,0,.6);
    color: var(--white);
    font-size: 10px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============ PROJETOS FUTUROS ============ */
.section-futuro {
    background: linear-gradient(135deg, #f0ebe3 0%, #e8e0d4 100%);
    position: relative;
    overflow: hidden;
}

.section-futuro::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200,168,78,.1) 0%, transparent 70%);
    border-radius: 50%;
}

.futuro-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.futuro-track {
    display: flex;
    gap: 20px;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
    padding: 4px 0;
}

.futuro-slide {
    min-width: calc(33.333% - 14px);
    height: 360px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.futuro-slide:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.futuro-slide img,
.futuro-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.futuro-slide:hover img,
.futuro-slide:hover video {
    transform: scale(1.05);
}

.futuro-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 20px;
    gap: 8px;
}

.futuro-slide .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 60px;
    height: 60px;
    background: rgba(200, 168, 78, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    transition: var(--transition);
    cursor: pointer;
}

.futuro-slide:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--accent);
}

.futuro-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(200, 168, 78, 0.9);
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.futuro-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
    z-index: 5;
}

.futuro-nav:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.futuro-prev { left: 16px; }
.futuro-next { right: 16px; }

@media (max-width: 1024px) {
    .futuro-slide { min-width: calc(50% - 10px); height: 300px; }
}

@media (max-width: 768px) {
    .futuro-slide { min-width: 85%; height: 260px; }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all .7s cubic-bezier(.4,0,.2,1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ TICKER PREMIUM ============ */
.ticker-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    width: 100%;
}

.ticker-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    min-width: 75px;
    writing-mode: horizontal-tb;
}

.ticker-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 80px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.ticker-belt {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

/* --- Card premium compartilhado --- */
.ticker-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    min-width: 260px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.ticker-card:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(200,168,78,0.4);
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(200,168,78,0.15);
}

/* Imagem do imóvel */
.ticker-card-img {
    position: relative;
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(200,168,78,0.3);
}

.ticker-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ticker-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
}

/* Tag no canto da imagem */
.ticker-card-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 6px;
}

.ticker-card-img .ticker-card-tag {
    display: none;
}

.tag-venda { background: #2ecc71; color: #fff; }
.tag-aluguel { background: var(--accent); color: var(--primary-dark); }
.tag-aviso { background: rgba(200,168,78,0.25); color: var(--accent); }

/* Ícone do aviso */
.ticker-card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: rgba(200,168,78,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

/* Corpo do card */
.ticker-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.ticker-card-price {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

.ticker-card-price small {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.7;
}

.ticker-card-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.ticker-card-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Aviso card */
.ticker-card-aviso {
    background: rgba(200,168,78,0.08);
    border-color: rgba(200,168,78,0.15);
}

.ticker-card-aviso:hover {
    background: rgba(200,168,78,0.15);
}

@media (max-width: 768px) {
    .ticker-label { display: none; }
    .ticker-card { min-width: 200px; padding: 8px 14px; border-radius: 40px; }
    .ticker-card-img { width: 42px; height: 42px; min-width: 42px; }
    .ticker-card-icon { width: 36px; height: 36px; min-width: 36px; }
    .ticker-card-price { font-size: 13px; }
    .ticker-viewport { height: 65px; }
}

/* Aviso icon placeholder */
.hero-aviso-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 8px;
    background: rgba(200,168,78,.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-aviso-card-item {
    cursor: pointer;
}

/* Modal de aviso */
.aviso-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.7);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.aviso-modal.active { display: flex; }

.aviso-modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 520px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: fadeInUp .3s ease;
}

.aviso-modal-content h3 {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 16px;
}

.aviso-modal-content p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
}

.aviso-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.aviso-modal-close:hover { background: var(--gray-200); }

@media (max-width: 768px) {
    .hero-ticker-label { display: none; }
    .aviso-modal-content { padding: 28px 20px; }
}

.hero-anuncios-track {
    display: flex;
    gap: 12px;
    animation: scrollAnuncios 60s linear infinite;
    width: max-content;
}

.hero-anuncios-track:hover {
    animation-play-state: paused;
}

.hero-anuncio-card {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-sm);
    min-width: 220px;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: var(--transition);
    color: var(--white);
}

.hero-anuncio-card:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.hero-anuncio-img {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 8px;
    overflow: hidden;
}

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

.hero-anuncio-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-anuncio-badge {
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    width: fit-content;
}

.hero-anuncio-info strong {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--accent-light);
}

.hero-anuncio-info strong small {
    font-family: var(--font-body);
    font-size: 10px;
    color: rgba(255,255,255,.5);
}

.hero-anuncio-title {
    font-size: 11px;
    color: rgba(255,255,255,.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

/* Aviso card no hero (mesmo estilo) */
.hero-aviso-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(200, 168, 78, 0.15);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(200, 168, 78, 0.3);
    border-radius: var(--radius-sm);
    min-width: 260px;
    flex-shrink: 0;
    color: var(--white);
}

.hero-aviso-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.hero-aviso-text strong {
    font-size: 12px;
    color: var(--accent-light);
    white-space: nowrap;
}

.hero-aviso-text span {
    font-size: 11px;
    color: rgba(255,255,255,.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

@media (max-width: 768px) {
    .hero-anuncios { bottom: 40px; }
    .hero-anuncio-card { min-width: 200px; padding: 8px 10px; }
    .hero-anuncio-img { width: 44px; height: 44px; min-width: 44px; }
    .hero-anuncio-info strong { font-size: 14px; }
}

/* ============ AVISOS MODERADORES ============ */
.avisos-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 28px 0;
    color: var(--white);
}

.avisos-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent-light);
}

.avisos-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
}

.avisos-list::-webkit-scrollbar { height: 3px; }
.avisos-list::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

.aviso-card {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    min-width: 300px;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: var(--transition);
}

.aviso-card:hover {
    background: rgba(255,255,255,.12);
    border-color: var(--accent);
}

.aviso-card.aviso-urgente {
    border-left: 3px solid var(--danger);
}

.aviso-card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: rgba(200,168,78,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.aviso-card-icon svg { width: 20px; height: 20px; }

.aviso-card-body h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.aviso-card-body p {
    font-size: 13px;
    color: rgba(255,255,255,.6);
    line-height: 1.5;
}

.aviso-card-meta {
    font-size: 11px;
    color: rgba(255,255,255,.35);
    margin-top: 6px;
    display: block;
}

@media (max-width: 768px) {
    .aviso-card { min-width: 260px; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .listings-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
    .detail-content { grid-template-columns: 1fr; }
    .mural-grid { grid-template-columns: 1fr; }
    .mod-card { flex-direction: column; align-items: flex-start; }
    .mod-card-actions { width: 100%; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }

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

    .nav-link { padding: 12px 16px; }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255,255,255,.05);
        margin-top: 4px;
        box-shadow: none;
    }

    .dropdown-menu a,
    .dropdown-logout { color: rgba(255,255,255,.7); }

    .hero-stats { flex-direction: column; gap: 20px; }
    .hero-stat-number { font-size: 28px; }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 180px;
    }

    .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
    .gallery-item:nth-child(5) { grid-column: span 1; }

    .listings-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .detail-gallery { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }

    .about-gallery {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 150px;
    }

    .auth-card { padding: 32px 24px; }
    .form-card { padding: 24px; }

    .section { padding: 60px 0; }
    .section-title { font-size: 24px; }

    body { padding-top: 120px; }
    .topbar { display: block; padding: 6px 0; }
    .topbar-inner { justify-content: center; }
    .navbar { top: 40px; }
    .hero { margin-top: -120px; padding-top: 120px; min-height: 100vh; height: auto; }
    .hero-content { padding: 20px 16px 10px; }
    .hero-title { font-size: 26px; }
    .hero-subtitle { font-size: 14px; margin-bottom: 8px; }
    .hero-stats-bar { position: relative; margin-top: 10px; }
    .hero-anuncio-card { min-width: 180px; }
    .hero-ticker-block { margin-top: 4px; }

    .nav-logo-img { height: 36px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .anuncio-mini { min-width: 280px; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
    .gallery-item:nth-child(1) { grid-column: span 1; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .hero-indicators { bottom: 16px; }
    .hero-indicator { width: 10px; height: 10px; }
    .topbar-left { font-size: 11px; }
    .container { padding: 0 16px; }
}

/* ============ UTILITIES ============ */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Pinned badge */
.pinned-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(200,168,78,.15);
    color: var(--accent-dark);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.status-pendente { background: #fef3c7; color: #92400e; }
.status-aprovado { background: #d1fae5; color: #065f46; }
.status-rejeitado { background: #fee2e2; color: #991b1b; }
.status-vendido { background: #e0e7ff; color: #3730a3; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--gray-400);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    opacity: .4;
}

.empty-state h3 {
    font-size: 20px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

/* Comment */
.comment {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
}

.comment:last-child { border-bottom: none; }

.comment-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.comment-body {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: var(--gray-400);
    margin-left: 8px;
}

.comment-text {
    font-size: 14px;
    color: var(--gray-600);
    margin-top: 4px;
}

/* Message status indicator */
.msg-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.msg-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.msg-status.nova::before { background: var(--info); }
.msg-status.lida::before { background: var(--warning); }
.msg-status.respondida::before { background: var(--success); }

/* Response card */
.response-card {
    background: var(--gray-50);
    border-left: 3px solid var(--accent);
    padding: 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 12px;
}

.response-card p {
    font-size: 14px;
    color: var(--gray-600);
}

/* ============================================
   WHATSAPP TOPBAR
   ============================================ */
.topbar-whatsapp {
    color: #25D366 !important;
    font-weight: 500;
}

.topbar-whatsapp:hover {
    color: #128C7E !important;
}

.topbar-download {
    background: #C8A84E;
    color: #0B2B1B !important;
    font-weight: 800;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    letter-spacing: 0.5px;
    border: 2px solid #E8C85E;
    box-shadow: 0 0 12px #C8A84E, 0 0 24px rgba(200, 168, 78, 0.4);
    animation: pulseGlow 2s ease-in-out infinite;
    transition: all 0.3s ease;
    text-decoration: none;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 12px #C8A84E, 0 0 24px rgba(200, 168, 78, 0.4); }
    50% { box-shadow: 0 0 20px #E8C85E, 0 0 40px rgba(200, 168, 78, 0.6); }
}

.topbar-download:hover {
    background: #fff;
    color: #0B2B1B !important;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

/* ============================================
   DOWNLOAD BANNER
   ============================================ */
.download-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 15px;
    position: relative;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.download-banner span {
    color: rgba(255,255,255,0.9);
}

.download-banner strong {
    color: var(--gold);
}

.download-btn-pulse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e6c44c, #c8a84e, #e6c44c);
    background-size: 200% 200%;
    color: var(--primary) !important;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none !important;
    cursor: pointer;
    position: relative;
    z-index: 101;
    animation: pulse-glow 2s infinite, shimmer 3s infinite;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(200, 168, 78, 0.5), 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    letter-spacing: 0.5px;
}

.download-btn-pulse:hover {
    background: white;
    color: var(--primary) !important;
    transform: scale(1.1);
    box-shadow: 0 0 35px rgba(200, 168, 78, 0.8), 0 6px 20px rgba(0,0,0,0.3);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(200, 168, 78, 0.4), 0 4px 15px rgba(0,0,0,0.2); }
    50% { box-shadow: 0 0 30px rgba(200, 168, 78, 0.8), 0 4px 20px rgba(0,0,0,0.3); }
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 768px) {
    .download-banner {
        font-size: 13px;
        padding: 10px 15px;
    }
    .download-banner span {
        display: block;
        margin-bottom: 8px;
    }
}
