/*
Theme Name: Gama Novos Negocios
Theme URI: https://gamanovosnegocios.com
Author: Gama Novos Negocios
Author URI: https://gamanovosnegocios.com
Description: Tema personalizado para Gama Novos Negocios - Empreendimentos exclusivos com qualidade e tradição.
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rferreira-imoveis
Tags: real-estate, custom-post-types, responsive, modern

 Gama Novos Negocios Theme - Todos os direitos reservados.


*/

/* ========================================
   CSS Variables (Design System)
======================================== */
:root {
    --background: 0 0% 100%;
    --foreground: 0 0% 10%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 10%;
    --primary: 0 0% 10%;
    --primary-foreground: 0 0% 100%;
    --secondary: 0 0% 96%;
    --secondary-foreground: 0 0% 10%;
    --muted: 0 0% 96%;
    --muted-foreground: 0 0% 45%;
    --accent: 45 100% 50%;
    --accent-foreground: 0 0% 10%;
    --whatsapp: 142 71% 45%;
    --whatsapp-foreground: 0 0% 100%;
    --border: 0 0% 90%;
    --radius: 0.75rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
}

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

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

ul, ol {
    list-style: none;
}

/* ========================================
   Typography
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: hsl(var(--foreground));
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.75rem; }
}

/* ========================================
   Container
======================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* ========================================
   Header
======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: hsl(var(--background));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background-color: hsl(var(--background));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: hsl(var(--foreground));
}

.site-logo-img {
    height: 48px;
    width: auto;
}

.site-logo span {
    color: hsl(var(--accent));
}

.main-nav {
    display: none;
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
        gap: 2rem;
    }
}

.main-nav a {
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: hsl(var(--foreground));
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: hsl(var(--foreground));
    transition: all 0.3s ease;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border));
    padding: 1rem;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: hsl(var(--foreground));
    font-weight: 500;
}

/* ========================================
   Hero Section
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 80px;
    overflow: hidden;
}

/* Static background (fallback) */
.hero-static-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hero Carousel */
.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

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

/* Dark overlay for text readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
    z-index: 1;
}

/* Remove old ::before pseudo-element for carousel-enabled hero */
.hero-carousel-enabled::before {
    display: none;
}

/* Keep ::before for non-carousel hero */
.hero:not(.hero-carousel-enabled)::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    color: white;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Hero Carousel Indicators */
.hero-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 0.75rem;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-indicator:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

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

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
    background-color: hsl(var(--border));
}

.btn-whatsapp {
    background-color: hsl(var(--whatsapp));
    color: hsl(var(--whatsapp-foreground));
}

.btn-whatsapp:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid hsl(var(--border));
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background-color: hsl(var(--secondary));
}

/* ========================================
   Property Cards Grid
======================================== */
.properties-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header p {
    color: hsl(var(--muted-foreground));
}

.properties-grid {
    display: grid;
    gap: 2rem;
}

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

@media (min-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   Property Card
======================================== */
.property-card {
    background-color: hsl(var(--card));
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.property-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: hsl(var(--secondary));
}

.property-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

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

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

/* Property Card Placeholder */
.property-card-placeholder,
.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: hsl(var(--secondary));
    color: hsl(var(--muted-foreground));
    aspect-ratio: 16/9;
}

.property-card-placeholder svg,
.placeholder-image svg {
    opacity: 0.5;
}

.property-card-placeholder span,
.placeholder-image span {
    font-size: 0.875rem;
}

.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
}

.property-badge.construcao {
    background-color: hsl(200 80% 50%);
    color: white;
}

.property-badge.pronto {
    background-color: hsl(142 71% 45%);
    color: white;
}

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

.property-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.property-card-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.property-card-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--border));
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.property-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

.property-price small {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: hsl(var(--muted-foreground));
}

/* ========================================
   Single Property
======================================== */
.single-property {
    padding-top: 80px;
}

/* ========================================
   Property Hero Carousel (Banner with Gallery)
======================================== */
.property-hero-carousel {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 350px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .property-hero-carousel {
        height: 450px;
    }
}

.banner-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Badge on Carousel */
.banner-carousel .property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    padding: 0.5rem 1rem;
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .banner-carousel .property-badge {
        top: 20px;
        left: 20px;
        font-size: 0.875rem;
    }
}

.banner-carousel .property-badge.lancamento {
    background-color: hsl(var(--accent));
}

.banner-carousel .property-badge.construcao {
    background-color: hsl(200 80% 50%);
    color: white;
}

.banner-carousel .property-badge.pronto {
    background-color: hsl(142 71% 45%);
    color: white;
}

/* Banner Navigation Arrows */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

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

.banner-nav-prev {
    left: 10px;
}

.banner-nav-next {
    right: 10px;
}

@media (min-width: 768px) {
    .banner-nav {
        width: 60px;
        height: 60px;
    }
    
    .banner-nav-prev {
        left: 2rem;
    }
    
    .banner-nav-next {
        right: 2rem;
    }
}

/* Banner Counter */
.banner-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 10;
}

@media (min-width: 768px) {
    .banner-counter {
        bottom: 1.5rem;
        right: 2rem;
        font-size: 1rem;
        padding: 0.625rem 1.25rem;
    }
}

/* Banner Placeholder */
.banner-carousel.placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(var(--secondary));
}

.banner-carousel.placeholder .placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: hsl(var(--muted-foreground));
}

.banner-carousel.placeholder svg {
    opacity: 0.4;
}

.banner-carousel.placeholder p {
    font-size: 1.125rem;
    margin: 0;
}

/* ========================================
   Property Title Section (below carousel)
======================================== */
.property-title-section {
    padding: 1.5rem 0;
    background-color: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border));
}

.property-title-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.property-title-content .property-badge {
    align-self: flex-start;
}

.property-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin: 0;
}

@media (min-width: 768px) {
    .property-title {
        font-size: 2rem;
    }
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

.property-location svg {
    flex-shrink: 0;
}

/* Section Title */
.section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: hsl(var(--foreground));
}

.property-details-section {
    padding: 3rem 0;
}

.property-details-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .property-details-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.property-info-card {
    background-color: hsl(var(--card));
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.property-info-card h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--border));
}

.property-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .property-specs {
        grid-template-columns: repeat(3, 1fr);
    }
}

.property-spec {
    text-align: center;
    padding: 1rem;
    background-color: hsl(var(--secondary));
    border-radius: var(--radius);
}

.property-spec-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.property-spec-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

.property-spec-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.property-description {
    margin-top: 2rem;
    line-height: 1.8;
    color: hsl(var(--muted-foreground));
}

/* Property Sidebar */
.property-sidebar {
    position: sticky;
    top: 100px;
}

.property-contact-card {
    background-color: hsl(var(--card));
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.property-contact-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.property-contact-card .price-label {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1.5rem;
}

.property-contact-card .btn {
    width: 100%;
    margin-bottom: 0.75rem;
}

/* ========================================
   Property Gallery - Grid de 3 colunas
======================================== */
.property-gallery {
    padding: 3rem 0;
    background-color: hsl(var(--secondary));
}

/* Gallery Carousel Styles */
.gallery-carousel {
    max-width: 900px;
    margin: 0 auto;
}

.gallery-carousel-main {
    position: relative;
    background-color: hsl(var(--background));
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

.gallery-carousel-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (min-width: 768px) {
    .gallery-carousel-main img {
        height: 600px;
    }
}

/* Gallery Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

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

.gallery-nav-prev {
    left: 1rem;
}

.gallery-nav-next {
    right: 1rem;
}

/* Gallery Counter */
.gallery-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
}

/* Fullscreen Button */
.gallery-fullscreen {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-fullscreen:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Gallery Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: hsl(var(--muted-foreground)) transparent;
}

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

.gallery-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background-color: hsl(var(--muted-foreground));
    border-radius: 3px;
}

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

.gallery-thumb:hover {
    opacity: 0.9;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: hsl(var(--primary));
}

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

/* Legacy Gallery Grid Styles (kept for compatibility) */
.gallery-grid,
.galeria-fotos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 640px) {
    .gallery-grid,
    .galeria-fotos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .gallery-grid,
    .galeria-fotos {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Gallery item */
.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

/* Gallery images - fixed height, no stretch */
.gallery-item img,
.galeria-fotos img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover img,
.galeria-fotos img:hover {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    border-radius: 8px;
}

.gallery-item-overlay svg {
    color: white;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    background-color: rgba(0, 0, 0, 0.4);
}

.gallery-item:hover .gallery-item-overlay svg {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   Search & Filters
======================================== */
.search-filters {
    background-color: hsl(var(--card));
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.filters-form {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .filters-form {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .filters-form {
        grid-template-columns: repeat(5, 1fr);
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: flex-end;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

.filter-group select,
.filter-group input {
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    font-size: 1rem;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
}

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

.filter-button-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.filter-button-group .btn {
    width: 100%;
    height: 45px;
}

/* ========================================
   Floating WhatsApp Button - Pill Style
======================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
}

.floating-whatsapp a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background-color: #25D366;
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp a svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.floating-whatsapp a::after {
    content: "Fale Conosco";
    white-space: nowrap;
}

.floating-whatsapp a:hover {
    transform: scale(1.05);
    background-color: #1fba59;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

@media (max-width: 480px) {
    .floating-whatsapp {
        bottom: 1rem;
        right: 1rem;
    }
    
    .floating-whatsapp a {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }
    
    .floating-whatsapp a svg {
        width: 20px;
        height: 20px;
    }
}

/* ========================================
   Footer
======================================== */
.site-footer {
    background-color: hsl(var(--foreground));
    color: hsl(var(--background));
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-section h4 {
    color: hsl(var(--background));
    margin-bottom: 1.5rem;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-section a {
    color: hsl(var(--muted));
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: hsl(var(--background));
}

.footer-section p {
    color: hsl(var(--muted));
    line-height: 1.8;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid hsla(var(--background), 0.1);
    text-align: center;
    color: hsl(var(--muted));
    font-size: 0.875rem;
}

/* ========================================
   Lightbox
======================================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

/* ========================================
   Archive Header
======================================== */
.archive-header {
    background-color: hsl(var(--secondary));
    padding: 6rem 0 3rem;
    margin-top: 80px;
    text-align: center;
}

.archive-header h1 {
    margin-bottom: 0.5rem;
}

.archive-header p {
    color: hsl(var(--muted-foreground));
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Pagination
======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination a {
    background-color: hsl(var(--secondary));
    color: hsl(var(--foreground));
}

.pagination a:hover {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.pagination .current {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* ========================================
   Utilities
======================================== */
.text-center { text-align: center; }
.text-muted { color: hsl(var(--muted-foreground)); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ========================================
   Mobile Responsiveness - Single Property
======================================== */
@media (max-width: 768px) {
    /* Property specs - single column on mobile */
    .property-specs {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    /* Property title responsive */
    .property-title {
        font-size: 1.5rem !important;
    }
    
    .property-title-section {
        padding: 1rem 0;
    }
    
    /* WhatsApp buttons responsive */
    .property-contact-card .btn {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .property-contact-card .price {
        font-size: 1.5rem;
    }
    
    /* Property info card padding */
    .property-info-card {
        padding: 1rem;
    }
    
    .property-info-card h2 {
        font-size: 1.25rem;
    }
    
    /* Footer full width */
    .site-footer {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
}

/* ========================================
   Cookie Banner - LGPD
======================================== */
.cookie-banner {
    position: fixed;
    bottom: 5rem;
    left: 1rem;
    z-index: 40;
    max-width: 320px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.cookie-banner.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.cookie-close:hover {
    color: #fff;
}

.cookie-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-right: 1rem;
}

.cookie-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-accept {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border: none;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cookie-accept:hover {
    background: hsl(45, 100%, 45%);
}

.cookie-link {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-link:hover {
    color: #fff;
}

/* Cookie Banner Mobile */
@media (max-width: 480px) {
    .cookie-banner {
        bottom: 4.5rem;
        left: 0.5rem;
        right: auto;
        max-width: calc(100% - 1rem);
        padding: 0.75rem;
    }
    
    .cookie-icon {
        font-size: 1rem;
    }
    
    .cookie-text p {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }
    
    .cookie-accept {
        font-size: 0.7rem;
        padding: 0.25rem 0.75rem;
    }
    
    .cookie-link {
        font-size: 0.7rem;
    }
}

/* =========================================
   Properties Carousel
   ========================================= */

.properties-carousel-section {
    padding: 3rem 0;
    background: hsl(var(--secondary) / 0.3);
    overflow: hidden;
}

.carousel-title {
    text-align: center;
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.properties-carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.properties-carousel {
    display: flex;
    gap: 1.5rem;
    animation: carousel-scroll 30s linear infinite;
    width: max-content;
}

.properties-carousel:hover {
    animation-play-state: paused;
}

@keyframes carousel-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.carousel-item {
    flex-shrink: 0;
    width: 320px;
    text-decoration: none;
    display: block;
}

.carousel-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.carousel-item:hover .carousel-image-wrapper {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

.carousel-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-item:hover .carousel-image {
    transform: scale(1.1);
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.carousel-item-title {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Mobile Carousel */
@media (max-width: 768px) {
    .properties-carousel-section {
        padding: 2rem 0;
    }
    
    .carousel-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .properties-carousel {
        gap: 1rem;
    }
    
    .carousel-item {
        width: 260px;
    }
    
    .carousel-item-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-item {
        width: 220px;
    }
    
    .carousel-item-title {










/* ========================================
   FIX: Layout Desktop - Baixa Manutenção
======================================== */

/* Cards da Listagem - Proporção 4:3 */
@media (min-width: 768px) {
    .property-card-image {
        height: 0;
        padding-bottom: 75%;
        position: relative;
    }
    
    .property-card-image a,
    .property-card-image img,
    .property-card-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Carrossel da Home */
@media (min-width: 768px) {
    .carousel-image {
        aspect-ratio: 16/10 !important;
        object-fit: cover !important;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    font-size: 60px;
    padding: 20px;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    z-index: 10000;
}

.banner-carousel {
    position: relative;
}
















/* ========================================
   FIX: Layout Desktop - Baixa Manutenção
======================================== */

/* Cards da Listagem - Proporção 4:3 */
@media (min-width: 768px) {
    .property-card-image {
        height: 0;
        padding-bottom: 75%;
        position: relative;
    }
    
    .property-card-image a,
    .property-card-image img,
    .property-card-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Carrossel da Home */
@media (min-width: 768px) {
    .carousel-image {
        aspect-ratio: 16/10 !important;
        object-fit: cover !important;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    font-size: 60px;
    padding: 20px;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    z-index: 10000;
}

.banner-carousel {
    position: relative;
}

/* ========================================
   Banner Interno - Layout Atualizado
======================================== */

@media (min-width: 768px) {
    .banner-carousel-img {
        object-fit: cover !important;
        object-position: center !important;
    }
    
    .property-hero-carousel {
        width: auto !important;
        max-width: 1200px !important;
        height: 450px !important;
        margin: 2rem auto !important;
        border-radius: 12px !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        background-color: #f5f5f5 !important;
    }
    
    /* BOTÃO AMPLIAR */
    .expand-image-btn {
        position: absolute !important;
        bottom: 1rem !important;
        left: 1rem !important;
        background: rgba(0, 0, 0, 0.8) !important;
        color: white !important;
        border: 2px solid white !important;
        padding: 0.75rem 1.25rem !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        font-size: 0.875rem !important;
        font-weight: 600 !important;
        z-index: 9999 !important;
    }
    
    .expand-image-btn svg {
        width: 20px !important;
        height: 20px !important;
    }
}