:root{
      --primary-blue: #2563eb;
      --light-blue: #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:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
      color:var(--dark-text);
      background: #f1f1f1;
    }

/* Content Wrapper */
.content-wrapper {
    margin-left: 70px;
    margin-top:64px;
}

/* Fixed Left Sidebar */
.left-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 70px;
    height: 100vh;
    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);
}

    a{color:inherit;text-decoration:none}

    /* Top nav */
    .header{
      position:fixed;
      inset:0 0 auto 0;
      left: 70px;
      height:64px;
      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: #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, #2563eb 0%, #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 #2563eb;
      color: #2563eb;
    }
    .button-partner:hover {
      background: #eff6ff;
      border-color: #1d4ed8;
      color: #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: 140px;
    }
    .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.14), 0 2px 8px rgba(0,0,0,0.06);
      border: 1px solid rgba(0,0,0,0.07);
      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: #1d4ed8; }

    /* Hero */
    .hero{
      position:relative;
      margin-top: 64px;
      min-height:720px;
      background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(219, 234, 254, 0.3) 100%),
                  url('https://images.unsplash.com/photo-1613490493576-7fde63acd811?w=1920&q=80') center/cover no-repeat;
    }
    .hero::after{
      content:"";
      position:absolute;inset:0;
      background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.3) 100%);
    }
    .hero-inner{
      position:relative;z-index:1;
      max-width:1280px;margin:0 auto;
      padding:120px 24px 10px;
    }
    h1.big{
      margin:60px 0 12px;
      font-size:clamp(34px,5vw+14px,76px);
      line-height:1.05;font-weight:900;letter-spacing:-.02em;
      color:var(--dark-text);
    }
    .sub{font-size:0.875rem;color:var(--gray-text);margin-bottom:22px}
    .sub .accent{color:var(--primary-blue);font-weight:800}

    /* Tabs */
    .tabbar{
      display:inline-flex;overflow:hidden;
      background:var(--white);backdrop-filter:saturate(160%) blur(8px);
      border:1px solid var(--border-color);border-radius:12px
    }
    .tab{
      display:flex;align-items:center;gap:8px;
      padding:14px 18px;font-weight:700;color:var(--gray-text);border-right:1px solid var(--border-color);cursor:pointer
    }
    .tab:last-child{border-right:none}
    .tab svg{width:18px;height:18px;opacity:.9}
    .tab.active{background:var(--light-blue);color:var(--primary-blue)}

    /* Search wrap (positions autosuggest) */
    .search-wrap { position: relative; margin-top: 16px; }

    /* Autosuggest dropdown */
    .hero-suggest {
      display: none;
      position: absolute;
      top: calc(100% + 6px);
      left: 0; right: 0;
      background: #fff;
      border: 1px solid var(--border-color);
      border-radius: 14px;
      box-shadow: 0 12px 40px rgba(0,0,0,0.18);
      z-index: 400;
      overflow: hidden;
      max-height: 320px;
      overflow-y: auto;
    }
    .hero-suggest.open { display: block; }
    .sug-title {
      padding: 10px 16px 6px;
      font-size: 0.7rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: #9ca3af;
      border-bottom: 1px solid #f1f5f9;
    }
    .sug-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 11px 16px;
      cursor: pointer;
      transition: background 0.12s;
      border-bottom: 1px solid #f8fafc;
    }
    .sug-item:last-child { border-bottom: none; }
    .sug-item:hover { background: #f0f7ff; }
    .sug-icon { width: 16px; height: 16px; flex-shrink: 0; color: #94a3b8; }
    .sug-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
    .sug-label { font-size: 0.875rem; font-weight: 600; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .sug-meta { font-size: 0.75rem; color: #6b7280; }

    /* Search */
    .search-card{
      display:grid;grid-template-columns:1fr auto;gap:14px;
      background:rgba(255,255,255,.92);
      border-radius:14px;
      box-shadow:0 10px 28px rgba(0,0,0,.35)
    }
    .search-main{
      background:#fff;border:1px solid rgba(0,0,0,.08);
      border-radius:10px;padding:10px;
      display:grid;grid-template-columns:210px 1fr 44px 44px;gap:8px;align-items:center
    }
    .select{
      position:relative;background:var(--surface);border-radius:8px;
      padding:12px 14px;color:#0f172a;cursor:pointer
    }
    .select small{display:block;color:#5b6472;font-weight:700;letter-spacing:.25px}
    .select b{font-weight:800}
    .select .caret{
      position:absolute;right:12px;top:50%;transform:translateY(-50%) rotate(45deg);
      width:10px;height:10px;border:2px solid #353a43;border-top:0;border-left:0
    }
    .input{display:flex;align-items:center;gap:10px;padding:0 8px}
    .input input{width:100%;padding:12px 14px;border:0;outline:0;font-size:0.875rem}
    .round{
      display:grid;place-items:center;width:44px;height:44px;border-radius:10px;background:var(--surface);color:#4b5563;border:1px solid rgba(0,0,0,.06)
    }
    .search-btn{
      align-self:stretch;min-width:170px;border:0;border-radius:10px;
      background:var(--yellow);color:white;font-weight:500;font-size:0.875rem;letter-spacing:.4px;cursor:pointer;height:70px;margin-top:6px;margin-right:7px
    }
    .search-btn:hover{background:var(--yellow-dark)}

    /* Filters */
    .filters{display:flex;gap:12px;margin-top:10px;flex-wrap:wrap}
    .pill{
      min-width:180px;display:flex;align-items:center;justify-content:space-between;gap:10px;
      background:#fff;color:#111827;padding:12px 14px;border:1px solid rgba(0,0,0,.08);border-radius:10px;font-weight:800
    }
    .helper{
      margin-top:10px;display:flex;align-items:center;gap:8px;
      color:#e6e7ea;opacity:.95;font-weight:700
    }
    .helper .link{color:var(--yellow);text-decoration:underline;margin:0 8px}

    .icon{width:18px;height:18px}

    /* bottom fade for image */
    .footer-fade{
      position:absolute;left:0;right:0;bottom:0;height:140px;
      background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.65) 40%,rgba(0,0,0,.9) 100%);
      pointer-events: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: #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 */
    @media (max-width:980px){
      .nav,.actions{display:none}
      .hamburger-btn { display: flex; }
      .left-sidebar { display: none; }
      .header { left: 0; }
      .content-wrapper { margin-left: 0; }
      .mobile-nav-drawer { display: flex; }
      .hero{min-height:auto}
      .tabbar{width:100%;overflow:auto}
      .search-card{grid-template-columns:1fr}
      .search-main{grid-template-columns:1fr 44px 44px}
      .select{grid-column:1/-1}
      .search-btn{min-width:100%;height:54px;font-size:0.875rem}
    }

    @media (max-width: 768px) {
      .header { padding: 0 14px; gap: 10px; }
      .brand span:last-child { font-size: 0.85rem; }
      .content-wrapper { margin-top: 64px; }
      .hero { padding: 60px 16px 40px; }
      .hero h1 { font-size: 1.6rem; line-height: 1.25; }
      .hero p { font-size: 0.9rem; }
      .tabbar { font-size: 0.8rem; }
      .sc-btn { padding: 10px 12px; font-size: 0.78rem; }
      .fp-pill { min-width: 110px; }
    }

    @media (max-width: 480px) {
      .hero h1 { font-size: 1.3rem; }
      .search-main { grid-template-columns: 1fr; gap: 8px; }
      .sc-row { flex-wrap: wrap; }
      .sc-btn { flex: 1 1 auto; border-right: none; border-bottom: 1px solid var(--border-color); }
      .sc-btn:last-child { border-bottom: none; }
    }

/* Property Types */
.property-types {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.types-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-text);
}

.type-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1.5px solid var(--border-color);
    background: var(--white);
    color: var(--dark-text);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-btn svg {
    width: 18px;
    height: 18px;
    color: var(--primary-blue);
}

.type-btn:hover {
    border-color: var(--primary-blue);
    background: var(--light-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* 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: #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: #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: #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: #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: #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: #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: #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: #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: #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; }
}

/* 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: #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: #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: #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 */
  }
}
