/* 
 * Premium Real Estate Platform Styles (Upgraded)
 * Font: Outfit (Headings), Inter (Body)
 * Aesthetic: High-end luxury, glassmorphism, brochure-quality
 */

:root {
    /* Color Palette */
    --primary: #0f766e; /* Deep sophisticated Teal */
    --primary-hover: #0d9488;
    --primary-glow: rgba(15, 118, 110, 0.4);
    
    --secondary: #0f172a; /* Slate 900 */
    --super-dark: #020617; /* Slate 950 */
    --accent: #ca8a04; /* Premium Gold/Sand */
    
    --text-main: #334155; /* Slate 700 */
    --text-light: #64748b; /* Slate 500 */
    --text-muted: #94a3b8; /* Slate 400 */
    --heading: #0f172a;
    
    --bg-white: #ffffff;
    --bg-light: #f8fafc; /* Slate 50 */
    --bg-grey: #f1f5f9;  /* Slate 100 */
    --bg-premium: #fdfdfc;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --max-w: 1280px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 9999px;
    
    /* Shadows & Glass */
    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px -4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 25px 40px -5px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px var(--primary-glow);
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-premium);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
.full-width { width: 100%; }

/* Utilities */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.max-w-md { max-width: 800px; margin: 0 auto; }
.max-w-lg { max-width: 1000px; margin: 0 auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-white, .text-white h2, .text-white p, .text-white strong { color: #ffffff !important; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.lead-text { font-size: 1.125rem; color: var(--text-light); }
.relative-z { position: relative; z-index: 2; }
.opacity-90 { opacity: 0.9; }

.bg-light-premium { background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); border-top: 1px solid var(--bg-grey); border-bottom: 1px solid var(--bg-grey); }
.section-padding { padding: 6rem 0; }
.pb-large { padding-bottom: 7rem; }
.mb-small { margin-bottom: 1rem; }
.mb-medium { margin-bottom: 2rem; }
.mb-large { margin-bottom: 3rem; }
.mt-small { margin-top: 1rem; }
.mt-medium { margin-top: 2rem; }

/* =========================================
   BUTTONS (MICRO-INTERACTIONS)
   ========================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.875rem 1.75rem; border-radius: var(--radius-pill);
    font-weight: 500; font-size: 1rem; cursor: pointer;
    border: 2px solid transparent; transition: var(--transition);
    position: relative; overflow: hidden;
}
.btn:active { transform: scale(0.96); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-large { padding: 1rem 3rem; font-size: 1.125rem; }

.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-glow:hover { box-shadow: var(--shadow-glow); }

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px); box-shadow: var(--shadow-md);
}

.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background-color: var(--primary); color: white; box-shadow: var(--shadow-glow); }

.btn-outline-light { border-color: rgba(255,255,255,0.5); color: white; background: transparent; }
.btn-outline-light:hover { border-color: white; background: white; color: var(--secondary); transform: translateY(-2px); }

/* =========================================
   HEADER
   ========================================= */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(253, 253, 252, 0.85); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding: 1rem 0; transition: var(--transition);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: var(--super-dark); position: relative; z-index: 105; }
.brand-icon { color: var(--primary); }

.hamburger-menu {
    display: none; background: none; border: none; font-size: 1.75rem; color: var(--heading);
    cursor: pointer; z-index: 105; position: relative; padding: 0.25rem; margin-right: -0.25rem; transition: var(--transition);
}
.menu-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(4px); z-index: 99;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.menu-overlay.active { opacity: 1; visibility: visible; }

.main-nav { display: none; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { 
    .main-nav { display: flex; } 
    .hamburger-menu { display: none !important; }
    .mobile-only-btn { display: none; }
}
.main-nav a { color: var(--text-main); font-weight: 500; font-size: 0.95rem; position: relative; }
.main-nav a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: var(--transition);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }

/* Mobile Menu Styles */
@media (max-width: 1023px) {
    .header-actions { display: none; }
    .hamburger-menu { display: block; }
    .main-nav {
        position: fixed; top: 0; left: -100%; width: 100%; height: 100vh; max-height: 100vh;
        background: var(--bg-premium); display: flex; flex-direction: column; gap: 1.75rem;
        padding: 6rem 2rem 80px; box-shadow: none;
        transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1); z-index: 100;
        overflow-y: auto; align-items: stretch;
    }
    .main-nav.active { left: 0; }
    .main-nav a { font-size: 1.25rem; width: 100%; padding: 0.5rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
    .main-nav a::after { display: none; }
    .mobile-only-btn { margin-top: auto; padding-top: 2rem; }
}

/* =========================================
   1. HERO SECTION (BROCHURE/PARALLAX)
   ========================================= */
.hero {
    position: relative; min-height: 100svh; height: auto;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden; padding-top: 80px; padding-bottom: 20px;
}
img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 120%; /* Extra height for parallax */
    background-size: cover; background-position: center;
    z-index: -2;
}
.parallax { background-attachment: fixed; }
.hero-gradient-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0.8) 100%);
    z-index: -1;
}

.hero-content { max-width: 900px; z-index: 10; color: white; }
.hero .badge {
    display: inline-block; background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.25rem; border-radius: 30px; font-size: 0.875rem;
    font-weight: 600; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1.5px;
    box-shadow: var(--shadow-md);
}
.hero-headline { color: white; margin-bottom: 1.5rem; text-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.blur-bg {
    background: rgba(0, 0, 0, 0.2); backdrop-filter: blur(4px);
    padding: 0.5rem 1rem; border-radius: var(--radius);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.hero-subheadline {
    color: rgba(255, 255, 255, 0.95); font-size: 1.25rem; font-weight: 400;
    margin-bottom: 2.5rem; max-width: 650px; margin-left: auto; margin-right: auto;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; }

/* Quick Filters (Overlapping) */
.quick-filters-wrapper { position: absolute; bottom: -40px; left: 0; width: 100%; z-index: 20; }
.quick-filters {
    background: var(--glass-bg); backdrop-filter: blur(20px);
    padding: 1.5rem 2rem; border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg); border: var(--glass-border);
    display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between;
    max-width: 900px; margin: 0 auto;
}

/* =========================================
   CUSTOM DROPDOWN (CRITICAL UPGRADE)
   ========================================= */
/* Replaces default select with styled pill/card components */
.custom-select-wrapper { display: flex; flex-direction: column; flex: 1; min-width: 200px; position: relative; }
.custom-select-wrapper label { margin-bottom: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }

.custom-select { position: relative; width: 100%; outline: none; }
.select-trigger {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.875rem 1.25rem; background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.05); border-radius: var(--radius-pill);
    cursor: pointer; font-weight: 500; font-size: 1rem; color: #1F2937;
    box-shadow: var(--shadow-soft); transition: var(--transition);
}
.plain-trigger { border-radius: var(--radius); background: white; border: 1px solid var(--bg-grey); padding: 1rem 1.25rem; }
.select-trigger:hover, .custom-select:focus .select-trigger {
    background: white; border-color: rgba(15, 118, 110, 0.3); box-shadow: var(--shadow-md);
}

.select-icon { width: 18px; height: 18px; color: var(--primary); margin-right: 0.75rem; flex-shrink: 0; }
.selected-value { flex: 1; text-align: left; }
.selected-value.text-muted { color: #6B7280; }
.chevron { width: 16px; height: 16px; color: var(--text-muted); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); flex-shrink: 0; }
.custom-select.open .chevron { transform: rotate(180deg); }

/* Dropdown Options */
.select-dropdown {
    position: absolute; top: calc(100% + 10px); left: 0; width: 100%;
    background: #ffffff;
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.05);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(0.98);
    transition: var(--transition); z-index: 9999;
    max-height: 250px; overflow-y: auto; padding: 0.5rem;
}
.custom-select.open .select-dropdown { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.custom-select.drop-up .select-dropdown { top: auto; bottom: calc(100% + 10px); transform: translateY(10px) scale(0.98); }
.custom-select.open.drop-up .select-dropdown { transform: translateY(0) scale(1); }

.select-option {
    padding: 0.75rem 1rem; margin-bottom: 0.25rem; color: #111827;
    border-radius: 8px; cursor: pointer; font-size: 0.95rem; font-weight: 500;
    transition: var(--transition); display: flex; align-items: center;
}
.select-option:last-child { margin-bottom: 0; }
.select-option:hover { background: var(--bg-light); color: var(--primary); transform: translateX(4px); }
.select-option.selected { background: rgba(15, 118, 110, 0.08); color: var(--primary); font-weight: 600; }

/* =========================================
   2. SEARCH / FILTER BAR
   ========================================= */
.search-bar-section { padding: 4rem 0 2.5rem 0; }
.glass-panel {
    background: var(--glass-bg); backdrop-filter: blur(15px);
    border: 1px solid #f1f5f9; border-radius: var(--radius-xl); padding: 2.5rem;
    box-shadow: var(--shadow-md);
}
.advanced-search-form .form-grid {
    display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: end;
}
@media (min-width: 768px) { .advanced-search-form .form-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .advanced-search-form .form-grid { grid-template-columns: repeat(5, 1fr); } }

.input-col { display: flex; flex-direction: column; }
.custom-input {
    padding: 1rem 1.25rem; font-size: 1rem; border-radius: var(--radius);
    border: 1px solid var(--bg-grey); background: white;
    font-family: var(--font-body); font-weight: 500; transition: var(--transition); outline: none;
    box-shadow: var(--shadow-soft);
}
.custom-input:focus { border-color: rgba(15, 118, 110, 0.4); box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1); }
.glass-input { background: rgba(255,255,255,0.7); }

/* =========================================
   3. FEATURE CARDS (BROCHURE QUALITY)
   ========================================= */
.packages-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .packages-grid { grid-template-columns: repeat(3, 1fr); } }

.glass-card {
    background: white; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-md); transition: var(--transition-slow); border: 1px solid var(--bg-grey);
    display: flex; flex-direction: column; position: relative;
}
.glass-card:hover { transform: translateY(-12px); box-shadow: var(--shadow-lg); border-color: rgba(0,0,0,0.08); }

.card-image { position: relative; height: 260px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.glass-card:hover .card-image img { transform: scale(1.08); }
.card-glass-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.4) 100%);
    opacity: 0.6; transition: var(--transition); pointer-events: none;
}
.glass-card:hover .card-glass-overlay { opacity: 0.3; }

.gradient-pill { background: linear-gradient(135deg, var(--accent), #eab308); color: white; border-radius: var(--radius-pill); padding: 0.4rem 1rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 10px rgba(202, 138, 4, 0.3); }
.gradient-pill-green { background: linear-gradient(135deg, #059669, #10b981); }
.card-badge { position: absolute; top: 1.25rem; right: 1.25rem; }

.card-content { padding: 2rem 1.5rem; display: flex; flex-direction: column; flex-grow: 1; background: white; z-index: 2; position: relative; }
.card-content .price { font-size: 1.85rem; color: var(--primary); margin-bottom: 0.25rem; letter-spacing: -0.5px; }
.card-content .location { font-weight: 500; color: var(--text-light); margin-bottom: 1.5rem; border-bottom: 1px solid var(--bg-grey); padding-bottom: 1.5rem; }
.card-content .specs { display: flex; justify-content: space-between; margin-bottom: 1.5rem; color: var(--text-light); font-size: 0.85rem; font-weight: 500; }
.card-content .specs span { display: flex; align-items: center; gap: 0.5rem; }
.card-content .specs svg { color: var(--primary); }
.card-cta { margin-top: auto; border-radius: var(--radius-pill); }

/* =========================================
   4. HOW IT WORKS & VALUE SECTION
   ========================================= */
.timeline-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; position: relative; z-index: 1; margin-top: 2rem; }
@media (min-width: 768px) { .timeline-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

/* Timeline Track */
.timeline-track {
    position: absolute; top: 0; left: 50%; width: 2px; height: 100%;
    background: rgba(0,0,0,0.06); z-index: -1; transform: translateX(-50%);
}
.timeline-fill {
    width: 100%; height: 0%; background: var(--primary); transition: height 0.6s ease;
}
@media (min-width: 768px) {
    .timeline-track { top: 2.25rem; left: 12.5%; width: 75%; height: 2px; transform: translateY(-50%); }
    .timeline-fill { width: 0%; height: 100%; transition: width 0.6s ease; }
}

.premium-step {
    background: #ffffff; padding: 3rem 2rem; border-radius: 20px; text-align: center;
    box-shadow: 0 4px 15px -4px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s ease; position: relative; z-index: 2; height: 100%;
}
.premium-step:hover, .premium-step.step-active {
    background: #ffffff; transform: translateY(-6px);
    box-shadow: 0 16px 32px -8px rgba(0,0,0,0.06);
    border-color: rgba(202, 138, 4, 0.4);
}

/* Double layer badge */
.step-node {
    width: 72px; height: 72px; margin: 0 auto 2.5rem auto; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(202, 138, 4, 0.1); /* outer faint ring */
    transition: all 0.4s ease;
}
.step-node-inner {
    width: 44px; height: 44px; background: var(--primary); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: all 0.4s ease;
}

.premium-step:hover .step-node, .premium-step.step-active .step-node {
    transform: scale(1.05); background: rgba(202, 138, 4, 0.2); 
    box-shadow: 0 0 20px rgba(202, 138, 4, 0.15);
}
.premium-step:hover .step-node-inner, .premium-step.step-active .step-node-inner {
    background: var(--accent);
}

.step-title { margin-bottom: 0.75rem; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--heading); }
.step-desc { color: #64748b; font-size: 0.95rem; line-height: 1.6; margin: 0; }

.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 2rem; }
@media (min-width: 768px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }
.value-item { text-align: center; }

.premium-icon {
    width: 80px; height: 80px; background: white; color: var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem auto; box-shadow: var(--shadow-md); transition: var(--transition); border: 1px solid var(--bg-grey);
}
.premium-icon:hover { transform: scale(1.1); box-shadow: var(--shadow-glow); color: var(--primary-hover); }
.premium-icon svg { width: 36px; height: 36px; }

/* =========================================
   6. LOCATIONS & 7. PACKAGE TYPES
   ========================================= */
.row-split { display: flex; flex-direction: column; gap: 4rem; }
@media (min-width: 1024px) { .row-split { flex-direction: row; } .col-locations { flex: 3; padding-right: 3vw; } .col-types { flex: 2; } }

.location-pills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.loc-card {
    height: 160px; border-radius: var(--radius-lg); position: relative; overflow: hidden;
    cursor: pointer; box-shadow: 0 4px 15px -4px rgba(0,0,0,0.06); 
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); border: 1px solid rgba(0,0,0,0.05);
}
.loc-bg {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background-size: cover; background-position: center; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 0;
}
.loc-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1; transition: all 0.3s ease;
}
.loc-content {
    position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; padding: 1.5rem; text-align: center;
}
.loc-title {
    color: white; font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700;
    letter-spacing: 2px; margin-bottom: 0.2rem; text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.loc-subtitle {
    color: rgba(255,255,255,0.85); font-size: 0.8rem; font-weight: 500; letter-spacing: 1px;
    text-transform: uppercase;
}

.loc-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px -8px rgba(0,0,0,0.12); border-color: rgba(255,255,255,0.4); }
.loc-card:hover .loc-bg { transform: scale(1.08); }
.loc-card:hover .loc-overlay { background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%); }

.loc-card.active-loc { transform: translateY(-6px); box-shadow: 0 0 0 3px var(--primary), 0 16px 32px -8px rgba(0,0,0,0.2); border-color: transparent; }
.loc-card.active-loc .loc-bg { transform: scale(1.08); }
.loc-card.active-loc .loc-overlay { background: linear-gradient(to bottom, rgba(15,118,110,0.4) 0%, rgba(15,118,110,0.85) 100%); }

.type-list { display: flex; flex-direction: column; gap: 1.25rem; }
.type-item {
    padding: 1.75rem; background: var(--glass-bg); backdrop-filter: blur(10px);
    border-radius: var(--radius-lg); border: 1px solid var(--bg-grey); cursor: pointer; transition: var(--transition);
}
.type-item:hover { border-color: rgba(15, 118, 110, 0.3); background: white; transform: translateX(8px); box-shadow: var(--shadow-md); }
.type-item h4 { color: var(--primary); margin-bottom: 0.25rem; }
.type-item p { color: var(--text-light); font-size: 0.95rem; margin: 0; }

/* =========================================
   8. FINANCE SECTION (PREMIUM UPGRADE)
   ========================================= */
.bg-dark-premium {
    background: linear-gradient(145deg, #020617 0%, #0f172a 100%);
    position: relative; overflow: hidden;
}
.glow-orb {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; z-index: 1; pointer-events: none;
}
.orb-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; left: -100px; }
.orb-2 { width: 300px; height: 300px; background: var(--accent); bottom: -50px; right: 10%; opacity: 0.2; }

.finance-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .finance-grid { grid-template-columns: 0.9fr 1.3fr; gap: 5rem; } }
.premium-text { color: rgba(255,255,255,0.7); line-height: 1.8; }

.check-list li { position: relative; padding-left: 2.5rem; margin-bottom: 2rem; color: rgba(255,255,255,0.85); font-size: 1.05rem; line-height: 1.7; }
.check-list li::before {
    content: '✓'; position: absolute; left: 0; top: 0; width: 24px; height: 24px;
    background: rgba(202, 138, 4, 0.2); color: var(--accent); border: 1px solid var(--accent);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; font-weight: bold;
}
.check-list li strong { color: var(--accent); font-weight: 600; }

.finance-image { position: relative; z-index: 2; transform: scale(1.05); transform-origin: center right; transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.image-gradient-wrap {
    border-radius: 20px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08); position: relative;
    transition: all 0.5s ease;
}
.image-gradient-wrap img { width: 100%; display: block; filter: brightness(0.9) contrast(1.15); transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); transform: scale(1.02); }
.image-gradient-wrap::after {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.4) 100%); pointer-events: none;
}

.finance-image .trust-badge {
    position: absolute; bottom: -2rem; left: 8%; right: 8%; padding: 2rem; border-radius: var(--radius-lg);
    text-align: center; font-weight: 500; font-size: 1.05rem; color: white;
    background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4);
    transform: translateY(-8px); transition: all 0.4s ease;
}

.finance-image:hover { transform: scale(1.06); }
.finance-image:hover img { transform: scale(1.08); }
.finance-image:hover .image-gradient-wrap { box-shadow: 0 40px 70px -15px rgba(0,0,0,0.7); }
.finance-image:hover .trust-badge {
    transform: translateY(-16px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.6);
}

/* =========================================
   9. APPLY NOW (QUESTIONNAIRE)
   ========================================= */
.elevated-glass-card {
    background: var(--glass-bg); backdrop-filter: blur(25px); padding: 3rem 4rem;
    border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); border: 1px solid white;
}
.progress-bar-container { height: 8px; background: var(--bg-grey); border-radius: 4px; margin: 2rem 0 3rem 0; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary-hover), var(--primary)); transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1); box-shadow: 0 0 10px var(--primary-glow); }

.form-step { display: none; opacity: 0; transform: translateY(15px); transition: all 0.4s ease; }
.form-step.active { display: block; opacity: 1; transform: translateY(0); }
.form-step h3 { margin-bottom: 2rem; text-align: center; }

.options-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2.5rem; }
@media (min-width: 480px) { .options-grid { grid-template-columns: 1fr 1fr; } }
.premium-radio {
    display: flex; align-items: center; justify-content: center; padding: 1.5rem;
    border: 2px solid var(--bg-grey); border-radius: var(--radius-lg); background: white;
    cursor: pointer; font-weight: 600; font-size: 1.05rem; color: var(--text-light);
    transition: var(--transition); text-align: center; box-shadow: var(--shadow-soft);
}
.premium-radio:hover { border-color: rgba(15, 118, 110, 0.3); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--primary); }
.premium-radio.selected-card {
    border-color: var(--primary); background: rgba(15, 118, 110, 0.03); color: var(--primary); box-shadow: 0 0 0 4px rgba(15,118,110,0.1);
}

.input-group { margin-bottom: 1.5rem; position: relative; }
.input-group label { display: block; font-weight: 600; margin-bottom: 0.6em; color: var(--heading); font-size: 0.95rem; }
.input-group-row { display: flex; gap: 1.5rem; flex-direction: column; }
@media (min-width: 600px) { .input-group-row { flex-direction: row; } .half { flex: 1; } }

.step-actions { margin-top: 3rem; }
.step-actions.split { display: flex; justify-content: space-between; }
.step-actions.right { display: flex; justify-content: flex-end; }
.success-glow { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 0 30px rgba(16, 185, 129, 0.3); }

/* =========================================
   10. LEAD FORM
   ========================================= */
.premium-card-bg {
    background: linear-gradient(135deg, var(--secondary), #1e293b); color: white;
    border-radius: var(--radius-xl); position: relative; overflow: visible; box-shadow: var(--shadow-lg);
}
.flex-row { display: flex; flex-direction: column; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .flex-row { flex-direction: row; padding: 4rem; } }
.contact-text { flex: 1.2; padding: 2rem; }
.contact-text h2 { color: #FFFFFF; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.text-light-opacity { color: #E5E7EB; font-size: 1.125rem; margin-top: 1rem; font-weight: 500; text-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.form-glass {
    flex: 0.8; background: rgba(255,255,255,0.05); padding: 2.5rem; border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(10px); width: 100%;
}
.simple-lead-form { display: flex; flex-direction: column; gap: 1.25rem; }

/* =========================================
   11. FAQ SECTION
   ========================================= */
.faq-accordion { display: flex; flex-direction: column; gap: 1.25rem; }
.premium-faq {
    background: white; border: 1px solid var(--bg-grey); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-soft); transition: var(--transition);
}
.premium-faq:hover { box-shadow: var(--shadow-md); border-color: rgba(0,0,0,0.05); }
.premium-faq summary {
    padding: 1.5rem 2rem; font-weight: 600; font-family: var(--font-heading); font-size: 1.15rem; color: var(--heading);
    cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.premium-faq summary::-webkit-details-marker { display: none; }
.premium-faq summary::after {
    content: '+'; font-size: 1.8rem; font-weight: 300; color: var(--primary); transition: transform 0.4s ease;
}
.premium-faq[open] summary::after { transform: rotate(45deg); }
.premium-faq[open] summary { border-bottom: 1px solid var(--bg-grey); background: rgba(248, 250, 252, 0.5); }
.faq-content { padding: 1.5rem 2rem; color: var(--text-light); line-height: 1.8; animation: slideDown 0.3s ease-out; }

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

/* =========================================
   12. FINAL CTA
   ========================================= */
.split-overlay { position: relative; background-size: cover; background-position: center; background-attachment: fixed; }
.cta-overlay-gradient { position: absolute; top:0; left:0; right:0; bottom:0; background: linear-gradient(rgba(15,23,42,0.8), rgba(2,6,23,0.95)); z-index: 1; }
.cta-btns { display: flex; gap: 1.5rem; justify-content: center; margin-top: 2.5rem; }

/* =========================================
   13. FOOTER
   ========================================= */
.bg-super-dark { background-color: var(--super-dark); border-top: 1px solid rgba(255,255,255,0.05); }
.site-footer { padding: 5rem 0 2rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 4rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2.5fr 1fr 1fr 1.5fr; } }
.footer-col h4 { margin-bottom: 1.5rem; color: white; font-size: 1.125rem; font-weight: 600; }
.footer-col a { display: inline-block; color: var(--text-muted); margin-bottom: 0.85rem; font-size: 0.95rem; }
.footer-col a:hover { color: white; transform: translateX(3px); }
.hover-text-primary:hover { color: var(--accent); cursor: pointer; }

.footer-bottom {
    display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem; color: var(--text-muted); font-size: 0.875rem; gap: 1rem;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.legal-links { display: flex; gap: 1.5rem; }
.legal-links a { color: var(--text-muted); } .legal-links a:hover { color: white; }

/* =========================================
   SCROLL REVEAL ANIMATIONS
   ========================================= */
.reveal { opacity: 0; transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.is-visible { opacity: 1; }

.reveal-up { transform: translateY(0px); opacity: 0; transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal-up.is-visible { transform: translateY(0); opacity: 1; }

.reveal-left { transform: translateX(0px); opacity: 0; transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal-left.is-visible { transform: translateX(0); opacity: 1; }

.reveal-right { transform: translateX(0px); opacity: 0; transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal-right.is-visible { transform: translateX(0); opacity: 1; }

.reveal-scale { transform: scale(1); opacity: 0; transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal-scale.is-visible { transform: scale(1); opacity: 1; }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =========================================
   MOBILE RESPONSIVENESS (<= 768px)
   ========================================= */
@media (max-width: 768px) {
    /* Reduce Button Sizes */
    .btn { padding: 12px 18px; font-size: 15px; border-radius: 8px; }
    .btn-large { padding: 14px 24px; font-size: 16px; }
    
    /* Hero Button Fix (Stack Vertically) */
    .hero-ctas { flex-direction: column; gap: 12px; align-items: center; }
    .hero-ctas .btn { max-width: 220px; width: 100%; margin: 0 auto; }
    
    /* Final CTA Buttons Fix */
    .cta-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 16px;
    }
    .cta-btns .btn {
        padding: 12px 16px;
        font-size: 15px;
        min-height: auto;
        max-width: 180px;
        width: auto;
        margin: 0 auto;
        white-space: nowrap;
        border-radius: 12px;
    }
    
    /* Finance Trust Badge Overlay Fix */
    .finance-image .trust-badge {
        font-size: 15px;
        line-height: 1.4;
        padding: 12px 16px;
        width: 85%;
        margin: 0 auto;
        left: 0; right: 0;
        bottom: 12px;
        background: rgba(255,255,255,0.15);
        backdrop-filter: blur(10px);
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    
    /* General Mobile Optimization - Reduce excessive spacing */
    .section-padding { padding: 4rem 0; }
    .pb-large { padding-bottom: 4rem; }
    .mb-large { margin-bottom: 2rem; }
    .mb-medium { margin-bottom: 1.5rem; }
    .mb-small { margin-bottom: 0.75rem; }
}

/* =========================================
   14. PROPERTY DETAILS MODAL
   ========================================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(8px);
    z-index: 1000; display: none; align-items: center; justify-content: center;
    padding: 1rem; opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.is-open { opacity: 1; }

.modal-content {
    position: relative; width: 100%; max-width: 900px;
    background: white; border-radius: var(--radius-xl);
    overflow: hidden; max-height: 90vh; display: flex; flex-direction: column;
    transform: translateY(20px) scale(0.95); transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2);
}
.modal-overlay.is-open .modal-content { transform: translateY(0) scale(1); }

.modal-close {
    position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px;
    background: rgba(0,0,0,0.5); color: white; border: none; border-radius: 50%;
    font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; transition: var(--transition);
    backdrop-filter: blur(4px); line-height: 1;
}
.modal-close:hover { background: var(--primary); transform: scale(1.1); }

.modal-body {
    display: flex; flex-direction: column; overflow-y: auto; height: 100%;
}
@media (min-width: 768px) {
    .modal-body { flex-direction: row; align-items: stretch; overflow: hidden; /* Info container handles scroll */ }
    .modal-image-container { flex: 1.2; position: relative; height: auto; min-height: 400px; }
    .modal-info-container { flex: 1; overflow-y: auto; padding: 2.5rem; }
}

.modal-image-container { position: relative; height: 300px; width: 100%; }
.modal-hero-image {
    width: 100%; height: 100%; background-size: cover; background-position: center;
}
.modal-badge { box-shadow: var(--shadow-md); }

@media (min-width: 768px) {
    .modal-header-badges { position: absolute; top: 1.25rem; left: 1.25rem; z-index: 10; }
}

.modal-info-container { padding: 2rem; background: white; display: flex; flex-direction: column; }
.modal-price { font-size: clamp(1.75rem, 3vw, 2.25rem); font-family: var(--font-heading); color: var(--primary); font-weight: 700; margin-bottom: 0.25rem; }
.modal-address { color: var(--text-light); font-size: 1.1rem; margin-bottom: 1.5rem; font-weight: 500; }

.modal-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
.modal-specs span { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--text-main); font-size: 0.95rem; }
.modal-specs svg { color: var(--primary); }

.modal-divider { border: 0; height: 1px; background: var(--bg-grey); margin: 0 0 1.5rem 0; width: 100%; }

.modal-desc h4, .modal-inclusions h4 { color: var(--heading); font-size: 1.1rem; margin-bottom: 0.5rem; }
.modal-desc p { color: var(--text-light); line-height: 1.6; font-size: 0.95rem; }

.modal-inclusions ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.modal-inclusions li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.9rem; color: var(--text-main); line-height: 1.4; }
.modal-inclusions svg { flex-shrink: 0; margin-top: 2px; }

.modal-actions { margin-top: auto; padding-top: 1.5rem; }

/* Scrollbar for modal content */
.modal-info-container::-webkit-scrollbar { width: 6px; }
.modal-info-container::-webkit-scrollbar-track { background: var(--bg-grey); border-radius: 4px; }
.modal-info-container::-webkit-scrollbar-thumb { background: rgba(15, 118, 110, 0.3); border-radius: 4px; }
.modal-info-container::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Mobile optimization */
@media (max-width: 767px) {
    .modal-overlay { padding: 0; align-items: flex-end; }
    .modal-content { 
        max-height: 92vh; 
        border-radius: 20px 20px 0 0; 
        width: 100%; 
        max-width: 100%; 
        border: none;
    }
    .modal-body { 
        flex-direction: column; 
        overflow-y: auto; 
        -webkit-overflow-scrolling: touch; 
    }
    
    .modal-image-container { height: 260px; flex-shrink: 0; }
    
    .modal-info-container { padding: 20px 16px; display: flex; flex-direction: column; }
    
    .modal-close { 
        background: rgba(0,0,0,0.65); 
        width: 44px; height: 44px; 
        top: 12px; right: 12px; 
        font-size: 1.75rem;
    }
    
    .modal-header-badges { margin-bottom: 12px; display: inline-block; }
    .modal-badge { display: inline-block; margin: 0; }
    
    .modal-price { font-size: 2.2rem; font-weight: 800; line-height: 1.1; margin-bottom: 8px; }
    .modal-address { margin-bottom: 24px; font-size: 1.15rem; }
    
    .modal-specs { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
    .modal-specs span { font-size: 0.95rem; }
    
    .modal-desc { margin-bottom: 24px; }
    .modal-desc h4, .modal-inclusions h4 { margin-bottom: 12px; font-size: 1.25rem; }
    .modal-desc p { line-height: 1.65; margin-bottom: 16px; font-size: 1rem; }
    
    .modal-inclusions { margin-bottom: 24px; }
    .modal-inclusions ul { gap: 14px; }
    .modal-inclusions li { line-height: 1.6; align-items: flex-start; font-size: 0.95rem; }
    
    .modal-actions { margin-top: auto; padding-top: 1rem; }
}

/* =========================================
   15. MOBILE HERO ALIGNMENT FIXES
   ========================================= */
@media (max-width: 768px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: 90%;
        margin: 0 auto;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero .badge {
        align-self: center;
        margin-bottom: 16px;
    }

    .hero-headline {
        margin-bottom: 16px;
        line-height: 1.3;
    }

    .hero-subheadline {
        text-align: center;
        padding: 12px 16px;
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-ctas {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        margin: 0 auto;
    }

    .hero-ctas .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}
