/*
Theme Name: R Ferreira Imóveis
Theme URI: https://rferreiraimoveis.com.br
Author: R Ferreira Imóveis
Author URI: https://rferreiraimoveis.com.br
Description: Tema personalizado para R Ferreira Imóveis - Imobiliária especializada em empreendimentos de alto padrão.
Version: 1.0.0
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

R Ferreira Imóveis 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: hsla(var(--background), 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid hsl(var(--border));
    transition: all 0.3s ease;
}

.site-header.scrolled {
    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 {
    font-size: 1.5rem;
    font-weight: 800;
    color: hsl(var(--foreground));
}

.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;
}

.hero::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: 1;
    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;
}

/* ========================================
   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;
}

.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));
}

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

.floating-whatsapp a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: hsl(var(--whatsapp));
    color: white;
    border-radius: 50%;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.floating-whatsapp a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* ========================================
   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%);
    }
}
