﻿:root{
      --primary-blue: var(--dg-primary,#2563eb);
      --light-blue: var(--dg-primary-light,#dbeafe);
      --dark-text: #1e293b;
      --gray-text: #64748b;
      --white: #ffffff;
      --bg-light: #f8fafc;
      --border-color: #e2e8f0;
      --black:#0a0a0a;
      --text:#ffffff;
      --muted:#c8d0da;
      --panel:rgba(10,23,39,.78);
      --panel-border:rgba(255,255,255,.12);
      --card:#ffffff;
      --surface:#f4f6f8;
      --yellow:#00BFFF;
      --yellow-dark:#0099CC;
    }
    *{box-sizing:border-box}
    body{
      margin:0;
      font-family:'Manrope',system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
      color:var(--dark-text);
      background: #f1f1f1;
      overflow-x: hidden;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    body::-webkit-scrollbar { display: none; }

/* Content Wrapper */
.content-wrapper {
    margin-left: 70px;
    margin-top: 0px !important;
}

/* Fixed Left Sidebar */
.left-sidebar {
    position: fixed;
    left: 0;
    top: var(--dg-header-bar-h, 0px);
    width: 70px;
    height: calc(100vh - var(--dg-header-bar-h, 0px));
    background: var(--primary-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 0 16px;
    gap: 16px;
    z-index: 100;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.sidebar-icon svg {
    width: 22px;
    height: 22px;
    color: var(--white);
}

.vertical-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.15em;
    text-align: center;
    line-height: 1.8;
    margin: 20px 0;
}

    a{color:inherit;text-decoration:none}

    /* Top nav */
    .header {
      position: fixed;
      top: var(--dg-header-bar-h, 0px);
      left: 70px;
      right: 0;
      height: 70px;
      background: var(--white);
      border-bottom: 1px solid var(--border-color);
      display: flex;
      align-items: center;
      gap: 24px;
      padding: 0 20px;
      z-index: 9998;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    .brand{display:flex;align-items:center;gap:10px;font-weight:900;font-size:1rem;letter-spacing:.2px;color:var(--dark-text)}
    .brand .logo-dot{width:10px;height:10px;background:var(--primary-blue);border-radius:2px}
    .nav{display:flex;gap:22px;color:var(--gray-text);font-weight:700;font-size:0.875rem}
    .nav a {
      color: #374151;
      text-decoration: none;
      font-size: 0.875rem;
      font-weight: 500;
      transition: color 0.15s;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }
    .nav a:hover { color: var(--dg-primary,#2563eb); }
    .nav-link-wrapper a {
      color: #111;
      font-weight: 700;
      text-decoration: none;
      transition: color 0.2s;
    }
    .nav-link-wrapper a:hover { color: var(--primary-blue); }
    .actions{margin-left:auto;display:flex;gap:12px;align-items:center}
    .badge{
      font-size:0.875rem;font-weight:800;letter-spacing:.3px;
      padding:6px 10px;border-radius:8px;background:var(--light-blue);color:var(--primary-blue);border:1px solid var(--primary-blue)
    }
    .button{
      position:relative;
      background:var(--primary-blue);
      border:1px solid var(--primary-blue);
      color:var(--white);
      padding:9px 14px;border-radius:8px;font-weight:700;font-size:12px;
      min-height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      white-space: nowrap;
    }
    .button:hover{filter:brightness(1.06)}
    .button-sell-rent {
      background: linear-gradient(135deg, var(--dg-primary,#2563eb) 0%, var(--dg-primary-dark,#1d4ed8) 100%);
      border: 1px solid transparent;
      box-shadow: 0 12px 24px rgba(37, 99, 235, 0.16);
    }
    .button-sell-rent:hover {
      filter: brightness(1.05);
    }

    .button-badge{
      position:absolute;
      top:0;
      left:0;
      transform: translate(-50%, -50%);
      display:inline-flex;
      align-items:center;
      justify-content:center;
      padding:1px 5px;
      border-radius:999px;
      background:#facc15;
      color:#111;
      font-size:0.55rem;
      font-weight:800;
      text-transform:uppercase;
      letter-spacing:0.04em;
      white-space:nowrap;
    }

    /* ── Premium header action button variants ─────── */
    .button-partner {
      background: transparent;
      border: 1.5px solid var(--dg-primary,#2563eb);
      color: var(--dg-primary,#2563eb);
    }
    .button-partner:hover {
      background: #eff6ff;
      border-color: var(--dg-primary-dark,#1d4ed8);
      color: var(--dg-primary-dark,#1d4ed8);
      filter: none;
    }
    .button-login {
      background: transparent;
      border: 1.5px solid #d1d5db;
      color: #374151;
    }
    .button-login:hover {
      background: #f3f4f6;
      border-color: #9ca3af;
      color: #111;
      filter: none;
    }

    /* ── Hero search category row ───────────────────── */
    .sc-row {
      display: inline-flex;
      overflow: hidden;
      background: var(--white);
      backdrop-filter: saturate(160%) blur(8px);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 0;
      gap: 0;
      margin-bottom: 14px;
    }
    .sc-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 14px 18px;
      font-size: 0.875rem;
      font-weight: 700;
      border: none;
      border-right: 1px solid var(--border-color);
      cursor: pointer;
      background: transparent;
      color: var(--gray-text);
      transition: all 0.18s;
      letter-spacing: 0.02em;
      border-radius: 0;
    }
    .sc-btn:last-child { border-right: none; }
    .sc-btn svg { width: 18px; height: 18px; opacity: 0.9; }
    .sc-btn.active {
      background: var(--light-blue);
      color: var(--primary-blue);
    }
    .sc-btn:hover:not(.active) {
      background: #f8fafc;
      color: var(--dark-text);
    }

    /* ── City select inside .select ─────────────────── */
    .hero-city-select { cursor: pointer; }
    .hero-city-select select {
      width: 100%;
      border: none;
      outline: none;
      background: transparent;
      font-size: 0.93rem;
      font-weight: 700;
      color: #0f172a;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      padding: 0;
      margin-top: 2px;
    }
    .hero-city-select small {
      display: block;
      color: #5b6472;
      font-weight: 700;
      letter-spacing: .25px;
      font-size: 0.7rem;
    }

    /* ── Search button with flex icon ───────────────── */
    .search-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    /* ── Filter pill dropdowns ───────────────────────── */
    .fp-pill {
      position: relative;
      cursor: pointer;
      user-select: none;
      min-width: 120px;
    }
    .fp-dropdown {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.12);
      border: 1px solid #e2e8f0;
      min-width: 160px;
      z-index: 300;
      display: none;
      padding: 6px;
    }
    .fp-pill.open .fp-dropdown { display: block; }
    .fp-opt {
      padding: 9px 12px;
      border-radius: 7px;
      font-size: 0.85rem;
      font-weight: 600;
      color: #374151;
      cursor: pointer;
      transition: background 0.13s;
    }
    .fp-opt:hover { background: #f3f4f6; }
    .fp-opt.active { background: #eff6ff; color: var(--dg-primary-dark,#1d4ed8); }

/* Hero */
    .hero{
      position:relative;
      min-height:720px;
      background-color:#eef4ff;
      /* background-image set inline in home.ejs via cimg() cached copy */
      background-size:cover;
      background-position:center;
      background-repeat:no-repeat;
    }
    .hero::before{
      content:"";
      position:absolute;inset:0;
      background:linear-gradient(100deg,rgba(240,246,255,0.97) 0%,rgba(230,242,255,0.93) 55%,rgba(219,234,254,0.7) 100%);
      pointer-events:none;z-index:0;
    }
    .hero::after{
      content:"";
      position:absolute;
      right:0;top:0;
      width:46%;height:100%;
      background-image:radial-gradient(circle,rgba(37,99,235,0.06) 1.5px,transparent 1.5px);
      background-size:24px 24px;
      pointer-events:none;z-index:0;
    }
    .hero-bg{
      position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;
    }
    .hero-bg-fallback{ filter: blur(8px) brightness(0.5); }

    .hero-inner{
      position:relative;z-index:1;
      width:80%;margin:0 auto;
      padding:80px 40px 36px;
      display:flex;flex-direction:column;align-items:center;
      text-align:center;
    }

    /* Badge */
    .hero-badge{
      display:inline-flex;align-items:center;gap:8px;
      background:rgba(37,99,235,0.08);border:1px solid rgba(37,99,235,0.2);
      color:var(--dg-primary,#2563eb);font-size:0.78rem;font-weight:700;
      padding:6px 14px;border-radius:100px;margin-bottom:20px;
    }
    .hero-badge-dot{
      width:7px;height:7px;border-radius:50%;
      background:var(--dg-primary,#2563eb);flex-shrink:0;
    }

    h1.big{
      margin:0 0 14px;
      font-size:clamp(34px,4.5vw,68px);
      line-height:1.08;font-weight:900;letter-spacing:-.025em;
      color:#0f172a;
    }
    .hero-accent{
      font-style:italic;
      color:var(--dg-primary,#2563eb);
    }
    .sub{font-size:0.925rem;color:#475569;margin-bottom:28px;line-height:1.7}
    .sub strong{color:#1e293b;font-weight:800}
    .sub-br{ display:none }
    @media(min-width:600px){ .sub-br{ display:inline } }

    /* Mobile-only quick-action tiles (Buy/Rent/PG/Commercial) — hidden on desktop */
    .hero-quick-actions{ display:none; }

    /* Search card container */
    .hero-search-card{
      width:100%;
      background:rgba(255,255,255,0.88);
      backdrop-filter:blur(16px);
      -webkit-backdrop-filter:blur(16px);
      border:1px solid rgba(37,99,235,0.12);
      border-radius:0;overflow:visible;
      box-shadow:0 8px 40px rgba(37,99,235,0.1);
    }
    .hsc-body{ padding:16px 20px 20px; }

    /* Tabs */
    .tabbar{
      display:inline-flex;overflow:hidden;
      background:transparent;backdrop-filter:none;
      border:none;border-radius:0;
    }
    .sc-row{
      display:flex;flex-wrap:wrap;
      background:transparent;backdrop-filter:none;
      border:none;border-bottom:1px solid #e2e8f0;
      border-radius:0;overflow:visible;width:100%;max-width:100%;
      padding:8px 12px 0;gap:2px;
    }
    .tab{
      display:flex;align-items:center;gap:7px;
      padding:10px 15px;font-weight:700;font-size:0.8rem;
      color:#64748b;border-right:none;
      cursor:pointer;white-space:nowrap;border-radius:8px;
      transition:all 0.15s;margin-bottom:6px;
    }
    .tab:last-child{border-right:none}
    .tab svg{width:15px;height:15px;opacity:.85;flex-shrink:0}
    .tab.active{background:var(--dg-primary,#2563eb);color:#fff}
    .tab.active svg{opacity:1}
    .tab:hover:not(.active){background:#f0f7ff;color:var(--dg-primary,#2563eb)}

    /* Search wrap (positions autosuggest) */
    .search-wrap { position:relative; margin-top:0; width:100%; max-width:100%; overflow:visible; }

    /* ── Premium Autosuggest Dropdown ─────────────────────────── */
    .hero-suggest {
      display: none;
      position: absolute;
      top: calc(100% + 8px);
      left: 0; right: 0;
      background: #fff;
      border: 1px solid #e2e8f0;
      border-radius: 18px;
      box-shadow: 0 32px 80px rgba(15,23,42,0.2), 0 8px 24px rgba(37,99,235,0.08);
      z-index: 99999;
      overflow: hidden;
      max-height: 500px;
      overflow-y: auto;
      scrollbar-width: thin;
      scrollbar-color: #e2e8f0 transparent;
      text-align: left;
      animation: sugDrop 0.18s cubic-bezier(0.22,1,0.36,1);
    }
    @keyframes sugDrop {
      from { opacity: 0; transform: translateY(-8px) scale(0.98); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }
    .hero-suggest.open { display: block; }

    /* Section title */
    .sug-section-title {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 9px 16px 7px;
      font-size: 0.63rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: #64748b;
      background: #f8fafc;
      border-bottom: 1px solid #f1f5f9;
      position: sticky;
      top: 0;
      z-index: 1;
    }
    .sug-section-dot {
      display: inline-block;
      width: 7px; height: 7px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    /* Row */
    .sug-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 14px 10px 16px;
      cursor: pointer;
      transition: background 0.1s, border-left-color 0.1s;
      border-bottom: 1px solid #f8fafc;
      border-left: 3px solid transparent;
    }
    .sug-item:last-child { border-bottom: none; }
    .sug-item:hover { background: #f0f7ff; border-left-color: var(--dg-primary,#2563eb); }

    /* Property thumbnail */
    .sug-thumb {
      width: 66px; height: 50px;
      border-radius: 10px;
      object-fit: cover;
      flex-shrink: 0;
      box-shadow: 0 2px 10px rgba(0,0,0,0.13);
    }
    .sug-thumb-ph {
      width: 66px; height: 50px;
      border-radius: 10px; flex-shrink: 0;
      background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    }

    /* Property thumbnail (kept for _propItem) */
    .sug-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
    .sug-label {
      font-size: 0.875rem; font-weight: 700; color: #0f172a;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      display: flex; align-items: center; gap: 5px;
    }
    .sug-meta {
      font-size: 0.72rem; color: #64748b;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      display: flex; align-items: center; gap: 4px;
    }
    .sug-meta-loc { display: flex; align-items: center; gap: 3px; }
    .sug-pin-icon { color: #94a3b8; flex-shrink: 0; }

    /* Right column (property) */
    .sug-right {
      display: flex; flex-direction: column;
      align-items: flex-end; gap: 4px; flex-shrink: 0;
    }

    /* Property Badges */
    .sug-badge {
      font-size: 0.64rem; font-weight: 700;
      padding: 2px 8px; border-radius: 5px;
      white-space: nowrap; flex-shrink: 0;
    }
    .sug-badge-available  { background: #f0fdf4; color: #16a34a;  border: 1px solid #bbf7d0; }
    .sug-badge-featured   { background: #eff6ff; color: var(--dg-primary-dark,#1d4ed8);  border: 1px solid #bfdbfe; }
    .sug-badge-sale       { background: #eff6ff; color: var(--dg-primary-dark,#1d4ed8);  border: 1px solid #bfdbfe; }
    .sug-badge-rent       { background: #fff7ed; color: #c2410c;  border: 1px solid #fed7aa; }
    .sug-badge-commercial { background: #f5f3ff; color: #6d28d9;  border: 1px solid #ddd6fe; }
    .sug-badge-pg         { background: #ecfdf5; color: #065f46;  border: 1px solid #6ee7b7; }
    .sug-badge-plot       { background: #fefce8; color: #92400e;  border: 1px solid #fde68a; }
    .sug-badge-verified   { background: #f0fdf4; color: #15803d;  border: 1px solid #86efac; }

    /* ── Agent / Builder card rows ──────────────────────────── */
    .sug-item--agent,
    .sug-item--builder { align-items: flex-start; padding: 11px 14px 11px 16px; gap: 11px; }
    .sug-item--agent:hover,
    .sug-item--builder:hover { background: #f5f8ff; border-left-color: var(--dg-primary,#2563eb); }

    /* Avatar circle (agent) */
    .sag-av {
      width: 48px; height: 48px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 1rem; font-weight: 800; color: #fff;
      flex-shrink: 0; margin-top: 1px;
      box-shadow: 0 4px 14px rgba(0,0,0,0.28);
    }

    /* Icon square (builder) */
    .sag-bld-icon {
      width: 48px; height: 48px; border-radius: 13px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.2rem; font-weight: 800; color: #fff;
      flex-shrink: 0; margin-top: 1px;
      box-shadow: 0 4px 14px rgba(0,0,0,0.22);
    }

    /* Body */
    .sag-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
    .sag-name {
      font-size: 0.88rem; font-weight: 700; color: #0f172a;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      line-height: 1.3;
    }

    /* Badge row */
    .sag-tags { display: flex; gap: 4px; flex-wrap: wrap; }
    .sag-tag {
      font-size: 0.59rem; font-weight: 700; letter-spacing: 0.02em;
      padding: 2px 7px; border-radius: 20px; white-space: nowrap;
    }
    .sag-tag--agent    { background: #eff6ff; color: var(--dg-primary-dark,#1d4ed8); border: 1px solid #bfdbfe; }
    .sag-tag--builder  { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
    .sag-tag--owner    { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
    .sag-tag--dealer   { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
    .sag-tag--verified { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
    .sag-tag--premium  { background: #fef9c3; color: #a16207; border: 1px solid #fde047; }

    /* Location line */
    .sag-loc {
      font-size: 0.7rem; color: #64748b;
      display: flex; align-items: center; gap: 3px;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .sag-pin { color: #94a3b8; flex-shrink: 0; }

    /* Star rating column */
    .sag-rating-col {
      display: flex; flex-direction: column; align-items: center;
      gap: 2px; flex-shrink: 0; padding-top: 2px;
    }
    .sag-stars { display: flex; gap: 1px; }
    .sag-star  { font-size: 0.75rem; line-height: 1; }
    .sag-star--full  { color: #f59e0b; }
    .sag-star--half  { color: #fbbf24; opacity: 0.65; }
    .sag-star--empty { color: #e2e8f0; }
    .sag-rnum { font-size: 0.73rem; font-weight: 800; color: #0f172a; text-align: center; }

    /* Builder arrow */
    .sag-arrow-col {
      flex-shrink: 0; display: flex; align-items: center;
      padding-top: 12px; transition: transform 0.15s;
    }
    .sug-item--builder:hover .sag-arrow-col { transform: translateX(2px); }
    .sug-item--builder:hover .sag-arrow-col svg { stroke: var(--dg-primary,#2563eb); }

    /* Footer */
    .sug-footer {
      display: flex; align-items: center; justify-content: center; gap: 6px;
      padding: 12px 16px;
      background: #f8fafc;
      border-top: 1px solid #e2e8f0;
      font-size: 0.8rem; font-weight: 700; color: var(--dg-primary,#2563eb);
      cursor: pointer; transition: background 0.12s;
      border-radius: 0 0 18px 18px;
    }
    .sug-footer:hover { background: #eff6ff; }
    .sug-footer svg { flex-shrink: 0; }

    /* legacy */
    .sug-title { display: none; }
    .sug-icon  { display: none; }
    .sug-badges { display: none; }

    /* Search */
    .search-card{
      display:flex;align-items:center;
      background:#fff;
      border:1px solid #e2e8f0;
      border-radius:0;
      box-shadow:0 2px 16px rgba(0,0,0,0.08);
      height:58px;
      padding:5px;
      position:relative;
    }
    .search-main{ display:none }
    .hero-city-wrap{
      display:flex;flex-direction:column;justify-content:center;
      padding:0 18px;min-width:140px;height:100%;
      background:#f8fafc;border-right:1px solid #e2e8f0;
      border-radius:10px 0 0 10px;
      flex-shrink:0;cursor:pointer;overflow:visible;
    }
    .hero-city-wrap small{
      font-size:0.62rem;font-weight:800;color:#94a3b8;
      letter-spacing:0.08em;text-transform:uppercase;
      line-height:1;margin-bottom:3px;
    }
    .hero-city-wrap select{
      border:none;outline:none;background:transparent;
      font-size:0.88rem;font-weight:700;color:#0f172a;
      cursor:pointer;appearance:none;-webkit-appearance:none;
      padding:0;width:100%;
    }
    .hero-city-wrap select option{color:#0f172a}
    .search-divider{width:1px;height:60%;background:#e2e8f0;flex-shrink:0}
    .select{
      position:relative;background:#f8fafc;border-radius:8px;
      padding:8px 12px;color:#0f172a;cursor:pointer;
    }
    .select small{display:block;color:#64748b;font-weight:700;letter-spacing:.5px;text-transform:uppercase;font-size:0.68rem;text-align:left}
    .select b{font-weight:800;color:#0f172a}
    .select .caret{
      position:absolute;right:12px;top:50%;transform:translateY(-50%) rotate(45deg);
      width:10px;height:10px;border:2px solid #94a3b8;border-top:0;border-left:0
    }
    .input{display:flex;align-items:center;gap:8px;padding:0 12px;flex:1;height:100%}
    .input input{width:100%;padding:0;border:0;outline:0;font-size:0.875rem;background:transparent;color:#0f172a;height:100%}
    #heroQ{border-radius:5px !important}
    .input input::placeholder{color:#94a3b8}
    .input .icon{color:#94a3b8;flex-shrink:0}
    .round{
      display:grid;place-items:center;width:36px;height:36px;border-radius:8px;
      background:#f1f5f9;color:#64748b;
      border:1px solid #e2e8f0;cursor:pointer;flex-shrink:0;margin:0 3px;
    }
    .round:hover{background:#e2e8f0}
    .search-btn{
      height:100%;min-width:110px;border:0;border-radius:10px;
      background:var(--dg-primary,#2563eb);color:#fff;font-weight:600;font-size:0.875rem;
      letter-spacing:.3px;cursor:pointer;
      display:flex;align-items:center;justify-content:center;gap:6px;
      padding:0 22px;flex-shrink:0;
    }
    .search-btn:hover{background:var(--dg-primary-dark,#1d4ed8)}

    /* Filters */
    .filters{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap;justify-content:flex-start;width:100%;max-width:100%}
    .pill{
      min-width:120px;display:flex;align-items:center;justify-content:space-between;gap:10px;
      background:#fff;color:#374151;
      padding:10px 14px;border:1px solid #e2e8f0;border-radius:10px;
      font-weight:700;font-size:0.82rem;cursor:pointer;
      box-shadow:0 1px 4px rgba(0,0,0,0.05);
    }
    .pill:hover{background:#f0f7ff;border-color:#bfdbfe}
    .pill svg{color:#94a3b8}
    .helper{
      margin-top:10px;display:flex;align-items:center;gap:8px;
      color:#475569;font-weight:700;
    }
    .helper .link{color:var(--dg-primary,#2563eb);text-decoration:underline;margin:0 8px}

    /* Trending */
    .hero-trending{
      display:flex;align-items:center;flex-wrap:wrap;
      gap:8px;margin-top:12px;
    }
    .hero-trending-label{
      font-size:0.8rem;font-weight:700;color:#94a3b8;
    }
    .hero-trend-tag{
      display:inline-block;padding:5px 13px;
      background:rgba(255,255,255,0.8);border:1px solid #e2e8f0;
      border-radius:100px;font-size:0.8rem;font-weight:600;color:#475569;
      text-decoration:none;transition:all 0.15s;
    }
    .hero-trend-tag:hover{background:var(--dg-primary,#2563eb);color:#fff;border-color:var(--dg-primary,#2563eb)}

    /* Stats bar */
    .hero-stats-bar{
      position:relative;z-index:0;
      display:flex;justify-content:center;align-items:stretch;
      gap:0;
      background:rgba(255,255,255,0.85);
      backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
      border-top:1px solid #e2e8f0;
    }
    .hero-stat{
      flex:1;max-width:220px;
      display:flex;flex-direction:column;align-items:center;justify-content:center;
      padding:20px 16px;
      border-right:1px solid #e2e8f0;
      text-align:center;
    }
    .hero-stat:last-child{border-right:none}
    .hero-stat-icon{
      width:34px;height:34px;border-radius:10px;
      display:flex;align-items:center;justify-content:center;
      background:#eff6ff;color:var(--dg-primary,#2563eb);font-size:0.95rem;
      margin-bottom:8px;
    }
    .hero-stat-num{
      font-size:2rem;font-weight:900;color:#1e293b;line-height:1;
    }
    .hero-stat-word{ font-size:1.15rem; }
    .hero-stat-suffix{color:var(--dg-primary,#2563eb);font-size:1.2rem;font-weight:900}
    .hero-stat-label{
      font-size:0.72rem;font-weight:700;text-transform:uppercase;
      letter-spacing:0.08em;color:#94a3b8;margin-top:4px;
    }

    .icon{width:18px;height:18px}

    .hero-loc-icon{width:18px;height:18px}

    .hero-loc-loading .hero-loc-icon{
      animation:cpm-spin 0.75s linear infinite
    }

    @keyframes cpm-spin{to{transform:rotate(360deg)}}

    /* bottom fade - not needed on dark hero */
    .footer-fade{ display:none; }

    /* Creative Footer */
    .creative-footer {
      background: #111;
      color: #fff;
      padding: 60px 24px 24px;
      font-size: 0.875rem;
      margin-left: 70px; /* align with content wrapper */
    }
    .creative-footer a {
      color: #fff;
      text-decoration: none;
      transition: color 0.2s;
    }
    .creative-footer a:hover {
      color: var(--yellow);
      text-decoration: underline;
    }
    .footer-sections {
      display: flex;
      flex-wrap: wrap;
      gap: 32px;
      justify-content: space-between;
    }
    .footer-section {
      flex: 1 1 200px;
      min-width: 150px;
    }
    .footer-section h3 {
      font-size: 0.875rem;
      font-weight: 600;
      margin-bottom: 12px;
      color: #fff;
    }
    .footer-section ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .footer-section ul li {
      margin-bottom: 6px;
    }
    .footer-bottom {
      display: flex;
      flex-wrap: wrap;
      gap: 32px;
      margin-top: 40px;
      border-top: 1px solid rgba(255,255,255,0.1);
      padding-top: 24px;
    }
    .about-section {
      flex: 2;
      min-width: 200px;
    }
    .connect-section,
    .app-section,
    .social-section {
      flex: 1;
      min-width: 200px;
    }
    .app-link img {
      height: 40px;
      display: block;
    }
    .social-icons a {
      display: inline-block;
      margin-right: 8px;
      color: #fff;
      font-size: 1.2rem;
    }
    .social-icons a:hover {
      color: #ddd;
    }
    .footer-copyright {
      text-align: center;
      margin-top: 24px;
      font-size: 0.75rem;
      opacity: 0.6;
    }

    /* ensure footer margin resets on small screens */
    @media (max-width:980px) {
      .creative-footer { margin-left: 0; }
    }

    /* ── Hamburger button (mobile only) ── */
    .hamburger-btn {
      display: none;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 6px;
      border-radius: 8px;
      margin-left: auto;
      flex-shrink: 0;
    }
    .hamburger-btn:hover { background: #f1f5f9; }
    .hamburger-btn span {
      display: block;
      width: 22px;
      height: 2px;
      background: #374151;
      border-radius: 2px;
      margin: 4px 0;
      transition: all 0.25s ease;
    }
    .hamburger-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .hamburger-btn.open span:nth-child(2) { opacity: 0; }
    .hamburger-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    /* ── Mobile nav drawer ── */
    .mobile-nav-drawer {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 280px;
      height: 100vh;
      background: #fff;
      z-index: 99999;
      box-shadow: 4px 0 24px rgba(0,0,0,0.15);
      flex-direction: column;
      overflow-y: auto;
      transform: translateX(-100%);
      transition: transform 0.28s ease;
    }
    .mobile-nav-drawer.open { transform: translateX(0); }
    .mobile-nav-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.4);
      z-index: 99998;
    }
    .mobile-nav-overlay.open { display: block; }
    .mobile-drawer-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 20px;
      border-bottom: 1px solid #e2e8f0;
    }
    .mobile-drawer-close {
      background: none;
      border: none;
      font-size: 22px;
      cursor: pointer;
      color: #374151;
      line-height: 1;
      padding: 4px;
    }
    .mobile-drawer-nav {
      padding: 16px 0;
      flex: 1;
    }
    .mobile-drawer-nav a,
    .mobile-drawer-nav .mobile-nav-item {
      display: block;
      padding: 13px 24px;
      color: #374151;
      font-weight: 600;
      font-size: 0.95rem;
      text-decoration: none;
      border-bottom: 1px solid #f1f5f9;
      transition: background 0.15s;
    }
    .mobile-drawer-nav a:hover,
    .mobile-drawer-nav .mobile-nav-item:hover { background: #f8fafc; color: var(--dg-primary,#2563eb); }
    .mobile-drawer-actions {
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      border-top: 1px solid #e2e8f0;
    }
    .mobile-drawer-actions .button {
      width: 100%;
      justify-content: center;
      font-size: 0.9rem;
      padding: 12px 16px;
    }

    /* ── Responsive ──────────────────────────────────────────────── */

    /* Tablet & below: hide desktop nav, show hamburger, hide sidebar */
    @media (max-width: 980px) {
      .nav, .actions { display: none; }
      .hamburger-btn { display: flex; }
      .left-sidebar { display: none; }
      .header { left: 0; height: auto; min-height: 64px; padding: 0 16px; }
      .content-wrapper { margin-left: 0; margin-top: 0px !important; }
      .mobile-nav-drawer { display: flex; }

      /* Hero */
      .hero { min-height: auto; margin-top: calc(64px + var(--dg-header-bar-h, 0px)); }
      .hero-inner { width: 100%; padding: 52px 20px 28px; }

      /* Tabs — horizontal scroll, no wrap */
      .sc-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 8px 16px 0;
        gap: 4px;
      }
      .sc-row::-webkit-scrollbar { display: none; }
      .tab { flex-shrink: 0; padding: 9px 13px; font-size: 0.78rem; }

      /* Search card */
      .search-card { flex-wrap: wrap; height: auto; border-radius: 0; gap: 0; }
      .hero-city-wrap {
        width: 100%; border-right: none;
        border-bottom: 1px solid #e2e8f0;
        border-radius: 0; padding: 10px 16px; min-width: unset;
      }
      .search-divider { display: none; }
      .input { padding: 0 14px; min-height: 48px; }
      .round { width: 34px; height: 34px; }
      .search-btn {
        border-radius: 0; width: 100%; min-width: unset;
        height: 48px; padding: 0; font-size: 0.875rem;
      }

      /* Filter pills — 2 per row */
      .filters { gap: 8px; }
      .pill { flex: 1 1 calc(50% - 4px); min-width: 0; }

      /* Stats bar — 2×2 grid */
      .hero-stats-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
      }
      .hero-stat { max-width: none; border-right: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
      .hero-stat:nth-child(2) { border-right: none; }
      .hero-stat:nth-child(3) { border-bottom: none; }
      .hero-stat:nth-child(4) { border-right: none; border-bottom: none; }
    }

    /* Mobile */
    @media (max-width: 768px) {
      .header { padding: 0 14px; gap: 10px; }
      .content-wrapper { margin-top: 0px !important; }

      /* Hero heading */
      h1.big { font-size: clamp(28px, 7vw, 48px); }
      .sub { font-size: 0.875rem; margin-bottom: 20px; }
      .sub-br { display: none; }
      .hero-inner { padding: 44px 16px 24px; }

      /* Search card body */
      .hsc-body { padding: 10px 12px 14px; }

      /* Trending tags — scroll horizontally */
      .hero-trending {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
      }
      .hero-trending::-webkit-scrollbar { display: none; }
      .hero-trend-tag { flex-shrink: 0; }

      /* Filter pills */
      .fp-pill { min-width: 0; }

      /* Stats */
      .hero-stat-num { font-size: 1.6rem; }
      .hero-stat { padding: 16px 12px; }

      /* ── App-style hero search (mobile only) ─────────────────────────── */
      .hero-quick-actions{
        display:grid; grid-template-columns:repeat(4,1fr); gap:10px;
        margin-bottom:14px;
      }
      .hqa-tile{
        display:flex; flex-direction:column; align-items:center; justify-content:center;
        gap:6px; padding:12px 6px; border-radius:16px; cursor:pointer;
        border:1.5px solid transparent; transition:transform .15s, border-color .15s;
      }
      .hqa-tile:active{ transform:scale(0.96); }
      .hqa-icon{
        width:34px; height:34px; border-radius:10px;
        display:flex; align-items:center; justify-content:center; font-size:15px;
      }
      .hqa-label{ font-size:0.78rem; font-weight:700; color:#1e293b; }
      .hqa-buy .hqa-icon{ background:var(--dg-primary-light,#dbeafe); color:var(--dg-primary,#2563eb); }
      .hqa-rent .hqa-icon{ background:#dcfce7; color:#16a34a; }
      .hqa-pg .hqa-icon{ background:#ede9fe; color:#7c3aed; }
      .hqa-commercial .hqa-icon{ background:#fef3c7; color:#b45309; }
      .hqa-buy.active{ border-color:var(--dg-primary,#2563eb); }
      .hqa-rent.active{ border-color:#16a34a; }
      .hqa-pg.active{ border-color:#7c3aed; }
      .hqa-commercial.active{ border-color:#b45309; }

      .hero .hero-search-card{
        display:flex; flex-direction:column;
        border-radius:20px; overflow:hidden;
      }
      .hero .hsc-body{ order:1; }
      .hero .sc-row{
        order:2; border-bottom:none; border-top:1px solid #e2e8f0;
        margin-top:4px; padding:8px 12px 6px; flex-wrap:nowrap;
      }

      .hero .search-card{
        border-radius:999px !important; border:1.5px solid #e2e8f0; overflow:hidden;
        flex-wrap:nowrap; height:auto;
      }
      .hero .hero-city-wrap{ display:none; }
      .hero .search-divider{ display:none; }
      .hero #heroClearBtn, .hero #heroLocBtn{ display:none; }
      .hero .input{ padding:0 4px 0 16px; min-height:46px; }
      .hero .search-btn{
        border-radius:999px !important; width:44px; height:44px !important; min-width:unset;
        margin:3px; padding:0; flex-shrink:0;
      }
      .hero .search-btn-label{ display:none; }

      .hero .filters{ flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; gap:8px; }
      .hero .filters::-webkit-scrollbar{ display:none; }
      .hero .pill{ flex:0 0 auto; border-radius:999px; }
      .hero #possessionPill{ display:none; }
    }

    /* Small mobile */
    @media (max-width: 480px) {
      h1.big { font-size: clamp(24px, 8vw, 36px); }
      .hero-badge { font-size: 0.72rem; padding: 5px 12px; }
      .hero-inner { padding: 36px 12px 20px; }
      .tab { padding: 8px 10px; font-size: 0.73rem; gap: 5px; }
      .tab svg { width: 13px; height: 13px; }
      .input input { font-size: 0.82rem; }
      .hsc-body { padding: 8px 10px 12px; }

      /* Pills full-width stack on very small */
      .pill { flex: 1 1 calc(50% - 4px); font-size: 0.78rem; padding: 9px 10px; }
      .fp-label { font-size: 0.78rem; }

      /* Stats compact */
      .hero-stat-num { font-size: 1.4rem; }
      .hero-stat-label { font-size: 0.65rem; }
      .hero-stat { padding: 14px 8px; }
    }

/* Property Types (in hero) */
.property-types {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.types-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
}

.type-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid #e2e8f0;
    background: rgba(255,255,255,0.85);
    color: #374151;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}

.type-btn svg {
    width: 15px;
    height: 15px;
    color: var(--dg-primary,#2563eb);
}

.type-btn:hover {
    border-color: var(--dg-primary,#2563eb);
    background: #eff6ff;
    color: var(--dg-primary,#2563eb);
    transform: translateY(-1px);
}

/* City Selection Modal */
.city-modal-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.city-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  width: 700px;
  max-width: 99vw;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeIn 0.2s;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(30px);} to { opacity: 1; transform: none; } }
.city-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 10px 28px;
  border-bottom: 1px solid #f0f0f0;
}
.city-modal-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #222;
}
.city-modal-close {
  background: none;
  border: none;
  font-size: 1.125rem;
  color: #888;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s;
}
.city-modal-close:hover { color: var(--dg-primary,#2563eb); }
.city-modal-search {
  padding: 18px 28px 8px 28px;
}
.city-search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.875rem;
  background: #f8fafc;
  outline: none;
  transition: border 0.2s;
}
.city-search-input:focus { border-color: var(--dg-primary,#2563eb); }
.city-modal-section {
  margin-top: 0;
  padding: 0 28px;
}
.city-modal-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #888;
  margin: 18px 0 10px 0;
  letter-spacing: 0.01em;
}
.city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 10px;
}
.city-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 0 10px 0;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  transition: border 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.city-card:hover {
  border-color: var(--dg-primary,#2563eb);
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
  background: transparent;
}

.city-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: inherit;
}
.city-icon {
  font-size: 1.25rem;
  margin-bottom: 2px;
}
.city-list {
  margin-top: 0;
}
.city-list-item {
  padding: 14px 0 14px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.875rem;
  color: #222;
  cursor: pointer;
  transition: background 0.15s;
  padding-left: 6px;
}
.city-list-item:last-child { border-bottom: none; }
.city-list-item:hover { background: #f8fafc; color: var(--dg-primary,#2563eb); }

/* City Modal: Wider and Accordion Styles */
.state-list {
  margin-top: 10px;
}
.state-accordion {
  border-bottom: 1px solid #f0f0f0;
}
.state-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dg-primary,#2563eb);
  padding: 14px 0 14px 6px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  outline: none;
  transition: background 0.15s;
}
.state-header:hover {
  background: #f8fafc;
}
.state-arrow {
  font-size: 0.875rem;
  transition: transform 0.2s;
}
.state-accordion.open .state-arrow {
  transform: rotate(90deg);
}
.state-cities {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(.4,0,.2,1);
  background: #f8fafc;
  padding-left: 18px;
}
.state-accordion.open .state-cities {
  max-height: 300px;
  padding-bottom: 10px;
}
.state-city {
  padding: 10px 0;
  font-size: 0.875rem;
  color: #222;
  cursor: pointer;
  transition: color 0.15s;
}
.state-city:hover {
  color: var(--dg-primary,#2563eb);
}

/* ═══════════════════════════════════════════════════
   MEGA MENU — premium animated navigation dropdowns
   ═══════════════════════════════════════════════════ */

/* Wrapper — the relative-positioned anchor */
.mm-wrapper {
  position: relative;
  display: inline-block;
}

/* Trigger link */
.mm-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  padding: 4px 0;
  transition: color 0.15s;
}
.mm-trigger:hover,
.mm-wrapper.mm-open .mm-trigger { color: var(--dg-primary,#2563eb); }

/* Animated chevron */
.mm-chevron {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}
.mm-wrapper.mm-open .mm-chevron { transform: rotate(180deg); }

/* ── Panel ── */
.mega-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: -20px;
  width: 900px;
  max-width: calc(100vw - 90px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.04), 0 20px 60px -8px rgba(15, 23, 42, 0.14);
  z-index: 9999;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}
.mega-menu.mm-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0s linear 0s;
}

/* Small pointer arrow */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 44px;
  width: 11px;
  height: 11px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  border-left: 1px solid #e5e7eb;
  transform: rotate(45deg);
  z-index: 1;
}

/* ── Body layout ── */
.mm-body {
  display: flex;
  padding: 20px;
  align-items: stretch;
  min-height: 230px;
}

/* Left column — feature highlight cards */
.mm-left {
  width: 232px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Vertical divider */
.mm-divider {
  width: 1px;
  flex-shrink: 0;
  margin: 0 20px;
  background: linear-gradient(to bottom, transparent 0%, #e5e7eb 15%, #e5e7eb 85%, transparent 100%);
}

/* Right column — link grid */
.mm-right {
  flex: 1;
  min-width: 0;
}

/* ── Feature card (left panel) ── */
.mm-feature-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 0.14s, border-color 0.14s;
}
.mm-feature-card:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.mm-feat-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.mm-feature-card:hover .mm-feat-icon { transform: scale(1.05); }
.mm-feat-icon svg { width: 17px; height: 17px; }

.mm-feat-body { flex: 1; min-width: 0; }

.mm-feat-title {
  font-size: 0.8125rem;
  font-weight: 650;
  color: #111827;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-feat-desc {
  font-size: 0.7rem;
  color: #6b7280;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-feat-arrow {
  color: #d1d5db;
  font-size: 1.05rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: color 0.14s, transform 0.14s;
}
.mm-feature-card:hover .mm-feat-arrow {
  color: var(--dg-primary,#2563eb);
  transform: translateX(3px);
}

/* ── Link columns (right panel) ── */
.mm-links-grid {
  display: grid;
  gap: 0 20px;
  height: 100%;
  align-content: start;
}

.mm-col-heading {
  font-size: 0.65rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 9px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}

.mm-links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mm-links-col ul li a {
  font-size: 0.8125rem;
  color: #374151;
  text-decoration: none;
  display: block;
  padding: 2px 0;
  transition: color 0.13s, padding-left 0.13s;
  white-space: nowrap;
}
.mm-links-col ul li a:hover {
  color: var(--dg-primary,#2563eb);
  padding-left: 4px;
}

/* ── CTA strip ── */
.mm-cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 12px;
}

.mm-cta-text {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.4;
}
.mm-cta-text strong { color: #fff; font-weight: 700; }

.mm-cta-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.96);
  color: #111827;
  font-size: 0.775rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 7px 14px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.mm-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .mega-menu {
    width: calc(100vw - 90px);
    left: 0;
  }
  .mm-body {
    flex-direction: column;
    gap: 16px;
    min-height: unset;
  }
  .mm-left {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 2px;
  }
  .mm-feature-card { min-width: 180px; flex: 0 0 auto; }
  .mm-divider { width: 100%; height: 1px; margin: 0; }
  .mm-links-grid { grid-template-columns: repeat(2,1fr) !important; gap: 14px 16px; }
}

/* ══════════════════════════════
   HUB MEGA MENUS
══════════════════════════════ */
.buyers-hub-menu,
.services-hub-menu,
.tenants-hub-menu,
.sellers-hub-menu {
  width: 1060px;
  max-width: calc(100vw - 60px);
  left: -40px;
}
.buyers-hub-menu::before,
.services-hub-menu::before,
.tenants-hub-menu::before,
.sellers-hub-menu::before { display: none; }

.bhm-body {
  display: flex;
  align-items: stretch;
  min-height: 290px;
}

/* Left — blue panel */
.bhm-left {
  width: 245px;
  flex-shrink: 0;
  background: linear-gradient(145deg, #1e3a8a 0%, var(--dg-primary,#2563eb) 65%, #3b82f6 100%);
  padding: 26px 22px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.bhm-left-decor {
  position: absolute;
  bottom: -70px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}
.bhm-left-decor2 {
  position: absolute;
  top: -40px;
  left: -50px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.bhm-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  color: #e0e7ff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.22);
  align-self: flex-start;
}
.bhm-heading {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin: 0 0 10px;
}
.bhm-desc {
  font-size: 0.755rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}
.bhm-explore {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 20px;
  position: relative;
  z-index: 1;
  transition: gap 0.15s;
}
.bhm-explore:hover { gap: 10px; }

/* Middle — main content */
.bhm-mid {
  flex: 1;
  min-width: 0;
  padding: 18px 22px 18px;
  border-left: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
}

/* Feature tiles row */
.bhm-feat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}
.bhm-feat-tile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.bhm-feat-tile:hover {
  background: #f8fafc;
  border-color: #bfdbfe;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
}
.bhm-feat-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--dg-primary,#2563eb);
}
.bhm-feat-ico svg { width: 15px; height: 15px; }
.bhm-feat-ttl {
  font-size: 0.78rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
  line-height: 1.2;
}
.bhm-feat-dsc {
  font-size: 0.68rem;
  color: #6b7280;
  line-height: 1.4;
}

/* 4-column link grid */
.bhm-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 14px;
}
.bhm-col-hd {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #9ca3af;
  text-transform: uppercase;
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}
.bhm-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bhm-col ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.79rem;
  color: #374151;
  text-decoration: none;
  padding: 2px 0;
  transition: color 0.13s;
}
.bhm-col ul li a:hover { color: var(--dg-primary,#2563eb); }
.bhm-cnt {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--dg-primary,#2563eb);
  background: #eff6ff;
  padding: 1px 6px;
  border-radius: 99px;
  flex-shrink: 0;
}

/* Right sidebar */
.bhm-right {
  width: 210px;
  flex-shrink: 0;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Search box */
.bhm-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #e5e7eb;
  border-radius: 999px;
  padding: 7px 14px;
  background: #f9fafb;
  transition: border-color 0.15s;
}
.bhm-search-box:focus-within { border-color: #93c5fd; background: #fff; }
.bhm-search-ico { width: 14px; height: 14px; flex-shrink: 0; color: #9ca3af; }
.bhm-search-inp {
  border: none;
  background: transparent;
  font-size: 0.8rem;
  color: #374151;
  outline: none;
  width: 100%;
  font-family: 'Manrope', sans-serif;
}
.bhm-search-inp::placeholder { color: #9ca3af; }

/* Trending */
.bhm-trending-hd {
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #9ca3af;
  text-transform: uppercase;
  margin: 0;
}
.bhm-trending-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.bhm-trending-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: #111827;
  transition: color 0.13s;
}
.bhm-trending-list li a:hover { color: var(--dg-primary,#2563eb); }
.bhm-trend-badge {
  font-size: 0.64rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.bhm-trend-badge.hot   { background: #fef2f2; color: #dc2626; }
.bhm-trend-badge.new   { background: #eff6ff; color: var(--dg-primary,#2563eb); }
.bhm-trend-badge.prime { background: #f0fdf4; color: #16a34a; }

/* Expert card */
.bhm-expert-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 14px 14px 12px;
  margin-top: auto;
}
.bhm-expert-ttl {
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 5px;
  line-height: 1.3;
}
.bhm-expert-dsc {
  font-size: 0.71rem;
  color: #4b5563;
  line-height: 1.55;
  margin: 0 0 10px;
}
.bhm-expert-link {
  font-size: 0.77rem;
  font-weight: 700;
  color: #16a34a;
  text-decoration: none;
}
.bhm-expert-link:hover { text-decoration: underline; }

/* Hub menus responsive */
@media (max-width: 1100px) {
  .buyers-hub-menu,
  .services-hub-menu,
  .tenants-hub-menu,
  .sellers-hub-menu { width: calc(100vw - 60px); left: 0; }
  .bhm-body { flex-direction: column; min-height: unset; }
  .bhm-left { width: 100%; flex-direction: column; min-height: unset; padding: 20px; }
  .bhm-mid { border-left: none; border-right: none; border-top: 1px solid #f1f5f9; }
  .bhm-cols { grid-template-columns: repeat(2, 1fr); gap: 12px 14px; }
  .bhm-right { width: 100%; flex-direction: row; flex-wrap: wrap; border-top: 1px solid #f1f5f9; padding: 14px; }
  .bhm-search-box { flex: 1 1 100%; }
  .bhm-expert-card { flex: 1 1 100%; margin-top: 0; }
}
@media (max-width: 640px) {
  .bhm-feat-row { grid-template-columns: 1fr; }
  .bhm-cols { grid-template-columns: 1fr 1fr; }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    color: #64748b;
    transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #334155;
}

.modal-body {
    padding: 24px;
}

.property-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.option-card:hover {
    border-color: var(--dg-primary,#2563eb);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.option-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sell-option .option-icon {
    background: #eff6ff;
    color: var(--dg-primary,#2563eb);
}

.rent-option .option-icon {
    background: #f0fdf4;
    color: #16a34a;
}

.option-content {
    flex: 1;
}

.option-content h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.option-content p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.4;
}

.option-arrow {
    font-size: 1.25rem;
    color: #94a3b8;
    font-weight: 600;
    transition: color 0.2s;
}

.option-card:hover .option-arrow {
    color: var(--dg-primary,#2563eb);
}

/* Newly Launched Projects Section */
:root {
  --nl-bg-color: #f0f5f9;
  --nl-card-bg: #ffffff;
  --nl-text-main: #091e42;
  --nl-text-muted: #5e6c84;
  --nl-primary-blue: #0078d4;
  --nl-badge-bg: #003a55;
  --nl-badge-cyan: #00d1e0;
  --nl-green-metric: #00875a;
  --nl-ribbon-bg: #fcebd5;
  --nl-border-color: #e6ebf0;
  --nl-font-family: 'Inter', sans-serif;
}

.newly-launched-section * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.newly-launched-section body {
  font-family: var(--nl-font-family);
  background-color: var(--nl-bg-color);
  color: var(--nl-text-main);
  display: flex;
  justify-content: center;
  padding: 3rem 1.5rem;
  min-height: 100vh;
}

.newly-launched-section .section-container {
  width: 100%;
  max-width: 1280px;
}

/* Section Header */
.newly-launched-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.newly-launched-section .header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.newly-launched-section .header-icon {
  width: 40px;
  height: 40px;
}

.newly-launched-section .header-left h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0b1a30;
  letter-spacing: -0.5px;
}

.newly-launched-section .header-right {
  font-size: 1rem;
  font-weight: 500;
  color: var(--nl-text-muted);
  padding-bottom: 4px;
}

/* Cards Carousel */
.newly-launched-section .carousel-wrapper {
  position: relative;
}

.newly-launched-section .cards-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 1rem; /* For shadow clearance */
  scrollbar-width: none; /* Firefox */
}

.newly-launched-section .cards-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Card Design */
.newly-launched-section .project-card {
  background: var(--nl-card-bg);
  border-radius: 8px;
  min-width: 360px;
  flex: 1;
  border: 1px solid var(--nl-border-color);
  box-shadow: 0 4px 12px rgba(9, 30, 66, 0.04);
  display: flex;
  flex-direction: column;
  position: relative;
}

.newly-launched-section .ribbon {
  position: absolute;
  top: 16px;
  left: -4px;
  background-color: var(--nl-ribbon-bg);
  color: var(--nl-text-main);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px 4px 12px;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.05);
  clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%);
  z-index: 10;
}

/* Small ribbon tail fold effect */
.newly-launched-section .ribbon::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 0;
  height: 0;
  border-top: 4px solid #dcbfa2;
  border-left: 4px solid transparent;
}

/* Card Body */
.newly-launched-section .card-body {
  padding: 20px;
  padding-top: 45px; /* space for ribbon */
  display: flex;
  gap: 16px;
}

.newly-launched-section .image-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.newly-launched-section .image-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.newly-launched-section .rera-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--nl-badge-bg);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  border: 1px solid white;
}

.newly-launched-section .rera-badge svg {
  width: 10px;
  height: 10px;
}

.newly-launched-section .info-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0; /* for text truncation */
}

.newly-launched-section .info-wrapper h3 {
  font-size: 16px;
  font-weight: 600;
  color: #0b1a30;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.newly-launched-section .location {
  font-size: 13px;
  color: var(--nl-text-muted);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.newly-launched-section .price-config {
  font-size: 13px;
  color: var(--nl-text-muted);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.newly-launched-section .price-config strong {
  color: var(--nl-text-main);
  font-size: 14px;
}

.newly-launched-section .divider-line {
  margin: 0 4px;
  color: #cbd5e1;
}

.newly-launched-section .trend {
  font-size: 12px;
  color: var(--nl-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.newly-launched-section .green-text {
  color: var(--nl-green-metric);
  font-weight: 600;
}

/* Dashed Divider with semi-circle cutouts */
.newly-launched-section .card-divider {
  position: relative;
  height: 1px;
  background-image: linear-gradient(to right, #d1d9e2 50%, transparent 50%);
  background-size: 8px 1px;
  background-repeat: repeat-x;
  margin: 0;
  z-index: 1;
}

.newly-launched-section .card-divider::before,
.newly-launched-section .card-divider::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 16px;
  height: 16px;
  background-color: var(--nl-bg-color);
  border: 1px solid var(--nl-border-color);
  border-radius: 50%;
  z-index: 2;
}

.newly-launched-section .card-divider::before {
  left: -9px;
  /* Hide the left half of the circle to create an inset cutout effect */
  clip-path: inset(0 0 0 50%);
}

.newly-launched-section .card-divider::after {
  right: -9px;
  /* Hide the right half of the circle */
  clip-path: inset(0 50% 0 0);
}

/* Card Footer */
.newly-launched-section .card-footer {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--nl-card-bg);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.newly-launched-section .offer-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.newly-launched-section .offer-box svg {
  width: 16px;
  height: 16px;
  fill: var(--nl-primary-blue);
  margin-top: 2px;
}

.newly-launched-section .offer-box p {
  font-size: 12px;
  color: var(--nl-text-main);
  line-height: 1.4;
  font-weight: 500;
}

.newly-launched-section .view-btn {
  background-color: var(--nl-primary-blue);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.newly-launched-section .view-btn:hover {
  background-color: #0066cc;
}

/* Carousel Arrow */
.newly-launched-section .carousel-arrow {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: white;
  border: 1px solid var(--nl-border-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  color: var(--nl-text-main);
  transition: all 0.2s;
}

.newly-launched-section .carousel-arrow:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transform: translateY(-50%) scale(1.05);
}

@media (max-width: 1240px) {
  .newly-launched-section .carousel-arrow {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .newly-launched-section .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .newly-launched-section .carousel-arrow {
    display: none; /* Hide arrow on mobile, use swipe */
  }
}

/* ═══════════════════════════════════════════════
   ADDITIONAL HOME RESPONSIVE BREAKPOINTS
═══════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Header */
  .header { height: 56px; padding: 0 14px; }
  .brand img { height: 32px; }

  /* Hero */
  .hero { padding: 50px 14px 36px; min-height: auto; }
  .hero h1 { font-size: 1.55rem; line-height: 1.25; }
  .hero p { font-size: 0.88rem; }
  .tabbar { font-size: 0.8rem; gap: 0; }
  .sc-btn { padding: 10px 12px; font-size: 0.78rem; }

  /* City selector row in hero */
  .hero-city-select { font-size: 0.82rem; }

  /* Search card */
  .search-card { padding: 14px; border-radius: 0; }
  .search-main { gap: 8px; }

  /* Stats row */
  .hero-stats { flex-wrap: wrap; gap: 16px; justify-content: center; }

  /* Section headings */
  .section-title, .geo-header h2, .fa-sec-header h2 { font-size: 1.4rem !important; }

  /* Cities scroll */
  .geo-city-card { min-width: 130px; }

  /* Testimonials */
  .rv-overall { flex-direction: column; gap: 12px; }

  /* Footer */
  .dg-footer-top { flex-direction: column; gap: 28px; }
  .dg-footer-links { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .dg-footer-social { gap: 10px; }
}

@media (max-width: 480px) {
  .hero { padding: 40px 12px 28px; }
  .hero h1 { font-size: 1.25rem; }
  .search-card { padding: 12px; }
  .search-main { grid-template-columns: 1fr; }
  .search-btn { height: 48px; }
  .sc-row { flex-wrap: wrap; }
  .sc-btn { flex: 1 1 auto; border-right: none; border-bottom: 1px solid #e2e8f0; }
  .sc-btn:last-child { border-bottom: none; }
  .geo-city-card { min-width: 110px; }
  .dg-footer-links { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.1rem; }
  .tabbar .tab-item { padding: 8px 10px; font-size: 0.72rem; }
  .header { gap: 6px; }
}
