/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header and Navigation */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #0d9488;
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #0d9488;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #0d9488;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: white;
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.search-field {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.search-field:focus-within {
    border-color: #0d9488;
}

.search-field i {
    color: #6b7280;
    margin-right: 0.75rem;
}

.search-field input,
.search-field select {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 1rem;
    color: #333;
}

.search-field input::placeholder {
    color: #9ca3af;
}

.search-btn {
    background: #0d9488;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
    margin-top: 1rem;
}

.search-btn:hover {
    background: #0f766e;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-placeholder {
    background: rgba(255,255,255,0.1);
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 15px;
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
}

.hero-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Filters Section */
.filters {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-tab {
    background: #f3f4f6;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab.active,
.filter-tab:hover {
    background: #0d9488;
    color: white;
}

.filter-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.filter-group select {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
    min-width: 150px;
    outline: none;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    border-color: #0d9488;
}

.filter-apply {
    background: #0d9488;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filter-apply:hover {
    background: #0f766e;
}

/* Properties Section */
.properties {
    padding: 4rem 0;
}

.properties h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 3rem;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.property-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.property-image {
    position: relative;
    height: 200px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-badge.sale {
    background: #10b981;
    color: white;
}

.property-badge.rent {
    background: #3b82f6;
    color: white;
}

.property-badge.sold {
    background: #6b7280;
    color: white;
}

.virtual-tour-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.virtual-tour-btn:hover {
    background: rgba(0,0,0,0.9);
}

.property-info {
    padding: 1.5rem;
}

.property-price {
    font-size: 1.75rem;
    font-weight: bold;
    color: #0d9488;
    margin-bottom: 0.5rem;
}

.property-info h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.property-address {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.property-details span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.property-details i {
    color: #0d9488;
}

.property-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feature {
    background: #f0fdfa;
    color: #0d9488;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Agents Section */
.agents {
    background: white;
    padding: 4rem 0;
}

.agents h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 3rem;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.agent-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.agent-card:hover {
    transform: translateY(-5px);
}

.agent-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
}

.agent-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.agent-image .image-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.agent-info h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.agent-title {
    color: #0d9488;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.agent-experience {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.agent-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #0d9488;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.agent-contact {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #0d9488;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: background 0.3s ease;
}

.contact-btn:hover {
    background: #0f766e;
}

/* Mortgage Calculator */
.mortgage-calculator {
    background: #f8f9fa;
    padding: 4rem 0;
}

.calculator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.calculator-info h2 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.calculator-info p {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.calculator-features {
    list-style: none;
}

.calculator-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #4b5563;
}

.calculator-features i {
    color: #10b981;
}

.calculator-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.calc-input {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.calc-input:focus {
    border-color: #0d9488;
}

.calc-btn {
    width: 100%;
    background: #0d9488;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 1rem;
}

.calc-btn:hover {
    background: #0f766e;
}

.calc-result {
    background: #f0fdfa;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-label {
    font-weight: 600;
    color: #374151;
}

.result-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0d9488;
}

/* Neighborhoods Section */
.neighborhoods {
    padding: 4rem 0;
    background: white;
}

.neighborhoods h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 3rem;
}

.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.neighborhood-card {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.neighborhood-card:hover {
    transform: translateY(-5px);
}

.neighborhood-image {
    height: 200px;
}

.neighborhood-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.neighborhood-image .image-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.neighborhood-info {
    padding: 1.5rem;
}

.neighborhood-info h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.neighborhood-info p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.neighborhood-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
}

.neighborhood-stats .stat {
    text-align: center;
}

.neighborhood-stats .stat-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.neighborhood-stats .stat-value {
    font-weight: bold;
    color: #0d9488;
}

.neighborhood-link {
    display: inline-flex;
    align-items: center;
    color: #0d9488;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.neighborhood-link:hover {
    color: #0f766e;
}

/* Contact Section */
.contact {
    background: #f8f9fa;
    padding: 4rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: #0d9488;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-item h4 {
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #6b7280;
    margin: 0;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #0d9488;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    background: #0d9488;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #0f766e;
}

/* Footer */
.footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #0d9488;
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #0d9488;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    color: #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #0d9488;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.footer-demo-notice {
    background: #fef3c7;
    color: #92400e;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.footer-demo-notice i {
    color: #f59e0b;
}

/* Responsive Design - Mobile First Approach */

/* Tablet Styles - 768px and below */
@media (max-width: 768px) {
    /* Mobile Navigation with Search Icon */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.15);
        padding: 2rem 0;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 1rem;
        display: block;
        border-bottom: 1px solid #f3f4f6;
    }

    .nav-toggle {
        display: flex;
        min-height: 44px;
        min-width: 44px;
        align-items: center;
        justify-content: center;
    }

    .nav-toggle span {
        width: 25px;
        height: 3px;
        background: #0d9488;
        margin: 3px 0;
        transition: 0.3s;
    }

    /* Mobile Search Icon in Header */
    .nav-container::after {
        content: "\f002";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: #0d9488;
        font-size: 1.2rem;
        cursor: pointer;
        padding: 0.5rem;
        margin-left: 1rem;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Hero Section - Mobile Optimized */
    .hero {
        padding: 100px 0 60px;
        min-height: 70vh;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* Mobile-Friendly Search Form */
    .search-container {
        padding: 1.5rem;
        margin-top: 1rem;
    }

    .search-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .search-field {
        padding: 1rem;
        min-height: 44px;
    }

    .search-btn {
        padding: 1rem 2rem;
        min-height: 44px;
        font-size: 1.1rem;
    }

    /* Touch-Friendly Filter Buttons */
    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .filter-tab {
        flex-shrink: 0;
        padding: 1rem 1.5rem;
        min-height: 44px;
        min-width: 44px;
        border-radius: 25px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .filter-options {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        min-width: auto;
        width: 100%;
        padding: 1rem;
        min-height: 44px;
        font-size: 1rem;
    }

    .filter-apply {
        padding: 1rem 2rem;
        min-height: 44px;
        width: 100%;
        font-size: 1rem;
    }

    /* Responsive Property Grid - Single Column */
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .property-card {
        margin: 0;
    }

    /* Mobile Property Cards */
    .property-image {
        height: 250px;
    }

    .property-badge {
        top: 1rem;
        left: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .virtual-tour-btn {
        top: 1rem;
        right: 1rem;
        padding: 0.75rem 1rem;
        min-height: 44px;
        min-width: 44px;
        font-size: 0.9rem;
    }

    .property-info {
        padding: 1.5rem;
    }

    .property-price {
        font-size: 1.5rem;
    }

    .property-details {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: space-between;
    }

    .property-details span {
        flex: 1;
        min-width: calc(50% - 0.5rem);
        text-align: center;
    }

    /* Mobile Agent Profiles */
    .agents-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .agent-card {
        padding: 2rem 1.5rem;
    }

    .agent-contact {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .contact-btn {
        padding: 1rem;
        min-height: 44px;
        text-align: center;
        justify-content: center;
    }

    /* Mobile Mortgage Calculator */
    .calculator-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .calculator-info h2 {
        font-size: 2.2rem;
    }

    .calculator-form {
        padding: 2rem 1.5rem;
    }

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

    .calc-input {
        padding: 1rem;
        min-height: 44px;
        font-size: 1rem;
    }

    .calc-btn {
        padding: 1rem;
        min-height: 44px;
        font-size: 1rem;
    }

    /* Stack Neighborhood Cards Vertically */
    .neighborhoods-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .neighborhood-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .neighborhood-link {
        display: block;
        text-align: center;
        padding: 0.75rem;
        min-height: 44px;
    }

    /* Mobile Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 1rem;
        min-height: 44px;
        font-size: 1rem;
    }

    .submit-btn {
        padding: 1rem;
        min-height: 44px;
        font-size: 1rem;
    }

    /* Mobile Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .social-links a {
        min-height: 44px;
        min-width: 44px;
    }

    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }

    .container {
        padding: 0 15px;
        max-width: 100%;
    }

    /* Touch-friendly hover states */
    .property-card:hover,
    .agent-card:hover,
    .neighborhood-card:hover {
        transform: none;
    }

    /* Mobile-specific animations */
    .property-card {
        transition: box-shadow 0.3s ease;
    }

    .property-card:active {
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
}

/* Mobile Styles - 480px and below */
@media (max-width: 480px) {
    /* Extra small screens optimizations */
    .container {
        padding: 0 10px;
    }

    /* Mobile Navigation */
    .nav-logo {
        font-size: 1.3rem;
    }

    .nav-logo i {
        font-size: 1.5rem;
    }

    .nav-toggle {
        min-height: 48px;
        min-width: 48px;
    }

    /* Hero Section - Compact */
    .hero {
        padding: 90px 0 50px;
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.1;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .search-container {
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 10px;
    }

    .search-field {
        padding: 0.875rem;
        border-radius: 6px;
    }

    .search-field i {
        font-size: 1rem;
    }

    .search-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    /* Compact Section Headings */
    .properties h2,
    .agents h2,
    .neighborhoods h2,
    .contact-info h2,
    .calculator-info h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    /* Filter Tabs - Scrollable */
    .filters {
        padding: 1.5rem 0;
    }

    .filter-tabs {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .filter-tab {
        padding: 0.875rem 1.25rem;
        font-size: 0.85rem;
        min-width: auto;
    }

    .filter-options {
        gap: 1rem;
    }

    .filter-group select {
        padding: 0.875rem;
        font-size: 0.9rem;
    }

    .filter-apply {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Compact Property Cards */
    .properties {
        padding: 3rem 0;
    }

    .properties-grid {
        gap: 1.25rem;
    }

    .property-card {
        border-radius: 12px;
    }

    .property-image {
        height: 220px;
    }

    .property-badge {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }

    .virtual-tour-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
    }

    .property-info {
        padding: 1.25rem;
    }

    .property-price {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .property-info h3 {
        font-size: 1.1rem;
    }

    .property-address {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    /* Stack property details vertically on very small screens */
    .property-details {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .property-details span {
        min-width: auto;
        text-align: left;
        padding: 0.25rem 0;
    }

    .property-features {
        gap: 0.375rem;
    }

    .feature {
        padding: 0.25rem 0.625rem;
        font-size: 0.7rem;
        border-radius: 12px;
    }

    /* Compact Agent Cards */
    .agents {
        padding: 3rem 0;
    }

    .agent-card {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
    }

    .agent-image {
        width: 100px;
        height: 100px;
        margin-bottom: 1.25rem;
    }

    .agent-info h3 {
        font-size: 1.1rem;
    }

    .agent-title {
        font-size: 0.9rem;
    }

    .agent-experience {
        font-size: 0.8rem;
        margin-bottom: 1.25rem;
    }

    .agent-stats {
        padding: 0.875rem 0;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .contact-btn {
        padding: 0.875rem;
        font-size: 0.85rem;
    }

    /* Compact Mortgage Calculator */
    .mortgage-calculator {
        padding: 3rem 0;
    }

    .calculator-info h2 {
        font-size: 1.8rem;
    }

    .calculator-info p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .calculator-features li {
        margin-bottom: 0.625rem;
        font-size: 0.9rem;
    }

    .calculator-form {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .calc-input {
        padding: 0.875rem;
        font-size: 0.9rem;
    }

    .calc-btn {
        padding: 0.875rem;
        font-size: 0.9rem;
        margin-top: 1rem;
    }

    .calc-result {
        padding: 0.875rem;
        margin-top: 1rem;
    }

    .result-label {
        font-size: 0.9rem;
    }

    .result-value {
        font-size: 1.3rem;
    }

    /* Compact Neighborhoods */
    .neighborhoods {
        padding: 3rem 0;
    }

    .neighborhood-card {
        border-radius: 12px;
    }

    .neighborhood-image {
        height: 180px;
    }

    .neighborhood-info {
        padding: 1.25rem;
    }

    .neighborhood-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.875rem;
    }

    .neighborhood-info p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .neighborhood-stats {
        padding: 0.875rem 0;
        gap: 0.875rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .stat-value {
        font-size: 0.95rem;
    }

    .neighborhood-link {
        font-size: 0.9rem;
        padding: 0.625rem;
    }

    /* Compact Contact Section */
    .contact {
        padding: 3rem 0;
    }

    .contact-info h2 {
        font-size: 1.8rem;
    }

    .contact-info p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .contact-item {
        gap: 0.875rem;
    }

    .contact-item i {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .contact-item h4 {
        font-size: 1rem;
    }

    .contact-item p {
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 0.875rem;
        font-size: 0.9rem;
        border-radius: 5px;
    }

    .contact-form textarea {
        min-height: 90px;
    }

    .submit-btn {
        padding: 0.875rem;
        font-size: 0.9rem;
    }

    /* Mobile Footer */
    .footer {
        padding: 2.5rem 0 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 0.875rem;
    }

    .footer-section p,
    .footer-section ul li {
        font-size: 0.9rem;
    }

    .footer-logo {
        font-size: 1.3rem;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .footer-demo-notice {
        font-size: 0.8rem;
        padding: 0.625rem 0.875rem;
    }

    /* Ensure touch targets are minimum 44px */
    button,
    .contact-btn,
    .filter-tab,
    .virtual-tour-btn,
    .neighborhood-link,
    input,
    select,
    textarea {
        min-height: 44px;
    }

    /* Improve readability on small screens */
    body {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Optimize spacing for small screens */
    section {
        padding: 2.5rem 0;
    }

    /* Enhanced focus states for mobile */
    button:focus,
    input:focus,
    select:focus,
    textarea:focus,
    a:focus {
        outline: 3px solid #0d9488;
        outline-offset: 2px;
    }
}

/* Animation for property cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth transitions for interactive elements */
button,
input,
select,
textarea,
.property-card,
.agent-card,
.neighborhood-card {
    transition: all 0.3s ease;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Landscape Mobile Orientation - 768px width, height less than 500px */
@media screen and (max-width: 768px) and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 50vh;
        padding: 80px 0 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .search-container {
        padding: 1rem;
        margin-top: 0.5rem;
    }
    
    .hero-content {
        gap: 1.5rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
}

/* Enhanced Mobile Interactions */
@media (max-width: 768px) {
    /* Improved touch scrolling */
    .filter-tabs {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .filter-tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    /* Better mobile card spacing */
    .properties,
    .agents,
    .neighborhoods,
    .contact {
        padding: 3rem 0;
    }
    
    /* Mobile-optimized property features */
    .property-features {
        margin-top: 1rem;
    }
    
    /* Improved mobile agent stats layout */
    .agent-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .agent-stats .stat {
        min-width: 80px;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
    /* Enhanced focus visibility on mobile */
    *:focus {
        outline: 3px solid #0d9488;
        outline-offset: 2px;
    }
    
    /* Better contrast for small screens */
    .property-address,
    .agent-experience,
    .neighborhood-info p {
        color: #4b5563;
    }
    
    /* Improved tap targets */
    .nav-menu a {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .search-container,
    .filters,
    .virtual-tour-btn {
        display: none;
    }
    
    .hero {
        padding: 2rem 0;
        background: white;
        color: black;
    }
    
    .property-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}