/* ===========================
   Equity Assets Realty
   Navy / Gold / Warm White
   =========================== */

:root {
    --navy:        #1a2744;
    --navy-light:  #243356;
    --navy-dark:   #111b30;
    --gold:        #c8a45c;
    --gold-light:  #dcc07a;
    --gold-dark:   #a8863e;
    --cream:       #faf8f4;
    --warm-white:  #ffffff;
    --text-dark:   #2a2a2a;
    --text-muted:  #6b7280;
    --border:      #e5e2dc;
    --success:     #2e7d5b;
    --ff-display:  'Playfair Display', Georgia, serif;
    --ff-body:     'Source Sans 3', 'Segoe UI', sans-serif;
    --transition:  all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--ff-body);
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--navy);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--gold-dark); }

img { max-width: 100%; height: auto; }

/* ---- Top Bar ---- */
.top-bar {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
    padding: 6px 0;
    letter-spacing: 0.02em;
}
.top-bar a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}
.top-bar a:hover { color: var(--gold-light); }
.lang-toggle {
    background: rgba(255,255,255,0.1);
    padding: 2px 10px;
    border-radius: 3px;
    font-weight: 500;
}
.lang-toggle:hover { background: rgba(255,255,255,0.2); }

/* ---- Navbar ---- */
.navbar {
    background: var(--warm-white);
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
    padding: 0.6rem 0;
    z-index: 1000;
}
.navbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
}
.brand-text {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--navy);
}
.brand-sub {
    font-family: var(--ff-body);
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    color: var(--gold);
    text-transform: uppercase;
}
.navbar .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
    padding: 0.5rem 0.85rem;
    position: relative;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--gold-dark); }
.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.85rem;
    right: 0.85rem;
    height: 2px;
    background: var(--gold);
}
.navbar-toggler {
    border: none;
    font-size: 1.5rem;
    color: var(--navy);
    padding: 0.25rem;
}
.navbar-toggler:focus { box-shadow: none; }

.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 0.4rem 0;
}
.dropdown-item {
    font-size: 0.88rem;
    padding: 0.45rem 1.2rem;
}
.dropdown-item:hover { background: var(--cream); color: var(--gold-dark); }

/* ---- Buttons ---- */
.btn-accent {
    background: var(--gold);
    color: var(--warm-white);
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.45rem 1.2rem;
    border-radius: 5px;
    transition: var(--transition);
}
.btn-accent:hover {
    background: var(--gold-dark);
    color: var(--warm-white);
    transform: translateY(-1px);
}

.btn-navy {
    background: var(--navy);
    color: var(--warm-white);
    border: none;
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
}
.btn-navy:hover {
    background: var(--navy-light);
    color: var(--warm-white);
    transform: translateY(-1px);
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold-dark);
    background: transparent;
    font-weight: 600;
    border-radius: 5px;
}
.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--warm-white);
}

/* ---- Hero ---- */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--warm-white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><rect fill="none" stroke="rgba(200,164,92,0.06)" stroke-width="1" x="0" y="0" width="80" height="80"/></svg>');
    background-size: 80px 80px;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
    font-size: 3rem;
    color: var(--warm-white);
    margin-bottom: 1rem;
}
.hero .lead {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    font-weight: 300;
    max-width: 540px;
}
.hero .btn-accent { font-size: 1rem; padding: 0.7rem 2rem; }
.hero .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.4);
    font-weight: 600;
    padding: 0.7rem 2rem;
}
.hero .btn-outline-light:hover {
    border-color: var(--gold);
    color: var(--gold-light);
    background: transparent;
}

/* ---- Quick Search Bar ---- */
.quick-search {
    background: var(--warm-white);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    padding: 1.5rem 2rem;
    margin-top: -2.5rem;
    position: relative;
    z-index: 10;
}
.quick-search .form-control,
.quick-search .form-select {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}
.quick-search .form-control:focus,
.quick-search .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,164,92,0.15);
}

/* ---- Sections ---- */
.section {
    padding: 4.5rem 0;
}
.section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}
.section-alt { background: var(--warm-white); }
.gold-accent {
    width: 50px;
    height: 3px;
    background: var(--gold);
    display: block;
    margin: 0.8rem auto 0;
}

/* ---- Agent Cards ---- */
.agent-card {
    background: var(--warm-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    transition: var(--transition);
    text-align: center;
    height: 100%;
}
.agent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.agent-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--border);
}
.agent-photo-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.3);
}
.agent-info {
    padding: 1.2rem 1rem;
}
.agent-name {
    font-family: var(--ff-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.2rem;
}
.agent-title {
    font-size: 0.82rem;
    color: var(--gold-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.agent-designations {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}
.agent-phone {
    font-size: 0.88rem;
    margin-top: 0.5rem;
}
.agent-phone a { color: var(--navy); font-weight: 500; }

/* ---- Testimonial Cards ---- */
.testimonial-card {
    background: var(--warm-white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    height: 100%;
    border-left: 4px solid var(--gold);
}
.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    font-style: italic;
}
.testimonial-author {
    font-weight: 600;
    color: var(--navy);
    margin-top: 1rem;
}
.testimonial-stars { color: var(--gold); }

/* ---- Contact Form ---- */
.contact-form .form-label {
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text-dark);
}
.contact-form .form-control {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.65rem 1rem;
}
.contact-form .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,164,92,0.15);
}

/* ---- IDX Search Placeholder ---- */
.idx-placeholder {
    background: linear-gradient(135deg, var(--cream) 0%, var(--warm-white) 100%);
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
}
.idx-placeholder i { font-size: 3rem; color: var(--gold); }

/* ---- Mortgage Calculator ---- */
.calc-result {
    background: var(--navy);
    color: var(--warm-white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}
.calc-result .amount {
    font-family: var(--ff-display);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold-light);
}
.calc-result .label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ---- Blog Cards ---- */
.blog-card {
    background: var(--warm-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,0.08); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 1.2rem; }
.blog-card-title { font-size: 1.1rem; }
.blog-card-date { font-size: 0.8rem; color: var(--text-muted); }

/* ---- Flash Messages ---- */
.alert-flash {
    border-radius: 8px;
    font-size: 0.9rem;
    padding: 0.8rem 1.2rem;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.8);
    padding: 3.5rem 0 1.5rem;
}
.site-footer .footer-brand .brand-text {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--warm-white);
}
.site-footer .footer-brand .brand-sub {
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    color: var(--gold);
}
.footer-about { font-size: 0.88rem; line-height: 1.6; }
.footer-heading {
    font-family: var(--ff-body);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-light);
    margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-text { font-size: 0.88rem; line-height: 1.7; }
.footer-text a { color: rgba(255,255,255,0.8); }
.footer-text a:hover { color: var(--gold-light); }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    margin-right: 0.5rem;
    font-size: 0.95rem;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--warm-white); }
.footer-divider {
    border-color: rgba(255,255,255,0.08);
    margin: 2rem 0 1rem;
}
.footer-copyright {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}
.footer-copyright a { color: rgba(255,255,255,0.5); }
.footer-copyright a:hover { color: var(--gold-light); }

/* ---- Page Header ---- */
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--warm-white);
    padding: 3rem 0;
    text-align: center;
}
.page-header h1 {
    font-size: 2.2rem;
    color: var(--warm-white);
    margin-bottom: 0.3rem;
}
.page-header p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .hero { padding: 3.5rem 0; }
    .hero h1 { font-size: 2.2rem; }
    .quick-search { margin-top: 1.5rem; padding: 1rem 1.2rem; }
    .section { padding: 3rem 0; }
    .section-title { font-size: 1.6rem; }
}

@media (max-width: 575px) {
    .hero h1 { font-size: 1.8rem; }
    .hero .lead { font-size: 1rem; }
    .top-bar { font-size: 0.75rem; }
    .navbar .nav-link { padding: 0.5rem 0; }
}

.listing-card{background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 2px 16px rgba(0,0,0,0.05);transition:all .3s ease;height:100%}
.listing-card:hover{transform:translateY(-4px);box-shadow:0 8px 30px rgba(0,0,0,0.1)}
.listing-photo{width:100%;height:200px;background-size:cover;background-position:center;background-color:#e5e2dc}
.listing-no-photo{display:flex;align-items:center;justify-content:center;font-size:3rem;color:rgba(0,0,0,0.1);background:linear-gradient(135deg,#e8e6e1,#d5d2cc)}
.listing-price{position:relative;margin-top:-18px;margin-left:12px;display:inline-block;background:#1a2744;color:#fff;font-family:"Playfair Display",serif;font-size:1.15rem;font-weight:700;padding:4px 14px;border-radius:5px;z-index:2}
.listing-status{display:inline-block;margin-left:6px;background:#c8a45c;color:#fff;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;padding:3px 8px;border-radius:3px;vertical-align:middle}
.listing-body{padding:.8rem 1rem 1rem}
.listing-address{font-weight:600;font-size:.95rem;color:#2a2a2a;line-height:1.3}
.listing-city{font-size:.82rem;color:#6b7280;margin-top:2px}
.listing-details{display:flex;gap:12px;margin-top:8px;font-size:.82rem;color:#6b7280}
.listing-details i{color:#c8a45c;margin-right:2px}
.listing-mls{font-size:.7rem;color:#6b7280;margin-top:6px;opacity:.6}
