: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;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 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) {
    .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) --- */
/* --- 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;
    /* Force solid */
    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;
}

.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;
}

.sidebar-card {
    position: sticky;
    top: 120px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
}

.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 */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center horizontally */
    padding: 0 5%;
    background: url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?q=70&w=1920&auto=format&fit=crop&fmt=webp') no-repeat center center/cover;
}

@media (max-width: 768px) {
    .hero {
        background: url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?q=60&w=800&auto=format&fit=crop&fmt=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);
    }
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 60px 5%;
    border-bottom: 1px solid var(--border-color);
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.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;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    /* Ensure image is above background */
    transition: transform 0.5s ease;
}

.card-image:hover img {
    transform: scale(1.05);
}

.placeholder-dark {
    background: linear-gradient(45deg, #1a1a1a, #222);
}

.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;
}

/* 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;
    color: white;
    font-family: var(--font-body);
    width: 100%;
    border-radius: 4px 0 0 4px;
}

.newsletter-form button {
    background: white;
    border: none;
    color: black;
    padding: 0 15px;
    cursor: pointer;
    border-radius: 0 4px 4px 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: 15px;
    /* Ensure it doesn't overlap with absolute positioned fav button */
    padding-right: 60px;
}

/* 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%;
    }
}


.newsletter-form button {
    border-radius: 4px;
    width: 100%;
    padding: 12px;
}

/* --- About Slider --- */
/* ... */

/* ... (skip to stat-item h3) */

.stat-item h3 {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.philosophy-slider-section {
    padding: 100px 5%;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}

.slider-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 60px;
    /* Space for arrows */
}

.slides {
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 500px;
}

.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: block;
    animation: smoothFade 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes smoothFade {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Slider Controls */
.slider-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    z-index: 10;
    outline: none;
}

.slider-btn.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.slider-btn.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.slider-dots {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active.dot,
.dot:hover {
    background-color: #fff;
}

/* --- 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;
}

/* --- Stats Section (Updated) --- */
.stats {
    background: transparent;
    padding: 0 5% 40px 5%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    position: relative;
    z-index: 20;
    margin-top: -120px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Stats Fade Up Animation --- */
.stat-item.fade-init {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-item h3 {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- 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;
    /* Above navbar background */
}

.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;
    }

}

/* --- Stats Section (Restored) --- */
.stats {
    background: transparent;
    padding: 0 5% 40px 5%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    position: relative;
    z-index: 20;
    margin-top: -120px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item.fade-init {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-item h3 {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mobile Stats Override */
@media (max-width: 600px) {
    .stats {
        margin-top: -60px;
        /* Reduced overlap on mobile */
        padding-bottom: 20px;
        gap: 10px;
        width: 100%;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }

    .stat-item p {
        font-size: 0.8rem;
    }
}