/* =========================================================
   AnqRealty — design tokens
   ========================================================= */
:root{
  --bg:            #ffffff;
  --bg-soft:       #f6f6f3;
  --bg-dark:       #101010;
  --surface:       #ffffff;
  --border:        #e8e6e1;
  --border-strong: #d8d6d0;
  --text:          #121210;
  --text-muted:    #6c6a65;
  --text-faint:    #a3a19b;
  --on-dark:       #f4f3f0;
  --on-dark-muted: #b7b5ae;

  --accent:        #121210;
  --accent-hover:  #2b2a27;
  --accent-soft:   #f1f0ec;

  --success:       #1f8a4c;
  --success-bg:    #eaf7ee;
  --error:         #c0392b;
  --error-bg:      #fdecea;

  --radius-lg:  24px;
  --radius-md:  16px;
  --radius-sm:  10px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16,16,16,.04), 0 1px 1px rgba(16,16,16,.03);
  --shadow-md: 0 12px 32px rgba(16,16,16,.08);
  --shadow-lg: 0 24px 60px rgba(16,16,16,.14);

  --font-display: 'Manrope', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;

  --container: 1800px;
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  line-height:1.55;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }
input, select, textarea{ font-family:inherit; font-size:1rem; }
h1,h2,h3,h4{ font-family:var(--font-display); font-weight:700; margin:0; letter-spacing:-0.02em; color:var(--text); }
p{ margin:0; }
:focus-visible{ outline:2px solid var(--text); outline-offset:2px; }

.container{ max-width:var(--container); margin:0 auto; padding:0 20px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 24px; font-size:.94rem; font-weight:600; border:1px solid transparent;
  border-radius:var(--radius-sm); cursor:pointer; transition:.18s ease; white-space:nowrap;
}
.btn-pill{ border-radius:var(--radius-pill); }
.btn-dark{ background:var(--accent); color:#fff; }
.btn-dark:hover{ background:var(--accent-hover); }
.btn-outline{ background:transparent; border-color:var(--border-strong); color:var(--text); }
.btn-outline:hover{ border-color:var(--text); }
.btn-ghost{ background:var(--accent-soft); color:var(--text); }
.btn-ghost:hover{ background:var(--border); }
.btn-danger{ background:var(--error-bg); color:var(--error); }
.btn-danger:hover{ background:#f8d7d3; }
.btn-whatsapp{ background:#25d366; color:#fff; }
.btn-whatsapp:hover{ background:#1fb958; }
.btn-block{ width:100%; }
.btn-sm{ padding:9px 16px; font-size:.85rem; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }
.link-muted{ color:var(--text-muted); font-weight:500; font-size:.94rem; }
.link-muted:hover{ color:var(--text); }

/* icons */
.icon{ width:20px; height:20px; flex-shrink:0; color:currentColor; }
.icon-sm{ width:16px; height:16px; }
.icon-lg{ width:28px; height:28px; }
.icon-muted{ color:var(--text-muted); }

/* =========================================================
   Header
   ========================================================= */
.site-header{ position:sticky; top:0; z-index:50; background:rgba(255,255,255,.92); backdrop-filter:blur(10px); border-bottom:1px solid var(--border); }
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap:24px; height:84px; }

.logo{ display:flex; flex-direction:column; line-height:1; font-family:var(--font-display); flex-shrink:0; }
.logo-img{ max-height:38px; max-width:180px; width:auto; height:auto; object-fit:contain; }
.logo-top{ font-size:1.05rem; font-weight:800; letter-spacing:.02em; }
.logo-bottom{ font-size:.62rem; font-weight:700; letter-spacing:.28em; color:var(--text-muted); margin-top:3px; }

.main-nav{ display:flex; align-items:center; gap:30px; flex:1; justify-content:center; }
.main-nav a{ font-size:.92rem; font-weight:500; color:var(--text-muted); display:flex; align-items:center; gap:6px; transition:.15s; }
.main-nav a:hover, .main-nav a.active{ color:var(--text); }
.tag-new{ background:var(--accent); color:#fff; font-size:.62rem; font-weight:700; padding:2px 7px; border-radius:var(--radius-pill); letter-spacing:.03em; }

.header-actions{ display:flex; align-items:center; gap:16px; flex-shrink:0; }
.nav-toggle{ display:none; background:none; border:none; padding:6px; }
.nav-toggle .icon{ width:24px; height:24px; }
.mobile-auth-links{ display:none; }

.user-menu{ position:relative; }
.user-chip{ display:flex; align-items:center; gap:8px; padding:8px 14px 8px 8px; border:1px solid var(--border); border-radius:var(--radius-pill); font-size:.88rem; font-weight:600; }
.user-chip .icon{ width:22px; height:22px; background:var(--accent-soft); border-radius:50%; padding:4px; }
.user-dropdown{ position:absolute; right:0; top:calc(100% + 8px); background:#fff; border:1px solid var(--border); border-radius:var(--radius-md); box-shadow:var(--shadow-md); min-width:190px; padding:8px; opacity:0; visibility:hidden; transform:translateY(-6px); transition:.16s; }
.user-menu:hover .user-dropdown, .user-menu:focus-within .user-dropdown{ opacity:1; visibility:visible; transform:translateY(0); }
.user-dropdown a{ display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:8px; font-size:.88rem; font-weight:500; color:var(--text); }
.user-dropdown a:hover{ background:var(--bg-soft); }

/* =========================================================
   Toasts
   ========================================================= */
.toast{ position:fixed; top:20px; left:50%; transform:translateX(-50%); z-index:200; padding:13px 22px; border-radius:var(--radius-pill); font-size:.9rem; font-weight:600; box-shadow:var(--shadow-md); }
.toast-success{ background:var(--success-bg); color:var(--success); }
.toast-error{ background:var(--error-bg); color:var(--error); }

.whatsapp-float{ position:fixed; right:22px; bottom:22px; z-index:140; width:56px; height:56px; border-radius:50%; background:#25d366; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-lg); transition:.18s ease; }
.whatsapp-float:hover{ transform:scale(1.06); }
.whatsapp-float .icon{ width:26px; height:26px; color:#fff; }

/* =========================================================
   Hero
   ========================================================= */
.hero{ padding:64px 0 72px; }
.hero-top{ display:grid; grid-template-columns:1.1fr .9fr; gap:40px; align-items:end; margin-bottom:36px; }
.hero-heading{ font-size:clamp(2.2rem, 4.4vw, 3.4rem); line-height:1.06; }
.hero-sub{ color:var(--text-muted); font-size:1.02rem; max-width:400px; margin-bottom:22px; }
.hero-cta{ display:flex; gap:12px; }

.hero-media{ position:relative; border-radius:var(--radius-lg); overflow:hidden; }
.hero-media img{ width:100%; height:clamp(320px, 46vw, 520px); object-fit:cover; }

.hero-badge{ position:absolute; top:20px; right:20px; background:rgba(255,255,255,.94); backdrop-filter:blur(6px); padding:10px 16px; border-radius:var(--radius-pill); display:flex; align-items:center; gap:10px; box-shadow:var(--shadow-sm); font-size:.82rem; font-weight:600; }
.hero-badge .avatars{ display:flex; }
.hero-badge .avatars span{ width:24px; height:24px; border-radius:50%; background:var(--accent-soft); border:2px solid #fff; margin-left:-8px; display:flex; align-items:center; justify-content:center; font-size:.6rem; font-weight:700; }
.hero-badge .avatars span:first-child{ margin-left:0; }

.search-bar{ position:relative; margin:-40px 20px 0; background:#fff; border-radius:var(--radius-md); box-shadow:var(--shadow-lg); padding:14px; display:grid; grid-template-columns:1.1fr 1fr 1fr auto; gap:8px; z-index:5; }
.search-field{ display:flex; align-items:center; gap:10px; padding:10px 14px; border-radius:var(--radius-sm); }
.search-field:not(:last-child){ border-right:1px solid var(--border); }
.search-field .icon{ color:var(--text-faint); }
.search-field-body{ display:flex; flex-direction:column; gap:1px; flex:1; }
.search-field-body label{ font-size:.68rem; font-weight:600; color:var(--text-faint); text-transform:uppercase; letter-spacing:.04em; }
.search-field select, .search-field input{ border:none; background:none; padding:0; font-size:.92rem; font-weight:600; color:var(--text); width:100%; }
.search-field select:focus, .search-field input:focus{ outline:none; }
.search-bar .btn{ align-self:center; }

/* feature strip */
.feature-strip{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:64px; }
.feature-chip{ display:flex; align-items:center; gap:14px; padding:18px; background:var(--bg-soft); border-radius:var(--radius-md); }
.feature-chip .icon-wrap{ width:44px; height:44px; border-radius:12px; background:#fff; display:flex; align-items:center; justify-content:center; flex-shrink:0; border:1px solid var(--border); }
.feature-chip h4{ font-size:.92rem; font-weight:700; margin-bottom:2px; }
.feature-chip p{ font-size:.8rem; color:var(--text-muted); }

/* =========================================================
   Section headings
   ========================================================= */
.section{ padding:88px 0; }
.section-soft{ background:var(--bg-soft); }
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:40px; }
.section-head h2{ font-size:clamp(1.6rem, 3vw, 2.2rem); }
.section-head p{ color:var(--text-muted); max-width:420px; }
.eyebrow{ display:inline-block; font-size:.74rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--text-faint); margin-bottom:10px; }

/* =========================================================
   Filter tabs (listing type)
   ========================================================= */
.type-tabs{ display:inline-flex; background:var(--bg-soft); border-radius:var(--radius-pill); padding:4px; margin-bottom:24px; flex-wrap:wrap; }
.type-tabs a{ padding:9px 18px; border-radius:var(--radius-pill); font-size:.86rem; font-weight:600; color:var(--text-muted); }
.type-tabs a.active{ background:#fff; color:var(--text); box-shadow:var(--shadow-sm); }

.filters-panel{ background:var(--bg-soft); border-radius:var(--radius-md); padding:18px; display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; margin-bottom:44px; }
.filter-group{ display:flex; flex-direction:column; gap:5px; flex:1; min-width:150px; }
.filter-group label{ font-size:.72rem; font-weight:600; color:var(--text-faint); text-transform:uppercase; letter-spacing:.04em; }
.filter-group select, .filter-group input{ border:1px solid var(--border); background:#fff; border-radius:var(--radius-sm); padding:10px 12px; font-size:.88rem; font-weight:500; }
.filters-panel .btn{ flex-shrink:0; }
.filters-more{ display:flex; align-items:center; gap:6px; font-size:.85rem; font-weight:600; color:var(--text-muted); padding:10px 4px; }

.save-search-bar{ display:flex; align-items:center; gap:10px; padding:12px 16px; border:1px dashed var(--border-strong); border-radius:var(--radius-sm); margin:-28px 0 44px; background:#fff; }
.save-search-bar input[type="text"]{ flex:1; border:none; background:none; font-size:.86rem; padding:6px 0; min-width:0; }
.save-search-bar input[type="text"]:focus{ outline:none; }
.save-search-bar .btn{ flex-shrink:0; }

/* =========================================================
   Property cards & grid
   ========================================================= */
.property-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; }
.property-grid.cols-4{ grid-template-columns:repeat(4,1fr); }

.property-card{ border-radius:var(--radius-md); overflow:hidden; background:#fff; border:1px solid var(--border); transition:.2s ease; display:flex; flex-direction:column; }
.property-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-3px); border-color:transparent; }
.property-thumb{ position:relative; aspect-ratio:4/3; overflow:hidden; background:var(--bg-soft); }
.property-thumb img{ width:100%; height:100%; object-fit:cover; transition:.4s; }
.property-card:hover .property-thumb img{ transform:scale(1.05); }
.property-badge{ position:absolute; top:12px; left:12px; background:#fff; padding:5px 12px; border-radius:var(--radius-pill); font-size:.7rem; font-weight:700; letter-spacing:.02em; text-transform:uppercase; }
.property-badge.featured{ background:var(--accent); color:#fff; }
.fav-btn{ position:absolute; top:12px; right:12px; width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.92); border:none; display:flex; align-items:center; justify-content:center; }
.fav-btn .icon{ width:17px; height:17px; color:var(--text); }
.fav-btn.is-fav .icon{ color:var(--error); fill:var(--error); }
.compare-btn{ position:absolute; top:12px; right:54px; width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.92); border:none; display:flex; align-items:center; justify-content:center; }
.compare-btn .icon{ width:16px; height:16px; color:var(--text); }
.compare-btn.is-active{ background:var(--accent); }
.compare-btn.is-active .icon{ color:#fff; }

.property-body{ padding:16px; display:flex; flex-direction:column; gap:10px; flex:1; }
.property-title-row{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.property-title-row h3{ font-size:1rem; font-weight:700; }
.property-price{ font-family:var(--font-display); font-weight:800; font-size:1rem; white-space:nowrap; }
.property-loc{ display:flex; align-items:center; gap:6px; font-size:.82rem; color:var(--text-muted); }
.property-specs{ display:flex; gap:14px; margin-top:auto; padding-top:12px; border-top:1px solid var(--border); }
.property-specs span{ display:flex; align-items:center; gap:5px; font-size:.78rem; color:var(--text-muted); font-weight:500; }

.pagination{ display:flex; justify-content:center; gap:8px; margin-top:48px; }
.pagination a, .pagination span{ min-width:38px; height:38px; display:flex; align-items:center; justify-content:center; border-radius:var(--radius-sm); font-size:.86rem; font-weight:600; border:1px solid var(--border); }
.pagination a:hover{ border-color:var(--text); }
.pagination .active{ background:var(--accent); color:#fff; border-color:var(--accent); }

.empty-state{ text-align:center; padding:80px 20px; color:var(--text-muted); }
.empty-state .icon-lg{ margin:0 auto 16px; color:var(--text-faint); }
.empty-state h3{ margin-bottom:8px; color:var(--text); }

/* =========================================================
   How it works / steps
   ========================================================= */
.steps-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.step-card{ background:#fff; border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; }
.step-card img{ width:100%; height:180px; object-fit:cover; }
.step-card-body{ padding:20px; }
.step-num{ font-family:var(--font-display); font-size:.78rem; font-weight:800; color:var(--text-faint); margin-bottom:8px; }
.step-card h3{ font-size:1.05rem; margin-bottom:8px; }
.step-card p{ font-size:.88rem; color:var(--text-muted); }

/* =========================================================
   Browse by category
   ========================================================= */
.category-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:16px; }
.category-card{ background:var(--bg-soft); border-radius:var(--radius-md); padding:26px 16px; text-align:center; border:1px solid transparent; transition:.18s ease; }
.category-card:hover{ border-color:var(--border-strong); transform:translateY(-3px); }
.category-card .icon-wrap{ width:52px; height:52px; border-radius:14px; background:#fff; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; margin:0 auto 14px; }
.category-card h4{ font-size:.92rem; margin-bottom:4px; }
.category-card span{ font-size:.76rem; color:var(--text-muted); }

/* =========================================================
   Recently viewed
   ========================================================= */
.recent-rail{ display:flex; gap:14px; overflow-x:auto; padding-bottom:6px; scrollbar-width:thin; }
.recent-card{ flex:0 0 160px; display:block; border-radius:var(--radius-md); overflow:hidden; border:1px solid var(--border); }
.recent-card img{ width:100%; aspect-ratio:4/3; object-fit:cover; }
.recent-card span{ display:block; padding:10px; font-size:.8rem; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* =========================================================
   Browse by city
   ========================================================= */
.city-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.city-card{ position:relative; display:block; border-radius:var(--radius-md); overflow:hidden; aspect-ratio:4/3; }
.city-card img{ width:100%; height:100%; object-fit:cover; transition:.4s ease; }
.city-card:hover img{ transform:scale(1.06); }
.city-card-overlay{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(16,16,16,0) 45%, rgba(16,16,16,.72) 100%); display:flex; flex-direction:column; justify-content:flex-end; padding:20px; }
.city-card-overlay h4{ color:#fff; font-size:1.1rem; margin-bottom:2px; }
.city-card-overlay span{ font-size:.78rem; color:rgba(255,255,255,.85); }

/* =========================================================
   Testimonials
   ========================================================= */
.testimonial-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.testimonial-card{ background:#fff; border:1px solid var(--border); border-radius:var(--radius-md); padding:26px; display:flex; flex-direction:column; gap:16px; }
.testimonial-stars{ display:flex; gap:3px; color:var(--text); }
.testimonial-quote{ font-size:.92rem; color:var(--text); line-height:1.65; flex:1; }
.testimonial-person{ display:flex; align-items:center; gap:12px; }
.testimonial-avatar{ width:42px; height:42px; border-radius:50%; background:var(--accent-soft); display:flex; align-items:center; justify-content:center; font-weight:700; font-family:var(--font-display); flex-shrink:0; }
.testimonial-person h5{ font-size:.88rem; font-weight:700; font-family:var(--font-display); }
.testimonial-person span{ font-size:.76rem; color:var(--text-muted); }

/* =========================================================
   FAQ accordion
   ========================================================= */
.faq-list{ display:flex; flex-direction:column; gap:10px; }
.faq-item{ border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; background:#fff; }
.faq-item summary{ padding:18px 20px; font-weight:600; font-size:.92rem; cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:'+'; font-size:1.3rem; color:var(--text-muted); flex-shrink:0; line-height:1; }
.faq-item[open] summary::after{ content:'\2013'; }
.faq-item[open] summary{ border-bottom:1px solid var(--border); }
.faq-item-body{ padding:16px 20px 20px; color:var(--text-muted); font-size:.88rem; line-height:1.65; }

/* =========================================================
   Newsletter
   ========================================================= */
.newsletter-panel{ background:var(--bg-soft); border-radius:var(--radius-lg); padding:56px 24px; text-align:center; }
.newsletter-form{ display:flex; gap:10px; max-width:420px; margin:22px auto 0; }
.newsletter-form input{ flex:1; padding:13px 18px; border:1px solid var(--border-strong); border-radius:var(--radius-pill); background:#fff; }
.newsletter-form input:focus{ outline:none; border-color:var(--text); }

/* =========================================================
   Property detail page
   ========================================================= */
.detail-gallery{ display:grid; grid-template-columns:1.5fr 1fr; gap:12px; border-radius:var(--radius-lg); overflow:hidden; margin-bottom:36px; }
.detail-gallery .main-img{ aspect-ratio:4/3.2; }
.detail-gallery .main-img img{ width:100%; height:100%; object-fit:cover; }
.detail-gallery .side-imgs{ display:grid; grid-template-rows:1fr 1fr; gap:12px; }
.detail-gallery .side-imgs img{ width:100%; height:100%; object-fit:cover; }

.detail-layout{ display:grid; grid-template-columns:1.7fr 1fr; gap:48px; align-items:start; }
.detail-header{ display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:20px; padding-bottom:24px; border-bottom:1px solid var(--border); }
.detail-header h1{ font-size:clamp(1.5rem,2.6vw,2rem); margin-bottom:8px; }
.detail-price{ font-family:var(--font-display); font-weight:800; font-size:1.6rem; white-space:nowrap; }

.spec-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin:28px 0; }
.spec-item{ background:var(--bg-soft); border-radius:var(--radius-md); padding:16px; text-align:center; }
.spec-item .icon{ margin:0 auto 8px; color:var(--text-muted); }
.spec-item strong{ display:block; font-family:var(--font-display); font-size:1.1rem; }
.spec-item span{ font-size:.76rem; color:var(--text-muted); }

.detail-section{ margin-bottom:32px; }
.detail-section h3{ font-size:1.1rem; margin-bottom:12px; }
.detail-section p{ color:var(--text-muted); }
.feature-list{ display:flex; flex-wrap:wrap; gap:10px; }
.feature-list li{ background:var(--bg-soft); padding:8px 14px; border-radius:var(--radius-pill); font-size:.84rem; font-weight:500; display:flex; align-items:center; gap:6px; }

.agent-card{ background:#fff; border:1px solid var(--border); border-radius:var(--radius-md); padding:22px; position:sticky; top:104px; }
.agent-card-top{ display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.agent-avatar{ width:52px; height:52px; border-radius:50%; background:var(--accent-soft); display:flex; align-items:center; justify-content:center; font-weight:700; font-family:var(--font-display); flex-shrink:0; overflow:hidden; }
.agent-avatar img{ width:100%; height:100%; object-fit:cover; }
.agent-card h4{ font-size:.98rem; }
.agent-card .role-tag{ font-size:.76rem; color:var(--text-muted); display:inline-flex; align-items:center; gap:4px; }
.agent-contact-btns{ display:flex; flex-direction:column; gap:10px; margin-bottom:18px; }
.inquiry-form textarea{ resize:vertical; min-height:90px; }

.signin-prompt{ text-align:center; }
.signin-prompt p{ display:flex; align-items:center; justify-content:center; gap:8px; color:var(--text-muted); font-size:.86rem; margin-bottom:16px; }
.signin-prompt .btn{ margin-bottom:10px; }
.signin-prompt .btn:last-child{ margin-bottom:0; }

.share-bar{ display:flex; align-items:center; gap:10px; margin:18px 0 28px; flex-wrap:wrap; }
.share-bar span{ font-size:.82rem; color:var(--text-muted); font-weight:600; margin-right:2px; }
.share-btn{ width:36px; height:36px; border-radius:50%; background:var(--bg-soft); border:none; display:flex; align-items:center; justify-content:center; color:var(--text); flex-shrink:0; }
.share-btn:hover{ background:var(--accent-soft); }
.share-btn svg{ width:16px; height:16px; }
.copy-feedback{ font-size:.78rem; color:var(--success); font-weight:600; opacity:0; transition:.2s; }
.copy-feedback.show{ opacity:1; }

.qr-details{ margin-bottom:18px; border:1px solid var(--border); border-radius:var(--radius-sm); overflow:hidden; }
.qr-details summary{ padding:12px 14px; font-size:.84rem; font-weight:600; cursor:pointer; list-style:none; display:flex; align-items:center; gap:8px; color:var(--text-muted); }
.qr-details summary::-webkit-details-marker{ display:none; }
.qr-details[open] summary{ border-bottom:1px solid var(--border); color:var(--text); }
.qr-code{ padding:16px; text-align:center; }
.qr-code img{ margin:0 auto; border-radius:8px; }

/* =========================================================
   Mortgage calculator
   ========================================================= */
.mortgage-calc{ background:var(--bg-soft); border-radius:var(--radius-md); padding:22px; }
.mortgage-inputs{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:18px; }
.mortgage-inputs .form-group{ margin-bottom:0; }
.mortgage-inputs label{ font-size:.72rem; }
.mortgage-inputs input, .mortgage-inputs select{ padding:10px 12px; font-size:.86rem; }
.mortgage-result{ background:#fff; border-radius:var(--radius-sm); padding:18px; text-align:center; }
.mortgage-result span{ font-size:.78rem; color:var(--text-muted); font-weight:600; text-transform:uppercase; letter-spacing:.03em; }
.mortgage-result strong{ display:block; font-family:var(--font-display); font-size:2rem; font-weight:800; margin:6px 0; }
.mortgage-note{ font-size:.76rem; color:var(--text-faint); margin:0; }

/* =========================================================
   Map embed
   ========================================================= */
.map-embed{ margin-top:16px; border-radius:var(--radius-md); overflow:hidden; border:1px solid var(--border); }
.map-embed iframe{ width:100%; height:280px; border:0; display:block; }

/* =========================================================
   Agent profile page
   ========================================================= */
.agent-profile-header{ display:flex; align-items:flex-start; gap:24px; flex-wrap:wrap; padding-bottom:8px; }
.agent-profile-contact{ display:flex; flex-direction:column; gap:10px; margin-left:auto; min-width:200px; }

/* =========================================================
   Comparison tool
   ========================================================= */
.compare-bar{ position:fixed; left:50%; bottom:20px; transform:translateX(-50%); z-index:150; background:#fff; border:1px solid var(--border); box-shadow:var(--shadow-lg); border-radius:var(--radius-md); padding:14px 18px; display:flex; align-items:center; gap:18px; max-width:calc(100% - 32px); }
.compare-bar-items{ display:flex; gap:10px; }
.compare-bar-item{ position:relative; display:flex; align-items:center; gap:6px; background:var(--bg-soft); border-radius:var(--radius-pill); padding:5px 10px 5px 5px; }
.compare-bar-item img{ width:26px; height:26px; border-radius:50%; object-fit:cover; }
.compare-bar-item span{ font-size:.76rem; font-weight:600; max-width:110px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.compare-bar-remove{ background:none; border:none; color:var(--text-faint); font-size:1rem; line-height:1; cursor:pointer; padding:0 2px; }
.compare-bar-remove:hover{ color:var(--error); }
.compare-bar-actions{ display:flex; gap:8px; flex-shrink:0; }
.btn-disabled{ opacity:.5; pointer-events:none; }

.compare-table-wrap{ overflow-x:auto; border:1px solid var(--border); border-radius:var(--radius-md); }
.compare-table{ width:100%; border-collapse:collapse; min-width:600px; }
.compare-table th, .compare-table td{ padding:16px 20px; border-bottom:1px solid var(--border); text-align:left; font-size:.88rem; vertical-align:top; }
.compare-table th{ background:var(--bg-soft); font-weight:600; color:var(--text-muted); white-space:nowrap; width:140px; }
.compare-table tr:last-child th, .compare-table tr:last-child td{ border-bottom:none; }
.compare-row-media td{ padding-top:20px; }
.compare-thumb-link{ display:block; text-decoration:none; color:var(--text); }
.compare-thumb-link img{ width:100%; max-width:220px; aspect-ratio:4/3; object-fit:cover; border-radius:var(--radius-sm); margin-bottom:10px; }
.compare-thumb-link strong{ display:block; font-size:.94rem; }
.compare-price{ font-family:var(--font-display); font-weight:800; }

/* =========================================================
   Forms
   ========================================================= */
.form-page{ max-width:460px; margin:64px auto; padding:0 20px; }

.demo-creds{ max-width:460px; margin:20px auto 0; border:1px solid var(--border); border-radius:var(--radius-md); background:#fff; overflow:hidden; }
.demo-creds summary{ padding:14px 18px; font-weight:600; font-size:.86rem; cursor:pointer; list-style:none; display:flex; align-items:center; gap:8px; color:var(--text-muted); }
.demo-creds summary::-webkit-details-marker{ display:none; }
.demo-creds[open] summary{ border-bottom:1px solid var(--border); color:var(--text); }
.demo-creds > p{ padding:12px 18px 0; font-size:.78rem; color:var(--text-faint); }
.demo-creds-table{ width:100%; border-collapse:collapse; font-size:.8rem; }
.demo-creds-table th{ text-align:left; padding:8px 18px; color:var(--text-faint); font-weight:600; text-transform:uppercase; font-size:.68rem; letter-spacing:.03em; }
.demo-creds-table td{ padding:9px 18px; border-top:1px solid var(--border); }
.demo-creds-table tr[data-email]{ cursor:pointer; }
.demo-creds-table tr[data-email]:hover td{ background:var(--bg-soft); }
.form-card{ background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); padding:40px; }
.form-card h1{ font-size:1.6rem; margin-bottom:6px; }
.form-card .sub{ color:var(--text-muted); font-size:.9rem; margin-bottom:28px; }
.form-group{ margin-bottom:18px; }
.form-group label{ display:block; font-size:.84rem; font-weight:600; margin-bottom:7px; }
.form-group input, .form-group select, .form-group textarea{ width:100%; padding:12px 14px; border:1px solid var(--border-strong); border-radius:var(--radius-sm); background:#fff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{ outline:none; border-color:var(--text); }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.role-picker{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:20px; }
.role-option{ border:1px solid var(--border-strong); border-radius:var(--radius-sm); padding:14px; text-align:center; cursor:pointer; font-weight:600; font-size:.86rem; }
.role-option input{ display:none; }
.role-option.selected{ border-color:var(--text); background:var(--accent-soft); }
.form-foot{ text-align:center; margin-top:20px; font-size:.88rem; color:var(--text-muted); }
.form-foot a{ font-weight:700; color:var(--text); }
.field-error{ color:var(--error); font-size:.8rem; margin-top:5px; }
.alert-box{ padding:12px 16px; border-radius:var(--radius-sm); font-size:.86rem; margin-bottom:18px; }
.alert-error{ background:var(--error-bg); color:var(--error); }
.alert-success{ background:var(--success-bg); color:var(--success); }

/* =========================================================
   Dashboard / admin
   ========================================================= */
.dash-header{ display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:32px; flex-wrap:wrap; }
.dash-header h1{ font-size:1.6rem; }
.dash-tabs{ display:flex; gap:6px; border-bottom:1px solid var(--border); margin-bottom:32px; }
.dash-tabs a{ padding:12px 18px; font-size:.9rem; font-weight:600; color:var(--text-muted); border-bottom:2px solid transparent; margin-bottom:-1px; }
.dash-tabs a.active{ color:var(--text); border-color:var(--text); }

.stat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:36px; }
.stat-card{ background:var(--bg-soft); border-radius:var(--radius-md); padding:20px; }
.stat-card .icon-wrap{ width:38px; height:38px; border-radius:10px; background:#fff; display:flex; align-items:center; justify-content:center; margin-bottom:14px; border:1px solid var(--border); }
.stat-card strong{ display:block; font-family:var(--font-display); font-size:1.5rem; }
.stat-card span{ font-size:.8rem; color:var(--text-muted); }

.quick-links-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }

/* =========================================================
   Analytics
   ========================================================= */
.bar-chart{ display:flex; align-items:flex-end; gap:6px; height:160px; padding-top:20px; }
.bar-chart-col{ flex:1; display:flex; flex-direction:column; align-items:center; height:100%; }
.bar-chart-bar{ width:100%; max-width:28px; background:var(--accent); border-radius:6px 6px 0 0; margin-top:auto; position:relative; transition:.2s; min-height:4px; }
.bar-chart-bar:hover{ background:var(--accent-hover); }
.bar-chart-bar span{ position:absolute; top:-20px; left:50%; transform:translateX(-50%); font-size:.7rem; font-weight:700; color:var(--text); white-space:nowrap; }
.bar-chart-col label{ font-size:.66rem; color:var(--text-faint); margin-top:8px; white-space:nowrap; }

.funnel-chart{ display:flex; flex-direction:column; gap:12px; }
.funnel-row{ display:flex; align-items:center; gap:14px; }
.funnel-row-label{ width:140px; flex-shrink:0; font-size:.84rem; font-weight:600; color:var(--text-muted); }
.funnel-row-track{ flex:1; height:22px; background:var(--bg-soft); border-radius:var(--radius-pill); overflow:hidden; }
.funnel-row-fill{ height:100%; border-radius:var(--radius-pill); transition:width .3s; }
.funnel-row-count{ width:32px; text-align:right; font-weight:700; font-family:var(--font-display); font-size:.9rem; flex-shrink:0; }

.two-col-grid{ display:grid; grid-template-columns:1fr 1fr; gap:32px; margin-bottom:28px; }

.priority-chips{ display:flex; gap:16px; flex-wrap:wrap; }
.priority-chip{ display:flex; align-items:center; gap:10px; padding:12px 18px; background:var(--bg-soft); border-radius:var(--radius-md); }
.priority-chip strong{ font-family:var(--font-display); font-size:1.1rem; }
.quick-link{ display:flex; align-items:center; gap:8px; padding:12px 14px; background:var(--bg-soft); border-radius:var(--radius-sm); font-size:.86rem; font-weight:600; color:var(--text); }
.quick-link:hover{ background:var(--accent-soft); }

.data-table{ width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; }
.data-table th{ text-align:left; font-size:.72rem; text-transform:uppercase; letter-spacing:.05em; color:var(--text-faint); padding:14px 16px; background:var(--bg-soft); font-weight:700; }
.data-table td{ padding:14px 16px; border-top:1px solid var(--border); font-size:.88rem; vertical-align:middle; }
.data-table tr:hover td{ background:var(--bg-soft); }
.row-thumb{ width:52px; height:40px; border-radius:8px; object-fit:cover; }
.row-actions{ display:flex; gap:8px; }
.badge{ display:inline-flex; align-items:center; gap:5px; font-size:.72rem; font-weight:700; padding:4px 10px; border-radius:var(--radius-pill); text-transform:capitalize; }
.badge-pending{ background:#fff4e0; color:#a86b00; }
.badge-approved{ background:var(--success-bg); color:var(--success); }
.badge-rejected{ background:var(--error-bg); color:var(--error); }
.badge-sold, .badge-rented{ background:var(--accent-soft); color:var(--text-muted); }

/* Lead CRM stage badges */
.badge-lead-new{ background:#eef1f5; color:#4a5568; }
.badge-lead-contacted{ background:#e3edfb; color:#2b6cb0; }
.badge-lead-qualified{ background:#ede4fb; color:#6b3fa0; }
.badge-lead-viewing-scheduled{ background:#fff0da; color:#a86b00; }
.badge-lead-negotiating{ background:#dcf3ee; color:#1f7a68; }
.badge-lead-won{ background:var(--success-bg); color:var(--success); }
.badge-lead-lost{ background:var(--error-bg); color:var(--error); }
.badge-priority-low{ background:var(--bg-soft); color:var(--text-muted); }
.badge-priority-medium{ background:#fff0da; color:#a86b00; }
.badge-priority-high{ background:var(--error-bg); color:var(--error); }
.badge-admin{ background:#111; color:#fff; }
.badge-manager{ background:#2b4a7a; color:#fff; }
.badge-staff{ background:#3a6b5c; color:#fff; }
.viewing-tag{ display:inline-flex; align-items:center; gap:6px; background:var(--accent-soft); color:var(--text); font-size:.76rem; font-weight:600; padding:5px 10px; border-radius:var(--radius-pill); margin-top:6px; }

/* =========================================================
   Chat window (lead conversation, both staff and buyer views)
   ========================================================= */
.chat-header{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:20px; }
.lead-quick-actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:24px; }

.chat-tabs{ display:flex; gap:4px; border-bottom:1px solid var(--border); }
.chat-tabs a{ display:flex; align-items:center; gap:6px; padding:12px 16px; font-size:.86rem; font-weight:600; color:var(--text-muted); border-bottom:2px solid transparent; margin-bottom:-1px; }
.chat-tabs a.active{ color:var(--text); border-color:var(--text); }

.chat-window{ border:1px solid var(--border); border-top:none; border-radius:0 0 var(--radius-md) var(--radius-md); background:#fff; display:flex; flex-direction:column; height:520px; }
.chat-messages{ flex:1; overflow-y:auto; padding:20px; display:flex; flex-direction:column; gap:12px; }
.chat-bubble{ max-width:75%; padding:10px 14px; border-radius:16px; font-size:.88rem; line-height:1.5; }
.chat-bubble-theirs{ align-self:flex-start; background:var(--bg-soft); color:var(--text); border-bottom-left-radius:4px; }
.chat-bubble-mine{ align-self:flex-end; background:var(--accent); color:#fff; border-bottom-right-radius:4px; }
.chat-bubble-body{ white-space:pre-line; }
.chat-bubble-meta{ font-size:.7rem; opacity:.6; margin-top:5px; }
.chat-bubble-mine .chat-bubble-meta{ color:rgba(255,255,255,.8); opacity:1; }

.chat-input-row{ display:flex; gap:10px; padding:14px; border-top:1px solid var(--border); align-items:flex-end; }
.chat-input-row textarea{ flex:1; border:1px solid var(--border-strong); border-radius:var(--radius-sm); padding:11px 14px; resize:none; font-family:inherit; font-size:.88rem; max-height:120px; }
.chat-input-row textarea:focus{ outline:none; border-color:var(--text); }
.chat-send-btn{ flex-shrink:0; width:42px; height:42px; padding:0; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.chat-send-btn .icon{ width:17px; height:17px; }

.inquiry-list{ display:flex; flex-direction:column; gap:10px; }
.inquiry-list-item{ display:flex; align-items:center; gap:14px; padding:14px; background:#fff; border:1px solid var(--border); border-radius:var(--radius-md); }
.inquiry-list-item:hover{ border-color:var(--border-strong); background:var(--bg-soft); }
.inquiry-list-item .row-thumb{ width:64px; height:48px; flex-shrink:0; }
.inquiry-list-body{ flex:1; min-width:0; }
.inquiry-list-top{ display:flex; align-items:center; gap:10px; margin-bottom:4px; }
.inquiry-list-top strong{ font-size:.92rem; }
.inquiry-list-body p{ font-size:.82rem; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.inquiry-list-time{ font-size:.76rem; color:var(--text-faint); flex-shrink:0; }

/* =========================================================
   App shell (dashboard + admin pages) - persistent sidebar nav
   ========================================================= */
.app-body{ background:var(--bg-soft); }
.app-shell{ display:flex; align-items:flex-start; min-height:100vh; }

.app-sidebar{ width:250px; flex-shrink:0; background:#fff; border-right:1px solid var(--border); height:100vh; position:sticky; top:0; display:flex; flex-direction:column; z-index:40; }
.app-logo{ display:flex; flex-direction:column; line-height:1; font-family:var(--font-display); padding:22px 24px; border-bottom:1px solid var(--border); }
.app-nav{ flex:1; overflow-y:auto; padding:16px 12px; }
.app-nav-group{ margin-bottom:22px; }
.app-nav-group-label{ display:block; font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-faint); padding:0 12px 8px; }
.app-nav-link{ display:flex; align-items:center; gap:11px; padding:10px 12px; border-radius:var(--radius-sm); font-size:.87rem; font-weight:600; color:var(--text-muted); margin-bottom:2px; }
.app-nav-link:hover{ background:var(--bg-soft); color:var(--text); }
.app-nav-link.active{ background:var(--accent); color:#fff; }
.app-nav-link .icon{ flex-shrink:0; opacity:.85; }
.app-nav-link.active .icon{ opacity:1; }

.app-sidebar-footer-link{ display:flex; align-items:center; gap:10px; padding:13px 24px; font-size:.82rem; font-weight:600; color:var(--text-muted); border-top:1px solid var(--border); }
.app-sidebar-footer-link:hover{ color:var(--text); background:var(--bg-soft); }

.app-main-col{ flex:1; min-width:0; display:flex; flex-direction:column; min-height:100vh; }
.app-topbar{ position:sticky; top:0; z-index:30; height:64px; flex-shrink:0; background:rgba(255,255,255,.92); backdrop-filter:blur(8px); border-bottom:1px solid var(--border); display:flex; align-items:center; padding:0 28px; }
.app-topbar-spacer{ flex:1; }
.app-sidebar-toggle{ display:none; background:none; border:none; padding:6px; }
.app-main{ flex:1; padding:32px 28px 60px; max-width:1280px; width:100%; margin:0 auto; }

/* =========================================================
   Calendar
   ========================================================= */
.calendar-layout{ display:grid; grid-template-columns:1.3fr 1fr; gap:32px; align-items:start; }
.calendar-nav{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.calendar-nav h2{ font-size:1.05rem; }

.calendar-grid{ width:100%; border-collapse:collapse; table-layout:fixed; }
.calendar-grid th{ font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.03em; color:var(--text-faint); padding-bottom:8px; }
.calendar-cell{ height:56px; text-align:center; border:1px solid var(--border); padding:0; }
.calendar-cell-empty{ border-color:transparent; }
.calendar-cell a{ display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%; gap:3px; }
.calendar-cell a:hover{ background:var(--bg-soft); }
.calendar-daynum{ font-size:.86rem; font-weight:600; }
.calendar-cell.is-today .calendar-daynum{ color:var(--accent); font-weight:800; }
.calendar-cell.is-selected{ background:var(--accent); }
.calendar-cell.is-selected .calendar-daynum{ color:#fff; }
.calendar-cell.is-selected a:hover{ background:var(--accent-hover); }
.calendar-dot{ width:5px; height:5px; border-radius:50%; background:var(--accent); }
.calendar-cell.is-selected .calendar-dot{ background:#fff; }

.agenda-item{ display:flex; align-items:flex-start; gap:12px; padding:14px; background:#fff; border:1px solid var(--border); border-radius:var(--radius-md); margin-bottom:10px; }
.agenda-item:hover{ border-color:var(--border-strong); }
.agenda-icon{ width:32px; height:32px; border-radius:50%; background:var(--bg-soft); display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--text-muted); }
.agenda-body{ flex:1; min-width:0; }
.agenda-body strong{ display:block; font-size:.88rem; margin-bottom:2px; }
.agenda-body p{ font-size:.78rem; color:var(--text-muted); }
.agenda-overdue{ border-color:var(--error); background:var(--error-bg); }
.agenda-overdue .agenda-icon{ background:#fff; color:var(--error); }
.agenda-done{ opacity:.6; }
.agenda-viewing .agenda-icon{ background:#fff0da; color:#a86b00; }
.agenda-followup .agenda-icon{ background:#e3edfb; color:#2b6cb0; }

/* =========================================================
   Lead CRM
   ========================================================= */
.funnel-strip{ display:flex; gap:8px; flex-wrap:wrap; }
.funnel-chip{ display:flex; align-items:center; gap:6px; padding:9px 14px; border-radius:var(--radius-pill); font-size:.8rem; font-weight:600; border:2px solid transparent; opacity:.75; }
.funnel-chip strong{ font-family:var(--font-display); font-size:.95rem; }
.funnel-chip:hover{ opacity:1; }
.funnel-chip.is-active{ opacity:1; border-color:currentColor; }

.lead-header{ display:flex; justify-content:space-between; align-items:flex-start; gap:20px; flex-wrap:wrap; padding-bottom:24px; margin-bottom:24px; border-bottom:1px solid var(--border); }
.lead-layout{ display:grid; grid-template-columns:1.6fr 1fr; gap:24px; align-items:start; }
.lead-select{ width:100%; padding:10px 12px; border:1px solid var(--border-strong); border-radius:var(--radius-sm); background:#fff; font-size:.86rem; font-weight:500; }

.activity-timeline{ display:flex; flex-direction:column; gap:16px; }
.activity-item{ display:flex; gap:12px; }
.activity-icon{ width:32px; height:32px; border-radius:50%; background:var(--bg-soft); display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--text-muted); }
.activity-reply .activity-icon{ background:var(--accent-soft); color:var(--text); }
.activity-meta{ font-size:.8rem; color:var(--text-faint); margin-bottom:3px; }
.activity-meta strong{ color:var(--text-muted); font-weight:700; }
.activity-content{ font-size:.9rem; color:var(--text); line-height:1.5; white-space:pre-line; }
.badge-agent{ background:var(--accent-soft); color:var(--text); }
.badge-buyer{ background:var(--bg-soft); color:var(--text-muted); }

.panel{ background:#fff; border:1px solid var(--border); border-radius:var(--radius-md); padding:28px; margin-bottom:24px; }
.panel h2{ font-size:1.1rem; margin-bottom:20px; }
.checkbox-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.checkbox-grid label{ display:flex; align-items:center; gap:8px; font-size:.86rem; font-weight:500; }
.upload-zone{ border:2px dashed var(--border-strong); border-radius:var(--radius-md); padding:32px; text-align:center; color:var(--text-muted); cursor:pointer; }
.upload-zone:hover{ border-color:var(--text); }
.upload-preview{ display:grid; grid-template-columns:repeat(auto-fill,minmax(90px,1fr)); gap:10px; margin-top:14px; }
.upload-preview img{ width:100%; aspect-ratio:1; object-fit:cover; border-radius:8px; }

/* =========================================================
   Misc pages
   ========================================================= */
.page-head{ padding:56px 0 24px; }
.page-head h1{ font-size:clamp(1.7rem,3vw,2.4rem); }
.page-head p{ color:var(--text-muted); margin-top:8px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer{ background:var(--bg-dark); color:var(--on-dark); margin-top:100px; padding-top:64px; }
.footer-inner{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:32px; padding-bottom:48px; }
.footer-brand .logo{ color:#fff; margin-bottom:14px; }
.footer-brand .logo-bottom{ color:var(--on-dark-muted); }
.footer-brand .logo-img{ background:#fff; padding:8px 12px; border-radius:8px; }
.footer-brand p{ color:var(--on-dark-muted); font-size:.86rem; max-width:280px; }
.footer-col h4{ color:#fff; font-size:.8rem; text-transform:uppercase; letter-spacing:.06em; margin-bottom:16px; }
.footer-col a{ display:flex; align-items:center; gap:8px; color:var(--on-dark-muted); font-size:.88rem; padding:6px 0; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.1); padding:20px 0; display:flex; justify-content:space-between; font-size:.78rem; color:var(--on-dark-muted); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .hero-top{ grid-template-columns:1fr; }
  .property-grid{ grid-template-columns:repeat(2,1fr); }
  .property-grid.cols-4{ grid-template-columns:repeat(2,1fr); }
  .feature-strip{ grid-template-columns:repeat(2,1fr); }
  .steps-grid{ grid-template-columns:1fr; }
  .detail-layout{ grid-template-columns:1fr; }
  .lead-layout{ grid-template-columns:1fr; }
  .chat-window{ height:420px; }
  .chat-bubble{ max-width:88%; }
  .two-col-grid{ grid-template-columns:1fr; gap:36px; }
  .calendar-layout{ grid-template-columns:1fr; }
  .calendar-cell{ height:44px; }
  .app-sidebar{ position:fixed; left:0; top:0; bottom:0; transform:translateX(-100%); transition:.25s ease; box-shadow:var(--shadow-lg); }
  .app-sidebar.open{ transform:translateX(0); }
  .app-sidebar-toggle{ display:flex; }
  .app-main{ padding:20px 16px 40px; }
  .app-topbar{ padding:0 16px; }
  .bar-chart-col label{ font-size:.58rem; }
  .funnel-row-label{ width:100px; font-size:.76rem; }
  .agent-card{ position:static; }
  .footer-inner{ grid-template-columns:1fr 1fr; }
  .stat-grid{ grid-template-columns:repeat(2,1fr); }
  .quick-links-grid{ grid-template-columns:1fr 1fr; }
  .category-grid{ grid-template-columns:repeat(3,1fr); }
  .city-grid{ grid-template-columns:repeat(2,1fr); }
  .testimonial-grid{ grid-template-columns:1fr; }
  .mortgage-inputs{ grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 760px){
  .main-nav{ position:fixed; inset:84px 0 0 0; background:#fff; flex-direction:column; padding:24px; gap:4px; align-items:flex-start; transform:translateX(100%); transition:.25s; overflow-y:auto; }
  .main-nav.open{ transform:translateX(0); }
  .main-nav a{ width:100%; padding:14px 4px; border-bottom:1px solid var(--border); font-size:1rem; }
  .nav-toggle{ display:flex; }
  .header-actions .login-btn{ display:none; }
  .header-actions .buy-btn{ display:none; }
  .mobile-auth-links{ display:flex; flex-direction:column; gap:10px; width:100%; margin-top:16px; padding-top:16px; border-top:1px solid var(--border); }
  #mainNav .mobile-auth-links a{ padding:13px 24px; border-bottom:none; font-size:.94rem; justify-content:center; }
  #mainNav .mobile-auth-links a.btn-dark{ color:#fff; }
  #mainNav .mobile-auth-links a.btn-outline{ color:var(--text); }
  .search-bar{ grid-template-columns:1fr; margin:16px 0 0; }
  .search-field{ border-right:none !important; border-bottom:1px solid var(--border); }
  .property-grid, .property-grid.cols-4{ grid-template-columns:1fr; }
  .feature-strip{ grid-template-columns:1fr; }
  .detail-gallery{ grid-template-columns:1fr; }
  .detail-gallery .side-imgs{ grid-template-columns:1fr 1fr; grid-template-rows:none; }
  .filters-panel{ flex-direction:column; align-items:stretch; }
  .footer-inner{ grid-template-columns:1fr; }
  .stat-grid{ grid-template-columns:1fr 1fr; }
  .spec-grid{ grid-template-columns:1fr 1fr; }
  .checkbox-grid{ grid-template-columns:1fr 1fr; }
  .form-row{ grid-template-columns:1fr; }
  .category-grid{ grid-template-columns:repeat(2,1fr); }
  .city-grid{ grid-template-columns:1fr; }
  .newsletter-form{ flex-direction:column; }
  .mortgage-inputs{ grid-template-columns:1fr 1fr; }
  .agent-profile-contact{ margin-left:0; width:100%; }
  .compare-bar{ flex-direction:column; align-items:stretch; gap:10px; left:16px; right:16px; transform:none; max-width:none; }
  .compare-bar-items{ flex-wrap:wrap; }
  .compare-bar-actions{ justify-content:flex-end; }
}
