:root {
    /* Brand Colors */
    --primary-color: #27355c;
    --primary-dark: #1a2440;
    --primary-light: #3a4a7e;
    --secondary-color: #fae79d;
    --accent-color: #25d366;

    /* Neutral Colors */
    --text-color: #1a1a1a;
    --text-secondary: #666;
    --text-light: #fff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-header {
    background: #27355c;
    /* Back to a refined dark blue to match the logo background */
    color: var(--text-light);
    padding: 6px 0;
    /* Reduced from 8px */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--secondary-color);
}

.header-logo {
    max-height: 38px;
    /* Reduced from 50px */
    width: auto;
    transition: transform 0.3s ease;
    display: block;
}

/* Mobile-only elements: hidden by default (shown only in mobile drawer) */
.mobile-nav-header,
.menu-toggle,
.mobile-nav-header .logo {
    display: none !important;
}

/* Hamburger button: hidden by default on desktop */
.menu-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-light);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
}


.menu-toggle:hover {
    background: var(--secondary-color);
    color: var(--primary-dark);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    /* Removed backdrop-filter blur that was causing the drawer to appear blurry */
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo:hover {
    transform: scale(1.02);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a i {
    display: none;
    /* Hidden on desktop, shown in mobile drawer */
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    border-radius: 24px;
}

.main-nav a:hover::before {
    transform: scaleX(1);
}

.main-nav li.active a,
.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    transform: translateY(-1px);
}

.main-nav a.btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: var(--text-light);
}

.main-nav li.active a.btn-outline {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    border-color: var(--secondary-color);
}


.main-nav a:hover i {
    transform: scale(1.2);
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-light);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-dark);
    transform: rotate(15deg);
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background-image: url('https://placehold.co/1920x800/1a1a1a/333?text=Hero+Image');
    /* Replace with real image */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 50, 40, 0.6);
    /* Greenish tint */
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Search Box Container */
.search-box-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
    margin-top: -48px;
}

.search-tabs .tab {
    background: white;
    border: none;
    padding: 12px 24px;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-tabs .tab:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.search-tabs .tab.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: var(--shadow-lg);
}

/* Search Form */
.search-form-wrapper {
    text-align: left;
}

.search-type-toggle {
    margin-bottom: 15px;
    display: flex;
    gap: 0;
    border: 1px solid #ccc;
    display: inline-flex;
    border-radius: 4px;
    overflow: hidden;
}

.radio-btn {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    background: #f0f0f0;
    border-right: 1px solid #ccc;
    color: #666;
}

.radio-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.radio-btn:last-child {
    border-right: none;
}

.radio-btn input {
    display: none;
}

.search-fields {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.field-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.field-group select:hover {
    border-color: var(--primary-color);
}

.field-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(39, 53, 92, 0.1);
}

.btn-search {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-search:active {
    transform: translateY(0);
}

.search-extra {
    text-align: center;
    margin-top: 15px;
}

.btn-text-icon {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 auto;
}

/* Listings */
.listings-section {
    padding: 60px 20px;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-style: italic;
}

.section-title .light {
    font-weight: 400;
    color: #666;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.property-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-white);
    position: relative;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 1;
}

.property-card:hover::before {
    transform: scaleX(1);
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge.launch {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 8px 16px;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {

    0%,
    100% {
        box-shadow: var(--shadow-md);
    }

    50% {
        box-shadow: 0 4px 20px rgba(39, 53, 92, 0.4);
    }
}

.btn-like {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
}

.btn-like:hover {
    transform: scale(1.15);
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-like.liked {
    background: #ef4444;
    color: white;
    animation: heart-beat 0.3s ease;
}

@keyframes heart-beat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.price {
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    font-size: 1.3rem;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.card-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Partners Strip */
.partners-strip {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
}

.partner-logo {
    color: #aaa;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 10px;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
        margin-left: 10px;
    }

    .mobile-nav-header {
        display: flex !important;
    }

    .main-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--primary-color);
        z-index: 1001;
        padding: 20px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

    .main-nav.mobile-active {
        right: 0;
    }

    .mobile-nav-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        width: 100%;
    }

    .mobile-nav-header .header-logo {
        max-height: 40px;
    }

    .main-nav a i {
        display: inline-block;
        font-size: 1.2rem;
    }

    .menu-close {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: var(--text-light);
        font-size: 1.3rem;
        cursor: pointer;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s ease;
    }

    .menu-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        align-items: flex-start;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }

    .main-nav a:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: none;
    }

    .header-content {
        padding: 5px 15px;
    }

    .search-fields {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
}

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    opacity: 0;
    transform: scale(0) translateY(20px);
}

.whatsapp-float.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

/* Pulse animation */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* ========================================
   ENHANCED DESIGN IMPROVEMENTS
   ======================================== */

/* Enhanced Hero Overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(42, 54, 94, 0.85) 0%, rgba(42, 54, 94, 0.65) 100%);
}

/* Enhanced Search Box with Glassmorphism */
.search-box-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.search-tabs .tab {
    transition: all 0.3s ease;
}

.search-tabs .tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.search-tabs .tab.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(42, 54, 94, 0.3);
}

/* Enhanced Property Cards */
.property-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.property-card:hover::before {
    transform: scaleX(1);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-image {
    overflow: hidden;
}

.card-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Enhanced Badge */
.badge.launch {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    box-shadow: 0 2px 8px rgba(250, 231, 157, 0.4);
    animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(250, 231, 157, 0.4);
    }

    50% {
        box-shadow: 0 4px 16px rgba(250, 231, 157, 0.6);
    }
}

/* Enhanced Like Button */
.btn-like {
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-like:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

.btn-like.liked {
    background: #ef4444;
    color: white;
}

/* Enhanced Price */
.price {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Enhanced Search Button */
.btn-search {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-search::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-search:hover::before {
    width: 300px;
    height: 300px;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(42, 54, 94, 0.3);
}

/* Enhanced Header */
.main-header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.main-nav a {
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Enhanced Section Title */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced Form Inputs */
.field-group select {
    transition: all 0.3s ease;
}

.field-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 54, 94, 0.1);
    outline: none;
}

/* Footer Enhancement */
.main-footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-debug-link {
    color: #999 !important;
    font-size: 0.8rem !important;
}

.footer-debug-link:hover {
    color: var(--secondary-color) !important;
}

/* ========================================
   COOKIE CONSENT BANNER
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    /* Hidden by default, shown via JS */
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-banner.show {
    display: flex;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
}

.cookie-content a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.btn-cookie-accept {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
}

.btn-cookie-accept:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 15px;
    }
}

/* ========================================
   POLICY PAGE STYLES
   ======================================== */