/* ============================================================
   GuyHome – Realtor.com-style Design System
   Primary: #D0021B (Realtor Red)  Secondary: #1A1A2E (Dark Navy)
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #D0021B;
  --red-dark: #a80016;
  --red-light: #fff0f0;
  --navy: #1a1a2e;
  --charcoal: #333333;
  --gray-700: #4a4a4a;
  --gray-500: #767676;
  --gray-300: #bbbbbb;
  --gray-200: #e8e8e8;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --green: #00a650;
  --blue: #006aff;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.1);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.15);
  --radius: 6px;
  --radius-lg: 12px;
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--charcoal); background: var(--white); line-height: 1.5; font-size: 14px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
ul { list-style: none; }

/* ── UTILITIES ── */
.sr-only { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.text-red { color: var(--red); }
.text-gray { color: var(--gray-500); }
.text-sm { font-size: 12px; }
.text-lg { font-size: 16px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.badge-red { background: var(--red); color: #fff; }
.badge-green { background: var(--green); color: #fff; }
.badge-blue { background: var(--blue); color: #fff; }
.badge-new { background: #fff; color: var(--red); border: 1px solid var(--red); }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s; border: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { background: #fff; color: var(--charcoal); border: 1.5px solid var(--gray-300); }
.btn-outline:hover { border-color: var(--charcoal); }
.btn-ghost { background: transparent; color: var(--charcoal); padding: 8px 12px; }
.btn-ghost:hover { background: var(--gray-100); }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ── TOPBAR ── */
.topbar { background: var(--white); border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 1000; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1440px; margin: 0 auto; padding: 0 20px; }

.logo { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.logo-text { font-size: 18px; font-weight: 900; color: var(--red); letter-spacing: -.5px; line-height: 1; white-space: nowrap; }
.logo-sub { font-size: 9px; font-weight: 600; color: var(--gray-500); letter-spacing: 1.5px; text-transform: uppercase; display: block; margin-top: -2px; }

.nav-main { display: flex; align-items: center; gap: 0; }
.nav-main a { display: flex; align-items: center; height: 64px; padding: 0 14px; font-size: 13px; font-weight: 600; color: var(--charcoal); border-bottom: 3px solid transparent; transition: color .15s, border-color .15s; white-space: nowrap; }
.nav-main a:hover { color: var(--red); border-bottom-color: var(--red); }
.nav-main a.active { color: var(--red); border-bottom-color: var(--red); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-actions .btn-sign-in { font-size: 13px; font-weight: 600; color: var(--charcoal); padding: 7px 14px; border-radius: var(--radius); border: 1.5px solid var(--gray-300); background: #fff; cursor: pointer; transition: all .2s; }
.nav-actions .btn-sign-in:hover { border-color: var(--charcoal); }
.nav-actions .btn-list { font-size: 13px; background: var(--red); color: #fff; border: none; padding: 8px 16px; border-radius: var(--radius); font-weight: 600; cursor: pointer; transition: all .2s; }
.nav-actions .btn-list:hover { background: var(--red-dark); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--charcoal); border-radius: 2px; }

/* Mobile nav panel */
.mobile-nav-panel { background: #fff; }
.mobile-nav-header { border-bottom-color: var(--gray-200); }
.mobile-nav-close { color: var(--charcoal); }
.mobile-nav-links a { color: var(--charcoal); border-bottom-color: var(--gray-100); }
.mobile-nav-links a:hover { color: var(--red); background: var(--gray-100); }
.mobile-nav-footer { border-top-color: var(--gray-200); }

/* ── HERO ── */
.hero { position: relative; height: 680px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: #000; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.4) 0%, rgba(0,0,0,.2) 100%); }
.hero-overlay-logo { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.10) 0%, rgba(0,0,0,.05) 35%, rgba(0,0,0,.35) 70%, rgba(0,0,0,.65) 100%); }
.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; padding: 0 16px 48px; text-align: center; }
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #d4a843; margin-bottom: 10px; text-shadow: 0 0 20px rgba(212,168,67,.6); }
.hero-title { font-size: clamp(26px, 4.5vw, 44px); font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 10px; text-shadow: 0 2px 16px rgba(0,0,0,.8); }
.hero-title span { color: #d4a843; text-shadow: 0 0 24px rgba(212,168,67,.5); }
.hero-sub { font-size: clamp(13px, 1.8vw, 16px); color: rgba(255,255,255,.8); margin-bottom: 28px; max-width: 520px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }

/* ── HERO SEARCH ── */
.hero-search { width: 100%; max-width: 740px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-tabs { display: flex; border-bottom: 1px solid var(--gray-200); }
.search-tab { flex: 1; padding: 12px 8px; text-align: center; font-size: 13px; font-weight: 700; color: var(--gray-500); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; background: none; border-top: none; border-left: none; border-right: none; transition: all .15s; }
.search-tab.active { color: var(--red); border-bottom-color: var(--red); background: #fff; }
.search-tab:hover:not(.active) { background: var(--gray-100); }
.search-form { display: flex; align-items: center; padding: 10px 12px; gap: 8px; }
.search-input-wrap { flex: 1; display: flex; align-items: center; gap: 8px; }
.search-icon { color: var(--gray-300); font-size: 16px; flex-shrink: 0; }
.search-input { flex: 1; border: none; outline: none; font-size: 15px; color: var(--charcoal); background: transparent; }
.search-input::placeholder { color: var(--gray-300); }
.search-divider { width: 1px; height: 28px; background: var(--gray-200); flex-shrink: 0; }
.search-select { border: none; outline: none; font-size: 13px; color: var(--charcoal); background: transparent; cursor: pointer; padding: 4px 8px; }
.search-btn { background: var(--red); color: #fff; border: none; padding: 12px 24px; border-radius: var(--radius); font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.search-btn:hover { background: var(--red-dark); }

/* ── QUICK STATS ── */
.quick-stats { background: var(--red); }
.quick-stats-inner { display: flex; align-items: center; justify-content: center; gap: 0; max-width: 1440px; margin: 0 auto; }
.quick-stat { flex: 1; text-align: center; padding: 20px; border-right: 1px solid rgba(255,255,255,.2); }
.quick-stat:last-child { border-right: none; }
.quick-stat-num { font-size: 24px; font-weight: 900; color: #fff; }
.quick-stat-label { font-size: 11px; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; }

/* ── SECTION HEADERS ── */
.section-header { margin-bottom: 28px; }
.section-header h2 { font-size: 24px; font-weight: 900; color: var(--navy); position: relative; display: inline-block; }
.section-header h2::after { content: ''; display: block; width: 40px; height: 3px; background: var(--red); border-radius: 2px; margin-top: 8px; }
.section-header p { color: var(--gray-500); margin-top: 8px; font-size: 14px; line-height: 1.6; }
.section-link { font-size: 13px; font-weight: 700; color: var(--red); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.section-link:hover { text-decoration: underline; }

/* ── PROPERTY TYPES (Browse by) ── */
.browse-section { padding: 56px 0; background: var(--white); }
.property-types { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.property-type-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 12px; border-radius: var(--radius-lg); border: 1.5px solid var(--gray-200); cursor: pointer; transition: all .25s; text-align: center; background: #fff; }
.property-type-card:hover { border-color: var(--red); box-shadow: 0 6px 24px rgba(208,2,27,.12); transform: translateY(-4px); }
.property-type-card:hover .pt-icon { background: var(--red); color: #fff; transform: scale(1.1); }
.pt-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--red-light); display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--red); transition: all .25s; }
.pt-label { font-size: 13px; font-weight: 700; color: var(--navy); }
.pt-count { font-size: 11px; color: var(--red); font-weight: 600; }

/* ── PROPERTY CARD ── */
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.prop-card { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; background: #fff; transition: all .2s; cursor: pointer; }
.prop-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.prop-card-img { position: relative; height: 200px; overflow: hidden; background: var(--gray-200); }
.prop-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.prop-card:hover .prop-card-img img { transform: scale(1.05); }
.prop-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.prop-save { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.9); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; box-shadow: var(--shadow-sm); transition: all .15s; }
.prop-save:hover { background: #fff; transform: scale(1.1); }
.prop-save.saved { color: var(--red); }
.prop-photo-count { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff; padding: 3px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.prop-body { padding: 14px; }
.prop-price { font-size: 19px; font-weight: 900; color: var(--navy); margin-bottom: 4px; }
.prop-price-sub { font-size: 11px; color: var(--gray-500); font-weight: 400; }
.prop-address { font-size: 13px; color: var(--charcoal); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.prop-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--gray-500); border-top: 1px solid var(--gray-200); padding-top: 10px; margin-top: 8px; flex-wrap: wrap; }
.prop-meta-item { display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.prop-meta-item strong { color: var(--charcoal); font-weight: 700; }
.prop-meta-sep { color: var(--gray-300); }
.prop-agent { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--gray-200); }
.prop-agent img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.prop-agent-name { font-size: 11px; color: var(--gray-500); }
.prop-agent-agency { font-size: 11px; font-weight: 700; color: var(--charcoal); }

/* ── FEATURED SECTION ── */
.featured-section { padding: 48px 0; background: var(--white); }

/* ── REGION CARDS ── */
.regions-section { padding: 48px 0; background: var(--white); }
.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.region-card { position: relative; height: 180px; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; }
.region-card:first-child { grid-column: span 2; height: 240px; }
.region-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.region-card:hover img { transform: scale(1.05); }
.region-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.1) 60%); }
.region-card-body { position: absolute; bottom: 16px; left: 16px; color: #fff; }
.region-card-body h3 { font-size: 17px; font-weight: 800; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.region-card-body p { font-size: 12px; opacity: .85; margin-top: 2px; }

/* ── MARKET BANNER ── */
.market-banner { background: linear-gradient(135deg, #0d1b2a 0%, #1a2744 50%, #0d1b2a 100%); padding: 64px 0; position: relative; overflow: hidden; }
.market-banner::before { content: ''; position: absolute; inset: 0; background: url('/static/hero-bg.jpg') center/cover; opacity: .06; }
.market-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; position: relative; }
.market-text h2 { font-size: 32px; font-weight: 900; color: #fff; margin-bottom: 14px; line-height: 1.2; }
.market-text p { color: rgba(255,255,255,.75); max-width: 520px; line-height: 1.7; font-size: 15px; }
.market-stats { display: flex; gap: 40px; flex-shrink: 0; }
.market-stat { text-align: center; color: #fff; }
.market-stat-num { font-size: 36px; font-weight: 900; color: #ffcc00; line-height: 1; }
.market-stat-label { font-size: 11px; opacity: .65; text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; }

/* ── AGENTS ── */
.agents-section { padding: 48px 0; background: var(--white); }
.agent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.agent-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; text-align: center; transition: all .2s; }
.agent-card:hover { box-shadow: var(--shadow-md); border-color: transparent; transform: translateY(-2px); }
.agent-card-top { padding: 24px 20px 16px; }
.agent-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--gray-200); }
.agent-name { font-size: 15px; font-weight: 800; color: var(--navy); }
.agent-title { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.agent-agency { font-size: 12px; font-weight: 700; color: var(--red); margin-top: 4px; }
.agent-rating { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 8px; font-size: 13px; }
.agent-rating .stars { color: #f5a623; }
.agent-rating .count { color: var(--gray-500); font-size: 11px; }
.agent-stats { display: flex; border-top: 1px solid var(--gray-200); }
.agent-stat { flex: 1; padding: 12px 8px; text-align: center; border-right: 1px solid var(--gray-200); }
.agent-stat:last-child { border-right: none; }
.agent-stat-num { font-size: 16px; font-weight: 800; color: var(--navy); }
.agent-stat-label { font-size: 10px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .5px; }
.agent-card-actions { padding: 12px 16px; border-top: 1px solid var(--gray-200); display: flex; gap: 8px; }
.agent-card-actions .btn { flex: 1; justify-content: center; font-size: 12px; padding: 8px 12px; }

/* ── HOW IT WORKS ── */
.how-section { padding: 72px 0; background: #f8f9fb; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step-card { text-align: center; padding: 20px; }
.step-num { width: 60px; height: 60px; border-radius: 50%; background: var(--red); color: #fff; font-size: 24px; font-weight: 900; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 4px 16px rgba(208,2,27,.3); }
.step-card h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.step-card p { color: var(--gray-500); font-size: 14px; line-height: 1.7; }

/* ── NEWSLETTER ── */
.newsletter { background: var(--navy); padding: 56px 0; border-top: 4px solid var(--red); }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.newsletter-text h2 { font-size: 26px; font-weight: 900; color: #fff; }
.newsletter-text p { color: rgba(255,255,255,.7); margin-top: 6px; font-size: 15px; }
.newsletter-form { display: flex; gap: 10px; flex-shrink: 0; }
.newsletter-form input { padding: 13px 18px; border-radius: var(--radius); border: none; outline: none; font-size: 14px; min-width: 280px; }
.newsletter-form button { background: var(--red); color: #fff; border: none; padding: 13px 28px; border-radius: var(--radius); font-weight: 700; cursor: pointer; font-size: 14px; white-space: nowrap; }
.newsletter-form button:hover { background: var(--red-dark); }

/* ── FOOTER ── */
.footer { background: #0d1117; color: rgba(255,255,255,.75); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-text { font-size: 22px; color: var(--red); margin-bottom: 14px; font-weight: 900; }
.footer-brand p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.55); max-width: 240px; margin-bottom: 20px; }
.footer-col h4 { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 12px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.35); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,.35); }
.footer-bottom-links a:hover { color: rgba(255,255,255,.75); }

/* ── LISTINGS PAGE ── */
.listings-page { min-height: 100vh; background: var(--white); }
.listings-header { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 16px 0; }
.listings-search-bar { display: flex; align-items: center; gap: 8px; background: var(--gray-100); border: 1.5px solid var(--gray-200); border-radius: var(--radius); padding: 8px 14px; flex: 1; max-width: 500px; }
.listings-search-bar input { border: none; outline: none; background: transparent; font-size: 14px; flex: 1; color: var(--charcoal); }
.listings-filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 20px; border: 1.5px solid var(--gray-300); background: #fff; font-size: 13px; font-weight: 600; color: var(--charcoal); cursor: pointer; transition: all .15s; white-space: nowrap; }
.filter-pill:hover, .filter-pill.active { border-color: var(--red); color: var(--red); background: var(--red-light); }
.filter-pill select { border: none; outline: none; background: transparent; font-size: 13px; font-weight: 600; cursor: pointer; color: inherit; }

.listings-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; padding: 20px 0; }
.listings-sidebar { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: 80px; }
.sidebar-section { padding: 16px; border-bottom: 1px solid var(--gray-200); }
.sidebar-section:last-child { border-bottom: none; }
.sidebar-section h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--charcoal); margin-bottom: 12px; }
.sidebar-option { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; }
.sidebar-option input[type=checkbox], .sidebar-option input[type=radio] { width: 15px; height: 15px; accent-color: var(--red); cursor: pointer; }
.sidebar-option label { font-size: 13px; color: var(--charcoal); cursor: pointer; flex: 1; display: flex; align-items: center; justify-content: space-between; }
.sidebar-count { font-size: 11px; color: var(--gray-500); }
.range-wrap { display: flex; gap: 8px; align-items: center; }
.range-input { flex: 1; padding: 8px 10px; border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-size: 13px; outline: none; }
.range-input:focus { border-color: var(--red); }
.range-sep { color: var(--gray-300); font-size: 16px; flex-shrink: 0; }
.bed-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.bed-btn { padding: 6px 14px; border: 1.5px solid var(--gray-300); border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; background: #fff; color: var(--charcoal); transition: all .15s; }
.bed-btn.active, .bed-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }
.sidebar-apply { width: 100%; margin-top: 12px; background: var(--red); color: #fff; border: none; padding: 11px; border-radius: var(--radius); font-size: 14px; font-weight: 700; cursor: pointer; }
.sidebar-apply:hover { background: var(--red-dark); }

.listings-main { }
.listings-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; background: var(--white); padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--gray-200); }
.listings-count { font-size: 14px; color: var(--gray-500); }
.listings-count strong { color: var(--charcoal); font-size: 15px; }
.sort-wrap { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-500); }
.sort-wrap select { border: 1.5px solid var(--gray-200); border-radius: var(--radius); padding: 6px 10px; font-size: 13px; outline: none; cursor: pointer; }

.prop-grid-main { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ── PROPERTY DETAIL PAGE ── */
.detail-page { background: var(--white); }
.detail-breadcrumb { padding: 12px 0; font-size: 13px; color: var(--gray-500); display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--gray-200); }
.detail-breadcrumb a { color: var(--red); }
.detail-breadcrumb a:hover { text-decoration: underline; }

.gallery-main { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 280px 140px; gap: 6px; border-radius: var(--radius-lg); overflow: hidden; }
.gallery-main-img { grid-row: span 2; overflow: hidden; }
.gallery-main-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; cursor: pointer; }
.gallery-main-img img:hover { transform: scale(1.02); }
.gallery-thumb { overflow: hidden; position: relative; cursor: pointer; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-thumb:hover img { transform: scale(1.03); }
.gallery-more { position: absolute; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }

.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 24px 0 48px; align-items: start; }
.detail-main { }
.detail-sidebar { position: sticky; top: 80px; }

.detail-price-block { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 12px; }
.detail-price { font-size: 32px; font-weight: 900; color: var(--navy); }
.detail-actions { display: flex; gap: 8px; }
.detail-address { font-size: 16px; color: var(--charcoal); margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
.detail-meta { display: flex; gap: 20px; padding: 16px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); margin-bottom: 24px; flex-wrap: wrap; }
.detail-meta-item { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 80px; }
.detail-meta-icon { font-size: 20px; }
.detail-meta-val { font-size: 16px; font-weight: 800; color: var(--navy); }
.detail-meta-label { font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .5px; }

.detail-section { margin-bottom: 28px; }
.detail-section h3 { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--gray-200); }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.feature-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--charcoal); }
.feature-item::before { content: '✓'; color: var(--green); font-weight: 700; }
.details-table { width: 100%; border-collapse: collapse; }
.details-table td { padding: 10px 12px; font-size: 13px; border-bottom: 1px solid var(--gray-200); }
.details-table td:first-child { color: var(--gray-500); width: 40%; }
.details-table td:last-child { font-weight: 600; color: var(--charcoal); }

/* Contact/Agent card */
.agent-contact-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.agent-contact-top { background: var(--navy); padding: 20px; color: #fff; text-align: center; }
.agent-contact-photo { width: 72px; height: 72px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); margin: 0 auto 12px; object-fit: cover; }
.agent-contact-name { font-size: 16px; font-weight: 800; }
.agent-contact-agency { font-size: 12px; opacity: .7; margin-top: 4px; }
.agent-contact-rating { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; font-size: 13px; }
.agent-contact-rating .stars { color: #f5a623; }
.agent-contact-body { padding: 20px; }
.contact-form { display: flex; flex-direction: column; gap: 10px; }
.contact-form input, .contact-form textarea { padding: 10px 12px; border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-size: 13px; outline: none; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--red); }
.contact-form button { background: var(--red); color: #fff; border: none; padding: 12px; border-radius: var(--radius); font-size: 14px; font-weight: 700; cursor: pointer; }
.contact-form button:hover { background: var(--red-dark); }
.contact-phone-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 10px; border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-size: 14px; font-weight: 700; color: var(--charcoal); }
.contact-phone-link:hover { border-color: var(--charcoal); }

/* Mortgage calculator */
.mortgage-calc { background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 20px; margin-top: 16px; }
.mortgage-calc h4 { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.calc-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.calc-label { font-size: 13px; color: var(--charcoal); }
.calc-input { width: 120px; padding: 7px 10px; border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-size: 13px; text-align: right; outline: none; background: #fff; }
.calc-input:focus { border-color: var(--red); }
.calc-result { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 14px; text-align: center; margin-top: 12px; }
.calc-result-num { font-size: 26px; font-weight: 900; }
.calc-result-label { font-size: 12px; opacity: .7; margin-top: 2px; }
.calc-btn { width: 100%; background: var(--red); color: #fff; border: none; padding: 10px; border-radius: var(--radius); font-weight: 700; cursor: pointer; margin-top: 10px; font-size: 13px; }
.calc-btn:hover { background: var(--red-dark); }

/* ── AGENTS FULL PAGE ── */
.agents-page { background: var(--white); min-height: 100vh; }
.agents-hero { background: var(--navy); padding: 40px 0; color: #fff; text-align: center; }
.agents-hero h1 { font-size: 32px; font-weight: 900; margin-bottom: 8px; }
.agents-hero p { color: rgba(255,255,255,.75); font-size: 16px; }
.agents-filter-bar { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 12px 0; }
.agents-search { display: flex; align-items: center; gap: 8px; background: var(--gray-100); border: 1.5px solid var(--gray-200); border-radius: var(--radius); padding: 8px 14px; max-width: 400px; }
.agents-search input { border: none; outline: none; background: transparent; font-size: 14px; flex: 1; }
.agents-full-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 28px 0; }

/* ── SELL PAGE ── */
.sell-page { background: var(--white); }
.sell-hero { background: linear-gradient(135deg, var(--navy) 0%, #2d3561 100%); padding: 64px 0; color: #fff; }
.sell-hero h1 { font-size: 40px; font-weight: 900; margin-bottom: 12px; }
.sell-hero p { font-size: 18px; color: rgba(255,255,255,.8); max-width: 540px; }
.sell-steps { padding: 64px 0; }
.sell-steps h2 { font-size: 28px; font-weight: 900; color: var(--navy); text-align: center; margin-bottom: 40px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 48px 0; }
.pricing-card { border: 2px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px; text-align: center; transition: all .2s; }
.pricing-card.popular { border-color: var(--red); position: relative; }
.pricing-card.popular::before { content: 'Most Popular'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 12px; }
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pricing-name { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.pricing-price { font-size: 36px; font-weight: 900; color: var(--red); margin-bottom: 4px; }
.pricing-period { font-size: 13px; color: var(--gray-500); margin-bottom: 20px; }
.pricing-features { text-align: left; margin-bottom: 24px; }
.pricing-feature { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--charcoal); padding: 6px 0; border-bottom: 1px solid var(--gray-200); }
.pricing-feature:last-child { border-bottom: none; }
.pricing-feature::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ── LIST FORM ── */
.list-form-page { background: var(--white); padding: 40px 0 64px; }
.list-form-container { max-width: 760px; margin: 0 auto; }
.form-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 20px; }
.form-card h3 { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--gray-200); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--charcoal); }
.form-group input, .form-group select, .form-group textarea { padding: 10px 12px; border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-size: 14px; outline: none; background: #fff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--red); }
.form-full { grid-column: span 2; }
.form-submit { background: var(--red); color: #fff; border: none; padding: 16px 32px; border-radius: var(--radius); font-size: 16px; font-weight: 700; cursor: pointer; width: 100%; margin-top: 8px; }
.form-submit:hover { background: var(--red-dark); }

/* ── LIGHTBOX ── */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 32px; cursor: pointer; background: none; border: none; line-height: 1; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); color: #fff; border: none; font-size: 28px; padding: 12px 18px; border-radius: var(--radius); cursor: pointer; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter { position: absolute; bottom: 20px; color: rgba(255,255,255,.7); font-size: 14px; }

/* ── MOBILE NAV DRAWER ── */
.mobile-nav { display: none; position: fixed; inset: 0; z-index: 2000; }
.mobile-nav-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.mobile-nav-panel { position: absolute; top: 0; left: 0; bottom: 0; width: 280px; background: #fff; display: flex; flex-direction: column; overflow-y: auto; }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--gray-200); }
.mobile-nav-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--charcoal); }
.mobile-nav-links { padding: 12px 0; }
.mobile-nav-links a { display: block; padding: 14px 20px; font-size: 15px; font-weight: 600; color: var(--charcoal); border-bottom: 1px solid var(--gray-100); }
.mobile-nav-links a:hover { color: var(--red); background: var(--gray-100); }
.mobile-nav-footer { padding: 16px; border-top: 1px solid var(--gray-200); display: flex; flex-direction: column; gap: 10px; }

/* ── TOAST ── */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--navy); color: #fff; padding: 12px 24px; border-radius: var(--radius-lg); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; transition: all .3s; z-index: 5000; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── WHATSAPP ── */
/* Inline button (green, used inside agent cards / contact cards) */
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 6px;
  background: #25D366; color: #fff; border: none;
  padding: 8px 14px; border-radius: var(--radius);
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background .2s; text-decoration: none;
  white-space: nowrap;
}
.btn-whatsapp:hover { background: #1ebe5d; color: #fff; }
.btn-whatsapp-lg {
  padding: 12px 22px; font-size: 14px; border-radius: var(--radius);
}

/* Full-width WhatsApp link (used in property detail sidebar) */
.contact-whatsapp-link {
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff;
  padding: 13px 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: background .2s; justify-content: center;
  margin-top: 10px;
}
.contact-whatsapp-link:hover { background: #1ebe5d; color: #fff; }
.contact-whatsapp-link i { font-size: 18px; }

/* Floating WhatsApp bubble (bottom-right corner, all pages) */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 4900;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.55);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  animation: waPulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37,211,102,.7);
  animation: none;
}
.whatsapp-float i { color: #fff; font-size: 28px; }

/* Tooltip on hover */
.whatsapp-float::before {
  content: 'Chat on WhatsApp';
  position: absolute; right: 68px; top: 50%; transform: translateY(-50%);
  background: #333; color: #fff; font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: var(--radius); white-space: nowrap;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.whatsapp-float:hover::before { opacity: 1; }

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.55); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,.85), 0 0 0 10px rgba(37,211,102,.12); }
}

@media (max-width: 768px) {
  .whatsapp-float { bottom: 20px; right: 16px; width: 52px; height: 52px; }
  .whatsapp-float i { font-size: 24px; }
  .whatsapp-float::before { display: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .prop-grid { grid-template-columns: repeat(2, 1fr); }
  .prop-grid-main { grid-template-columns: repeat(2, 1fr); }
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .agents-full-grid { grid-template-columns: repeat(2, 1fr); }
  .property-types { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .market-inner { flex-direction: column; text-align: center; }
  .market-stats { justify-content: center; }
  .listings-layout { grid-template-columns: 240px 1fr; }
}

@media (max-width: 768px) {
  .nav-main { display: none; }
  .hamburger { display: flex; }
  .nav-actions .btn-sign-in { display: none; }
  .hero { height: 500px; }
  .quick-stats-inner { flex-wrap: wrap; }
  .quick-stat { min-width: 50%; }
  .prop-grid, .prop-grid-main { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: 1fr; }
  .region-card:first-child { grid-column: span 1; }
  .steps-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .agent-grid, .agents-full-grid { grid-template-columns: 1fr 1fr; }
  .listings-layout { grid-template-columns: 1fr; }
  .listings-sidebar { position: static; }
  .gallery-main { grid-template-columns: 1fr; grid-template-rows: 280px; }
  .gallery-thumb:not(:first-of-type) { display: none; }
  .gallery-main-img { grid-row: span 1; }
  .detail-layout { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input { min-width: unset; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-form { flex-wrap: wrap; }
  .search-divider { display: none; }
  .detail-meta { gap: 12px; justify-content: center; }
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: span 1; }
}

@media (max-width: 480px) {
  .hero-search { border-radius: var(--radius); }
  .search-tabs { overflow-x: auto; }
  .agent-grid, .agents-full-grid { grid-template-columns: 1fr; }
  .property-types { grid-template-columns: repeat(2, 1fr); }
  .market-stats { flex-direction: column; gap: 20px; }
}
