:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #dbeafe;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --secondary-light: #fef3c7;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(30, 64, 175, 0.1), 0 2px 4px -1px rgba(30, 64, 175, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(30, 64, 175, 0.1), 0 10px 10px -5px rgba(30, 64, 175, 0.04);
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --hero-gradient: linear-gradient(135deg, rgba(30, 64, 175, 0.85) 0%, rgba(59, 130, 246, 0.85) 50%, rgba(245, 158, 11, 0.85) 100%);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: #ffffff;
    overflow-x: hidden;
}

html { scroll-behavior: smooth; }

/* Header & Navigation */
.navbar {
    background: var(--gradient-primary);
    box-shadow: var(--shadow);
    padding: 1rem 0;
}
.navbar-brand { font-weight: 700; color: white; font-size: 1.5rem; }
.nav-link { font-weight: 500; color: rgba(255,255,255,0.9); padding: 0.5rem 1rem !important; }
.nav-link:hover { color: white; }

/* Location Banner */
.location-banner {
    background: var(--gradient-secondary);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    font-size: 0.85rem;
    color: white;
}

/* Reduced Hero Section Height */
.min-vh-60 {
    min-height: 60vh;
}

/* Hero Section - Reduced height and fixed overlay */
.hero-section {
    background: var(--hero-gradient), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2073&q=80');
    background-size: cover;
    background-position: center;
    padding: 60px 0 40px; /* Reduced padding */
    color: white;
    position: relative;
    min-height: 60vh; /* Reduced from 70vh */
    display: flex;
    align-items: center;
    border-radius: 0 0 30px 30px; /* Slightly smaller border radius */
    margin-bottom: 0;
}

/* Reduce hero title size */
.hero-title {
    font-size: 2.5rem; /* Reduced from 3rem */
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Reduce hero subtitle size */
.hero-subtitle {
    font-size: 1.1rem; /* Reduced from 1.3rem */
    margin-bottom: 1.5rem; /* Reduced margin */
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Reduce hero stats spacing */
.hero-stats {
    display: flex;
    gap: 2rem; /* Reduced from 3rem */
    margin: 1.5rem 0; /* Reduced from 2.5rem */
    flex-wrap: wrap;
}

.stat-number {
    font-size: 1.5rem; /* Reduced from 2rem */
    font-weight: 800;
    color: white;
    margin-bottom: 0.3rem; /* Reduced */
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem; /* Reduced from 0.9rem */
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Reduce hero visual height */
.hero-visual {
    position: relative;
    height: 350px; /* Reduced from 450px */
}

/* Make floating cards smaller */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem; /* Reduced from 1.5rem */
    border-radius: 15px; /* Reduced from 20px */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); /* Reduced shadow */
    display: flex;
    align-items: center;
    gap: 12px; /* Reduced from 15px */
    font-weight: 600;
    color: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.4);
    min-width: 180px; /* Reduced from 200px */
}

.card-icon {
    width: 45px; /* Reduced from 50px */
    height: 45px; /* Reduced from 50px */
    background: var(--gradient-primary);
    border-radius: 10px; /* Reduced from 12px */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem; /* Reduced from 1.3rem */
}

.card-title {
    font-weight: 700;
    font-size: 1rem; /* Reduced from 1.1rem */
}

.card-subtitle {
    font-size: 0.8rem; /* Reduced from 0.85rem */
    color: var(--secondary);
    font-weight: 500;
}

/* Button fixes */
.explore-btn, .localities-btn {
    cursor: pointer;
}

/* Ensure sections exist for buttons to target */
#featured-properties, #localities-section {
    scroll-margin-top: 80px; /* Add space when scrolling to account for fixed header */
}

/* Quick Stats */
.quick-stats { 
    margin-top: 0;
    padding: 60px 0;
    background: white;
}
.stat-card {
    background: white; border-radius: 16px; padding: 1.5rem; text-align: center;
    box-shadow: var(--shadow); border: 2px solid var(--primary-light); transition: all 0.3s ease;
}
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient-primary); }
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.stat-number { font-size: 1.75rem; font-weight: 800; color: var(--primary); margin-bottom: 0.5rem; }

/* Section Styles */
.section-spacing { padding: 60px 0; }
.section-title {
    font-size: 2rem; font-weight: 800; margin-bottom: 1rem; color: var(--dark);
    display: inline-block; position: relative;
}
.section-title::after {
    content: ''; position: absolute; bottom: -10px; left: 0; width: 70px; height: 4px;
    background: var(--gradient-secondary); border-radius: 2px;
}
.section-subtitle { font-size: 1rem; color: var(--secondary); margin-bottom: 2rem; font-weight: 500; }

/* ============================================= */
/*  UNIFIED COMPACT CARD LAYOUT – ALL SECTIONS   */
/*  (3 per row desktop, 2 tablet, 1 mobile)      */
/* ============================================= */

/* Grid for ALL property sections */
.property-grid,
.recently-viewed-grid,
.promoted-section .property-grid,
.property-type-section .property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

@media (max-width: 992px) {
    .property-grid,
    .recently-viewed-grid,
    .promoted-section .property-grid,
    .property-type-section .property-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 576px) {
    .property-grid,
    .recently-viewed-grid,
    .promoted-section .property-grid,
    .property-type-section .property-grid {
        grid-template-columns: 1fr;
    }
}

/* Unified Card */
.property-card,
.recently-viewed-card {
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.property-card:hover,
.recently-viewed-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* Image */
.property-image,
.recently-viewed-image {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.property-image img,
.recently-viewed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.property-card:hover .property-image img,
.recently-viewed-card:hover .recently-viewed-image img {
    transform: scale(1.1);
}

/* Badges */
.property-badges,
.recently-viewed-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--gradient-secondary);
    color: white;
    padding: 3px 7px;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 2;
}

.badge-promoted {
    background: #FFD700 !important;
    color: #000 !important;
    border: 1px solid #FFC107 !important;
}

/* Content */
.property-content,
.recently-viewed-content {
    padding: 0.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-price,
.recently-viewed-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.property-price-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 600;
}

.property-title,
.recently-viewed-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-location,
.recently-viewed-location {
    font-size: 0.8rem;
    color: var(--secondary);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-features,
.recently-viewed-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
}

.property-features span,
.recently-viewed-features span {
    background: var(--secondary-light);
    color: var(--secondary-dark);
    padding: 2px 6px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.65rem;
}

.property-actions,
.recently-viewed-card .property-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: auto;
}

.property-actions .btn,
.recently-viewed-card .property-actions .btn {
    flex: 1;
    padding: 6px 8px;
    font-size: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
}

/* Price Trends */
.price-trends-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
}
.trend-card { background: white; border-radius: 12px; padding: 1.5rem; box-shadow: var(--shadow); border: 2px solid var(--primary-light); text-align: center; }
.trend-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.trend-icon { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.25rem; }
.trend-up { background: var(--success); color: white; }
.trend-down { background: var(--danger); color: white; }
.trend-value { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.trend-label { font-size: 0.85rem; color: var(--secondary); font-weight: 600; }

/* Locality Map */
.locality-map-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 3rem 0;
}

/* ==== LOCALITY GRID – SAME COMPACT 3-PER-ROW ==== */
.locality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

/* Tablet: 2 cards */
@media (max-width: 992px) {
    .locality-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* Mobile: 1 card */
@media (max-width: 576px) {
    .locality-grid { grid-template-columns: 1fr; }
}

.locality-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 2px solid var(--primary-light); }
.locality-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.locality-image { height: 160px; overflow: hidden; position: relative; }
.locality-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.locality-card:hover .locality-image img { transform: scale(1.1); }
.locality-badge { position: absolute; top: 10px; right: 10px; background: var(--gradient-primary); color: white; padding: 5px 12px; border-radius: 15px; font-size: 0.75rem; font-weight: 700; }
.locality-content { padding: 1.5rem; }
.locality-name { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.locality-stats { display: flex; justify-content: space-between; margin-bottom: 1rem; font-size: 0.85rem; }
.stat-value { font-weight: 700; color: var(--primary); font-size: 1rem; }
.stat-label { color: var(--secondary); font-size: 0.75rem; }

/* Promoted Section */
.promoted-section {
    background: linear-gradient(135deg, #fff9db 0%, #ffe8cc 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 3rem 0;
    border: 2px solid #FFD700;
    position: relative;
    overflow: hidden;
}
.promoted-header { display: flex; align-items: center; gap: 10px; margin-bottom: 1.5rem; }
.promoted-icon { background: #FFD700; color: #000; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

/* Property Type Sections */
.property-type-section { margin: 3rem 0; }
.type-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.type-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary); margin-right: 1rem; }
.type-title-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    flex: 1;
    min-width: 0; 
}
@media (max-width: 768px) {
    .type-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .type-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .type-count {
        align-self: flex-start;
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }
}
@media (max-width: 768px) {
    .type-header .btn {
        align-self: flex-start;
        width: auto;
        min-width: 140px;
    }
}

.type-count { background: var(--gradient-primary); color: white; padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; margin-left: 1rem; }

/* Contact Modal */
.contact-modal .modal-content { border-radius: 20px; border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.contact-modal .modal-header { background: var(--gradient-primary); color: white; border-radius: 20px 20px 0 0; padding: 1.5rem; border-bottom: 2px solid var(--primary-light); }
.contact-modal .modal-body { padding: 2rem; max-height: 70vh; overflow-y: auto; }
.property-summary { background: var(--primary-light); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; border-left: 4px solid var(--primary); }
.agent-contact { text-align: center; padding: 1rem 0; border-top: 2px solid var(--primary-light); border-bottom: 2px solid var(--primary-light); margin: 1.5rem 0; }
.agent-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--secondary); box-shadow: var(--shadow); margin-bottom: 1rem; }

/* Footer */
.footer { background: var(--gradient-primary); color: white; padding: 40px 0 0; }
.footer h5 { color: white; margin-bottom: 1rem; font-weight: 600; font-size: 1rem; }
.footer-links a { color: #cbd5e1; text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid #334155; padding: 1.5rem 0; margin-top: 2rem; text-align: center; color: #94a3b8; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 1200px) { 
    .hero-title { font-size: 2.5rem; } 
    .feature-card { padding: 2rem; }
}
@media (max-width: 992px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 1.75rem; }
    .feature-title { font-size: 1.3rem; }
}
@media (max-width: 768px) {
    .hero-section { padding: 80px 0 60px; min-height: 60vh; border-radius: 0 0 30px 30px; }
    .section-spacing { padding: 40px 0; }
    .features-section { padding: 60px 0; }
    .quick-stats { padding: 40px 0; }
    .locality-grid { grid-template-columns: 1fr; }
    .type-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ============================================= */
/*  MOBILE COMPACT STYLES - PROPERTY CARDS      */
/* ============================================= */

@media (max-width: 576px) {
    /* === COMPACT PROPERTY CARD LAYOUT === */
    .property-card,
    .recently-viewed-card {
        margin-bottom: 0.5rem;
        border-radius: 8px;
        border-width: 1px;
    }
    
    .property-content,
    .recently-viewed-content {
        padding: 0.6rem;
    }
    
    /* Smaller images */
    .property-image,
    .recently-viewed-image {
        height: 150px; /* Reduced from 200px */
    }
    
    /* Compact text elements */
    .property-title,
    .recently-viewed-title {
        font-size: 0.82rem;
        margin-bottom: 0.25rem;
        line-height: 1.2;
        -webkit-line-clamp: 2;
    }
    
    .property-price .price-amount,
    .recently-viewed-price .price-amount {
        font-size: 0.92rem;
        font-weight: 700;
    }
    
    .property-location,
    .recently-viewed-location {
        font-size: 0.72rem;
        margin-bottom: 0.25rem;
    }
    
    .property-location i,
    .recently-viewed-location i {
        font-size: 0.7rem;
    }
    
    /* Compact features */
    .property-features,
    .recently-viewed-features {
        gap: 0.15rem;
        margin-bottom: 0.35rem;
    }
    
    .property-features span,
    .recently-viewed-features span {
        font-size: 0.58rem;
        padding: 1px 4px;
        border-radius: 3px;
    }
    
    /* Smaller buttons */
    .property-actions,
    .recently-viewed-card .property-actions {
        gap: 0.25rem;
        margin-top: 0.4rem;
    }
    
    .property-actions .btn,
    .recently-viewed-card .property-actions .btn {
        padding: 3px 6px;
        font-size: 0.68rem;
        border-radius: 4px;
        min-height: auto;
    }
    
    /* Compact badges */
    .property-badges,
    .recently-viewed-badge {
        top: 4px;
        left: 4px;
    }
    
    .property-badge {
        font-size: 0.52rem;
        padding: 1px 5px;
        border-radius: 6px;
    }
    
    /* Price tag adjustments */
    .property-price-tag {
        font-size: 0.55rem;
        padding: 1px 5px;
        border-radius: 6px;
    }
    
    /* === COMPACT GRID LAYOUT === */
    .property-grid,
    .recently-viewed-grid,
    .promoted-section .property-grid,
    .property-type-section .property-grid,
    .locality-grid {
        gap: 0.7rem; /* Tighter spacing between cards */
    }
    
    /* === COMPACT SECTION SPACING === */
    .section-spacing {
        padding: 2rem 0; /* Reduced from 3rem/40px */
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .section-title::after {
        bottom: -6px;
        width: 50px;
        height: 3px;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }
    
    /* === COMPACT HERO SECTION === */
    .hero-section {
        padding: 3rem 0 2rem;
        min-height: 50vh;
        border-radius: 0 0 20px 20px;
    }
    
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    
    .hero-stats {
        gap: 1.5rem;
        margin: 1.25rem 0;
    }
    
    .stat-number {
        font-size: 1.3rem;
        margin-bottom: 0.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* === COMPACT PROPERTY TYPE SECTIONS === */
    .property-type-section {
        margin: 2rem 0;
    }
    
    .type-header {
        margin-bottom: 1.25rem;
        gap: 0.75rem;
    }
    
    .type-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-right: 0.75rem;
    }
    
    .type-count {
        font-size: 0.7rem;
        padding: 2px 8px;
        margin-left: 0.5rem;
    }
    
    /* === COMPACT MODALS === */
    .contact-modal .modal-body {
        padding: 1.25rem;
    }
    
    /* === COMPACT AGENT CARDS === */
    .professional-agent-card {
        padding: 1rem;
    }
    
    .agent-avatar {
        width: 60px;
        height: 60px;
    }
    
    .agent-name {
        font-size: 1.1rem;
    }
    
    .agent-stats-grid {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        padding: 0.5rem 0;
    }
    
    .stat-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .stat-value {
        font-size: 0.85rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    /* === COMPACT LOCALITY CARDS === */
    .locality-card .locality-content {
        padding: 1rem;
    }
    
    .locality-name {
        font-size: 1.1rem;
    }
    
    .locality-stats {
        margin-bottom: 0.75rem;
    }
    
    .stat-value {
        font-size: 0.9rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

/* Extra small devices (phones under 400px) */
@media (max-width: 400px) {
    .property-image,
    .recently-viewed-image {
        height: 140px;
    }
    
    .property-content,
    .recently-viewed-content {
        padding: 0.5rem;
    }
    
    .property-title,
    .recently-viewed-title {
        font-size: 0.78rem;
    }
    
    .property-actions .btn {
        font-size: 0.65rem;
        padding: 2px 4px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .hero-title {
        font-size: 1.4rem;
    }
}

/* Clean Underline Highlight */
.keyword-highlight {
    background: linear-gradient(120deg, var(--secondary) 0%, var(--secondary) 100%);
    background-repeat: no-repeat;
    background-size: 100% 2px;
    background-position: 0 100%;
    font-weight: 700;
    color: var(--dark);
    padding-bottom: 2px;
}

.transaction-highlight {
    background: linear-gradient(120deg, var(--primary) 0%, var(--primary) 100%);
    background-repeat: no-repeat;
    background-size: 100% 2px;
    background-position: 0 100%;
    font-weight: 700;
    color: var(--dark);
    padding-bottom: 2px;
}

/* Property Card Title and Price Layout */
.property-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.property-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-width: 60%;
}

.property-price-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 600;
    white-space: nowrap;
}

/* For Recently Viewed Cards */
.recently-viewed-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.recently-viewed-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-amp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-width: 60%;
}

/* Search Context Badge */
.search-context-badge {
    background: var(--gradient-secondary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 10px;
    vertical-align: middle;
}

/* No Properties Message */
.no-properties-message {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    border: 2px dashed var(--border);
}

.no-properties-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Professional Hero Section */
.min-vh-80 {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 2rem;
}

.hero-badge i {
    font-size: 1rem;
}

.location-highlight {
    background: linear-gradient(120deg, var(--secondary) 0%, var(--secondary) 100%);
    background-repeat: no-repeat;
    background-size: 100% 8px;
    background-position: 0 88%;
    padding: 0 4px;
    font-weight: 800;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 350px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.4);
    min-width: 180px;
}

.card-1 {
    top: 15%;
    left: 5%;
    animation: float 4s ease-in-out infinite;
}

.card-2 {
    top: 45%;
    right: 5%;
    animation: float 4s ease-in-out infinite 1.5s;
}

.card-3 {
    bottom: 15%;
    left: 25%;
    animation: float 4s ease-in-out infinite 2.5s;
}

/* Mobile fixes for floating cards */
@media (max-width: 768px) {
    .hero-visual {
        height: auto;
        min-height: 200px;
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .floating-card {
        position: relative;
        width: 100%;
        max-width: 280px;
        min-width: auto;
        transform: none !important;
        animation: none;
        margin-bottom: 1rem;
    }
    
    .card-1,
    .card-2,
    .card-3 {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
        animation: none;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .hero-visual {
        margin-top: 1.5rem;
        gap: 0.75rem;
    }
    
    .floating-card {
        padding: 0.875rem;
        max-width: 100%;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .card-title {
        font-size: 0.95rem;
    }
    
    .card-subtitle {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    /* Disable all animations and transforms on mobile */
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* Disable floating animations */
    .floating-card {
        animation: none !important;
        transform: none !important;
    }
    
    /* Disable hover effects on mobile */
    .property-card:hover,
    .recently-viewed-card:hover,
    .locality-card:hover,
    .stat-card:hover,
    .trend-card:hover,
    .metric-card:hover,
    .professional-agent-card:hover {
        transform: none !important;
        box-shadow: var(--shadow) !important;
    }
    
    /* Disable image hover effects */
    .property-card:hover .property-image img,
    .recently-viewed-card:hover .recently-viewed-image img,
    .locality-card:hover .locality-image img {
        transform: none !important;
    }
}

@media (max-width: 576px) {
    /* Ensure no animations interfere with mobile layout */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Specifically target any remaining transform issues */
    .property-card,
    .recently-viewed-card,
    .locality-card {
        transform: none !important;
    }
}

@media (max-width: 768px) {
    .hero-visual {
        height: auto;
        min-height: 200px;
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .floating-card {
        position: relative;
        width: 100%;
        max-width: 280px;
        min-width: auto;
        transform: none !important;
        animation: none !important;
        transition: none !important;
        margin-bottom: 1rem;
    }
    
    .card-1,
    .card-2,
    .card-3 {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
    
    /* Disable the float animation keyframes for mobile */
    @keyframes float {
        0%, 100% { transform: none; }
        50% { transform: none; }
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* Value Proposition Section */
.value-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.section-header {
    margin-bottom: 3rem;
}

.value-features {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.value-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow-lg);
}

.value-content h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.value-content p {
    color: var(--secondary);
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

.value-visual {
    position: relative;
    height: 550px;
}

.visual-card {
    position: absolute;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    min-width: 220px;
    transition: transform 0.3s ease;
}

.visual-card:hover {
    transform: translateY(-5px);
}

.card-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--gradient-secondary);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
}

.visual-card .card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.visual-card h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.visual-card p {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.card-features {
    display: flex;
    gap: 1rem;
}

.card-features span {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.trend-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success);
    font-weight: 700;
    font-size: 1.2rem;
}

.visual-card.card-1 {
    top: 10%;
    left: 0;
    transform: rotate(-3deg);
}

.visual-card.card-2 {
    top: 35%;
    right: 0;
    transform: rotate(2deg);
}

.visual-card.card-3 {
    bottom: 10%;
    left: 20%;
    transform: rotate(-1deg);
}

/* Performance Metrics Section */
.metrics-section {
    padding: 80px 0;
    background: white;
}

.metrics-header {
    margin-bottom: 4rem;
}

.metric-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-light);
    transition: all 0.3s ease;
    height: 100%;
}

.metric-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.metric-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.metric-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.metric-description {
    color: var(--secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--success);
    font-weight: 600;
    font-size: 1rem;
}

.trust-item i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .min-vh-80 {
        min-height: auto;
        padding: 80px 0;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-visual {
        height: 300px;
        margin-top: 3rem;
    }
    
    .floating-card {
        position: relative;
        margin-bottom: 1rem;
        transform: none !important;
        animation: none;
    }
    
    .value-item {
        flex-direction: column;
        text-align: center;
    }
    
    .value-visual {
        height: auto;
        margin-top: 3rem;
    }
    
    .visual-card {
        position: relative;
        margin-bottom: 2rem;
        transform: none !important;
    }
    
    .trust-indicators {
        gap: 1.5rem;
    }
    
    .trust-item {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Professional Agent Card Styles - COMPACT VERSION */
.professional-agent-card {
    background: white;
    border-radius: 15px;
    padding: 1.25rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8f0fe;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.professional-agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.15);
    border-color: var(--primary);
}

.agent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.agent-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.agent-verified {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.agent-profile {
    margin-bottom: 1rem;
    text-align: center;
}

.agent-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.agent-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    box-shadow: 0 6px 15px rgba(30, 64, 175, 0.15);
}

.agent-status {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
}

.agent-status.online {
    background: var(--success);
}

.agent-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.agent-title {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.agent-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.stars {
    display: flex;
    gap: 1px;
}

.stars i {
    font-size: 0.8rem;
}

.rating-text {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 600;
}

.agent-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--secondary);
    font-weight: 600;
    white-space: nowrap;
}

.agent-specialization {
    margin-bottom: 1rem;
}

.agent-specialization h6 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.specialization-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.specialization-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
}

.agent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.agent-actions .btn {
    padding: 8px 12px;
    font-weight: 600;
    border-radius: 10px;
    font-size: 0.8rem;
    line-height: 1.2;
}

/* Contact Form Styles */
.lead-form-section {
    padding: 1.25rem 0;
}

.lead-form-section h6 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 0.8rem;
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.radio-group {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.radio-item input[type="radio"] {
    margin: 0;
    transform: scale(0.9);
}

.radio-item label {
    margin: 0;
    font-size: 0.85rem;
    color: var(--dark);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
    transform: scale(0.9);
}

.checkbox-item label {
    margin: 0;
    font-size: 0.85rem;
    color: var(--dark);
}

.terms-checkbox {
    margin-top: 1.25rem;
    padding: 0.8rem;
    background: var(--primary-light);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.submit-btn {
    margin-top: 1.25rem;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 10px;
    font-size: 0.9rem;
}

.agent-info-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border-left: 3px solid var(--primary);
}

.agent-info-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.agent-info-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.agent-info-details h6 {
    margin: 0;
    font-weight: 700;
    color: var(--dark);
    font-size: 1rem;
}

.agent-info-details p {
    margin: 0;
    color: var(--secondary);
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .professional-agent-card {
        padding: 1rem;
    }
    
    .agent-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .agent-actions {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .agent-avatar {
        width: 70px;
        height: 70px;
    }
    
    .agent-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .professional-agent-card {
        padding: 0.875rem;
        border-radius: 12px;
    }
    
    .agent-header {
        margin-bottom: 0.75rem;
    }
    
    .agent-profile {
        margin-bottom: 0.75rem;
    }
    
    .agent-stats-grid {
        margin-bottom: 0.75rem;
        padding: 0.5rem 0;
    }
    
    .agent-specialization {
        margin-bottom: 0.75rem;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .professional-agent-card {
        padding: 0.75rem;
    }
    
    .stat-item {
        gap: 0.4rem;
    }
    
    .stat-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .stat-value {
        font-size: 0.85rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
}