/* Base Reset */
:root {
    --primary: #64DADC; /* Updated to match logo cyan */
    --primary-dark: #3BAFBD;
    --secondary: #2C3E50;
    --text-main: #2D3436;
    --text-muted: #636E72;
    --bg-light: #F8F9FA;
    --bg-dark: #1A1A1A;
    --light: #E8F6F7;
    --font-heading: 'Century Gothic', 'Montserrat', Arial, sans-serif;
    --font-body: 'Century Gothic', 'Montserrat', Arial, sans-serif;
    --border: rgba(0,0,0,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, .kicker, .brand-text, blockquote {
    font-family: var(--font-heading);
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--bg-dark);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--primary);
    color: #FFF;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 173, 181, 0.2);
}

.btn-primary.large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.hero-property-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid rgba(45, 52, 54, 0.18);
    border-radius: 999px;
    padding: 0.75rem 1rem 0.75rem 1.1rem;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 20px rgba(45, 52, 54, 0.06);
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-property-link span {
    display: inline-grid;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    color: var(--primary-dark);
    background: var(--light);
    font-size: 1.2rem;
    line-height: 1;
}

.hero-property-link:hover {
    color: var(--primary-dark);
    border-color: var(--primary);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(45, 52, 54, 0.1);
}

.hero-property-link:focus-visible {
    outline: 3px solid rgba(100, 218, 220, 0.4);
    outline-offset: 3px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 85px; /* Explicit height to perfectly match hero padding */
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand .logo-container {
    width: 52px;
    position: relative;
}

.logo-container {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-size: 1.2rem;
    font-weight: 500;
    font-family: var(--font-heading);
    color: var(--text-main);
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.brand .brand-symbol {
    display: block;
    width: 46px;
    max-width: none;
    height: auto;
}

.footer-brand-text {
    font-size: 1.5rem;
    color: #FFF; /* White for final section */
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn-primary) {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--primary);
}

/* Hero Section - Split Layout */
.hero.split {
    position: relative;
    height: 100vh;
    min-height: min(750px, 100dvh);
    display: flex;
    align-items: stretch; /* Forces children to stretch from top to bottom of section */
    justify-content: space-between;
    color: var(--text-main);
    text-align: left;
    padding: 85px 2rem 0 2rem; /* Restored navbar spacing */
    max-width: 1300px;
    margin: 0 auto;
    background-color: var(--bg-light);
    gap: clamp(2rem, 4vw, 4rem);
    overflow: hidden;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically centers the text */
    padding: 1.5rem 0;
    max-width: 640px;
    z-index: 2;
}

.hero-image-col {
    height: auto; /* Automatically stretches to fill the section height exactly */
    width: clamp(320px, 34vw, 480px);
    max-width: none;
    aspect-ratio: 9 / 16;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.hero-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Centered properly */
}

.hero-content .kicker {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.hero-content h1 {
    font-size: clamp(2.7rem, 3.4vw, 4rem);
    line-height: 1.08;
    margin-bottom: 1.25rem;
    font-weight: 600;
    text-wrap: balance;
}

.hero-content .hero-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-content .hero-trust {
    margin-top: 0;
    margin-bottom: 1.75rem;
}

.hero-content .hero-trust strong {
    color: var(--text-main);
    font-weight: 600;
}

.hero-kicker-role {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

/* Properties Section */
.properties-section {
    padding: 8rem 2rem;
    background-color: #F8F8F9; /* Subtle light gray for contrast instead of black */
    color: var(--text-main);
}

.properties-section .section-header,
.properties-section .properties-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

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

.section-header h2 {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    line-height: 1.15;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.filters-container {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-bar input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 1px solid #DDD;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.category-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 240ms ease, color 240ms ease, border-color 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(100, 218, 220, 0.2);
}

.filter-btn:active,
.btn-primary:active,
.btn-secondary:active,
.share-btn:active,
.card-share-btn:active {
    transform: translateY(1px) scale(0.98);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.property-card {
    background: #FFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 420ms ease;
    will-change: transform;
}

.property-card:hover {
    transform: translateY(-10px) rotateX(1deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

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

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    transform: scale(1.1);
    color: var(--primary);
}

.modal-actions-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
}
.share-btn:hover {
    background: var(--light);
    color: var(--primary);
    transform: translateY(-2px);
}

.card-share-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.3s ease;
    z-index: 10;
}
.card-share-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.modal-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.feature-item {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.feature-item::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
}

.badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: auto;
    background: var(--primary);
    color: #FFF;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 11;
    box-shadow: 0 8px 20px rgba(20, 86, 91, 0.18);
}

.card-body {
    padding: 1.5rem;
}

.card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
}

.card-body .price {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.card-feat-item {
    background: #F0F4F8;
    color: var(--text-main);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.card-feat-item:before {
    content: "•";
    color: var(--primary);
    font-size: 1.2rem;
    line-height: 1;
}

.about-section {
    padding: clamp(5rem, 8vw, 7rem) 2rem clamp(5.5rem, 9vw, 7.5rem);
    background-color: #F8F8F9;
}

.about-section.dark-contrast {
    background-color: #FFFFFF;
    color: var(--text-main);
}

.dark-header h2, .dark-header p {
    color: var(--text-main) !important;
}

.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: transparent;
}
.icon-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}
.icon-link svg {
    display: block;
}
.dark-contrast .about-text h2, 
.dark-contrast .about-text p {
    color: var(--text-main);
}
.dark-contrast .about-text p {
    opacity: 1;
}

.about-section.reverse {
    background-color: var(--bg-light);
    padding-bottom: clamp(2.25rem, 3.5vw, 3rem);
}

.field-section {
    background-color: #F2FAFA;
    padding-top: clamp(2.25rem, 3.5vw, 3rem);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.75rem, 5vw, 5rem);
    align-items: center;
}

.about-section.reverse .about-container {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.about-section.reverse .about-text {
    direction: ltr;
}

.about-text h2 {
    max-width: 20ch;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 1.75rem;
    line-height: 1.12;
    letter-spacing: normal;
    text-wrap: balance;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.85rem;
    color: var(--text-muted);
}

.about-subsection {
    margin-top: 3.75rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.about-section:not(.dark-contrast) .about-subsection {
    border-top-color: var(--border);
}

.about-section.dark-contrast .about-subsection {
    border-top-color: var(--border);
}

.about-subsection h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.7rem, 2.4vw, 2rem);
    margin-bottom: 1.25rem;
    line-height: 1.15;
    letter-spacing: normal;
    text-wrap: balance;
}

.about-text strong {
    font-weight: 600;
}

.about-image {
    position: relative;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 173, 181, 0.15); /* Replaced the broken box with a beautiful cyan tinted shadow */
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    position: relative;
    z-index: 2;
    display: block; /* Fixes any weird bottom gaps */
}

/* Removed the broken .decorative-box */
.decorative-box {
    display: none;
}

/* Final Section */
.final-section {
    padding: 2.25rem 1.5rem 1.75rem;
    background-color: var(--primary);
    color: #FFF;
    text-align: center;
}

.icon-link-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    transition: all 0.3s ease;
    padding: 0.4rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}
.icon-link-white:hover {
    background: #FFF;
    color: var(--primary);
    transform: translateY(-2px);
}
.icon-link-white svg {
    display: block;
    width: 24px;
    height: 24px;
}

.final-container {
    max-width: 600px;
    margin: 0 auto;
}

.final-image {
    width: 58px;
    height: 58px;
    margin: 0 auto 0.7rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.4);
}

.final-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
}

.final-title {
    margin: 0.35rem 0 0.7rem;
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.final-name {
    margin-bottom: 0.1rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.final-role {
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    opacity: 0.88;
}

.final-message {
    max-width: 28rem;
    margin: 0 auto 0.5rem;
    font-size: 0.92rem;
    line-height: 1.45;
}

.final-phone {
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.final-contact {
    margin-top: 0.85rem;
}

.final-contact h3 {
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.final-contact .social-icons {
    display: flex;
    gap: 0.65rem;
    justify-content: center;
    margin-bottom: 0;
}

.final-quote blockquote {
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.4;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: #FFF;
    padding: 0.8rem 2rem 0.6rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.footer-brand .brand-text {
    color: #FFF;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

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

/* Refined motion for the property catalogue and image transitions */
.property-card.reveal {
    transform: translateY(12px);
    transition-duration: 340ms;
}

.property-card.reveal.active {
    transition-delay: calc(var(--card-index, 0) * 12ms);
}

.card-main-img {
    transition: opacity 180ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-img-slider {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-img-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(17, 33, 36, 0.18), transparent 35%, rgba(17, 33, 36, 0.12));
    opacity: 0.8;
}

.card-share-btn,
.card-nav {
    transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 240ms ease, color 240ms ease, opacity 240ms ease;
}

.card-share-btn:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 8px 18px rgba(0,0,0,0.16);
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero.split {
        flex-direction: column;
        padding-top: 100px;
        text-align: center;
        height: auto;
    }
    .hero-image-col {
        width: 100%;
        height: 400px;
        order: -1;
    }
    .hero-actions {
        justify-content: center;
    }
    .nav-links {
        display: none; /* simple mobile menu for now */
    }
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-section.reverse .about-container {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .final-quote blockquote {
        font-size: 1.8rem;
    }
}

/* Modal Styles */
.property-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.property-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-light);
    width: 90%;
    max-width: 1100px;
    height: 85vh;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.property-modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: var(--primary);
    color: var(--text-light);
    transform: scale(1.05);
}

.modal-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    height: 100%;
}

.modal-slider {
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slider-images img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 1.5rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.slider-btn:hover {
    background: var(--primary);
    color: var(--text-light);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

.modal-details {
    padding: 3rem;
    overflow-y: auto;
    background: var(--bg-light);
}

.modal-details h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.modal-location {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
}

.modal-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.feature-item {
    font-weight: 500;
    color: var(--text-dark);
}

.modal-details h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.modal-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.modal-proximidades {
    margin-bottom: 1.5rem;
}

.proximity-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.proximity-chip {
    padding: .42rem .7rem;
    border-radius: 999px;
    background: rgba(42, 109, 104, .1);
    color: var(--primary-dark);
    font-size: .82rem;
}

.modal-source-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: .9rem;
    font-weight: 700;
}

.w-100 { width: 100%; text-align: center; }
.mt-4 { margin-top: 1.5rem; }

/* ===== CARD PHOTO SWIPE ===== */
.card-img-wrapper {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
}

.card-img-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 240px;
    aspect-ratio: auto;
    background: #eee;
}

.card-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.15s ease;
    display: block;
}

.card-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.card-img-slider:hover .card-nav {
    opacity: 1;
}

.card-prev { left: 8px; }
.card-next { right: 8px; }

.card-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}

.card-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: background 0.2s;
}

.card-dot.active {
    background: #fff;
}

.card-share-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.card-share-btn:hover {
    background: #fff;
}

.card-see-more {
    display: inline-block;
    margin-top: 0.8rem;
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ===== LEAD CAPTURE SECTION ===== */
.lead-capture-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
}

.lead-capture-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lead-capture-text h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
}

.lead-capture-text p {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    line-height: 1.7;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lead-form input,
.lead-form textarea,
.modal-lead-form input,
.modal-lead-form textarea {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.lead-form input:focus,
.lead-form textarea:focus {
    border-color: var(--primary);
    background: rgba(100,218,220,0.1);
}

/* ===== MODAL LEAD FORM ===== */
.modal-lead-form {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.modal-lead-form input,
.modal-lead-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    margin-bottom: 0.8rem;
    transition: border-color 0.2s;
}

.modal-lead-form input:focus,
.modal-lead-form textarea:focus {
    border-color: var(--primary);
    background: #fff;
}

.modal-lead-form input::placeholder,
.modal-lead-form textarea::placeholder {
    color: #aaa;
}

/* ===== BANK FINANCING GRID ===== */
.financiamento-section {
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: #f4fafa;
    border-radius: 12px;
    border: 1px solid rgba(100,218,220,0.2);
}

.financiamento-section h3 {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
    color: var(--text-main) !important;
}

.bank-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.bank-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.6rem 0.4rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    cursor: pointer;
}

.bank-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(100,218,220,0.3);
    transform: translateY(-2px);
}

.bank-btn img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.bank-name {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

/* ===== HERO SECONDARY BUTTON ===== */
.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: var(--secondary);
    color: #fff;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    cursor: pointer;
}

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

@media (min-width: 769px) and (max-width: 1100px) {
    .hero.split {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: clamp(2.55rem, 3.4vw, 3.45rem);
    }

    .hero-image-col {
        width: clamp(280px, 35vw, 400px);
    }
}

.btn-secondary.large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

@media (max-width: 900px) {
    .modal-body {
        grid-template-columns: 1fr;
        grid-template-rows: 40vh 1fr;
    }
    .modal-details {
        padding: 2rem;
    }
    .lead-capture-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .bank-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile refinement: keep the experience spacious, readable and easy to tap. */
@media (max-width: 768px) {
    body {
        min-width: 320px;
    }

    .navbar {
        height: 72px;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .brand {
        gap: .55rem;
        min-width: 0;
    }

    .brand .brand-symbol {
        width: 36px;
    }

    .brand-text {
        font-size: .82rem;
        letter-spacing: .08em;
        white-space: nowrap;
    }

    .nav-links {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: flex-start;
        gap: 1.25rem;
        padding: .7rem 1rem .75rem;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        background: rgba(255, 255, 255, .96);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 18px rgba(0, 0, 0, .04);
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a:not(.btn-primary) {
        flex: 0 0 auto;
        font-size: .78rem;
        white-space: nowrap;
    }

    .nav-links .icon-link {
        display: none;
    }

    .hero.split {
        min-height: 0;
        padding: 132px 1.15rem 3rem;
        gap: 1.8rem;
    }

    .hero-content {
        order: 1;
    }

    .hero-content {
        padding: 0;
        max-width: none;
    }

    .hero-content .kicker {
        font-size: .72rem;
        line-height: 1.4;
        letter-spacing: .11em;
    }

    .hero-content h1 {
        font-size: clamp(2.1rem, 10vw, 3rem);
        line-height: 1.06;
        margin-bottom: 1rem;
    }

    .hero-content .hero-desc {
        font-size: .94rem;
        line-height: 1.65;
        margin-bottom: 1.15rem;
    }

    .hero-content .hero-trust {
        margin-bottom: 1.4rem;
    }

    .hero-image-col {
        order: 2;
        width: 100%;
        height: auto;
        min-height: 0;
        border-radius: 22px;
        aspect-ratio: auto;
        box-shadow: 0 16px 35px rgba(0, 0, 0, .12);
    }

    .hero-image-col img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center top;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        gap: .8rem;
    }

    .hero-actions .btn-primary,
    .hero-property-link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .properties-section {
        padding: 4rem 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: clamp(1.65rem, 8vw, 2.1rem);
    }

    .section-header p {
        font-size: .92rem;
    }

    .filters-container {
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .search-bar input {
        padding: .9rem 1rem;
        font-size: 1rem;
    }

    .category-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: .55rem;
        padding: .15rem .1rem .5rem;
        scrollbar-width: none;
    }

    .category-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex: 0 0 auto;
        padding: .62rem 1rem;
        font-size: .82rem;
    }

    .properties-grid {
        display: flex;
        grid-template-columns: none;
        gap: .9rem;
        overflow-x: auto;
        overflow-y: hidden;
        margin-right: -1rem;
        padding: .2rem 1rem .9rem .1rem;
        scroll-snap-type: x mandatory;
        scroll-padding-left: .1rem;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
        scrollbar-color: var(--primary) transparent;
    }

    .property-card {
        flex: 0 0 min(86vw, 350px);
        scroll-snap-align: start;
    }

    .card-img-slider {
        height: clamp(205px, 58vw, 270px);
    }

    .card-body {
        padding: 1.15rem;
    }

    .card-body h3 {
        font-size: 1.1rem;
    }

    .about-section {
        padding: 4rem 1.15rem;
    }

    .about-container {
        gap: 1.75rem;
    }

    .about-text h2 {
        font-size: clamp(1.75rem, 8vw, 2.3rem);
        margin-bottom: 1.15rem;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }

    .about-subsection {
        margin-top: 2.25rem;
        padding-top: 1.75rem;
    }

    .lead-capture-section {
        padding: 4rem 1.15rem;
    }

    .lead-capture-container {
        gap: 1.75rem;
    }

    .lead-capture-text h2 {
        font-size: clamp(1.8rem, 8vw, 2.3rem);
    }

    .modal-content {
        width: calc(100% - 1rem);
        height: calc(100dvh - 1rem);
        max-height: none;
        border-radius: 18px;
    }

    .modal-body {
        grid-template-rows: minmax(220px, 36dvh) 1fr;
    }

    .modal-slider {
        min-height: 220px;
    }

    .modal-details {
        padding: 1.25rem 1rem 2rem;
    }

    .modal-details h2 {
        padding-right: 2.5rem;
        font-size: clamp(1.5rem, 7vw, 2rem);
        line-height: 1.15;
    }

    .modal-location {
        font-size: .78rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .modal-price {
        font-size: 1.7rem;
        margin-bottom: 1.25rem;
    }

    .modal-features-grid {
        grid-template-columns: 1fr 1fr;
        gap: .7rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .feature-item {
        font-size: .82rem;
        line-height: 1.35;
    }

    .modal-details h3 {
        font-size: 1.05rem;
        margin-bottom: .7rem;
    }

    .modal-desc {
        font-size: .92rem;
        line-height: 1.65;
        margin-bottom: 1.5rem;
    }

    .modal-map {
        height: 180px !important;
    }

    .bank-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: .45rem;
    }

    .bank-btn {
        min-height: 68px;
        padding: .45rem .2rem;
    }

    .bank-name {
        font-size: .58rem;
    }

    .close-modal {
        top: .65rem;
        right: .65rem;
        width: 36px;
        height: 36px;
        font-size: 1.7rem;
    }
}

@media (max-width: 380px) {
    .brand-text {
        font-size: .74rem;
    }

    .hero.split {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .modal-features-grid {
        grid-template-columns: 1fr;
    }
}

/* Keep the complete portrait visible on narrow screens. */
@media (max-width: 768px) {
    /* Touch devices have no reliable hover state: keep card gallery arrows visible. */
    .card-nav {
        opacity: 1;
    }

    .hero-image-col {
        height: auto;
        min-height: 0;
    }

    .hero-image-col img {
        display: block;
        height: auto;
        object-fit: contain;
        object-position: center top;
    }
}
