/* ==========================================================================
   RESET & DESIGN TOKENS
   ========================================================================== */
:root {
    --color-black-abs: #050505;
    --color-black-sec: #0b0b0a;
    --color-gray-soph: #151513;
    --color-graphite: #20201d;
    --color-gold: #C8A96B;
    --color-gold-hover: #e2bf78;
    --color-gold-soft: rgba(200, 169, 107, 0.16);
    --color-gold-line: rgba(200, 169, 107, 0.28);
    --color-white-ice: #F5F5F5;
    --color-white-soft: #dedbd2;
    --color-white-mut: #a6a29a;
    --color-tech: #7eb8ae;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.45s var(--ease-premium);
    --transition-fast: all 0.24s ease;
    --radius-lg: 8px;
    --radius-md: 8px;
    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.34);
    --shadow-premium: 0 30px 90px rgba(0, 0, 0, 0.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background:
        radial-gradient(circle at 18% 6%, rgba(200, 169, 107, 0.08), transparent 34rem),
        radial-gradient(circle at 92% 28%, rgba(126, 184, 174, 0.045), transparent 30rem),
        linear-gradient(180deg, #050505 0%, #0a0a09 42%, #050505 100%);
    color: var(--color-white-ice);
    line-height: 1.65;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

::selection {
    background: rgba(200, 169, 107, 0.32);
    color: var(--color-white-ice);
}

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

ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* Common utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gold { color: var(--color-gold); }
.w-100 { width: 100%; }
.mt-3 { margin-top: 1.5rem; }
.bg-dark { background-color: transparent; }

.section-padding {
    padding: clamp(76px, 9vw, 118px) 0;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(42px, 5vw, 68px);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.4vw, 2.85rem);
    line-height: 1.14;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-gold);
    text-shadow: 0 16px 46px rgba(200, 169, 107, 0.14);
}

.section-header p {
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    color: var(--color-white-mut);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.75;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    isolation: isolate;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.28) 42%, transparent 62%);
    transform: translateX(-140%);
    transition: transform 0.8s var(--ease-premium);
}

.btn:hover::before {
    transform: translateX(140%);
}

.btn-primary {
    background: linear-gradient(135deg, #d9bd7a 0%, var(--color-gold) 44%, #9f7d41 100%);
    color: #080805;
    border-color: rgba(255, 232, 177, 0.34);
    box-shadow: 0 16px 42px rgba(200, 169, 107, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f0ce84 0%, var(--color-gold-hover) 48%, #b68f4d 100%);
    transform: translateY(-3px);
    box-shadow: 0 22px 56px rgba(200, 169, 107, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(245, 245, 245, 0.36);
    color: var(--color-white-ice);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(245, 245, 245, 0.95);
    color: var(--color-black-abs);
    border-color: rgba(245, 245, 245, 0.84);
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(255, 255, 255, 0.12);
}

.btn:focus-visible,
.nav-link:focus-visible,
.accordion-header:focus-visible,
.mobile-menu-btn:focus-visible,
.social-links a:focus-visible,
.floating-wa:focus-visible {
    outline: 2px solid rgba(200, 169, 107, 0.8);
    outline-offset: 4px;
}

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: padding 0.35s var(--ease-premium), background 0.35s var(--ease-premium), border 0.35s var(--ease-premium), box-shadow 0.35s var(--ease-premium);
    padding: 24px 0;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.34), rgba(5, 5, 5, 0));
}

.header::after {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 169, 107, 0.22), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.header.scrolled {
    background: rgba(5, 5, 5, 0.76);
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.header.scrolled::after {
    opacity: 1;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-icon {
    width: 70px;
    height: 70px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.25));
}

.logo span {
    color: var(--color-gold);
    font-weight: 300;
}

.logo:hover {
    color: #fff;
    text-shadow: 0 0 28px rgba(200, 169, 107, 0.22);
}
.logo-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-ready {
    color: #ffffff !important;
}

.logo-home {
    color: #c9a55c !important;
}

.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.5vw, 34px);
}

.nav-link {
    position: relative;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: rgba(245, 245, 245, 0.82);
    transition: color 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s var(--ease-premium);
}

.nav-link:hover {
    color: var(--color-gold);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 24px);
}

.location-badge {
    font-size: 0.82rem;
    color: var(--color-white-mut);
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.location-badge i {
    color: var(--color-gold);
    filter: drop-shadow(0 0 10px rgba(200, 169, 107, 0.34));
}

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--radius-md);
    color: var(--color-white-ice);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mobile-menu-btn:hover {
    border-color: var(--color-gold-line);
    color: var(--color-gold);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: url('images/stay-jardim.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center calc(50% + var(--hero-shift, 0px));
    background-attachment: fixed;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 74% 36%, rgba(200, 169, 107, 0.22), transparent 21rem),
        radial-gradient(circle at 34% 76%, rgba(126, 184, 174, 0.08), transparent 27rem),
        linear-gradient(135deg, rgba(5, 5, 5, 0.74) 0%, rgba(10, 10, 9, 0.28) 50%, rgba(5, 5, 5, 0.82) 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(5, 5, 5, 0.48) 0%, rgba(5, 5, 5, 0.18) 42%, rgba(5, 5, 5, 0.94) 100%),
        linear-gradient(90deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.68) 42%, rgba(5, 5, 5, 0.22) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 18% 42%, rgba(200, 169, 107, 0.14), transparent 28rem),
        linear-gradient(115deg, rgba(5, 5, 5, 0.88) 0%, rgba(5, 5, 5, 0.4) 57%, rgba(5, 5, 5, 0.68) 100%);
    backdrop-filter: saturate(108%);
    -webkit-backdrop-filter: saturate(108%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 840px;
    padding-top: 92px;
    padding-bottom: 56px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.65rem, 5.4vw, 4.8rem);
    line-height: 1.06;
    font-weight: 700;
    margin-bottom: 24px;
    max-width: 820px;
    text-wrap: balance;
    text-shadow: 0 28px 72px rgba(0, 0, 0, 0.58);
}

.hero-subtitle {
    font-size: clamp(1.02rem, 1.7vw, 1.24rem);
    color: var(--color-white-soft);
    margin-bottom: 40px;
    max-width: 640px;
    line-height: 1.75;
    text-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: clamp(44px, 6vw, 70px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding-top: 0;
}

.stat-item {
    position: relative;
    min-height: 118px;
    padding: 20px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.038));
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.stat-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 28% 0%, rgba(200, 169, 107, 0.18), transparent 58%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: rgba(200, 169, 107, 0.28);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item h3 {
    position: relative;
    font-family: var(--font-heading);
    font-size: 1.55rem;
    line-height: 1.1;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.stat-item p {
    position: relative;
    font-size: 0.84rem;
    color: var(--color-white-mut);
    line-height: 1.42;
}

/* ==========================================================================
   DIFFERENTIALS
   ========================================================================== */
.differentials {
    position: relative;
    background:
        radial-gradient(circle at 12% 18%, rgba(200, 169, 107, 0.065), transparent 28rem),
        linear-gradient(180deg, #0b0b0a 0%, #10100e 50%, #0a0a09 100%);
    overflow: hidden;
}

.differentials::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 84px 84px;
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
}

.diff-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.diff-card {
    position: relative;
    min-height: 250px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.026));
    padding: clamp(28px, 3vw, 40px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: var(--transition-smooth);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.055);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.diff-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 24% 18%, rgba(200, 169, 107, 0.14), transparent 34%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 32%);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.diff-card:hover {
    transform: translateY(-7px);
    border-color: rgba(200, 169, 107, 0.32);
    box-shadow: var(--shadow-premium), 0 0 0 1px rgba(200, 169, 107, 0.045);
}

.diff-card:hover::before {
    opacity: 1;
}

.diff-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    background: rgba(200, 169, 107, 0.09);
    border: 1px solid rgba(200, 169, 107, 0.18);
    font-size: 1.85rem;
    color: var(--color-gold);
    margin-bottom: 24px;
    box-shadow: 0 18px 38px rgba(200, 169, 107, 0.08);
}

.diff-card h3 {
    position: relative;
    font-family: var(--font-heading);
    font-size: 1.18rem;
    line-height: 1.25;
    margin-bottom: 12px;
}

.diff-card p {
    position: relative;
    color: var(--color-white-mut);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================================================
   PROPERTIES GRID
   ========================================================================== */
.properties {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 4%, rgba(200, 169, 107, 0.08), transparent 28rem),
        linear-gradient(180deg, #050505 0%, #0c0c0a 54%, #050505 100%);
}

.properties::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(200, 169, 107, 0.04), transparent);
    opacity: 0.75;
}

.properties .container,
.properties-container {
    position: relative;
}

.properties-container {
    max-width: 1120px;
}

.properties-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 4vw, 48px);
    justify-items: center;
    align-items: start;
}

@media (min-width: 768px) {
    .properties-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(24px, 3vw, 36px);
    }

    .property-showcase {
        max-width: 100%;
    }
}

@media (min-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(2, minmax(450px, 500px));
        justify-content: center;
    }
}

.property-card.property-showcase {
    --mx: 50%;
    --my: 0%;
    position: relative;
    width: 100%;
    max-width: 500px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 48%, rgba(200, 169, 107, 0.04));
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.4s var(--ease-premium), border-color 0.4s var(--ease-premium);
    box-shadow: 0 18px 56px rgba(0, 0, 0, 0.42);
    isolation: isolate;
    contain: layout style paint;
}

.property-card.property-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, rgba(200, 169, 107, 0.12), transparent 20rem);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.property-card.property-showcase:hover {
    transform: translateY(-6px);
    border-color: rgba(200, 169, 107, 0.32);
}

.property-card.property-showcase:hover::before {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 1;
    padding: clamp(20px, 2.2vw, 26px);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Property image carousel */
.property-carousel {
    position: relative;
    z-index: 1;
    background: var(--color-gray-soph);
}

.property-carousel .badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    max-width: calc(100% - 28px);
    background: rgba(5, 5, 5, 0.82);
    color: var(--color-gold);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.66rem;
    line-height: 1.15;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.85px;
    border: 1px solid rgba(200, 169, 107, 0.36);
    pointer-events: none;
}

.carousel-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    outline: none;
    touch-action: pan-y pinch-zoom;
    background: var(--color-gray-soph);
    contain: strict;
}

.carousel-viewport::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.05) 0%, rgba(5, 5, 5, 0.02) 40%, rgba(5, 5, 5, 0.55) 100%);
}

.carousel-viewport:focus-visible {
    outline: 2px solid rgba(200, 169, 107, 0.55);
    outline-offset: -2px;
}

.carousel-stage {
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.28s var(--ease-premium);
}

.carousel-stage.is-transitioning {
    opacity: 0.72;
}

.carousel-slide-btn {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    position: relative;
    z-index: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    transform: translateZ(0);
    transition: transform 0.45s var(--ease-premium);
}

.property-showcase:hover .carousel-image {
    transform: scale(1.03) translateZ(0);
}

.carousel-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(180deg, transparent, rgba(5, 5, 5, 0.78));
}

.carousel-nav {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(200, 169, 107, 0.35);
    background: rgba(5, 5, 5, 0.78);
    color: var(--color-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.carousel-nav:hover:not(:disabled) {
    transform: scale(1.05);
    opacity: 1;
}

.carousel-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.carousel-counter {
    flex: 1;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
    user-select: none;
}

/* Fullscreen gallery modal */
body.gallery-open {
    overflow: hidden;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.38s var(--ease-premium), visibility 0.38s var(--ease-premium);
}

.gallery-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.gallery-modal[hidden] {
    display: none;
}

.gallery-modal:not([hidden]) {
    display: flex;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.94);
}

.gallery-dialog {
    position: relative;
    z-index: 1;
    width: min(96vw, 1180px);
    max-height: 96vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: clamp(16px, 3vw, 28px);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.32s var(--ease-premium), transform 0.32s var(--ease-premium);
}

.gallery-modal.is-open .gallery-dialog {
    opacity: 1;
    transform: translateY(0);
}

.gallery-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(200, 169, 107, 0.35);
    border-radius: 50%;
    background: rgba(5, 5, 5, 0.78);
    color: var(--color-gold);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 3;
    transition: transform 0.2s ease;
}

.gallery-close:hover {
    transform: scale(1.06);
}

.gallery-modal-title {
    width: 100%;
    padding-right: 52px;
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-gold);
    letter-spacing: 0.02em;
}

.gallery-stage {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(8px, 2vw, 18px);
    min-height: 0;
}

.gallery-figure {
    margin: 0;
    width: 100%;
    max-height: min(68vh, 720px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
}

.gallery-main {
    width: 100%;
    max-height: min(68vh, 720px);
    object-fit: contain;
    cursor: default;
    opacity: 1;
    transition: opacity 0.28s var(--ease-premium);
}

.gallery-main.is-fading {
    opacity: 0.55;
}

.gallery-nav {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(200, 169, 107, 0.4);
    background: rgba(5, 5, 5, 0.72);
    color: var(--color-gold);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.gallery-nav:hover:not(:disabled) {
    transform: scale(1.06);
}

.gallery-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.gallery-counter {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-white-soft);
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding: 6px 2px 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumb {
    flex: 0 0 auto;
    width: 72px;
    height: 52px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    scroll-snap-align: center;
    opacity: 0.72;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

.gallery-thumb:hover,
.gallery-thumb.is-active,
.gallery-thumb[aria-current="true"] {
    opacity: 1;
    border-color: var(--color-gold);
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .carousel-stage,
    .gallery-modal,
    .gallery-dialog,
    .gallery-main,
    .property-showcase .carousel-image {
        transition: none !important;
    }
}

@media (max-width: 767px) {
    .gallery-stage {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        justify-items: center;
    }

    .gallery-nav-prev { order: 2; grid-column: 1; justify-self: start; }
    .gallery-figure { order: 1; grid-column: 1 / -1; width: 100%; }
    .gallery-nav-next { order: 2; grid-column: 1; justify-self: end; }

    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-nav {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 1023px) {
    .properties-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .property-showcase {
        max-width: min(500px, 100%);
    }
}

.card-header {
    margin-bottom: 10px;
}

.property-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.25;
    color: var(--color-white-ice);
    margin-bottom: 6px;
    overflow-wrap: anywhere;
}

.property-type {
    font-size: 0.85rem;
    color: var(--color-gold);
    font-weight: 600;
    line-height: 1.45;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-white-mut);
    margin-bottom: 18px;
}

.property-location i {
    color: var(--color-gold);
    font-size: 0.86rem;
}

.property-price {
    font-family: var(--font-heading);
    font-size: clamp(1.32rem, 2vw, 1.58rem);
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.property-price span {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--color-white-mut);
    vertical-align: middle;
}

.property-features {
    margin-bottom: 24px;
    flex-grow: 1;
}

.property-features li {
    font-size: 0.89rem;
    color: #d3d0c7;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.property-features li i {
    margin-top: 4px;
    font-size: 0.78rem;
    flex: 0 0 auto;
    filter: drop-shadow(0 0 8px rgba(200, 169, 107, 0.22));
}

.sub-feature {
    margin-left: 20px;
    font-size: 0.82rem !important;
    color: #b6b0a4 !important;
}

.card-footer {
    margin-top: auto;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-section {
    position: relative;
    background:
        radial-gradient(circle at 8% 0%, rgba(126, 184, 174, 0.055), transparent 25rem),
        linear-gradient(180deg, #0b0b0a 0%, #11110f 100%);
}

.faq-container {
    max-width: 850px;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.accordion-item {
    position: relative;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.028));
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.055);
    transition: var(--transition-smooth);
}

.accordion-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--color-gold), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.accordion-item.active {
    border-color: rgba(200, 169, 107, 0.28);
    box-shadow: 0 24px 66px rgba(0, 0, 0, 0.38), 0 0 28px rgba(200, 169, 107, 0.055);
}

.accordion-item.active::before {
    opacity: 1;
}

.accordion-header {
    width: 100%;
    padding: 23px 24px;
    background: none;
    border: none;
    text-align: left;
    color: var(--color-white-ice);
    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    line-height: 1.4;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    transition: var(--transition-smooth);
}

.accordion-header:hover {
    color: var(--color-gold);
}

.accordion-header .icon {
    flex: 0 0 auto;
    color: var(--color-gold);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(200, 169, 107, 0.18);
    border-radius: 50%;
    background: rgba(200, 169, 107, 0.06);
    transition: transform 0.45s var(--ease-premium), background 0.35s ease;
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(180deg);
    background: rgba(200, 169, 107, 0.12);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.55s var(--ease-premium);
}

.accordion-content p {
    padding: 18px 24px 26px 24px;
    color: var(--color-white-mut);
    font-size: 0.98rem;
    line-height: 1.78;
    transform: translateY(-6px);
    opacity: 0;
    transition: transform 0.38s ease, opacity 0.38s ease;
}

.accordion-item.active .accordion-content p {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   CTA & FOOTER
   ========================================================================== */
.cta-section {
    position: relative;
    padding: clamp(84px, 9vw, 118px) 24px;
    background:
        radial-gradient(circle at 50% 0%, rgba(200, 169, 107, 0.18), transparent 31rem),
        radial-gradient(circle at 78% 74%, rgba(126, 184, 174, 0.07), transparent 25rem),
        linear-gradient(135deg, #12120f 0%, #050505 100%);
    text-align: center;
    border-top: 1px solid rgba(200, 169, 107, 0.18);
    border-bottom: 1px solid rgba(200, 169, 107, 0.18);
    overflow: hidden;
}

.cta-section::before,
.cta-section::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.cta-section::before {
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: var(--radius-lg);
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.cta-section::after {
    left: 10%;
    right: 10%;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 169, 107, 0.56), transparent);
    box-shadow: 0 0 34px rgba(200, 169, 107, 0.24);
}

.cta-container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.16;
    margin-bottom: 16px;
    text-wrap: balance;
    text-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.cta-section p {
    color: var(--color-white-mut);
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    margin-bottom: 32px;
}

.footer {
    position: relative;
    background:
        radial-gradient(circle at 14% 10%, rgba(200, 169, 107, 0.055), transparent 26rem),
        linear-gradient(180deg, #080807 0%, #050505 100%);
    padding: 82px 0 24px;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 169, 107, 0.28), transparent);
}

.footer-content {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-brand p {
    color: var(--color-white-mut);
    margin: 16px 0 24px;
    max-width: 390px;
    line-height: 1.72;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.055);
    color: var(--color-white-ice);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--color-gold);
    color: var(--color-black-abs);
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(200, 169, 107, 0.2);
}

.footer h4 {
    position: relative;
    font-family: var(--font-heading);
    font-size: 1.08rem;
    margin-bottom: 24px;
    color: var(--color-gold);
}

.footer h4::after {
    content: "";
    display: block;
    width: 34px;
    height: 1px;
    margin-top: 10px;
    background: linear-gradient(90deg, var(--color-gold), transparent);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--color-white-mut);
    transition: color 0.3s ease, padding-left 0.3s var(--ease-premium);
}

.footer-links a:hover {
    color: var(--color-gold);
    padding-left: 6px;
}

.footer-contact p {
    color: var(--color-white-mut);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    line-height: 1.6;
}

.footer-contact i {
    margin-top: 4px;
}

.footer-bottom {
    position: relative;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    color: #767169;
    font-size: 0.875rem;
}

/* ==========================================================================
   FLOATING WHATSAPP
   ========================================================================== */
.floating-wa {
    position: fixed;
    bottom: 84px;
    right: 30px;
    background: linear-gradient(135deg, #25D366, #128c4c);
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 18px 46px rgba(37, 211, 102, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.floating-wa::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    border: 1px solid rgba(37, 211, 102, 0.28);
    opacity: 0.72;
    animation: waPulse 2.8s ease-in-out infinite;
}

.floating-wa:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 24px 60px rgba(37, 211, 102, 0.44);
}

.menu-open .floating-wa {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.92);
}

@keyframes waPulse {
    0%, 100% { transform: scale(0.92); opacity: 0.42; }
    50% { transform: scale(1.08); opacity: 0.12; }
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
    .header-actions {
        gap: 12px;
    }

    .header-btn {
        display: none;
    }
}

@media (max-width: 1120px) {
    .mobile-menu-btn {
        display: inline-flex;
    }

    .header-actions .location-badge,
    .header-actions .header-btn {
        display: none;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(100%, 420px);
        height: 100vh;
        height: 100dvh;
        background:
            radial-gradient(circle at 50% 0%, rgba(200, 169, 107, 0.16), transparent 19rem),
            rgba(5, 5, 5, 0.94);
        backdrop-filter: blur(22px) saturate(130%);
        -webkit-backdrop-filter: blur(22px) saturate(130%);
        display: flex;
        align-items: center;
        justify-content: center;
        border-left: 1px solid rgba(200, 169, 107, 0.16);
        transition: right 0.52s var(--ease-premium);
        box-shadow: -26px 0 80px rgba(0, 0, 0, 0.48);
    }

    .navbar.active {
        right: 0;
    }

    .navbar .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .nav-link {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 992px) {
    .hero {
        background-attachment: scroll;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 768px) {
    .container {
        padding: 0 18px;
    }

    .header {
        padding: 16px 0;
    }

    .header.scrolled {
        padding: 10px 0;
    }

    .logo {
        font-size: 1.25rem;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(100%, 420px);
        height: 100vh;
        height: 100dvh;
        background:
            radial-gradient(circle at 50% 0%, rgba(200, 169, 107, 0.16), transparent 19rem),
            rgba(5, 5, 5, 0.94);
        backdrop-filter: blur(22px) saturate(130%);
        -webkit-backdrop-filter: blur(22px) saturate(130%);
        display: flex;
        align-items: center;
        justify-content: center;
        border-left: 1px solid rgba(200, 169, 107, 0.16);
        transition: right 0.52s var(--ease-premium);
        box-shadow: -26px 0 80px rgba(0, 0, 0, 0.48);
    }

    .navbar.active {
        right: 0;
    }

    .navbar .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .nav-link {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .header-actions .location-badge,
    .header-actions .header-btn {
        display: none;
    }

    .hero {
        align-items: flex-end;
        min-height: 100svh;
        background-position: center center;
    }

    .hero-content {
        padding-top: 118px;
        padding-bottom: 46px;
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(2.25rem, 12vw, 3.25rem);
        line-height: 1.08;
    }

    .hero-subtitle {
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        margin-bottom: 34px;
    }

    .hero-buttons .btn,
    .cta-section .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 12px;
    }

    .stat-item {
        min-height: 104px;
        padding: 16px 14px;
    }

    .section-header {
        text-align: left;
    }

    .section-header p {
        margin: 0;
    }

    .diff-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .diff-card {
        min-height: auto;
    }

    .properties-grid {
        gap: 20px;
    }

    .property-card:hover {
        transform: translateY(-5px);
    }

    .property-price span {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }

    .accordion-header {
        padding: 20px 18px;
    }

    .accordion-content p {
        padding: 16px 18px 22px 18px;
    }

    .footer {
        padding-top: 64px;
    }

    .floating-wa {
        bottom: 88px;
        right: 18px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 68px 0;
    }

    .btn-lg {
        padding: 15px 20px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        min-height: auto;
    }

    .card-content {
        padding: 21px 18px;
    }

    .badge {
        top: 12px;
        left: 12px;
        max-width: calc(100% - 24px);
    }

    .sub-feature {
        margin-left: 8px;
    }

    .cta-section {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(34px) scale(0.985);
    filter: blur(8px);
    transition:
        opacity 0.9s var(--ease-premium) var(--reveal-delay, 0ms),
        transform 0.9s var(--ease-premium) var(--reveal-delay, 0ms),
        filter 0.9s var(--ease-premium) var(--reveal-delay, 0ms);
    will-change: opacity, transform, filter;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.hero-content.reveal {
    transform: translateY(42px) scale(0.99);
}

.hero-content.reveal.active {
    transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* Estilo geral do card vendido */
.premium-sold-card {
    border: 1px solid #d4af37; /* Borda dourada sutil */
    background-color: #fcfcfc;
}

/* Badge superior */
.badge-sold-exclusive {
    background-color: #1a1a1a; /* Preto/Chumbo elegante */
    color: #d4af37; /* Texto Dourado */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    font-size: 0.75rem;
    padding: 6px 12px;
    z-index: 10; /* Garante que fique acima do overlay */
}

/* Overlay dramático sobre a imagem do carrossel */
.property-carousel {
    position: relative;
}

.image-overlay-sold {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Escurece a imagem */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none; /* Permite que o carrossel ainda seja clicável se necessário */
}

/* Selo de VENDIDO no centro da imagem */
.sold-stamp {
    color: #ffffff;
    border: 3px solid #ffffff;
    padding: 10px 20px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(4px); /* Efeito moderno de vidro fosco */
    transform: rotate(-10deg); /* Inclinação agressiva de carimbo */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Título levemente suavizado para tirar o foco principal dele */
.muted-title {
    color: #555555;
}

/* Caixa de status (substituindo o preço) */
.property-status-box {
    background-color: #f9f9f9;
    border-left: 4px solid #d4af37; /* Linha dourada lateral */
    padding: 10px 15px;
    margin: 15px 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-gold {
    color: #d4af37 !important;
}

/* Suavizar a lista de características para não competir com o status */
.features-sold {
    opacity: 0.7;
}

/* Botão premium vazado (Outline Gold) */
.btn-outline-gold {
    background-color: transparent;
    color: #1a1a1a;
    border: 2px solid #d4af37;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline-gold:hover {
    background-color: #d4af37;
    color: #ffffff;
}