@import "tailwindcss";

/* Dark section contrast: ensure text is readable on slate-900 / slate-800 backgrounds */
.dark-section .text-slate-400,
.dark-section .text-slate-500 {
    color: rgb(226 232 240) !important;
}

/* slate-200 */
.dark-section .text-gray-400,
.dark-section .text-gray-500 {
    color: rgb(226 232 240) !important;
}

/* Contrast: no light-on-light or dark-on-dark — ensure readable text */
.bg-white a:not([class*="bg-"]):not([class*="text-"]),
.bg-gray-50 a:not([class*="bg-"]):not([class*="text-"]),
.bg-white button:not([class*="bg-"]):not([class*="text-"]),
.bg-gray-50 button:not([class*="bg-"]):not([class*="text-"]) {
    color: #0f172a;
}

.bg-white a:hover,
.bg-gray-50 a:hover {
    color: #0f172a;
    opacity: 0.9;
}

.bg-white input::placeholder,
.bg-gray-50 input::placeholder,
.bg-white select,
.bg-gray-50 select {
    color: #475569;
}

.bg-white select option,
.bg-gray-50 select option {
    color: #0f172a;
    background: #fff;
}

/* SathiDeals.ca - Main Stylesheet */
/* Modern Real Estate Website Design System */

/* ============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================ */
:root {
    /* Brand Colors */
    --primary: #1a2332;
    --primary-light: #2d3748;
    --primary-dark: #0f1419;
    --secondary: #d4af37;
    --secondary-light: #e6c55f;
    --secondary-dark: #b8941f;
    --accent: #87a96b;
    --accent-light: #a3c088;
    --accent-dark: #6b8a54;

    /* Neutral Colors - HouseSigma/Realtor.ca style */
    --neutral-light: #fafafa;
    --neutral-lighter: #ffffff;
    --neutral-gray: #e5e7eb;
    --neutral-dark: #1e293b;
    --neutral-darker: #0f172a;
    --neutral-muted: #64748b;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Typography - premium real estate */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Inter', sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Border Radius - softened for premium feel */
    --radius-sm: 0.5rem;
    /* 8px */
    --radius-md: 0.75rem;
    /* 12px */
    --radius-lg: 1rem;
    /* 16px */
    --radius-xl: 1.25rem;
    /* 20px */
    --radius-2xl: 2rem;
    /* 32px */
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 10040;
    --z-modal: 10050;
    --z-popover: 10060;
    --z-tooltip: 10070;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --neutral-light: #1a202c;
    --neutral-lighter: #2d3748;
    --neutral-gray: #4a5568;
    --neutral-dark: #e5e7eb;
    --neutral-darker: #f7fafc;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--neutral-dark);
    background-color: var(--neutral-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 800;
    /* Heavier for premium look */
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--primary);
    letter-spacing: -0.03em;
    /* Tighter tracking for elegance */
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--space-4);
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--secondary-dark);
}

/* ============================================
   NAV BAR – Top-site modern (Zillow / HouseSigma / Realtor.ca)
   + Frosted Glass Effect
   ============================================ */
.nav-bar,
#housesigma-nav,
.sd-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.8);
    /* Slightly more opaque for better legibility */
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.nav-container,
#housesigma-nav .nav-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .nav-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.nav-container {
    padding-left: 2rem;
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .nav-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.nav-row,
#housesigma-nav .nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    height: 64px;
    gap: 1rem;
}

@media (min-width: 768px) {
    .nav-row {
        min-height: 72px;
        height: 72px;
        gap: 1.25rem;
    }
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.nav-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.nav-brand-dot {
    color: #64748b;
    font-weight: 600;
}

@media (min-width: 640px) {
    .nav-brand-text {
        font-size: 1.375rem;
    }
}

@media (max-width: 479px) {
    .nav-brand-text {
        font-size: 1.125rem;
    }
}

.nav-search-wrap {
    display: none;
    width: 100%;
}

/* Search bar below navbar: bigger, wider, full width */
.nav-search-wrap.nav-search-below {
    display: none;
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 0;
    margin: 0;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

@media (min-width: 768px) {
    .nav-search-wrap.nav-search-below {
        display: flex !important;
        padding: 0.875rem 0;
    }

    .nav-search-wrap.nav-search-below .nav-search-inner {
        width: 100%;
        max-width: 100%;
    }

    .nav-search-wrap.nav-search-below .nav-search-input {
        padding: 0.875rem 1.25rem 0.875rem 3rem;
        font-size: 1.0625rem;
        border-radius: 12px;
        max-width: 100%;
    }

    .nav-search-wrap.nav-search-below .nav-search-icon {
        left: 1.25rem;
        width: 1.25rem;
        height: 1.25rem;
    }
}

.nav-search-inner {
    position: relative;
    width: 100%;
}

.nav-search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.125rem;
    height: 1.125rem;
    color: #64748b;
}

.nav-search-input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    font-size: 0.9375rem;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-search-input::placeholder {
    color: #94a3b8;
}

.nav-search-input:focus {
    border-color: var(--secondary, #d4af37);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
    background: #fff;
}

.nav-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    z-index: 50;
    max-height: 20rem;
    overflow-y: auto;
}

.nav-search-results.hidden {
    display: none !important;
}

.nav-cta {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    color: #fff;
    background: linear-gradient(135deg, var(--secondary, #d4af37), var(--secondary-dark, #b8941f));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.45);
    opacity: 0.95;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

#housesigma-nav .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #475569;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

#housesigma-nav .nav-link:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

/* Notifications bell: grey by default, red when there are unread notifications */
#notifications-btn.nav-notifications-btn {
    color: #6b7280;
}

#notifications-btn.nav-notifications-btn:hover {
    color: var(--secondary, #d4af37);
}

#notifications-btn.nav-notifications-btn.has-notifications {
    color: #dc2626;
}

#notifications-btn.nav-notifications-btn.has-notifications:hover {
    color: #b91c1c;
}

#housesigma-nav #mobile-search {
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

#housesigma-nav #mobile-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
}

#housesigma-nav #mobile-search input::placeholder {
    color: #94a3b8;
}

#housesigma-nav #mobile-search input:focus {
    outline: none;
    border-color: var(--secondary, #d4af37);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

#housesigma-nav #mobile-menu {
    border-top: 1px solid #e2e8f0;
}

#housesigma-nav #mobile-menu div {
    padding: 1rem;
}

#housesigma-nav #mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    border-radius: 0.5rem;
}

#housesigma-nav #mobile-menu a:hover {
    background: #f8fafc;
    color: var(--secondary);
}

#housesigma-nav>div {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    #housesigma-nav>div {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    #housesigma-nav>div {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

#housesigma-nav>div>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    height: 64px;
}

@media (min-width: 768px) {
    #housesigma-nav>div>div {
        min-height: 72px;
        height: 72px;
    }
}

#housesigma-nav a {
    color: inherit;
    text-decoration: none;
}

#housesigma-nav a:hover {
    color: var(--secondary);
}

#housesigma-nav .flex {
    display: flex;
}

#housesigma-nav .items-center {
    align-items: center;
}

#housesigma-nav .flex-shrink-0 {
    flex-shrink: 0;
}

#housesigma-nav .gap-2 {
    gap: 0.5rem;
}

#housesigma-nav .gap-3 {
    gap: 0.75rem;
}

#housesigma-nav .gap-1 {
    gap: 0.25rem;
}

#housesigma-nav .relative {
    position: relative;
}

#housesigma-nav .absolute {
    position: absolute;
}

#housesigma-nav .top-full {
    top: 100%;
}

#housesigma-nav .left-0 {
    left: 0;
}

#housesigma-nav .right-0 {
    right: 0;
}

#housesigma-nav .mt-1 {
    margin-top: 0.25rem;
}

#housesigma-nav .w-56 {
    width: 14rem;
}

#housesigma-nav .w-64 {
    width: 16rem;
}

#housesigma-nav .py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

#housesigma-nav .px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

#housesigma-nav .px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

#housesigma-nav .pl-9 {
    padding-left: 2.25rem;
}

#housesigma-nav .pr-4 {
    padding-right: 1rem;
}

#housesigma-nav .rounded-lg {
    border-radius: 0.5rem;
}

#housesigma-nav .rounded-xl {
    border-radius: 0.75rem;
}

#housesigma-nav .border {
    border-width: 1px;
    border-style: solid;
}

#housesigma-nav .border-t {
    border-top-width: 1px;
    border-top-style: solid;
}

#housesigma-nav .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

#housesigma-nav .shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

#housesigma-nav .bg-white {
    background: #fff;
}

#housesigma-nav .bg-slate-50 {
    background: #f8fafc;
}

#housesigma-nav .bg-slate-800 {
    background: #1e293b;
}

#housesigma-nav .text-slate-900 {
    color: #0f172a;
}

#housesigma-nav .text-slate-500 {
    color: #64748b;
}

#housesigma-nav .text-slate-600 {
    color: #475569;
}

#housesigma-nav .text-slate-400 {
    color: #94a3b8;
}

#housesigma-nav .text-sm {
    font-size: 0.875rem;
}

#housesigma-nav .text-lg {
    font-size: 1.125rem;
}

#housesigma-nav .font-medium {
    font-weight: 500;
}

#housesigma-nav .font-semibold {
    font-weight: 600;
}

#housesigma-nav .w-full {
    width: 100%;
}

#housesigma-nav .max-w-xl {
    max-width: 36rem;
}

#housesigma-nav .mx-6 {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

#housesigma-nav .flex-1 {
    flex: 1 1 0%;
}

#housesigma-nav .hidden {
    display: none !important;
}

#housesigma-nav .overflow-y-auto {
    overflow-y: auto;
}

#housesigma-nav .max-h-80 {
    max-height: 20rem;
}

#housesigma-nav .z-50 {
    z-index: 50;
}

#housesigma-nav .h-14 {
    height: 3.5rem;
}

#housesigma-nav .left-3 {
    left: 0.75rem;
}

#housesigma-nav .top-1\/2 {
    top: 50%;
}

#housesigma-nav .-translate-y-1\/2 {
    transform: translateY(-50%);
}

#housesigma-nav .w-4 {
    width: 1rem;
}

#housesigma-nav .h-4 {
    height: 1rem;
}

@media (min-width: 768px) {
    #housesigma-nav .md\:h-16 {
        height: 4rem;
    }
}

@media (min-width: 640px) {
    #housesigma-nav .sm\:gap-3 {
        gap: 0.75rem;
    }
}

#housesigma-nav input {
    font: inherit;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #0f172a;
}

#housesigma-nav input::placeholder {
    color: #94a3b8;
}

#housesigma-nav input:focus {
    outline: none;
    border-color: #cbd5e1;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.2);
}

#housesigma-nav .dropdown-menu {
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: visibility 0.2s, opacity 0.2s, transform 0.2s;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    padding: 0.5rem 0;
    z-index: 1000;
    margin-top: 4px;
}

#housesigma-nav .dropdown:hover .dropdown-menu,
#housesigma-nav .dropdown-menu.show {
    display: block !important;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

#housesigma-nav .dropdown-menu a,
#housesigma-nav .dropdown-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #334155;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

#housesigma-nav .dropdown-menu a:hover,
#housesigma-nav .dropdown-menu button:hover {
    background: #f8fafc;
    color: var(--secondary);
}

#housesigma-nav .nav-link:hover {
    color: var(--secondary);
    background: #f8fafc;
}

#housesigma-nav .transition-colors {
    transition: color 0.2s, background-color 0.2s;
}

@media (min-width: 1024px) {
    #housesigma-nav .lg\:flex {
        display: flex !important;
    }
}

@media (max-width: 1023px) {
    #housesigma-nav .lg\:flex {
        display: none !important;
    }
}

@media (min-width: 768px) {
    #housesigma-nav .md\:flex {
        display: flex !important;
    }
}

@media (max-width: 767px) {
    #housesigma-nav .md\:flex {
        display: none !important;
    }

    #housesigma-nav .md\:hidden {
        display: none !important;
    }
}

#housesigma-nav .md\:hidden {
    display: none;
}

@media (min-width: 768px) {
    #housesigma-nav .md\:hidden {
        display: none !important;
    }
}

#housesigma-nav button {
    font: inherit;
    color: inherit;
}

#housesigma-nav .p-2 {
    padding: 0.5rem;
}

#housesigma-nav .h-6 {
    height: 1.5rem;
}

#housesigma-nav .w-6 {
    width: 1.5rem;
}

#housesigma-nav .w-8 {
    width: 2rem;
}

#housesigma-nav .h-8 {
    height: 2rem;
}

#housesigma-nav .w-9 {
    width: 2.25rem;
}

#housesigma-nav .h-9 {
    height: 2.25rem;
}

#housesigma-nav .w-10 {
    width: 2.5rem;
}

#housesigma-nav .h-10 {
    height: 2.5rem;
}

#housesigma-nav .ml-4 {
    margin-left: 1rem;
}

#housesigma-nav .space-x-2>*+* {
    margin-left: 0.5rem;
}

@media (max-width: 639px) {
    #housesigma-nav .sm\:block {
        display: block !important;
    }
}

#housesigma-nav .nav-logo-box.rounded-lg {
    border-radius: 0.5rem;
}

#housesigma-nav .border-slate-200 {
    border-color: #e2e8f0;
}

#housesigma-nav .text-secondary {
    color: var(--secondary);
}

/* Sharper logo rendering on high-DPI displays */
#housesigma-nav .nav-logo-img,
.nav-logo-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Nav Search Button (mobile – Realtor.ca / HouseSigma / Zolo style) */
.nav-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--secondary, #d4af37), var(--secondary-dark, #b8941f));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.45);
}

.nav-search-btn-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.nav-search-btn-text {
    white-space: nowrap;
}

.nav-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    color: #475569;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.nav-menu-btn:hover {
    color: #0f172a;
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Nav logo – bigger and more evident (top real estate sites) */
#housesigma-nav .nav-logo-box,
.nav-logo-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

@media (min-width: 640px) {

    #housesigma-nav .nav-logo-box,
    .nav-logo-box {
        width: 52px;
        height: 52px;
        min-width: 52px;
        min-height: 52px;
    }
}

@media (min-width: 768px) {

    #housesigma-nav .nav-logo-box,
    .nav-logo-box {
        width: 56px;
        height: 56px;
        min-width: 56px;
        min-height: 56px;
    }
}

#housesigma-nav .nav-logo-img,
.nav-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

/* ============================================
   GLOBAL LAYOUT (works without Tailwind)
   ============================================ */
/* Match fixed nav height */
body {
    padding-top: 68px;
}

.max-w-7xl {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 640px) {
    .max-w-7xl {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .max-w-7xl {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

.max-w-5xl {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.pt-24 {
    padding-top: 6rem;
}

.pt-28 {
    padding-top: 7rem;
}

.pt-20 {
    padding-top: 5rem;
}

.pb-16 {
    padding-bottom: 4rem;
}

.w-full {
    width: 100%;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .md\:flex {
        display: flex;
    }

    .md\:block {
        display: block;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-baseline {
    align-items: baseline;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-col {
    flex-direction: column;
}

.min-h-screen {
    min-height: 100vh;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-10 {
    z-index: 10;
}

.overflow-hidden {
    overflow: hidden;
}

.bg-white {
    background: #fff;
}

.bg-\[\#f8fafc\] {
    background: #f8fafc;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.border {
    border-width: 1px;
    border-style: solid;
}

.border-slate-100 {
    border-color: #f1f5f9;
}

.border-slate-200 {
    border-color: #e2e8f0;
}

.border-slate-800 {
    border-color: #1e293b;
}

.text-slate-900 {
    color: #0f172a;
}

.text-slate-600 {
    color: #475569;
}

.text-slate-500 {
    color: #64748b;
}

.text-slate-400 {
    color: #94a3b8;
}

.text-white {
    color: #fff;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-6xl {
    font-size: 3.75rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.font-light {
    font-weight: 300;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.leading-relaxed {
    line-height: 1.625;
}

.col-span-full {
    grid-column: 1 / -1;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   HOUSESIGMA / ZILLOW / REALTOR.CA – HERO & SECTIONS
   ============================================ */
.hero-modern {
    min-height: 78vh;
    background: linear-gradient(155deg, #0c1222 0%, #0f172a 25%, #1e293b 55%, #0f172a 100%);
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.hero-motion-layers {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.7;
    mix-blend-mode: screen;
}

.hero-orb-one {
    width: 320px;
    height: 320px;
    top: 6%;
    left: -4%;
    background: radial-gradient(circle, rgba(244, 212, 124, 0.34) 0%, rgba(244, 212, 124, 0.08) 45%, transparent 72%);
}

.hero-orb-two {
    width: 420px;
    height: 420px;
    right: -8%;
    bottom: -8%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.22) 0%, rgba(96, 165, 250, 0.05) 48%, transparent 74%);
}

.hero-grid-plane {
    position: absolute;
    inset: auto -10% -24% -10%;
    height: 56%;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
    background-size: 42px 42px;
    transform: perspective(1000px) rotateX(74deg);
    transform-origin: center top;
    opacity: 0.2;
}

.hero-beam {
    position: absolute;
    width: 34vw;
    height: 80vh;
    border-radius: 999px;
    filter: blur(40px);
    opacity: 0.18;
}

.hero-beam-left {
    top: -18%;
    left: 6%;
    background: linear-gradient(180deg, rgba(244, 212, 124, 0.7), transparent 72%);
    transform: rotate(18deg);
}

.hero-beam-right {
    top: -12%;
    right: 4%;
    background: linear-gradient(180deg, rgba(125, 211, 252, 0.5), transparent 72%);
    transform: rotate(-16deg);
}

.hero-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    /* High-end radial gradient fallback for hero-bg.svg */
    background: radial-gradient(circle at 50% 50%, #1a1c2c 0%, #0d0e14 100%);
    opacity: 0.6;
    pointer-events: none;
}

.hero-modern h1 {
    font-size: clamp(2.75rem, 6.5vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.07;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-modern .hero-sub {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2.25rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Buy | Sell | Lease toggle */
.hero-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.85);
    border-radius: 999px;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    gap: 0.25rem;
}

.hero-toggle-btn {
    border: none;
    border-radius: 999px;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #e5e7eb;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.hero-toggle-btn.active {
    background: linear-gradient(135deg, #0b1120, #020617);
    color: #facc15;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

.hero-toggle-btn:not(.active):hover {
    color: #f9fafb;
}

/* Responsive hero toggle for 4 buttons */
@media (max-width: 640px) {
    .hero-toggle {
        flex-wrap: wrap;
        max-width: 320px;
        padding: 0.375rem;
    }

    .hero-toggle-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        flex: 1 1 40%;
        text-align: center;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .hero-toggle-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Residential vs Commercial subsection */
.hero-property-category {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-category-btn {
    border: none;
    border-radius: 8px;
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.hero-category-btn:hover {
    color: #fff;
}

.hero-category-btn.active {
    background: rgba(255, 255, 255, 0.95);
    color: #1a2332;
}

/* Search bar - Zillow/HouseSigma prominent single-row */
.search-bar-modern {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    max-width: 920px;
}

.search-bar-modern .search-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
}

.search-bar-modern .search-field {
    flex: 1;
    min-width: 100px;
    border: none;
    border-right: 1px solid #e5e7eb;
    padding: 16px 18px;
    font-size: 15px;
    background: #fff;
    color: #0f172a;
}

.search-bar-modern .search-field:focus {
    outline: none;
    background: #fafafa;
}

.search-bar-modern .search-field:last-of-type {
    border-right: none;
}

.search-bar-modern select.search-field {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

.search-bar-modern .btn-search {
    padding: 16px 32px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #0f172a;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(212,175,55,0.35);
}

.search-bar-modern .btn-search:hover {
    background: linear-gradient(135deg, #e8c547 0%, #c9a52a 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212,175,55,0.45);
}

.search-bar-modern .hero-search-extra-wrap {
    display: flex;
    flex: 1;
    min-width: 0;
}

.search-bar-modern .hero-search-extra-wrap .search-field {
    flex: 1;
    min-width: 80px;
}

.search-bar-modern .hero-search-extra-wrap.hidden,
.search-bar-modern #hero-residential-filters-wrap.hidden,
.search-bar-modern #hero-type-wrap.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .search-bar-modern .search-row {
        flex-direction: column;
    }

    .search-bar-modern .search-field {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .search-bar-modern .btn-search {
        width: 100%;
    }
}

.hero-quick-links {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.hero-quick-links a,
.hero-modern .text-slate-300 {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.2s;
}

.hero-quick-links a:hover,
.hero-modern .text-slate-300:hover {
    color: #fff;
}

/* Listings page – full modern UI (Zillow / HouseSigma) */
.hero-listings {
    background: linear-gradient(155deg, #0c1222 0%, #0f172a 25%, #1e293b 55%, #0f172a 100%);
    position: relative;
    padding: 2.5rem 1rem 3rem;
}

@media (min-width: 768px) {
    .hero-listings {
        padding: 3rem 1.5rem 3.5rem;
    }
}

.hero-listings h1 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.hero-listings .hero-listings-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.0625rem;
    margin-bottom: 1.5rem;
}

.listings-search-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .listings-search-card {
        padding: 1.5rem 1.75rem;
    }
}

.listings-filter-form label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.listings-filter-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.listings-filter-form select:focus {
    outline: none;
    border-color: var(--secondary, #d4af37);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.listings-filter-form .listings-location-select {
    width: 100%;
}

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

@media (min-width: 640px) {
    .listings-filter-form .filter-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .listings-filter-form .filter-row {
        grid-template-columns: 2fr 1.25fr 1fr 1fr 1.25fr auto;
        align-items: end;
    }
}

.listings-residential-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.listings-filter-form .listings-extra-filter.hidden,
.listings-filter-form #residential-filters-wrap.hidden,
.listings-filter-form #listings-type-wrap.hidden {
    display: none !important;
}

.listings-filter-form .btn-update-results {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}

.listings-filter-form .btn-update-results:hover {
    background: linear-gradient(135deg, #e8c547 0%, #c9a52a 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212,175,55,0.4);
}
.listings-filter-form .btn-update-results:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.listings-filter-form .filter-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.listings-filter-form .filter-checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-transform: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    margin: 0;
}

.listings-results-section {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.listings-results-header {
    margin-bottom: 1.5rem;
}

.listings-results-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
}

.listings-results-header p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.listings-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .listings-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }
}

.sticky-toggle-bar {
    position: sticky;
    top: 64px;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
    .sticky-toggle-bar {
        top: 72px;
        padding: 16px 0;
    }
}

.toggle-bar-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .toggle-bar-content {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .toggle-bar-content {
        padding: 0 2rem;
    }
}

.toggle-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.toggle-bar-count {
    font-size: 0.9375rem;
    color: #64748b;
}

.toggle-bar-count strong {
    color: #0f172a;
    font-weight: 700;
}

.toggle-buttons {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
}

.toggle-btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.toggle-btn:hover:not(.active) {
    color: #475569;
}

.listings-sort-select {
    padding: 8px 36px 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.listings-clear-filters {
    font-size: 0.875rem;
    font-weight: 500;
    color: #3b82f6;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
}

.listings-clear-filters:hover {
    color: #2563eb;
    text-decoration: underline;
}

.load-more-listings {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--secondary-dark, #b8941f);
    background: #fff;
    border: 2px solid var(--secondary, #d4af37);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-listings:hover {
    background: var(--secondary, #d4af37);
    color: #fff;
    transform: translateY(-1px);
}

.listings-footer {
    background: #0f172a;
    color: #fff;
    padding: 3rem 1.5rem;
    text-align: center;
}

.listings-footer p {
    margin: 0;
    font-size: 0.875rem;
    color: #94a3b8;
}

.listings-footer .disclaimer {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 1rem;
}

.animate-fade-in {
    opacity: 0;
    transform: translateY(12px);
}

.animate-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.stats-counter {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .stats-counter {
        font-size: 2rem;
    }
}

/* Section layout - HouseSigma / Zillow style */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
    gap: 1rem;
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin: 0;
    line-height: 1.15;
}

.section-head .section-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.section-head .section-link:hover {
    color: #0f172a;
}

/* Section backgrounds - clean alternate (HouseSigma / Zillow) */
section.bg-\[\#f8fafc\] {
    background: #f8fafc !important;
}

.bg-slate-50 {
    background: #f8fafc;
}

.border-slate-100 {
    border-color: #f1f5f9;
}

/* Section spacing - premium feel */
section.py-16 {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

@media (min-width: 768px) {
    section.py-16.md\:py-24 {
        padding-top: 5.5rem;
        padding-bottom: 5.5rem;
    }

    section.py-16.md\:py-20 {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* Market insight & testimonial cards - HouseSigma / Zillow style */
.bg-slate-50.rounded-xl {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.bg-white.rounded-xl.border.border-slate-200 {
    border-radius: 14px;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.25s, transform 0.25s;
}

.bg-white.rounded-xl.border.border-slate-200:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Modern testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .testimonial-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.testimonial-card {
    position: relative;
    background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.08), #ffffff);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.testimonial-quote-icon span {
    font-size: 3rem;
    line-height: 1;
    color: #e5b94e;
    opacity: 0.7;
}

.testimonial-rating {
    font-size: 0.875rem;
    color: #fbbf24;
    letter-spacing: 0.15em;
}

.testimonial-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #4b5563;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.testimonial-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
}

.testimonial-role {
    font-size: 0.8125rem;
    color: #6b7280;
}

/* Footer / utilities */
.text-white\/75 {
    color: rgba(255, 255, 255, 0.75);
}

.h-11 {
    height: 2.75rem;
}

.w-auto {
    width: auto;
}

.opacity-90 {
    opacity: 0.9;
}

.gap-0\.5 {
    gap: 0.125rem;
}

.gap-x-6 {
    column-gap: 1.5rem;
}

.gap-y-2 {
    row-gap: 0.5rem;
}

.h-12 {
    height: 3rem;
}

.w-12 {
    width: 3rem;
}

/* ============================================
   UTILITY CLASSES (Tailwind extend fallbacks)
   ============================================ */
.bg-primary-dark {
    background-color: var(--primary-dark);
}

.bg-slate-50 {
    background: #f8fafc;
}

.bg-slate-900 {
    background: #0f172a;
}

.bg-slate-950 {
    background: #0a0e14;
}

/* Footer & dark sections - rich contrast */
footer.bg-slate-950 {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

section.bg-slate-900 {
    background: #0f172a;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.text-accent {
    color: var(--accent);
}

.shadow-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.shadow-card-hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hover\:border-secondary\/20:hover {
    border-color: rgba(212, 175, 55, 0.2);
}

.hover\:bg-slate-50:hover {
    background: #f8fafc;
}

.hover\:text-white:hover {
    color: #fff;
}

.hover\:text-slate-900:hover {
    color: #0f172a;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.space-y-3>*+* {
    margin-top: 0.75rem;
}

.space-x-2>*+* {
    margin-left: 0.5rem;
}

.space-x-4>*+* {
    margin-left: 1rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-5 {
    padding: 1.25rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.pt-8 {
    padding-top: 2rem;
}

.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.transition-colors {
    transition: color 0.2s, background-color 0.2s;
}

.transition-all {
    transition: all 0.2s;
}

.duration-300 {
    transition-duration: 0.3s;
}

.outline-none {
    outline: none;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.text-sm {
    font-size: 0.875rem;
}

.text-\[15px\] {
    font-size: 15px;
}

.text-\[10px\] {
    font-size: 10px;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-md {
    max-width: 28rem;
}

.flex-col {
    flex-direction: column;
}

.sm\:flex-row {
    flex-direction: row;
}

@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
}

.text-slate-300 {
    color: #cbd5e1;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

.pb-16 {
    padding-bottom: 4rem;
}

@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .md\:text-5xl {
        font-size: 3rem;
    }

    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .lg\:text-6xl {
        font-size: 3.75rem;
    }
}

.amber-400 {
    color: #fbbf24;
}

.amber-500 {
    background-color: #f59e0b;
}

.hover\:bg-amber-600:hover {
    background-color: #d97706;
}

.inline {
    display: inline;
}

.inline-block {
    display: inline-block;
}

.block {
    display: block;
}

@media (max-width: 767px) {
    .md\:flex {
        display: none !important;
    }
}

.font-display {
    font-family: var(--font-display);
}

.font-accent {
    font-family: var(--font-accent);
}

.text-center {
    text-align: center;
}

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

.text-right {
    text-align: right;
}

.gradient-text {
    background: linear-gradient(135deg, #d4af37 0%, #87a96b 50%, #1a2332 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-accent);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

/* ============================================
   PREMIUM UI & GLASSMORPHISM
   ============================================ */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(26, 35, 50, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-premium {
    background: white;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--neutral-gray);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border-color: var(--secondary-light);
}

.card-premium::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-premium:hover::after {
    opacity: 1;
}

.property-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.property-card .listing-image {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* ============================================
   RESPONSIVE LISTINGS GRID
   ============================================ */
.listings-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .listings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .listings-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Featured section on homepage - max 3 columns */
#featured-listings-container.listings-grid {
    max-width: 100%;
}

@media (min-width: 1280px) {
    #featured-listings-container.listings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   MODERN PROPERTY CARDS (Realtor.ca Style)
   ============================================ */
/* Modern listing cards - HouseSigma / Zillow style */
.property-card-modern {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0,0,0,0.04);
    transition: box-shadow 0.35s ease, transform 0.35s cubic-bezier(.25,.46,.45,.94), border-color 0.2s;
    border: 1px solid #eef2f7;
    position: relative;
    will-change: transform;
}

.property-card-modern:hover {
    transform: translateY(-8px) scale(1.012);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(212,175,55,0.18);
    border-color: rgba(212,175,55,0.4);
}

.property-card-modern .card-price {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.property-card-modern .card-address {
    font-size: 1rem;
    font-weight: 500;
    color: #334155;
}

.property-card-modern .card-features {
    font-size: 0.875rem;
    color: #64748b;
}

.property-card-modern .card-image-container {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #f1f4f9, #e2e8f0);
}

.property-card-modern .card-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.property-card-modern:hover .card-image-container::after {
    opacity: 0.85;
}

  .property-card-modern .card-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      transition: transform 0.5s ease, opacity 0.35s ease;
      /* SVG placeholders are resolution-independent; real photos rendered at device DPR */
      image-rendering: auto;
  }

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

.property-card-modern .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-card-modern .badge-new {
    background: #10b981;
    color: white;
}

.property-card-modern .badge-price-drop {
    background: #ef4444;
    color: white;
}

.property-card-modern .badge-luxury {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: white;
}

.property-card-modern .card-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
}

.property-card-modern .card-favorite:hover {
    transform: scale(1.1);
}

.property-card-modern .card-favorite.active {
    color: #ef4444;
}

.property-card-modern .card-content {
    padding: 1.25rem 1.375rem;
}

.property-card-modern .card-price {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.property-card-modern .card-address {
    font-size: 1rem;
    /* Slightly larger for readability */
    font-weight: 500;
    color: #1e293b;
    /* Deeper contrast */
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property for modern browsers */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card-modern .card-location {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 10px;
}

.property-card-modern .card-features {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}
.property-card-modern .card-cma {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    background: #f8fafc;
}
.property-card-modern .card-cma-teaser {
    border-color: #fcd34d;
    background: #fffbeb;
}
.property-card-modern .card-cma-meta {
    flex: 1;
}
.property-card-modern .card-cma-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    color: #1f2937;
}
.property-card-modern .card-cma-value {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 0.25rem;
}
.property-card-modern .card-cma-message {
    font-size: 0.75rem;
    color: #475569;
    margin-top: 0.25rem;
}
.property-card-modern .card-cma-agent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 170px;
}
.property-card-modern .card-cma-agent img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}
.property-card-modern .card-cma-agent-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
}
.property-card-modern .card-cma-agent-contact {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #475569;
}

.property-card-modern .card-feature {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    color: #64748b;
}

.property-card-modern .card-feature i {
    color: #94a3b8;
    font-size: 0.75rem;
}

.property-card-modern .card-content {
    padding: 14px 16px 16px;
}

.property-card-modern .card-location {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin: 2px 0 8px;
}

.property-card-modern .card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.property-card-modern .card-action-btn {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.property-card-modern .btn-whatsapp {
    background: #25d366;
    color: white;
    border: none;
}

.property-card-modern .btn-whatsapp:hover {
    background: #20bd5a;
}

/* Map Container (listings page) */
.map-container {
    height: 500px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #e5e7eb;
    display: none;
}

.map-container.active {
    display: block;
}

#grid-view.hidden {
    display: none;
}

@media (max-width: 640px) {
    .property-card-modern .card-features {
        gap: 12px;
    }

    .property-card-modern .card-price {
        font-size: 1.25rem;
    }
}

/* Sticky Lead Bar on property details */
.sticky-lead-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.80);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.sticky-lead-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
}

.sticky-lead-copy {
    display: flex;
    flex-direction: column;
}

.sticky-lead-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #f9fafb;
}

.sticky-lead-sub {
    font-size: 0.8125rem;
    color: #cbd5e1;
}

.sticky-lead-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sticky-lead-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    background: #22c55e;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.sticky-lead-btn.secondary {
    background: #0ea5e9;
}

.sticky-lead-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.45);
}

@media (max-width: 640px) {
    .sticky-lead-inner {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 1.25rem;
    }

    .sticky-lead-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .sticky-lead-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-blur {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-md);
}

.nav-blur.scrolled .nav-link {
    color: var(--neutral-dark);
}

.nav-blur.solid {
    background: var(--neutral-lighter);
    border-bottom: 1px solid var(--neutral-gray);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: var(--space-2) 0;
    z-index: var(--z-dropdown);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 5px;
}

/* For JS toggling */
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: var(--space-2) var(--space-6);
    color: var(--neutral-dark);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: background var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--neutral-light);
    color: var(--secondary);
}

/* ============================================
   LISTING ANTI-SCRAPING (IMAGE ONLY)
   ============================================ */
.listing-image {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-bg {
    background: linear-gradient(rgba(26, 35, 50, 0.4), rgba(26, 35, 50, 0.4)),
        url('resources/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

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

/* ============================================
   FORMS
   ============================================ */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    border: 2px solid var(--neutral-gray);
    border-radius: var(--radius-md);
    background: white;
    transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    color: var(--neutral-dark);
}

.form-error {
    color: var(--error);
    font-size: var(--text-sm);
    margin-top: var(--space-1);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.animate-fade-in.visible {
    animation: fadeIn 0.6s ease forwards;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================
   LOADING STATES
   ============================================ */
/* Loading Indicator */
.loading-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.loading-indicator svg {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.skeleton-pulse {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

@keyframes skeleton-pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.skeleton-card {
    height: 400px;
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    padding: var(--space-4);
}

.skeleton-img {
    height: 200px;
    width: 100%;
    border-radius: var(--radius-lg);
    background: var(--neutral-gray);
    margin-bottom: var(--space-4);
}

.skeleton-text {
    height: 20px;
    background: var(--neutral-gray);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-3);
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.title {
    height: 28px;
    width: 80%;
}

/* ============================================
   BADGES & TAGS
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-success {
    background: var(--success);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: white;
}

.badge-info {
    background: var(--info);
    color: white;
}

.badge-primary {
    background: var(--primary);
    color: white;
}

/* ============================================
   MODALS
   ============================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.modal {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: var(--z-modal);
}

/* ============================================
   TOOLTIPS
   ============================================ */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-2) var(--space-3);
    background: var(--neutral-darker);
    color: white;
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
    z-index: var(--z-tooltip);
}

.tooltip:hover::after {
    opacity: 1;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-4);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-4);
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(1, 1fr);
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(1, 1fr);
    }

    h1 {
        font-size: var(--text-4xl);
    }

    h2 {
        font-size: var(--text-3xl);
    }

    h3 {
        font-size: var(--text-2xl);
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
/* ============================================
   PERFORMANCE & TRANSITIONS
   ============================================ */
.property-card img {
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
}

.property-card.fade-in {
    animation: fadeInScale 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

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

/* Faster shimmering for smoother loading feel */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    animation: shimmer 1.2s infinite linear;
}

/* Property Grid Optimization */
#grid-view {
    min-height: 500px;
    /* Prevents layout collapse */
    display: grid;
    gap: 1.5rem;
}

/* Responsive Gallery Aspect Ratio (16:9) */
.splide__track {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 1.5rem;
}

#property-gallery {
    box-shadow: var(--shadow-xl);
    background: #f1f5f9;
}

.property-gallery-main {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111827;
    overflow: hidden;
}

.property-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: opacity 0.35s ease;
    cursor: pointer;
}

.property-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.65);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
}
.property-gallery-nav:hover {
    background: rgba(15, 23, 42, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.property-gallery-prev { left: 14px; }
.property-gallery-next { right: 14px; }

.property-gallery-counter {
    position: absolute;
    right: 16px;
    bottom: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
    z-index: 10;
}

.investor-snapshot-bar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.investor-snapshot-bar.investor-mode-active {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12), 0 4px 16px rgba(212, 175, 55, 0.1);
}

.investor-snapshot-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.investor-snapshot-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.investor-mode-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f6e7b2, #d4af37);
    color: #1f2937;
    letter-spacing: 0.04em;
}

.investor-snapshot-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 640px) {
    .investor-snapshot-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

.investor-snapshot-metric {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.investor-snapshot-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.investor-snapshot-label {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
}

.fh-track.on {
    background: #3b82f6;
}

.site-mode-pills {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 3px;
}

.site-mode-pill {
    padding: 4px 12px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-mode-pill:hover {
    color: #0f172a;
}

.site-mode-pill.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

.site-mode-pill[data-mode="investor"].active { color: #d4af37; }
.site-mode-pill[data-mode="first_home"].active { color: #3b82f6; }
.site-mode-pill[data-mode="commercial"].active { color: #7c3aed; }

/* ============================================
   MOTION SIGNAL BAND
   ============================================ */
.motion-signal-band {
    position: relative;
    z-index: 2;
    padding: 14px 0;
    background: linear-gradient(180deg, #0b1120 0%, #10192d 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.motion-signal-band__inner {
    width: 100%;
}

.motion-signal-track {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding-right: 1rem;
}

.motion-signal-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(12px);
}

.motion-signal-pill i {
    color: #f4d47c;
}

/* ============================================
   STICKY MOTION RUNWAY
   ============================================ */
.motion-runway {
    position: relative;
    min-height: 220vh;
    background:
        radial-gradient(circle at top left, rgba(244, 212, 124, 0.16), transparent 28%),
        radial-gradient(circle at bottom right, rgba(96, 165, 250, 0.18), transparent 30%),
        linear-gradient(180deg, #07101d 0%, #0b1324 50%, #09111f 100%);
}

.motion-runway__wrap {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
    background-size: 44px 44px;
}

.motion-panel {
    width: min(1180px, calc(100vw - 2rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
}

.motion-panel__copy {
    max-width: 620px;
}

.motion-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    color: #f4d47c;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.motion-title {
    font-size: clamp(2.2rem, 5vw, 4.9rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    color: #fff;
    margin: 0 0 1.2rem;
    max-width: 10ch;
}

.motion-desc {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.75;
    color: rgba(226, 232, 240, 0.8);
    max-width: 56ch;
    margin: 0 0 1.5rem;
}

.motion-chip-row,
.motion-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.motion-chip {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    font-size: 0.88rem;
    font-weight: 600;
}

.motion-panel__visual {
    position: relative;
}

.motion-device-card,
.motion-command-stack,
.motion-deal-orbit {
    position: relative;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.5));
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(16px);
}

.motion-device-card {
    padding: 1rem;
}

.motion-device-card__top {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.motion-device-card__top span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.motion-metric-stack {
    display: grid;
    gap: 1rem;
}

.motion-metric-card,
.motion-command-card {
    padding: 1.15rem 1.2rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.motion-metric-card strong,
.motion-command-card strong {
    display: block;
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.3;
}

.motion-metric-card span,
.motion-command-card span {
    display: block;
    margin-top: 0.45rem;
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.motion-deal-orbit {
    min-height: 430px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.motion-orbit-ring {
    position: absolute;
    border: 1px solid rgba(244, 212, 124, 0.18);
    border-radius: 999px;
}

.motion-orbit-ring--outer {
    width: 86%;
    height: 86%;
    animation: motion-spin 22s linear infinite;
}

.motion-orbit-ring--inner {
    width: 58%;
    height: 58%;
    animation: motion-spin-reverse 18s linear infinite;
}

.motion-orbit-node {
    position: absolute;
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.motion-orbit-node--a { top: 14%; left: 18%; }
.motion-orbit-node--b { top: 22%; right: 14%; }
.motion-orbit-node--c { bottom: 14%; left: 50%; transform: translateX(-50%); }

.motion-orbit-core {
    position: relative;
    z-index: 1;
    width: 170px;
    height: 170px;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(244, 212, 124, 0.24) 0%, rgba(244, 212, 124, 0.08) 48%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(244, 212, 124, 0.22);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.motion-command-stack {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.motion-primary-cta,
.motion-secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 54px;
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.motion-primary-cta {
    background: linear-gradient(135deg, #f4d47c, #d4af37);
    color: #111827;
    box-shadow: 0 20px 36px rgba(212, 175, 55, 0.26);
}

.motion-secondary-cta {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.motion-primary-cta:hover,
.motion-secondary-cta:hover {
    transform: translateY(-2px);
}

@keyframes motion-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes motion-spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@media (max-width: 960px) {
    .motion-panel {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .motion-panel__copy {
        max-width: none;
        margin: 0 auto;
    }

    .motion-title {
        max-width: none;
    }

    .motion-chip-row,
    .motion-action-row {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .motion-runway {
        min-height: 210vh;
    }

    .motion-deal-orbit {
        min-height: 320px;
    }

    .motion-orbit-node {
        width: 64px;
        height: 64px;
        font-size: 0.76rem;
    }

    .motion-orbit-core {
        width: 140px;
        height: 140px;
        font-size: 1rem;
    }
}

/* ============================================
   STORYTELLING BLOCK
   ============================================ */
.re-offers-band {
    padding: 5rem 0;
    background:
        radial-gradient(circle at 0% 0%, rgba(244, 212, 124, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.re-offers-head {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
}

.re-offers-kicker {
    display: inline-block;
    margin-bottom: 0.9rem;
    color: #b8941f;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.re-offers-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    color: #0f172a;
    margin-bottom: 1rem;
}

.re-offers-sub {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #475569;
}

.re-proof-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.re-proof-item {
    padding: 1.1rem 1.2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.re-proof-item strong,
.re-proof-item span {
    display: block;
}

.re-proof-item strong {
    color: #0f172a;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.re-proof-item span {
    color: #64748b;
    font-size: 0.92rem;
}

.re-offer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.re-offer-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.5rem;
    border-radius: 24px;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), #ffffff);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.re-offer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
}

.re-offer-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 1rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #b8941f;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.re-offer-card h3 {
    color: #0f172a;
    font-size: 1.35rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 0.9rem;
}

.re-offer-card p {
    color: #475569;
    line-height: 1.75;
    margin-bottom: 1.4rem;
}

.re-offer-cta {
    margin-top: auto;
    color: #0f172a;
    font-weight: 700;
}

.re-offers-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 2rem;
}

.re-offers-primary,
.re-offers-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

.re-offers-primary {
    background: linear-gradient(135deg, #f4d47c, #d4af37);
    color: #111827;
}

.re-offers-secondary {
    background: #0f172a;
    color: #fff;
}

@media (max-width: 960px) {
    .re-proof-strip,
    .re-offer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .re-proof-strip,
    .re-offer-grid {
        grid-template-columns: 1fr;
    }
}

.story-fade {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.story-fade.story-visible {
    opacity: 1;
    transform: translateY(0);
}

.story-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--secondary, #d4af37);
    margin-bottom: 12px;
}

.story-headline {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--primary, #1a2332);
    line-height: 1.15;
    margin-bottom: 20px;
}

.story-sub {
    font-size: 1.0625rem;
    color: #475569;
    line-height: 1.75;
}

.story-section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--primary, #1a2332);
    text-align: center;
    margin-bottom: 2rem;
}

/* Three Paths grid */
.story-paths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .story-paths-grid { grid-template-columns: 1fr; }
}

.story-path-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: default;
}

.story-path-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border-color: var(--secondary, #d4af37);
}

.story-path-icon {
    font-size: 2.25rem;
    margin-bottom: 16px;
    line-height: 1;
}

.story-path-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary, #1a2332);
    margin-bottom: 10px;
}

.story-path-desc {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.65;
}

/* Counters grid */
.story-counters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .story-counters-grid { grid-template-columns: 1fr; }
}

.story-counter-card {
    background: var(--primary, #1a2332);
    border-radius: 16px;
    padding: 36px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.story-counter-value {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--secondary, #d4af37);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.story-counter-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* House SVG illustration */
.house-svg-wrap {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.house-svg {
    width: 200px;
    height: auto;
}

.house-svg .h-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
}

@keyframes house-draw {
    to { stroke-dashoffset: 0; }
}

.story-fade.story-visible .house-svg .h-roof    { animation: house-draw 1.5s ease-out 0s    forwards; }
.story-fade.story-visible .house-svg .h-chimney { animation: house-draw 0.8s ease-out 0.35s forwards; }
.story-fade.story-visible .house-svg .h-walls   { animation: house-draw 1.5s ease-out 0.5s  forwards; }
.story-fade.story-visible .house-svg .h-door    { animation: house-draw 0.7s ease-out 1.0s  forwards; }
.story-fade.story-visible .house-svg .h-win     { animation: house-draw 0.6s ease-out 1.1s  forwards; }

/* ============================================
   GRID / SPLIT / MAP VIEW PILLS
   ============================================ */
.view-pill {
    padding: 4px 12px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.view-pill:hover {
    color: #0f172a;
}

.view-pill.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

.featured-view-wrap {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.featured-view-wrap #featured-listings-container {
    flex: 1;
    min-width: 0;
}

.featured-map-wrap {
    flex-shrink: 0;
}

#featured-map {
    height: 520px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

/* Split: 50/50 with sticky map */
.fv-split #featured-listings-container {
    width: 50%;
    flex: none;
}

.fv-split .featured-map-wrap {
    width: 50%;
    position: sticky;
    top: 90px;
    height: fit-content;
}

/* Map: full-width map, hide grid */
.fv-map #featured-listings-container {
    display: none;
}

.fv-map .featured-map-wrap {
    width: 100%;
    flex: 1;
}

.fv-map #featured-map {
    height: 620px;
}

@media (max-width: 768px) {
    .featured-view-wrap {
        flex-direction: column;
    }
    .fv-split #featured-listings-container,
    .fv-split .featured-map-wrap {
        width: 100%;
        position: static;
    }
    #featured-map {
        height: 380px;
    }
}

.commercial-snapshot-bar {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1), 0 4px 16px rgba(124, 58, 237, 0.08);
}

.first-home-snapshot-bar {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 4px 16px rgba(59, 130, 246, 0.08);
}

.investor-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.investor-toggle-text {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.investor-toggle-track {
    position: relative;
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.2s ease;
    flex-shrink: 0;
    display: block;
}

.investor-toggle-track.on {
    background: #d4af37;
}

.investor-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: left 0.2s ease;
    display: block;
}

.investor-toggle-track.on .investor-toggle-thumb {
    left: 19px;
}

.card-investor-badge {
    position: absolute;
    bottom: 46px;
    left: 10px;
    z-index: 9;
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f6e7b2, #d4af37);
    color: #1f2937;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.35);
}

.card-save-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
    transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.card-save-btn:hover {
    background: #fff;
    color: #d4af37;
    transform: scale(1.1);
}

.card-save-btn.active {
    color: #d4af37;
    background: #fff;
}

.card-quick-view {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    z-index: 10;
    padding: 7px 18px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    cursor: pointer;
}

.property-card-modern:hover .card-quick-view {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.qv-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.6);
    z-index: 1060;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.qv-modal-active {
    opacity: 1;
    pointer-events: auto;
}

.qv-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    transform: scale(0.96);
    transition: transform 0.18s ease;
}

.qv-modal-active .qv-card {
    transform: scale(1);
}

.qv-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
}

.qv-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.qv-body {
    padding: 20px 22px 24px;
}

.qv-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.qv-address {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 6px;
}

.qv-features {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 10px;
}

.qv-remarks {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.qv-details-btn {
    display: block;
    text-align: center;
    padding: 10px 0;
    border-radius: 10px;
    background: #d4af37;
    color: #1f2937;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s ease;
}

.qv-details-btn:hover {
    background: #b8941f;
}

.why-invest-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-invest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.why-invest-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #fef9ec;
    color: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.why-invest-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.why-invest-text {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.65;
}

.property-gallery-thumbs {
    display: flex;
    gap: 10px;
    padding: 12px;
    overflow-x: auto;
    background: #fff;
}

.property-gallery-thumb {
    width: 80px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    flex: 0 0 auto;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.8;
}

.property-gallery-thumb.is-active {
    border-color: #d4af37;
    opacity: 1;
}

/* ===== Lightbox / Fullscreen Gallery ===== */
.sd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sd-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
.sd-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease;
}
.sd-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}
.sd-lightbox-img-wrap {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sd-lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
}
.sd-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease;
}
.sd-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.35);
}
.sd-lightbox-prev { left: 20px; }
.sd-lightbox-next { right: 20px; }
.sd-lightbox-counter {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-top: 16px;
    letter-spacing: 1px;
}
.sd-lightbox-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding: 8px;
    overflow-x: auto;
    max-width: 90vw;
}
.sd-lightbox-thumb {
    width: 64px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    flex: 0 0 auto;
    opacity: 0.5;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}
.sd-lightbox-thumb.is-active {
    border-color: #d4af37;
    opacity: 1;
}
@media (max-width: 640px) {
    .sd-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .sd-lightbox-prev { left: 8px; }
    .sd-lightbox-next { right: 8px; }
    .sd-lightbox-thumbs { display: none; }
}

@media (max-width: 768px) {
    .splide__track {
        aspect-ratio: 4 / 3;
        /* More vertical on mobile for better visibility */
        border-radius: 1rem;
    }
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Base fade-in state */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Skeleton Card Consistency */
.property-card-image.skeleton {
    height: 16rem;
    /* Match real card h-64 */
    width: 100%;
    background: #f1f5f9;
}

/* Fix mobile glitch - prevent horizontal scroll and flickering */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Touch targets for mobile navigation and favorite buttons */
button,
a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Specific fix for property card layout on mobile */
@media (max-width: 640px) {
    .property-card {
        margin-bottom: 1rem;
        border-radius: 12px;
    }
}

/* Optimization for Cloudflare */
img {
    content-visibility: auto;
}

/* ============================================
   AUTHENTICATION MODAL & FORMS STYLING
   ============================================ */

/* Modal Backdrop */
.auth-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal-backdrop);
    animation: fadeIn var(--transition-base);
}

/* Modal Container */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10050;
}

.auth-modal.hidden {
    display: none;
}

/* Modal Content */
.auth-modal-content {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    animation: slideUp var(--transition-base);
    position: relative;
}

@media (max-width: 640px) {
    .auth-modal-content {
        padding: 1.5rem;
        border-radius: 1rem;
    }
}

/* Modal Close Button */
.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #6b7280;
    cursor: pointer;
    transition: color var(--transition-fast);
    background: none;
    border: none;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-close:hover {
    color: #111827;
}

/* Modal Headings */
.auth-modal h2 {
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.auth-modal p {
    color: var(--neutral-dark);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--neutral-gray);
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background-color: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group input::placeholder {
    color: var(--neutral-gray);
}

.form-group small {
    display: block;
    color: var(--neutral-dark);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.form-group input.error,
.form-group select.error {
    border-color: var(--error);
}

.form-group .error-message {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group input.error~.error-message {
    display: block;
}

/* Form Buttons */
.auth-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.auth-button-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.auth-button-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.auth-button-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--neutral-gray);
}

.auth-button-secondary:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Tabs */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--neutral-gray);
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    font-weight: 600;
    color: var(--neutral-dark);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.auth-tab.active {
    color: var(--secondary);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--secondary);
}

/* Form Content Sections */
.auth-form-section {
    display: none;
}

.auth-form-section.active {
    display: block;
    animation: fadeIn var(--transition-base);
}

/* Navigation Auth Buttons */
#signup-btn,
#login-btn,
#logout-btn {
    background: var(--secondary);
    color: var(--primary);
    border-radius: var(--radius-lg);
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

#signup-btn:hover,
#login-btn:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
}

#logout-btn {
    background: var(--accent);
}

#logout-btn:hover {
    background: var(--accent-light);
}

#logout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Auth Status Messages */
.auth-message {
    padding: 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    animation: slideDown var(--transition-base);
}

.auth-message.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.auth-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border-left: 4px solid var(--error);
}

.auth-message.info {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--info);
    border-left: 4px solid var(--info);
}

/* Signup Prompt */
.auth-prompt {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    max-width: 350px;
    z-index: var(--z-modal);
    animation: slideUp var(--transition-base);
    border-left: 4px solid var(--secondary);
}

@media (max-width: 640px) {
    .auth-prompt {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

.auth-prompt h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.auth-prompt p {
    color: var(--neutral-dark);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.auth-prompt-buttons {
    display: flex;
    gap: 0.75rem;
}

.auth-prompt-button {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.auth-prompt-button.primary {
    background: var(--secondary);
    color: var(--primary);
}

.auth-prompt-button.primary:hover {
    background: var(--secondary-light);
}

.auth-prompt-button.secondary {
    background: var(--neutral-gray);
    color: var(--neutral-dark);
}

.auth-prompt-button.secondary:hover {
    background: var(--neutral-dark);
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Loading State */
.auth-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.auth-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--neutral-gray);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   NOTIFICATION TOAST STYLING
   ============================================ */

.notification-toast {
    position: fixed;
    bottom: -100px;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    z-index: var(--z-tooltip);
    transition: bottom var(--transition-base);
    border-left: 4px solid var(--secondary);
    animation: slideUp var(--transition-base);
}

.notification-toast.show {
    bottom: 2rem;
}

.notification-toast.in-toast {
    bottom: auto;
    top: 1rem;
    right: 1rem;
    animation: slideDown var(--transition-base);
}

.notification-toast.in-toast.show {
    top: 1rem;
}

.notification-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.notification-toast h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.notification-toast p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--neutral-dark);
}

.notification-toast small {
    color: var(--neutral-gray);
    font-size: 0.8rem;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--neutral-gray);
    padding: 0;
    line-height: 1;
    transition: color var(--transition-fast);
}

.notification-close:hover {
    color: var(--primary);
}

/* Notification toast variants */
.notification-toast.success {
    border-left-color: var(--success);
}

.notification-toast.error {
    border-left-color: var(--error);
}

.notification-toast.warning {
    border-left-color: var(--warning);
}

.notification-toast.info {
    border-left-color: var(--info);
}

/* WhatsApp CTA Toast - Price Drop Special */
.notification-toast.whatsapp-cta {
    background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%);
    border-left: 4px solid #22c55e;
    box-shadow: 0 10px 40px rgba(34, 197, 94, 0.2);
    max-width: 420px;
}

.notification-toast.whatsapp-cta .notification-content {
    background: transparent;
    padding: 0;
    border: none;
}

.notification-toast.whatsapp-cta h4 {
    color: #166534;
}

.notification-toast.whatsapp-cta p {
    color: #15803d;
}

/* Price Drop Badge */
.price-drop-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

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

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

/* Connection Status Toast */
.connection-toast {
    animation: slide-up 0.3s ease-out;
}

@keyframes slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

/* Mobile responsive */
@media (max-width: 640px) {
    .notification-toast {
        max-width: calc(100vw - 2rem);
        right: 1rem;
        left: 1rem;
    }

    .notification-toast.in-toast {
        right: 1rem;
        left: 1rem;
    }
}

/* ============================================
   FinTech Luxury: Mortgage Comparison Suite
   ============================================ */
:root {
    --success-green: #059669;
    --neutral-gold: #b8860b;
    --wealth-gold: #c9a227;
}

.comparison-glass-wrap {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.comparison-battle-cards {
    display: grid;
    gap: 1.5rem;
}

.comparison-card {
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.comparison-card-starter {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.08);
}

.comparison-card-wealth {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.08) 0%, rgba(255, 255, 255, 0.5) 100%);
    border-color: rgba(184, 134, 11, 0.25);
}

.comparison-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-badge-starter {
    background: #1e3a5f;
    color: #fff;
}

.comparison-badge-wealth {
    background: var(--neutral-gold);
    color: #fff;
}

.comparison-hr {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 0.5rem 0;
}

.comparison-highlight {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.comparison-highlight-cash {
    background: rgba(59, 130, 246, 0.08);
    margin: 0 -0.5rem;
    padding: 0.5rem 0.5rem;
    border-radius: 0.5rem;
}

.comparison-highlight-zero {
    background: rgba(5, 150, 105, 0.08);
    margin: 0 -0.5rem;
    padding: 0.5rem 0.5rem;
    border-radius: 0.5rem;
}

.comparison-highlight-savings {
    background: rgba(5, 150, 105, 0.12);
    margin: 0 -0.5rem;
    padding: 0.5rem 0.5rem;
    border-radius: 0.5rem;
}

.comparison-success-green {
    color: var(--success-green) !important;
}

.comparison-savings-summary {
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    text-align: center;
}

/* What-If rate slider (3% - 7%) */
.comparison-rate-slider-wrap {
    padding: 0.5rem 0;
}

.comparison-rate-slider {
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #10b981 0%, #d4af37 50%, #b91c1c 100%);
    border-radius: 0.5rem;
}

.comparison-rate-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #1a2332;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.comparison-rate-slider::-moz-range-thumb {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #1a2332;
    cursor: pointer;
    border: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Discovery Collection – Quick-link cards
   ============================================ */
.discovery-collection {
    padding: 3rem 0 4rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.discovery-collection .section-head {
    margin-bottom: 2rem;
}

.discovery-cards {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .discovery-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .discovery-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.discovery-card {
    display: block;
    background: #fff;
    border: 1.5px solid #eef2f7;
    border-radius: 1.25rem;
    padding: 1.5rem 1.35rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.28s ease, border-color 0.25s ease, transform 0.28s cubic-bezier(.25,.46,.45,.94);
    position: relative;
    overflow: hidden;
}

.discovery-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #b8941f);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.discovery-card:hover {
    border-color: rgba(212,175,55,0.5);
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(212,175,55,0.15);
    transform: translateY(-4px);
}

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

.discovery-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    font-size: 1.3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.discovery-card-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.discovery-card-desc {
    font-size: 0.925rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    line-height: 1.45;
}

.discovery-card-audience {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #b8941f;
    font-weight: 700;
}

/* ============================================
   INTERACTIVE MAP STYLES
   ============================================ */
/* Price marker on map */
.price-marker-container {
    background: transparent;
}

.price-marker {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    border: 2px solid white;
    transition: all 0.2s ease;
}

.price-marker:hover {
    transform: scale(1.1);
    background: var(--secondary);
}

.price-marker.power-of-sale {
    background: linear-gradient(135deg, #dc2626, #991b1b);
}

/* Cluster markers */
.marker-cluster {
    background: transparent;
}

.cluster-marker {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.cluster-marker.cluster-small {
    width: 36px;
    height: 36px;
    font-size: 12px;
}

.cluster-marker.cluster-medium {
    width: 44px;
    height: 44px;
    font-size: 14px;
}

.cluster-marker.cluster-large {
    width: 52px;
    height: 52px;
    font-size: 16px;
}

/* Map popup styling */
.map-popup {
    font-family: var(--font-body);
}

.leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 250px;
}

.leaflet-popup-tip {
    background: white;
}

/* Map container active state */
.map-container.active {
    display: block;
    min-height: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Heat toggle button */
#heat-toggle {
    cursor: pointer;
    transition: background-color 0.2s;
}

#heat-toggle:hover {
    background: #fef3c7 !important;
}

/* ============================================
   PROPERTY COMPARISON STYLES
   ============================================ */
#compare-btn-float {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(37, 99, 235, 0.6);
    }
}

#compare-modal table {
    border-collapse: collapse;
}

#compare-modal tbody tr:hover {
    background: #f8fafc;
}

/* ============================================
   CARD ACTION BUTTONS
   ============================================ */
.card-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-action-btn.btn-whatsapp {
    background: #25D366;
    color: white;
}

.card-action-btn.btn-whatsapp:hover {
    background: #128C7E;
    transform: scale(1.05);
}

.card-action-btn.btn-compare {
    background: #3b82f6;
    color: white;
}

.card-action-btn.btn-compare:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.card-action-btn.btn-tour {
    background: #8b5cf6;
    color: white;
}

.card-action-btn.btn-tour:hover {
    background: #7c3aed;
    transform: scale(1.05);
}

.card-action-btn.btn-sms {
    background: #0ea5e9;
    color: white;
}

.card-action-btn.btn-sms:hover {
    background: #0284c7;
    transform: scale(1.05);
}

.card-action-btn.btn-email {
    background: #f59e0b;
    color: white;
}

.card-action-btn.btn-email:hover {
    background: #d97706;
    transform: scale(1.05);
}

.card-share-row {
    margin: 8px 0 6px;
}

.card-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-share-btn:hover {
    background: #ecfeff;
    border-color: #22c55e;
    color: #14532d;
}

  .card-image-container {
      position: relative;
  }
  
  .card-photo-count {
      position: absolute;
      top: 12px;
      right: 12px;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 600;
      background: rgba(15, 23, 42, 0.7);
      color: #fff;
      z-index: 2;
      pointer-events: none;
  }

.card-image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.card-image-container:hover .card-image-nav {
    opacity: 1;
}

.card-image-prev {
    left: 10px;
}

.card-image-next {
    right: 10px;
}

/* ============================================
   NEIGHBORHOOD SCORES STYLING
   ============================================ */
#schools-panel .bg-gradient-to-br {
    transition: transform 0.2s ease;
}

#schools-panel .bg-gradient-to-br:hover {
    transform: translateY(-2px);
}

/* ============================================
   OPEN HOUSES STYLING
   ============================================ */
#open-houses-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ============================================
   MOBILE BOTTOM NAVIGATION
   ============================================ */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 9998;
    display: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    /* Add padding to body to account for bottom nav */
    body {
        padding-bottom: 70px;
    }

    /* Move WhatsApp button up */
.whatsapp-float {
        bottom: 80px !important;
    }
}

.vip-float-btn {
    position: fixed;
    right: 20px;
    bottom: 96px;
    z-index: 9990;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid #d4af37;
    background: linear-gradient(135deg, #f6e7b2, #d4af37);
    color: #1f2937;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vip-float-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
}

.no-scroll {
    overflow: hidden;
}

.vip-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.6);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.vip-modal-active {
    opacity: 1;
    pointer-events: auto;
}

.vip-modal-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    padding: 28px;
    transform: scale(0.96);
    transition: transform 0.2s ease;
}

.vip-modal-active .vip-modal-card {
    transform: scale(1);
}

.vip-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
}

.vip-modal-divider {
    width: 48px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f6e7b2, #d4af37);
    margin: 8px 0 12px;
}

.vip-modal-benefits {
    list-style: disc;
    padding-left: 18px;
    color: #4b5563;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.vip-modal-trust {
    font-size: 11px;
    color: #6b7280;
    text-align: center;
    margin-top: 8px;
}

.mobile-bottom-nav a,
.mobile-bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 12px;
    color: #64748b;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.2s;
    min-width: auto;
    min-height: auto;
}

.mobile-bottom-nav a:hover,
.mobile-bottom-nav button:hover,
.mobile-bottom-nav a.active,
.mobile-bottom-nav button.active {
    color: var(--secondary);
}

.mobile-bottom-nav i {
    font-size: 20px;
}

/* ============================================
   SOLD PROPERTY STYLES
   ============================================ */
.sold-property .card-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

/* ============================================
   VIRTUAL TOUR MODAL
   ============================================ */
#virtual-tour-modal {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ============================================
   NOTIFICATION TOAST
   ============================================ */
.notification-toast {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */
@media (max-width: 640px) {
    .card-actions {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .card-actions>div {
        justify-content: center;
    }

    /* Simplify card actions on mobile */
    .card-action-btn.btn-compare,
    .card-action-btn.btn-tour {
        display: none;
    }

    /* Make map fullscreen on mobile */
    .map-container.active {
        position: fixed;
        inset: 0;
        z-index: 9990;
        border-radius: 0;
        min-height: 100vh;
    }

    #leaflet-map {
        height: 100vh !important;
        border-radius: 0 !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

    .mobile-bottom-nav,
    .whatsapp-float,
    #compare-btn-float,
    .nav-bar {
        display: none !important;
    }

    body {
        padding: 0 !important;
    }

    .property-card-modern {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible styles for keyboard navigation */
.property-card-modern:focus-visible,
.card-action-btn:focus-visible,
.card-favorite:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .price-marker {
        border-width: 3px;
    }

    .cluster-marker {
        border-width: 4px;
    }
}

/* ============================================
   LUXURY UI POLISH — SATHIDEALS v4
   ============================================ */

/* Primary CTA — gold, dominant */
.btn-primary-gold,
.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: #0f172a;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(212,175,55,0.4);
    transition: all 0.22s ease;
}
.btn-primary-gold:hover,
.cta-primary:hover {
    background: linear-gradient(135deg, #e8c547 0%, #c9a52a 100%);
    box-shadow: 0 6px 24px rgba(212,175,55,0.55);
    transform: translateY(-2px);
    color: #0f172a;
    text-decoration: none;
}

/* Secondary CTA — dark, subtle */
.btn-secondary-dark,
.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: transparent;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 10px;
    border: 2px solid #0f172a;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: all 0.22s ease;
}
.btn-secondary-dark:hover,
.cta-secondary:hover {
    background: #0f172a;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Hero category buttons — refined */
.hero-category-btn {
    position: relative;
    overflow: hidden;
}
.hero-category-btn.active {
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hero-category-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.2s ease;
}
.hero-category-btn.active::after {
    width: 60%;
}

/* Property card price — gold accent on hover */
.property-card-modern:hover .card-price {
    color: #b8941f;
}

/* Card image shine effect on hover */
.property-card-modern .card-image-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    z-index: 2;
    pointer-events: none;
}
.property-card-modern:hover .card-image-container::before {
    left: 120%;
}

/* Skeleton loader pulse */
@keyframes skeletonPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}
.skeleton-card {
    border-radius: 18px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    animation: skeletonPulse 1.6s ease-in-out infinite;
}
.skeleton-img {
    aspect-ratio: 4/3;
    background: linear-gradient(90deg, #e8ecf1 0%, #f1f5f9 50%, #e8ecf1 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.skeleton-line {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e8ecf1 0%, #f1f5f9 50%, #e8ecf1 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin: 10px 16px;
}
.skeleton-line.short { width: 55%; }
.skeleton-line.long { width: 85%; }
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Feature row icons — consistent sizing */
.property-card-modern .card-features span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8125rem;
    color: #475569;
}
.property-card-modern .card-features i {
    color: #94a3b8;
    font-size: 0.8125rem;
}

/* Favourite heart — premium feel */
.property-card-modern .card-favorite {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.property-card-modern .card-favorite:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

/* Section headings — luxury serif accent */
.section-title-gold span {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Market stat cards */
.stat-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.stat-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

/* ============================================
   LUXURY ENHANCEMENTS — Phase 1 Stabilization
   ============================================ */

/* Hero trust badges */
.hero-trust-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.hero-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
}
.hero-trust-badge i { color: #d4af37; }

/* Discovery cards grid — larger on xl */
@media (min-width: 1280px) {
    .discovery-cards {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Auth success toast */
@keyframes sdToastSlide {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}
.sd-toast {
    animation: sdToastSlide 0.3s ease forwards;
}

/* Card share button — luxury branding */
.property-card-modern .card-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #25d366;
    background: rgba(37,211,102,0.08);
    border: 1px solid rgba(37,211,102,0.2);
    border-radius: 8px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.property-card-modern .card-share-btn:hover {
    background: rgba(37,211,102,0.15);
    color: #1da851;
}

/* Card additional action buttons */
.property-card-modern .btn-compare,
.property-card-modern .btn-tour,
.property-card-modern .btn-sms,
.property-card-modern .btn-email {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    border-radius: 6px;
    padding: 6px 9px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.property-card-modern .btn-compare:hover { background: #e2e8f0; color: #1e293b; }
.property-card-modern .btn-tour:hover    { background: #ede9fe; color: #7c3aed; border-color: #c4b5fd; }
.property-card-modern .btn-sms:hover     { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.property-card-modern .btn-email:hover   { background: #fef3c7; color: #92400e; border-color: #fde68a; }

/* Results count area */
#results-count {
    font-weight: 500;
    color: #475569;
}

/* Listings page header */
.hero-listings {
    background: linear-gradient(155deg, #0c1222 0%, #0f172a 30%, #1a2332 65%, #0f172a 100%);
    padding: 2.5rem 0 2rem;
}
.hero-listings h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
}
.hero-listings .hero-listings-sub {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

/* Sort select arrow styling */
#sort-by {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px !important;
}

/* Clear filters button */
#clear-filters {
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.8125rem;
    background: #fff;
    transition: all 0.2s;
}
#clear-filters:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #334155;
}

/* Save search button */
#save-search-btn {
    border: 1px solid rgba(212,175,55,0.4);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.8125rem;
    background: rgba(212,175,55,0.05);
    transition: all 0.2s;
}
#save-search-btn:hover {
    background: rgba(212,175,55,0.1);
    border-color: #d4af37;
}

/* Mobile-friendly card image nav */
.card-image-nav {
    opacity: 0;
    transition: opacity 0.2s;
}
.property-card-modern:hover .card-image-nav {
    opacity: 1;
}

/* Photo count badge */
.card-photo-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* ============================================
   SATHIDEALS REVAMP — Editorial Luxury Layer
   Appended last so it overrides earlier rules.
   Toronto-brokerage grade.
   ============================================ */

:root {
    --sd-navy: #1a2332;
    --sd-navy-deep: #0f1622;
    --sd-navy-soft: #243049;
    --sd-gold: #d4af37;
    --sd-gold-soft: #e6c97a;
    --sd-cream: #f4efe7;
    --sd-ink: #0c1220;
    --sd-ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background-color: var(--sd-cream);
    color: #1f2937;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.75;
}

h1, h2, h3, h4 { color: var(--sd-navy); letter-spacing: -0.02em; }
h1 { font-size: clamp(3rem, 7vw, 6rem); font-weight: 700; line-height: 1.02; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 600; line-height: 1.08; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; line-height: 1.25; font-family: var(--font-body); letter-spacing: -0.01em; }

.sd-eyebrow,
[data-sd="eyebrow"] {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--sd-gold);
    margin-bottom: 0.85rem;
}

section h2:not(.showcase-heading):not([class*="text-white"])::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 32px;
    background: var(--sd-gold);
    vertical-align: middle;
    margin-right: 12px;
    transform: translateY(-4px);
    border-radius: 2px;
}

/* NAV floating pill, frosts on scroll */
.nav-bar, #housesigma-nav, .sd-nav {
    background: rgba(26, 35, 50, 0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: background 0.35s var(--sd-ease-spring),
                backdrop-filter 0.35s var(--sd-ease-spring),
                box-shadow 0.35s var(--sd-ease-spring),
                border-color 0.35s var(--sd-ease-spring);
}
.nav-bar[data-scrolled="true"],
#housesigma-nav[data-scrolled="true"],
.sd-nav[data-scrolled="true"],
body.sd-scrolled .nav-bar,
body.sd-scrolled #housesigma-nav,
body.sd-scrolled .sd-nav {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(26,35,50,0.08);
    box-shadow: 0 10px 40px -20px rgba(15,22,34,0.35);
}
.nav-brand-text { color: #fff; transition: color 0.3s var(--sd-ease-spring); }
body.sd-scrolled .nav-brand-text { color: var(--sd-navy); }
.nav-brand-dot { color: var(--sd-gold); }

.nav-bar a:not(.btn):not([class*="bg-"]):not(.nav-brand),
#housesigma-nav a:not(.btn):not([class*="bg-"]):not(.nav-brand) {
    position: relative;
    color: rgba(255,255,255,0.85);
    transition: color 0.2s ease;
}
body.sd-scrolled .nav-bar a:not(.btn):not([class*="bg-"]):not(.nav-brand),
body.sd-scrolled #housesigma-nav a:not(.btn):not([class*="bg-"]):not(.nav-brand) {
    color: #334155;
}
.nav-bar a:not(.btn):not([class*="bg-"]):not(.nav-brand)::after,
#housesigma-nav a:not(.btn):not([class*="bg-"]):not(.nav-brand)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 1px;
    background: var(--sd-gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s var(--sd-ease-spring);
}
.nav-bar a:not(.btn):not([class*="bg-"]):not(.nav-brand):hover,
#housesigma-nav a:not(.btn):not([class*="bg-"]):not(.nav-brand):hover { color: var(--sd-gold); }
.nav-bar a:not(.btn):not([class*="bg-"]):not(.nav-brand):hover::after,
#housesigma-nav a:not(.btn):not([class*="bg-"]):not(.nav-brand):hover::after { transform: scaleX(1); }

/* HERO cinematic */
.hero-modern {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 20% 20%, #1e2a44 0%, transparent 55%),
        radial-gradient(ellipse at 80% 80%, #0c2330 0%, transparent 55%),
        linear-gradient(180deg, #0e1626 0%, #1a2332 60%, #0b1220 100%);
    padding-top: 7rem;
    padding-bottom: 4rem;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}
.hero-modern-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}
.hero-modern-copy {
    max-width: 44rem;
}
.hero-auth-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.82);
    font-size: 0.82rem;
    font-weight: 600;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.hero-cinema-stage {
    position: relative;
    min-height: 420px;
}
.hero-cinema-frame {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border-radius: 34px;
    border: 1px solid rgba(255,255,255,0.14);
    background:
        linear-gradient(180deg, rgba(8,15,28,0.2), rgba(8,15,28,0.78)),
        url('/resources/hero-bg.jpg') center center / cover no-repeat;
    box-shadow: 0 30px 80px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.06);
    transform: translateZ(0);
}
.hero-cinema-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(212,175,55,0.32), transparent 34%),
        radial-gradient(circle at 80% 30%, rgba(96,165,250,0.26), transparent 34%),
        linear-gradient(135deg, rgba(0,0,0,0.1), rgba(0,0,0,0.55));
    mix-blend-mode: screen;
    opacity: 0.85;
    animation: hero-cinema-drift 18s ease-in-out infinite alternate;
}
.hero-cinema-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(circle at center, #000 28%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at center, #000 28%, transparent 75%);
    opacity: 0.42;
}
.hero-cinema-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    filter: saturate(1.08) contrast(1.06) brightness(0.9);
    transform: scale(1.05);
    animation: hero-cinema-zoom 18s ease-in-out infinite alternate;
}
.hero-cinema-overlay,
.hero-cinema-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-cinema-overlay {
    background:
        linear-gradient(180deg, rgba(13, 19, 31, 0.05), rgba(13, 19, 31, 0.52)),
        linear-gradient(90deg, rgba(212,175,55,0.05), transparent 28%, transparent 72%, rgba(96,165,250,0.06));
}
.hero-cinema-vignette {
    background: radial-gradient(circle at center, transparent 45%, rgba(0,0,0,0.38) 100%);
}
.hero-cinema-badge,
.hero-cinema-caption,
.hero-cinema-strip,
.hero-cinema-stats {
    position: absolute;
    z-index: 2;
}
.hero-cinema-badge {
    top: 1.1rem;
    left: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(7, 12, 22, 0.58);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
}
.hero-cinema-badge-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52,211,153,0.6);
    animation: hero-cinema-pulse 1.8s ease-out infinite;
}
.hero-cinema-caption {
    bottom: 6.8rem;
    left: 1.1rem;
    right: 1.1rem;
    color: rgba(255,255,255,0.86);
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    line-height: 1.08;
    font-family: var(--font-display);
    text-shadow: 0 10px 30px rgba(0,0,0,0.38);
}
.hero-cinema-stats {
    left: 1.1rem;
    right: 1.1rem;
    bottom: 3.1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}
.hero-cinema-stat {
    padding: 0.9rem 0.85rem;
    border-radius: 22px;
    background: rgba(10, 16, 28, 0.62);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(14px);
}
.hero-cinema-stat strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}
.hero-cinema-stat span {
    display: block;
    color: rgba(255,255,255,0.72);
    font-size: 0.76rem;
    line-height: 1.3;
}
.hero-cinema-strip {
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.hero-cinema-strip span {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(14px);
}
@keyframes hero-cinema-drift {
    0% { transform: translate3d(0,0,0) scale(1); opacity: 0.78; }
    100% { transform: translate3d(2%, -1%, 0) scale(1.06); opacity: 0.95; }
}
@keyframes hero-cinema-zoom {
    0% { transform: scale(1.03); }
    100% { transform: scale(1.12); }
}
@keyframes hero-cinema-pulse {
    0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.55); }
    70% { box-shadow: 0 0 0 14px rgba(52,211,153,0); }
    100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.hero-modern::before {
    content: "";
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(circle at 18% 30%, rgba(96,165,250,0.22), transparent 45%),
        radial-gradient(circle at 82% 70%, rgba(20,184,166,0.18), transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(79,70,229,0.25), transparent 55%);
    filter: blur(60px);
    opacity: 0.9;
    animation: sd-mesh 22s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}
.hero-modern::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    z-index: 0;
    pointer-events: none;
}
@keyframes sd-mesh {
    0%   { transform: translate3d(0,0,0) scale(1); }
    50%  { transform: translate3d(-3%, 2%, 0) scale(1.08); }
    100% { transform: translate3d(2%, -2%, 0) scale(1.04); }
}

.hero-modern h1.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.75rem, 6.5vw, 5.75rem);
    line-height: 1.02;
    color: #fff;
    letter-spacing: -0.035em;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}
.hero-modern h1.hero-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.6rem;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--sd-gold), var(--sd-gold-soft));
    border-radius: 2px;
    animation: sd-gold-draw 1.4s var(--sd-ease-spring) 0.4s forwards;
    box-shadow: 0 0 24px rgba(212,175,55,0.55);
}
@keyframes sd-gold-draw { to { width: 140px; } }

.hero-modern .hero-sub,
.hero-modern .hero-subtitle {
    color: rgba(255,255,255,0.78);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    font-weight: 400;
    max-width: 38rem;
    margin-bottom: 1.75rem;
}

/* Frosted glass search bar */
.hero-modern .search-bar-modern {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6),
                inset 0 1px 0 rgba(255,255,255,0.08);
    overflow: hidden;
    max-width: 980px;
}
.hero-modern .search-bar-modern .search-field {
    background: rgba(255,255,255,0.96);
    border-right: 1px solid rgba(26,35,50,0.08);
    color: var(--sd-navy);
    padding: 18px 20px;
    font-weight: 500;
}
.hero-modern .search-bar-modern .search-field:focus {
    outline: none;
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--sd-gold);
}
.hero-modern .search-bar-modern .btn-search {
    background: linear-gradient(135deg, var(--sd-gold) 0%, #b88f20 100%);
    color: var(--sd-navy);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 13px;
    padding: 18px 34px;
    border: none;
    box-shadow: 0 8px 24px rgba(212,175,55,0.35);
    transition: transform 0.25s var(--sd-ease-spring), box-shadow 0.25s var(--sd-ease-spring), background 0.25s ease;
}
.hero-modern .search-bar-modern .btn-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(212,175,55,0.5);
    background: linear-gradient(135deg, #e7c252 0%, #c9a22a 100%);
}

@media (min-width: 1024px) {
    .hero-modern-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
        gap: 2.75rem;
    }
    .hero-modern-copy {
        max-width: none;
    }
}

@media (max-width: 1023px) {
    .hero-cinema-stage {
        min-height: 360px;
    }
    .hero-cinema-frame {
        min-height: 360px;
    }
}

@media (max-width: 640px) {
    .hero-modern-layout {
        gap: 1.5rem;
    }
    .hero-cinema-stage {
        min-height: 300px;
    }
    .hero-cinema-frame {
        min-height: 300px;
        border-radius: 28px;
    }
    .hero-cinema-caption {
        bottom: 5.7rem;
        font-size: 1.35rem;
    }
    .hero-cinema-stats {
        grid-template-columns: 1fr;
        bottom: 2.8rem;
    }
    .hero-cinema-strip {
        bottom: 0.85rem;
    }
}

/* Hero trust bar — slim gold-bordered pill row */
.hero-trust-bar {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin-top: 1.25rem;
    padding: 0.55rem 1.25rem;
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 999px;
    background: rgba(26,35,50,0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.hero-trust-bar > span {
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0 0.95rem;
    border-right: 1px solid rgba(212,175,55,0.18);
    white-space: nowrap;
}
.hero-trust-bar > span:last-child { border-right: none; }
.hero-trust-bar > span i { color: var(--sd-gold); margin-right: 0.35rem; }

@media (max-width: 640px) {
    .hero-trust-bar { flex-direction: column; align-items: flex-start; border-radius: 18px; padding: 0.75rem 1rem; }
    .hero-trust-bar > span { border-right: none; padding: 0.2rem 0; border-bottom: 1px solid rgba(212,175,55,0.12); width: 100%; }
    .hero-trust-bar > span:last-child { border-bottom: none; }
}

/* Full-width navy stats band */
.sd-stats-band {
    background: linear-gradient(180deg, var(--sd-navy-deep) 0%, var(--sd-navy) 100%);
    padding: 3.5rem 1.5rem;
    position: relative;
    overflow: hidden;
}
.sd-stats-band::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sd-gold), transparent);
    opacity: 0.5;
}
.sd-stats-band__inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.sd-stat {
    text-align: center;
    padding: 1rem 1.25rem;
    border-right: 1px solid rgba(212,175,55,0.15);
}
.sd-stat:last-child { border-right: none; }
.sd-stat .stat-number {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: var(--sd-gold);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.sd-stat .stat-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
}
@media (max-width: 768px) {
    .sd-stats-band__inner { grid-template-columns: repeat(2, 1fr); }
    .sd-stat { border-right: none; border-bottom: 1px solid rgba(212,175,55,0.15); padding: 1.25rem 0.75rem; }
    .sd-stat:nth-child(odd) { border-right: 1px solid rgba(212,175,55,0.15); }
    .sd-stat:nth-last-child(-n+2) { border-bottom: none; }
}

/* Property cards */
.property-card,
.listing-card,
.re-listing-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    outline: 1px solid transparent;
    outline-offset: -1px;
    box-shadow: 0 1px 3px rgba(15,22,34,0.06), 0 8px 24px -12px rgba(15,22,34,0.12);
    transition: outline-color 0.4s var(--sd-ease-spring),
                box-shadow 0.4s var(--sd-ease-spring),
                transform 0.4s var(--sd-ease-spring);
    position: relative;
}
.property-card:hover,
.listing-card:hover,
.re-listing-card:hover {
    outline-color: var(--sd-gold);
    box-shadow: 0 30px 60px -20px rgba(15,22,34,0.25), 0 10px 20px -10px rgba(212,175,55,0.15);
    transform: translateY(-2px);
}
.property-card img,
.listing-card img,
.re-listing-card img {
    transition: transform 0.7s var(--sd-ease-spring);
}
.property-card:hover img,
.listing-card:hover img,
.re-listing-card:hover img {
    transform: scale(1.05);
}
.property-card .price-badge,
.listing-card .price-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(26,35,50,0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--sd-gold);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(212,175,55,0.3);
    z-index: 2;
}

/* Buttons & micro-interactions */
.sd-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.25s var(--sd-ease-spring), box-shadow 0.25s var(--sd-ease-spring), background 0.2s ease, color 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.sd-btn-gold {
    background: linear-gradient(135deg, var(--sd-gold), #b88f20);
    color: var(--sd-navy);
    box-shadow: 0 6px 20px rgba(212,175,55,0.3);
}
.sd-btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(212,175,55,0.45);
    color: var(--sd-navy);
}
.sd-btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}
.sd-btn-ghost:hover {
    transform: translateY(-1px);
    border-color: var(--sd-gold);
    color: var(--sd-gold);
}

/* Global link + input polish */
body a:not(.btn):not([class*="bg-"]):not(.nav-brand):hover { color: var(--sd-gold); }

input:not([type="submit"]):focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--sd-gold);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.25);
}

/* Dark CTA panel */
.sd-cta-panel {
    background: var(--sd-navy-deep);
    padding: clamp(4rem, 10vw, 8rem) 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.sd-cta-panel::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(212,175,55,0.08), transparent 60%);
    pointer-events: none;
}
.sd-cta-panel .sd-cta-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(2rem, 4.5vw, 3.75rem);
    color: var(--sd-gold);
    max-width: 900px;
    margin: 0 auto 2.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    position: relative;
}
.sd-cta-panel .sd-cta-quote::before {
    content: "\201C";
    font-size: 5rem;
    color: rgba(212,175,55,0.25);
    position: absolute;
    top: -2rem;
    left: -1rem;
}
.sd-cta-panel .sd-btn-white {
    background: #fff;
    color: var(--sd-navy);
    padding: 1rem 2.25rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.25s var(--sd-ease-spring), box-shadow 0.25s var(--sd-ease-spring);
}
.sd-cta-panel .sd-btn-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(255,255,255,0.15);
    color: var(--sd-navy);
}

/* Footer */
footer.sd-footer,
.sd-footer {
    background: var(--sd-navy-deep);
    color: rgba(255,255,255,0.7);
    border-top: 1px solid var(--sd-gold);
    padding: 4rem 1.5rem 2rem;
}
.sd-footer__grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sd-footer h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1.25rem;
    font-weight: 700;
}
.sd-footer a {
    color: rgba(255,255,255,0.65);
    display: block;
    padding: 0.35rem 0;
    font-size: 0.92rem;
}
.sd-footer a:hover { color: var(--sd-gold); }
.sd-footer__bottom {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.75rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}
.sd-footer__social { display: flex; gap: 1rem; }
.sd-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.6);
    padding: 0;
    transition: color 0.2s, border-color 0.2s, transform 0.2s var(--sd-ease-spring);
}
.sd-footer__social a:hover { color: var(--sd-gold); border-color: var(--sd-gold); transform: translateY(-1px); }
@media (max-width: 768px) {
    .sd-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .sd-footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

.sfx-fade-up {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity 0.6s var(--sd-ease-spring), transform 0.6s var(--sd-ease-spring);
}
.sfx-fade-up.sfx-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .hero-modern::before { animation: none; }
    .hero-modern h1.hero-title::after { animation: none; width: 140px; }
}
