:root {
    --bg-color: #0a0a0a;
    --bg-secondary: #121212;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #ffffff;
    --border-color: #333333;
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --spacing-container: 120px 5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:focus-visible {
    outline: 2px solid #c9a96e;
    outline-offset: 2px;
}
:focus:not(:focus-visible) {
    outline: none;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    /* Critical for mobile prevention */
    width: 100%;
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body {
    line-height: 1.6;
}

/* Search Section */
.search-section {
    padding: 0 5%;
    margin-top: -40px;
    /* Overlap hero if wanted, or just sit nicely */
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.search-container {
    background: rgba(20, 20, 20, 0.95);
    /* More solid for contrast */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-radius: 16px;
    /* slightly less rounded, more architectural */
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping */
    gap: 1.5rem;
    /* Reduce gap */
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    max-width: 100%;
    /* Prevent overflow */
    width: fit-content;
    margin: 0 auto;
}

.search-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    min-width: 150px;
    /* Ensure logical minimum width */
}

.search-group label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

/* Custom Select Styling */
.search-group select {
    appearance: none;
    /* Remove default arrow */
    -webkit-appearance: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    /* Slightly smaller font for better fit */
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    outline: none;
    min-width: 140px;
    /* Reduce min-width */
    padding-right: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    width: 100%;
}

.search-group select option {
    background: #1a1a1a;
    color: white;
    padding: 10px;
}

@media (max-width: 992px) {
    :root {
        --spacing-container: 60px 5%;
    }

    .search-container {
        padding: 20px;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        border-radius: 20px;
        width: 100%;
        align-items: stretch;
        gap: 1.5rem;
    }
}

/* --- Flow Button Effect --- */
.btn-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 32px;
    border-radius: 100px;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

/* Liquid Circle Expansion */
.btn-flow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.btn-flow:hover {
    border-color: transparent !important;
    /* Hide border on hover */
    color: black !important;
    /* Flip text color */
}

.btn-flow:hover::before {
    transform: translate(-50%, -50%) scale(20);
    /* Expand liquid fill */
}

/* Sliding Icons */
.btn-flow .icon-container {
    position: relative;
    width: 18px;
    height: 18px;
    overflow: hidden;
}

/* Floating WhatsApp Button */
.btn-whatsapp {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
}

.btn-whatsapp svg {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px;
    max-height: 32px;
    fill: white;
}

.btn-flow .icon-arrow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-flow .icon-arrow.left {
    transform: translateX(-150%);
    opacity: 0;
}

.btn-flow .icon-arrow.right {
    transform: translateX(0);
    opacity: 1;
}

.btn-flow:hover .icon-arrow.left {
    transform: translateX(0);
    opacity: 1;
}

.btn-flow:hover .icon-arrow.right {
    transform: translateX(150%);
    opacity: 0;
}

/* Text slide */
.btn-flow span {
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-flow:hover span {
    transform: translateX(4px);
}

/* --- Map Toggle (Airbnb Style) --- */
.btn-map-toggle {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    /* High Z-Index */
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, background 0.2s;
    touch-action: manipulation;
    /* Improved mobile touch */
    -webkit-tap-highlight-color: transparent;
}

.btn-map-toggle:hover {
    transform: translateX(-50%) scale(1.05);
    background: #000;
}

.map-view-container {
    height: 600px;
    width: 100%;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #1a1a1a;
    /* Visible background while loading */
    position: relative;
    z-index: 5;
}

/* --- Property Detail Page --- */
/* .page-property .navbar {
    background: #0a0a0a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
} */

.prop-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.prop-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    z-index: 1;
}

.prop-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, #0a0a0a, transparent);
    z-index: 2;
}

.prop-hero-content {
    position: relative;
    z-index: 3;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.prop-badges {
    margin-bottom: 20px;
}

.prop-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 10px;
}

.prop-location-lg {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.prop-main {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto 100px;
}

.prop-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

/* Stats Bar */
.prop-stats-bar {
    display: flex;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
    align-items: center;
    /* Vertical alignment for labels of different heights */
}

.prop-stats-bar .stat {
    display: flex;
    flex-direction: column;
}

.prop-stats-bar .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.prop-stats-bar .value {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 5px;
}

/* Content Sections */
.prop-section {
    margin-bottom: 60px;
}

.prop-section h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.prop-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Sticky Sidebar */
.prop-sidebar {
    position: relative;
}

@media (max-width: 900px) {
    .prop-grid-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: static;
        /* Disable sticky on mobile */
        margin-top: 40px;
    }
}

.sidebar-card {
    position: sticky;
    top: 120px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    z-index: 20;
    /* Ensure it stays above content but below modal */
}

.price-block .label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.price-block h2 {
    font-size: 2.5rem;
    color: #fff;
}

.divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.interest-form input,
.interest-form textarea {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-family: var(--font-body);
}

.interest-form h3 {
    margin-bottom: 20px;
}

.full-width {
    width: 100%;
}

/* Mobile */
@media (max-width: 900px) {
    .prop-grid-layout {
        grid-template-columns: 1fr;
    }

    .prop-hero-content h1 {
        font-size: 2rem;
    }

    .prop-stats-bar {
        gap: 20px;
        flex-wrap: wrap;
    }
}


a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    /* Floating from top */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    padding: 12px 30px;
    /* Compact padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(16px);
    /* Heavy blur for glass effect */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    /* Pill shape */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.85);
    /* Darker on scroll */
    padding: 10px 30px;
    top: 10px;
    /* Slightly closer to top */
    width: 95%;
    /* Slightly wider */
    max-width: 1200px;
    border-color: rgba(255, 255, 255, 0.15);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.btn-contact {
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 100px;
    color: var(--text-primary) !important;
}

.btn-contact:hover {
    background: var(--text-primary);
    color: var(--bg-color) !important;
}

/* Hero Badge (Design Skill: monospace label) */
.hero-badge {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #c9a96e;
    text-transform: uppercase;
    padding: 6px 16px;
    border: 1px solid rgba(201, 169, 110, 0.25);
    border-radius: 100px;
    margin-bottom: 24px;
    display: inline-block;
    background: rgba(201, 169, 110, 0.08);
    backdrop-filter: blur(8px);
}

/* Hero */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    background: #0a0a0a url('images/hero-bg.webp') no-repeat center center/cover;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.4), var(--bg-color));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    /* Center text */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center items */
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 2rem auto 3rem auto;
    /* Center paragraph */
    max-width: 500px;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 16px 32px;
    font-weight: 600;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
    background: white;
    color: black;
}

.btn-primary:active {
    transform: scale(0.96) translateY(0);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

/* Chic 'Ripple' overlay effect on click */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.6s, opacity 0.6s;
}

.btn-primary:active::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition: 0s;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    margin-top: 10px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* prefers-reduced-motion: disable all animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .fade-in {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .hero-stat-value {
        /* Skip counting animation */
        animation: none;
    }
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 60px 40px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    /* Vertical alignment for items */
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-item h3 {
    font-family: 'Syne', sans-serif;
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Collection */
.collection {
    padding: var(--spacing-container);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.view-all {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.property-card {
    position: relative;
    /* Fixed invalid 'group' property */
    cursor: pointer;
}

.card-image {
    height: 400px;
    background: #1a1a1a;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

/* --- Bento Grid Gallery --- */
#prop-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.2, 1, 0.3, 1), filter 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* --- Dynamic Grid Pattern --- */
/* Item 1: Featured (2x2) */
.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

/* Item 6: Wide (2x1) */
.gallery-item:nth-child(6) {
    grid-column: span 2;
}

/* Item 9: Tall (1x2) */
.gallery-item:nth-child(9) {
    grid-row: span 2;
}

/* --- Card Safeguards --- */
.card-info {
    padding: 0.8rem 0 0.5rem;
}

.card-info .card-neighborhood {
    white-space: normal;
    overflow: visible;
    display: block;
    margin-bottom: 0.4rem;
    max-width: 100%;
    line-height: 1.2;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading, 'Syne', sans-serif);
}

.card-specs {
    display: flex;
    gap: 12px;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.card-spec {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #999;
    font-size: 0.8rem;
    font-family: var(--font-body, 'Inter', sans-serif);
}

.card-spec svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.card-price {
    font-size: 1rem;
    font-weight: 700;
    color: #c9a96e;
    margin: 0 0 0.2rem;
    font-family: var(--font-body, 'Inter', sans-serif);
}

.card-city {
    color: #666;
    font-size: 0.78rem;
    margin: 0;
    font-family: var(--font-body, 'Inter', sans-serif);
}

/* End Card Safeguards */

/* Responsive: Tablet (2 columns) */
@media (max-width: 900px) {
    #prop-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-item:nth-child(6) {
        grid-column: span 1;
    }

    .gallery-item:nth-child(9) {
        grid-row: span 1;
        grid-column: span 2;
    }
}

/* Responsive: Mobile (1 column) */
@media (max-width: 600px) {
    #prop-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
        gap: 12px;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(6),
    .gallery-item:nth-child(9) {
        grid-column: span 1;
        grid-row: span 1;
    }
}


.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    border-radius: 16px;
    /* Explicit radius for the img itself */
    transition: transform 0.5s ease;
}


.card-image:hover img {
    transform: scale(1.05);
}

.placeholder-dark {
    background: linear-gradient(45deg, #222, #2a2a2a);
}

.card-image:hover {
    opacity: 0.9;
}

.tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    color: white;
    padding: 6px 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.location {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

/* Card Main Link */
.card-main-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Card Reference Code */
.card-ref {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
    display: block;
}

/* Card Feature Badges */
.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
    pointer-events: none;
}
.card-badge.exclusivo {
    background: rgba(201, 169, 110, 0.15);
    color: #c9a96e;
    border: 1px solid rgba(201, 169, 110, 0.3);
}
.card-badge.novo {
    background: rgba(30, 201, 140, 0.12);
    color: #1EC98C;
    border: 1px solid rgba(30, 201, 140, 0.25);
}
.card-badge.rentabilidade {
    background: rgba(201, 169, 110, 0.12);
    color: #c9a96e;
    border: 1px solid rgba(201, 169, 110, 0.25);
}

/* Card Extra Info (Condo, IPTU, Mobiliado) */
.card-extra {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #777;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.card-extra .mobiliado {
    color: #1EC98C;
    font-weight: 500;
}

/* Card WhatsApp Button */
.card-whatsapp-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    margin-top: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #c9a96e;
    border: 1px solid rgba(201, 169, 110, 0.25);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    background: rgba(201, 169, 110, 0.06);
}
.card-whatsapp-btn:hover {
    background: rgba(201, 169, 110, 0.15);
    border-color: rgba(201, 169, 110, 0.5);
    color: #d4b87a;
}

/* Services */
.services {
    background: var(--bg-secondary);
    padding: var(--spacing-container);
}

.service-container {
    display: flex;
    justify-content: space-between;
}

.service-box {
    flex: 1;
    padding: 0 2rem;
}

.vertical-line {
    width: 1px;
    background: var(--border-color);
}

.service-box h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.service-box p {
    color: var(--text-secondary);
    max-width: 300px;
}

/* Footer */
footer {
    padding: 80px 5% 40px;
    border-top: 1px solid var(--border-color);
    background: #050505;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 80px;
}

.footer-brand h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
}

.creci {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: monospace;
    margin-bottom: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    width: fit-content;
    border-radius: 4px;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.col a:hover {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Breadcrumbs (for Property Page) */
.breadcrumbs {
    padding: 20px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--text-secondary);
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--text-primary);
}

.breadcrumbs .separator {
    margin: 0 8px;
    opacity: 0.5;
}

.breadcrumbs .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* --- Hero Search Trigger (The "Fake" Search Bar) --- */
.hero-search-trigger {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 8px 10px 8px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.hero-search-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.hero-search-trigger .search-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.hero-search-trigger .label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a1a1a;
    letter-spacing: 0.05em;
}

.hero-search-trigger .value {
    font-size: 0.9rem;
    color: #666;
    margin-top: 2px;
}

.hero-search-trigger .separator {
    width: 1px;
    height: 30px;
    background: rgba(0, 0, 0, 0.1);
}

.hero-search-trigger .search-icon-btn {
    background: #FF385C;
    /* Airbnb Red or Brand Gold? Let's use red for CTR */
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    color: white;
}

.hero-search-trigger .search-icon-btn svg {
    width: 20px;
    height: 20px;
}


/* --- Philosophy Section --- */
.philosophy {
    padding: 100px 5%;
    background: #0a0a0a;
}

.philosophy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.philo-text .overline {
    display: block;
    font-size: 0.8rem;
    color: #ffd700;
    /* Gold */
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

.philo-text h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    line-height: 1.1;
}

.philo-text .lead {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 20px;
}

.philo-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.philo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.philo-item strong {
    display: block;
    color: white;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.philo-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 4px;
    filter: grayscale(20%);
}


/* (Old slider styles removed - superseded by mobile-optimized styles at end of file) */

/* --- Footer Redesign --- */
.footer-top {
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    /* Brand | Links | Contact | Newsletter */
    gap: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: white;
}

.address {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 15px;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
    margin-bottom: 20px;
}

.newsletter-form input {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 12px 16px;
    color: white;
    font-family: var(--font-body);
    width: 100%;
    border-radius: 12px 0 0 12px;
}

.newsletter-form button {
    background: white;
    border: none;
    color: black;
    padding: 0 20px;
    cursor: pointer;
    border-radius: 0 12px 12px 0;
    font-weight: bold;
}

.social-links {
    display: flex;
    gap: 20px;
}

.bottom-content {
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.85rem;
}

.legal-links a {
    color: #666;
    margin-left: 20px;
    text-decoration: none;
}

/* WhatsApp Pulse Animation */
.btn-whatsapp {
    animation: pulseWhatsapp 3s infinite;
}

@keyframes pulseWhatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- Mortgage Calculator --- */
.mortgage-calc {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mortgage-calc h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.calc-group {
    margin-bottom: 15px;
}

.calc-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.calc-group input {
    width: 100%;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px;
    border-radius: 6px;
    font-family: var(--font-body);
}

.calc-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.calc-result span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.calc-result strong {
    font-size: 1.2rem;
    color: #4CAF50;
    /* Green for money */
}

/* --- Favorites System --- */
.btn-favorite {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: transform 0.2s, background 0.2s;
    z-index: 10;
}

.btn-favorite:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.8);
}

.btn-favorite svg {
    width: 20px;
    height: 20px;
    stroke: white;
    fill: none;
    transition: fill 0.3s, stroke 0.3s;
}

.btn-favorite.active svg {
    fill: #ff4757;
    stroke: #ff4757;
}

/* Hero Favorite Button (Property Page) - FIXED OVERLAP */
.prop-hero-content .btn-favorite {
    position: absolute;
    /* Changed from relative to absolute */
    top: 0;
    right: 0;
    margin-left: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.prop-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    margin-top: 60px;
    padding-right: 60px;
    position: relative;
    z-index: 5;
    min-height: 40px;
    /* Ensure height */
}

/* Fix Tag Overlap in Hero */
.prop-badges .tag {
    position: relative;
    top: auto;
    left: auto;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* --- Bento Gallery --- */
.bento-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 16px;
    padding-bottom: 40px;
}

.bento-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    background: #1a1a1a;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bento-item:hover img {
    transform: scale(1.05);
}

/* Bento Logic: Organic Spans */
/* First item is the "Hero" of the gallery */
.bento-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

/* Every 6th item is tall */
.bento-item:nth-child(6n+3) {
    grid-row: span 2;
}

/* Every 5th item is wide */
.bento-item:nth-child(5n+5) {
    grid-column: span 2;
}

@media (max-width: 900px) {
    .bento-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .bento-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    /* Reset other complex spans for simple mobile 2-col layout */
    .bento-item:nth-child(n+2) {
        grid-column: auto;
        grid-row: auto;
    }

    /* Make every 3rd item span full width for variety */
    .bento-item:nth-child(3n) {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .bento-gallery {
        gap: 10px;
        grid-auto-rows: 160px;
    }
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 5001;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 20px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 30px;
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 350px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: 16px;
    z-index: 10000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: none;
    /* JS will toggle flex */
}

.cookie-banner.active {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: white;
}

.cookie-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-cookie-accept {
    flex: 1;
    background: white;
    color: black;
    border: none;
    padding: 10px 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-cookie-accept:hover {
    transform: scale(1.02);
}

.btn-cookie-decline {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0 10px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.btn-cookie-decline:hover {
    color: white;
}

@media (max-width: 480px) {
    .cookie-banner {
        bottom: 0;
        right: 0;
        width: 100%;
        border-radius: 16px 16px 0 0;
        border-bottom: none;
    }
}

.prop-hero-content {
    /* Ensure content is strictly below nav */
    padding-top: 20px;
}

/* Mobile Responsiveness & "Mobile First" Tweaks */
@media (max-width: 900px) {
    .prop-grid-layout {
        grid-template-columns: 1fr;
    }

    .prop-hero-content h1 {
        font-size: 2.2rem;
        /* Adjusted for mobile */
    }

    .prop-stats-bar {
        gap: 20px;
        flex-wrap: wrap;
    }

    .philosophy-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .philosophy-slider-section {
        padding: 60px 5%;
        /* Reduced padding */
    }

    .philo-image {
        order: -1;
        /* Image first on mobile */
        margin-bottom: 20px;
    }

    .philo-text h2 {
        font-size: 2rem;
    }

    /* Footer Mobile - Compact */
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 25px;
        /* Reduced gap */
        text-align: center;
        /* Center align for cleanliness */
    }

    .footer-top {
        padding-bottom: 30px;
    }

    .footer-links {
        gap: 1.5rem;
    }

    .footer-col h4 {
        margin-bottom: 15px;
        /* Compact headers */
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 15px auto;
    }

    .slider-container {
        padding: 0 10px;
        position: relative;
    }

    .slider-btn {
        padding: 8px 12px;
        font-size: 16px;
        top: 35%;
        /* Move arrows up slightly to align with image center approx */
    }

    .slider-dots {
        margin-top: 15px;
        position: relative;
        /* Change from absolute if flex isn't working, but let's try strict flex first with width */
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        left: 0;
        right: 0;
        text-align: center;
        /* Fallback */
    }

    .scroll-indicator {
        display: none;
    }

    /* Stats Section Mobile */
    .stats {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: -60px;
        /* Less overlap on mobile */
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

    /* FIX: Services Stack on Mobile */
    .service-container {
        flex-direction: column;
        gap: 20px;
    }

    .service-box {
        padding: 30px 20px;
        text-align: center;
        background: rgba(255, 255, 255, 0.03);
        /* Card effect */
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 12px;
    }

    .service-icon {
        margin: 0 auto 20px auto;
        /* Center icon */
        display: inline-flex;
    }

    .service-box p {
        margin: 0 auto;
        /* Center text block */
    }

    .vertical-line {
        display: none;
        /* Hide desktop dividers on mobile */
    }

    /* FIX: Slider Proportions (Image + Text together) */
    .philo-image {
        order: -1;
        margin-bottom: 20px;
        width: 100%;
        height: 250px;
        /* Fixed height to allow text visibility */
    }

    .philo-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }

    /* FIX: Property Hero Mobile */
    .prop-hero {
        min-height: 50vh;
        /* Ensure height */
    }

    .prop-hero-bg {
        background-attachment: scroll;
        /* Fix iOS parallax bug if any */
    }
}

@media (max-width: 480px) {

    /* Ultra-small screens */
    h1 {
        font-size: 2.5rem;
        /* Hero text */
    }

    .search-container {
        padding: 20px;
    }

    .btn-flow {
        width: 100%;
        /* Full width button */
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
}

/* --- ADAPTIVE MOBILE FIXES (No Left Space) --- */
@media (max-width: 500px) {

    body,
    html {
        overflow-x: hidden;
        width: 100%;
    }

    /* Navbar: Almost full width on mobile */
    .navbar {
        width: 96%;
        top: 10px;
        padding: 10px 15px;
        border-radius: 50px;
        /* Slightly less rounded to save vertical space if needed, or keep pill */
    }

    /* Hero: Maximize width */
    .hero {
        padding: 0 0;
        /* Remove side padding from container */
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        /* Minimal padding for text */
    }

    /* Search: Fit screen */
    .search-container {
        width: 94%;
        margin-left: auto;
        margin-right: auto;
        padding: 20px 15px;
        flex-direction: column;
        gap: 15px;
    }

    .custom-dropdown {
        min-width: 100%;
    }

    .btn-search {
        width: 100%;
    }

    /* Stats: Ensure center */
    .stats {
        padding-left: 10px;
        padding-right: 10px;
        width: 100%;
    }
}


/* --- Service Icons --- */
.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: white;
    /* or use a gold color like #ffd700 */
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

/* --- Social Icons in Footer --- */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: white;
    color: black;
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* --- Custom Dropdowns --- */
.custom-dropdown {
    position: relative;
    width: 100%;
    min-width: 200px;
    font-family: var(--font-body);
}

.dropdown-selected {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.dropdown-selected:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: #252525;
}

.dropdown-selected .chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.custom-dropdown.active .dropdown-selected {
    border-color: var(--text-primary);
    background: #000;
}

.custom-dropdown.active .chevron {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    z-index: 100;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.custom-dropdown.active .dropdown-options {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
}

/* Scrollbar for dropdown */
.dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.dropdown-options::-webkit-scrollbar-track {
    background: #111;
}

.dropdown-options::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.dropdown-option {
    padding: 12px 16px;
    color: #ccc;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background: #333;
    color: white;
    padding-left: 20px;
    /* Slight slide effect */
}

/* --- Mobile Menu Overlay --- */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
    outline: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

/* Hamburger Animation when Active */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 100%;
        height: 100vh;
        background: #0a0a0a;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        backdrop-filter: blur(10px);
        /* Glass effect */
    }

    .nav-links.active {
        right: 0;
        /* Slide in */
    }

    .nav-links a {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

}

/* Mobile Stats Override */
@media (max-width: 600px) {
    .stats {
        padding-bottom: 20px;
        gap: 10px;
        width: 100%;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }

    .stat-item p {
        font-size: 0.8rem;
    }
}

/* --- FORCE LIGHTBOX ARROW FIX --- */
.lightbox-nav {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    margin: auto !important;
    transform: none !important;
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.6) !important;
    width: 60px !important;
    height: 100% !important;
    font-size: 3rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    border-radius: 0 !important;
    z-index: 5002 !important;
}

.lightbox-nav:hover {
    color: white !important;
    background: rgba(0, 0, 0, 0.2) !important;
}

.lightbox-prev {
    left: 0 !important;
    right: auto !important;
    justify-content: flex-start !important;
    padding-left: 20px !important;
}

.lightbox-next {
    right: 0 !important;
    left: auto !important;
    padding-right: 20px !important;
    top: 80px !important;
    /* SAFE ZONE: Start below the close button */
    height: calc(100% - 80px) !important;
}

/* --- FORCE LIGHTBOX CLOSE FIX --- */
.lightbox-close {
    z-index: 5005 !important;
    top: 30px !important;
}

/* --- Mobile Lightbox Improvements --- */
@media (max-width: 600px) {
    .lightbox-close {
        top: 15px !important;
        right: 15px !important;
        font-size: 2.5rem !important;
        width: 48px;
        height: 48px;
        line-height: 48px;
    }

    .lightbox-nav {
        width: 48px !important;
        font-size: 2rem !important;
    }

    .lightbox-prev {
        padding-left: 10px !important;
    }

    .lightbox-next {
        padding-right: 10px !important;
        top: 70px !important;
        height: calc(100% - 70px) !important;
    }

    .lightbox-content {
        max-width: 95%;
    }

    .lightbox-content img {
        max-height: 80vh;
    }
}

/* --- FIX: Mobile Menu Visibility Glitch (Robust) --- */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        /* Removed from layout by default */
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        background: #000;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        /* Only flexible when active */
        opacity: 1;
        animation: fadeInMenu 0.3s forwards;
    }

    @keyframes fadeInMenu {
        from {
            opacity: 0;
            transform: translateX(20px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* --- About Slider Section --- */
.philosophy-slider-section {
    padding: 100px 5%;
    position: relative;
    background-color: var(--bg-color);
    overflow: hidden;
}

.slider-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.slides {
    position: relative;
    width: 100%;
}

.slide {
    display: none;
    /* Hidden by default */
    animation: fadeEffect 1s ease;
}

/* JS adds .active class to show */
.slide.active {
    display: block;
}

.philosophy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.philo-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.philo-text .overline {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 600;
}

.philo-text .lead {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 300;
}

.philo-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    filter: grayscale(20%);
    transition: filter 0.5s;
}

.philo-image img:hover {
    filter: grayscale(0%);
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 20px;
    z-index: 10;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.slider-btn:hover {
    opacity: 1;
}

.slider-btn.prev {
    left: -24px;
}

.slider-btn.next {
    right: -24px;
}

/* Dots */
.slider-dots {
    text-align: center;
    margin-top: 40px;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 8px;
    background-color: #333;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    border: none;
    padding: 0;
    outline: none;
}
.dot:focus-visible {
    outline: 2px solid #c9a96e;
    outline-offset: 3px;
}

.dot.active,
.dot:hover {
    background-color: white;
}

@keyframes fadeEffect {
    from {
        opacity: 0.4
    }

    to {
        opacity: 1
    }
}

@media (max-width: 900px) {
    .philosophy-content {
        grid-template-columns: 1fr;
    }

    .philo-image img {
        height: 300px;
    }

    .slider-btn.prev {
        left: 0;
    }

    .slider-btn.next {
        right: 0;
    }

/* --- Services Section --- */
.services-section {
    padding: 120px 0;
    background: var(--bg-color, #0a0a0a);
    overflow: hidden;
}

/* ════════════════════════════════════════════════════════════════
   Services Carousel (moved from index.html inline)
   ════════════════════════════════════════════════════════════════ */
.svc-reveal {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.svc-container {
    max-width: 100%;
    margin: 0 auto;
    background: transparent;
    position: relative;
    overflow: hidden;
}
.svc-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    margin-bottom: 40px;
}
.svc-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #c9a96e;
}
.svc-dots {
    display: flex;
    gap: 10px;
}
.svc-dot {
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 4px;
    transition: color 0.4s, opacity 0.4s;
    font-weight: 500;
    opacity: 0.5;
    background: none;
    border: none;
    font-family: inherit;
    outline: none;
}
.svc-dot:focus-visible {
    outline: 2px solid #c9a96e;
    outline-offset: 2px;
    border-radius: 2px;
}
.svc-dot.active {
    color: #fff;
    opacity: 1;
}
.svc-dot:hover {
    color: #fff;
    opacity: 0.8;
}
.svc-title-area {
    text-align: center;
    position: relative;
    z-index: 3;
    padding: 0 5%;
    margin-bottom: -80px;
}
.svc-title-area h3 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0.95;
    margin: 0;
    transition: opacity 0.5s ease;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}
.svc-carousel-viewport {
    position: relative;
    height: 420px;
    margin: 0;
    cursor: grab;
    overflow: hidden;
}
.svc-carousel-viewport:active {
    cursor: grabbing;
}
.svc-track {
    display: flex;
    align-items: center;
    height: 100%;
    will-change: transform;
}
.svc-track.animating {
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.svc-slide {
    flex-shrink: 0;
    height: 85%;
    border-radius: 14px;
    overflow: hidden;
    transition: height 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.4;
    position: relative;
    margin: 0 8px;
}
.svc-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.svc-slide.active-slide {
    height: 100%;
    opacity: 1;
}
.svc-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 5% 0;
    gap: 24px;
}
.svc-bottom-desc {
    max-width: 520px;
}
.svc-bottom-desc p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
    transition: opacity 0.4s ease;
}
.svc-bottom-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    white-space: nowrap;
    letter-spacing: 0.05em;
}
.svc-bottom-cta:hover {
    background: #fff;
    color: #0a0a0a;
    border-color: transparent;
}
@media (max-width: 768px) {
    .services-section {
        padding: 80px 0;
    }
    .svc-title-area {
        margin-bottom: -40px;
    }
    .svc-carousel-viewport {
        height: 300px;
    }
    .svc-slide {
        margin: 0 4px;
    }
    .svc-bottom {
        padding-top: 24px;
    }
    .svc-bottom-cta {
        padding: 12px 24px;
        width: 100%;
        justify-content: center;
    }
    .svc-title-area h3 {
        font-size: 2.2rem;
    }
    .svc-title-area {
        margin-bottom: -50px;
    }
    .svc-bottom {
        padding: 30px 5% 0;
    }
}

/* ════════════════════════════════════════════════════════════════
   Bairro Grid (moved from index.html inline)
   ════════════════════════════════════════════════════════════════ */
.bairro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.bairro-grid .bairro-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    aspect-ratio: 4/3;
}
.bairro-grid .bairro-card.card-wide {
    grid-column: span 2;
    aspect-ratio: 8/3;
}
.bairro-grid .bairro-card.card-full {
    grid-column: span 3;
    aspect-ratio: 3/1;
}
.bairro-card .card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease, filter 0.6s ease;
}
.bairro-card:hover .card-bg {
    transform: scale(1.08);
}
.bairro-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.05) 100%);
    transition: background 0.3s;
}
.bairro-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.12) 50%, rgba(0, 0, 0, 0.02) 100%);
}
.bairro-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
}
.bairro-card .card-badge {
    display: inline-block;
    background: rgba(201, 169, 110, 0.2);
    border: 1px solid rgba(201, 169, 110, 0.4);
    color: #c9a96e;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    backdrop-filter: blur(8px);
}
.bairro-card .card-title {
    color: #fff;
    font-size: 1.6rem;
    font-family: var(--font-heading);
    margin-bottom: 6px;
}
.bairro-card .card-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.bairro-card .card-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}
.bairro-card .card-stats span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}
.bairro-card .card-stats span strong {
    color: #fff;
    font-weight: 600;
}
.bairro-card .card-arrow {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    backdrop-filter: blur(4px);
    transition: background 0.3s, transform 0.3s;
    z-index: 2;
}
.bairro-card:hover .card-arrow {
    background: #c9a96e;
    transform: translateX(4px);
}
@media (max-width: 768px) {
    .bairro-grid {
        grid-template-columns: 1fr;
    }
    .bairro-grid .bairro-card.card-wide,
    .bairro-grid .bairro-card.card-full {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }
}

/* ════════════════════════════════════════════════════════════════
   FAQ Section (moved from index.html inline)
   ════════════════════════════════════════════════════════════════ */
.faq-wrap {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: #111;
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 3px solid transparent;
    transition: border-color 0.5s ease, background 0.4s ease;
    overflow: hidden;
}
.faq-item.open {
    border-left-color: #c9a96e;
    background: #141414;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    cursor: pointer;
    user-select: none;
}
.faq-question span {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
    font-family: var(--font-body);
    flex: 1;
    padding-right: 20px;
}
.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s, background 0.4s;
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1;
}
.faq-item.open .faq-icon {
    transform: rotate(45deg);
    border-color: #c9a96e;
    color: #c9a96e;
    background: rgba(201, 169, 110, 0.1);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, padding 0.5s ease;
    opacity: 0;
    padding: 0 28px;
}
.faq-item.open .faq-answer {
    opacity: 1;
    padding: 0 28px 24px;
}
.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.9rem;
    margin: 0;
}

/* Collection Page Hero (moved from collection.html inline) */
.collection-hero {
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    background: linear-gradient(to bottom, #1a1a1a, #0a0a0a);
}
.collection-hero .hero-content {
    width: 100%;
    max-width: 1000px;
    position: relative;
    z-index: 2;
}
.collection-hero h1 {
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 5vw, 4rem);
}
.collection-hero p {
    margin: 0 auto;
    max-width: 600px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Section layout overrides (moved from inline styles) */
.faq-section {
    padding: 100px 5%;
    background: #0a0a0a;
}
.faq-section h2 {
    text-align: center;
    margin-bottom: 50px;
}
.neighborhoods {
    padding: 100px 5%;
    background: #050505;
}
.neighborhoods .section-label {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 0.8rem;
    color: #c9a96e;
    margin-bottom: 15px;
}
.neighborhoods h2 {
    text-align: center;
    margin-bottom: 60px;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
}
}