/* ===== CSS VARIABLES - Base Real Estate Brand Colors ===== */
:root {
    --primary-coral: #FF5A4F;
    --primary-coral-dark: #E5463B;
    --accent-gold: #FFB800;
    --accent-gold-dark: #E6A500;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-light: #999999;
    --background-light: #F7F7F7;
    --background-white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--background-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

input {
    font-family: inherit;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    background-color: var(--background-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-image {
    height: 40px;
    width: auto;
}

/* ===== NAVIGATION ===== */
.nav-desktop {
    display: none;
    gap: 8px;
}

@media (min-width: 992px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-item {
    position: relative;
}

.nav-link {
    background: none;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: 6px;
}

.nav-link:hover {
    background-color: var(--background-light);
}

/* Dropdown */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--background-white);
    min-width: 280px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    display: flex;
    gap: 30px;
    margin-top: 8px;
}

.nav-item:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.dropdown-section a {
    display: block;
    padding: 8px 0;
    color: var(--text-primary);
    font-size: 14px;
}

.dropdown-section a:hover {
    color: var(--primary-coral);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-text {
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    display: none;
}

@media (min-width: 768px) {
    .btn-text {
        display: block;
    }
}

.btn-text:hover {
    color: var(--primary-coral);
}

.btn-secondary {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    background-color: var(--background-white);
    color: var(--primary-coral);
    border: 2px solid var(--primary-coral);
    border-radius: 6px;
}

.btn-secondary:hover {
    background-color: var(--primary-coral);
    color: var(--background-white);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    padding: 8px;
}

@media (min-width: 992px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn span {
    width: 24px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Navigation */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background-color: var(--background-white);
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-close {
    background: none;
    font-size: 32px;
    color: var(--text-primary);
    line-height: 1;
}

.mobile-nav-content {
    padding: 20px;
}

.mobile-nav-item {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-item:hover {
    color: var(--primary-coral);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #FFF5F4 0%, #FFF9E6 100%);
    padding: 60px 0 80px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
}

/* Search Card */
.search-card {
    background-color: var(--background-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: visible;
    max-width: 900px;
    margin: 0 auto;
}

.search-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.search-tab {
    flex: 1;
    min-width: fit-content;
    padding: 16px 20px;
    background: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.search-tab:hover {
    color: var(--text-primary);
}

.search-tab.active {
    color: var(--primary-coral);
    border-bottom-color: var(--primary-coral);
}

.search-content {
    padding: 30px;
    overflow: visible;
    position: relative;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    overflow: visible;
}

.search-panel {
    display: none;
}

.search-panel.active {
    display: block;
}

.search-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-light);
}

.search-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-coral);
}

.panel-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ===== BUTTONS ===== */
.btn-primary {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    background-color: var(--primary-coral);
    color: var(--background-white);
    border-radius: 8px;
    display: inline-block;
    text-align: center;
}

@media (max-width: 768px) {
    .btn-primary {
        width: 100%;
    }
}

.btn-primary:hover {
    background-color: var(--primary-coral-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary-large {
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    background-color: var(--primary-coral);
    color: var(--background-white);
    border-radius: 8px;
    display: inline-block;
}

.btn-primary-large:hover {
    background-color: var(--primary-coral-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 80px 0;
    background-color: var(--background-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--background-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 24px;
}

.service-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--accent-gold);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.service-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-link {
    color: var(--primary-coral);
    font-size: 15px;
    font-weight: 600;
}

.service-link:hover {
    color: var(--primary-coral-dark);
    text-decoration: underline;
}

/* ===== FEATURED LISTINGS ===== */
.featured-listings {
    padding: 80px 0;
    background-color: var(--background-light);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.listing-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.listing-card {
    background-color: var(--background-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.listing-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.listing-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.listing-card:hover .listing-image img {
    transform: scale(1.05);
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.favorite-btn:hover {
    background-color: var(--primary-coral);
    color: var(--background-white);
    transform: scale(1.1);
}

.listing-content {
    padding: 20px;
}

.listing-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.listing-details {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.listing-address {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== APP DOWNLOAD SECTION ===== */
.app-download {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-coral) 0%, #FF7A6F 100%);
    color: var(--background-white);
}

.app-download-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

@media (max-width: 992px) {
    .app-download-content {
        flex-direction: column;
        text-align: center;
    }
}

.app-download-text h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
}

.app-download-text p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
}

.app-download-image {
    flex-shrink: 0;
    max-width: 300px;
}

.app-download-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 0;
    background-color: var(--background-white);
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

@media (max-width: 992px) {
    .cta-content {
        flex-direction: column;
    }
}

.cta-text {
    flex: 1;
}

.cta-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-text p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.cta-image {
    flex: 1;
}

.cta-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* ===== CITIES SECTION ===== */
.cities-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.city-link {
    padding: 12px 16px;
    background-color: var(--background-white);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-primary);
    text-align: center;
    transition: var(--transition);
}

.city-link:hover {
    background-color: var(--primary-coral);
    color: var(--background-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.show-more-btn {
    display: block;
    margin: 0 auto;
    padding: 12px 32px;
    background-color: var(--background-white);
    color: var(--primary-coral);
    border: 2px solid var(--primary-coral);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
}

.show-more-btn:hover {
    background-color: var(--primary-coral);
    color: var(--background-white);
}

/* ===== AGENT CONTACT SECTION ===== */
.agent-contact {
    padding: 80px 0;
    background-color: var(--background-white);
}

.agent-contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.agent-contact-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.agent-contact-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.agent-contact-form {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .agent-contact-form {
        flex-direction: column;
    }
}

.agent-input {
    flex: 1;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
}

.agent-input:focus {
    outline: none;
    border-color: var(--primary-coral);
}

.agent-contact-note {
    font-size: 14px;
    color: var(--text-light);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--text-primary);
    color: var(--background-white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--background-white);
}

.footer-column a {
    display: block;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-column a:hover {
    color: var(--primary-coral);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.footer-logo-img {
    height: 35px;
    filter: brightness(0) invert(1);
}

.footer-legal p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .footer-links {
        justify-content: center;
    }
}

.footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--primary-coral);
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }


