/* ============================================================
   MLL 2.0 VISUAL REBUILD
   Image-first community marketplace / SaaS
   ============================================================ */

:root {
  --blue-600: #0866FF;
  --blue-700: #0057E7;
  --blue-50: #F4F8FF;
  --navy-900: #10213A;
  --text-secondary: #627084;
  --surface: #FFFFFF;
  --surface-soft: #F6F9FF;
  --border-line: #DCE7F7;
  --shadow-sm: 0 8px 24px rgba(16, 33, 58, 0.06);
  --shadow-md: 0 18px 50px rgba(16, 33, 58, 0.10);
}

/* ── Top navigation ─────────────────────────────────────────── */
.v2-topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-line);
}
body:has(.v2-topnav) { padding-top: 0 !important; }
.v2-topnav.scrolled { box-shadow: var(--shadow-sm); }
.v2-topnav-inner {
  max-width: 1440px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}
.v2-topnav .logo-text { font-size: 18px; font-weight: 500; }
.v2-links {
  display: flex;
  gap: 6px;
  flex: 1;
}
.v2-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 10px;
  white-space: nowrap;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.v2-links a:hover { background: var(--blue-50); color: var(--blue-700); }
.v2-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.v2-icon-btn {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
}
.v2-btn-ghost {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
  padding: 10px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: max-content;
  line-height: 1;
}
.v2-btn-ghost:hover { background: var(--blue-50); }
.v2-btn-primary {
  font-size: 14px;
  font-weight: 700;
  background: var(--blue-600);
  color: #fff;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(8,102,255,0.22);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}
.v2-btn-primary:hover { background: var(--blue-700); }
.v2-btn-secondary {
  font-size: 14px;
  font-weight: 700;
  background: #fff;
  color: var(--navy-900);
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-line);
}
.v2-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.v2-hamburger span {
  width: 22px; height: 2px; background: var(--navy-900); border-radius: 2px; display: block;
}
@media (min-width: 768px) {
  .mll-mobile-list-cta { display: none; }
}
.v2-heart svg path { fill: none; }
.v2-heart.is-saved svg path { fill: currentColor; }

/* ── Two-column hero ────────────────────────────────────────── */
.v2-hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(8,102,255,0.14), transparent 60%),
    radial-gradient(700px 360px at 8% 80%, rgba(8,102,255,0.08), transparent 55%),
    linear-gradient(180deg, #F4F8FF 0%, #FFFFFF 72%);
  padding: 28px 0 72px;
  overflow: hidden;
}
.v2-hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 28px 0;
  display: grid;
  grid-template-columns: 0.48fr 0.52fr;
  gap: 48px;
  align-items: center;
}
.v2-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border-line);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.v2-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--navy-900);
  margin-bottom: 16px;
}
.v2-hero h1 em {
  font-style: normal;
  color: var(--blue-600);
  display: block;
}
.v2-hero-copy {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 28px;
}
.v2-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.v2-proof {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.v2-avatars { display: flex; }
.v2-avatars span {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid #fff; margin-left: -8px;
  background: #dbe7ff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.v2-avatars span:first-child { margin-left: 0; }

/* Hero photography */
.v2-hero-photo {
  position: relative;
  min-height: 420px;
}
.v2-blob {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}
.v2-blob-a { width: 280px; height: 280px; background: rgba(8,102,255,0.18); top: -24px; right: -20px; }
.v2-blob-b { width: 180px; height: 180px; background: rgba(8,102,255,0.12); bottom: 8px; left: -28px; }
.v2-hero-photo img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow-md);
  display: block;
}

/* Floating search */
.v2-search-wrap {
  max-width: 1200px;
  margin: -42px auto 0;
  padding: 0 28px;
  position: relative;
  z-index: 5;
}
.v2-search {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border-line);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.v2-search label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 20px;
}
.v2-search label + label { border-left: 1px solid var(--border-line); }
.v2-search span { font-size: 11px; font-weight: 700; color: var(--blue-700); letter-spacing: 0.04em; text-transform: uppercase; }
.v2-search input, .v2-search select {
  border: 0; outline: none; background: transparent;
  font-size: 15px; font-family: inherit; color: var(--navy-900);
}
.v2-search button {
  border: 0;
  background: var(--blue-600);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  padding: 0 28px;
  cursor: pointer;
}
.v2-search button:hover { background: var(--blue-700); }
.v2-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

/* Sections */
.v2-section { padding: 72px 0; }
.v2-section-soft { background: var(--surface-soft); }
.v2-section-white { background: #fff; }
.v2-wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.v2-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
}
.v2-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy-900);
}
.v2-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 8px;
}

/* Image-first cards */
.v2-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.v2-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.v2-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.v2-card-media { position: relative; height: 180px; }
.v2-card-media img, .v2-card-media a img {
  width: 100%; height: 180px; object-fit: cover; display: block;
}
.v2-heart {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.92);
  color: #9aa8bb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.v2-heart.is-saved { color: #e11d48; }
.v2-chip {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(255,255,255,0.94);
  color: var(--navy-900);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.v2-card-body { padding: 16px 16px 18px; }
.v2-card-body h3 { font-size: 17px; font-weight: 700; color: var(--navy-900); margin-bottom: 6px; }
.v2-card-meta { font-size: 13px; color: var(--text-secondary); display: flex; gap: 6px; flex-wrap: wrap; }
.v2-stars { color: #f59e0b; font-weight: 700; }
.v2-card-desc {
  font-size: 13px; color: var(--text-secondary);
  margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.v2-card-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-600);
}

/* Quick actions */
.v2-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.v2-action {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 20px;
  border-radius: 24px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-height: 118px;
}
.v2-action:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.v2-action-ic {
  width: 48px; height: 48px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0; background: rgba(255,255,255,0.7);
}
.v2-action strong { display: block; font-size: 16px; color: var(--navy-900); margin-bottom: 4px; }
.v2-action em { font-style: normal; font-size: 13px; color: var(--text-secondary); }
.v2-action .arr { margin-left: auto; color: var(--blue-600); font-weight: 700; align-self: center; }
.v2-a1 { background: #E8F1FF; }
.v2-a2 { background: #E9F8F1; }
.v2-a3 { background: #EEEDFE; }
.v2-a4 { background: #FFF4E5; }
.v2-a5 { background: #FCE8F0; }
.v2-a6 { background: #E7F4FF; }

/* Community */
.v2-community {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.v2-community h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy-900);
  line-height: 1.15;
}
.v2-community img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow-md);
}
.v2-topnav .nav-mobile {
  background: #fff;
}
.v2-search-wrap + .v2-section { padding-top: 56px; }
.v2-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.v2-stat {
  background: #fff;
  border: 1px solid var(--border-line);
  border-radius: 20px;
  padding: 16px 18px;
}
.v2-stat b { display: block; font-size: 26px; color: var(--blue-600); }
.v2-stat span { font-size: 13px; color: var(--text-secondary); }

/* Featured scroller */
.v2-featured-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Dashboard shell */
.v2-dash {
  background: var(--surface-soft);
}
.v2-dash .sidebar {
  background: #fff;
  border-right: 1px solid var(--border-line);
}
.v2-dash .sb-link.active {
  background: var(--blue-50);
  color: var(--blue-700);
  border-right-color: var(--blue-600);
}
.v2-kpi {
  background: #fff;
  border: 1px solid var(--border-line);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.v2-promote {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0866FF 0%, #0057E7 100%);
  color: #fff;
  margin-top: 8px;
}
.v2-promote h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.v2-promote p { opacity: 0.9; font-size: 14px; }
.v2-promote a {
  background: #fff; color: var(--blue-700);
  font-weight: 700; padding: 12px 18px; border-radius: 999px; white-space: nowrap;
}

.v2-stars { color: #f59e0b; font-weight: 700; }

@media (max-width: 1360px) {
  /* Collapse desktop links before the lockup, labels, and actions overflow the bar. */
  .v2-links,
  .v2-top-actions .v2-btn-ghost,
  .v2-top-actions .v2-btn-primary,
  .v2-icon-btn { display: none; }
  .v2-hamburger { display: flex; }
  .v2-topnav .logo-slogan { display: none; }
}

@media (max-width: 1024px) {
  .v2-hero-grid, .v2-community, .wiz-layout, .prof-hero-grid { grid-template-columns: 1fr; }
  .v2-hero-photo img { height: 340px; }
  .v2-grid-4, .v2-featured-row, .dir-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .v2-actions { grid-template-columns: 1fr 1fr; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .v2-topnav-inner { flex-wrap: wrap; }
  .mll-mobile-list-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 0 100%;
    width: auto;
    max-width: calc(100% - 8px);
    margin: 4px auto 6px;
    min-height: 36px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--blue-600, #0866FF);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .v2-topnav { width: 100%; max-width: 100%; }
  .v2-topnav-inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .v2-topnav-inner, .v2-hero-grid, .v2-search-wrap, .v2-wrap { padding-left: 16px; padding-right: 16px; }
  .v2-search { grid-template-columns: 1fr; }
  .v2-search label + label { border-left: 0; border-top: 1px solid var(--border-line); }
  .v2-search button { height: 52px; }
  .v2-grid-4, .v2-featured-row, .v2-actions, .dir-grid { grid-template-columns: 1fr !important; }
  .v2-hero h1 { font-size: 32px; }
  .v2-hero { padding: 8px 0 72px; }
  .v2-hero-photo { min-height: 0; }
  .v2-hero-photo img { height: 220px; border-radius: 24px; }
  .v2-promote { flex-direction: column; align-items: flex-start; }
  .v2-card-media, .v2-card-media img, .v2-card-media a img { height: 210px; }
  .mll-bottom-nav { display: grid; }
  .wiz-preview { display: none; }
  .prof-banner { height: 220px; }
  .prof-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

/* Directory */
.dir-hero-v2 {
  background: linear-gradient(180deg, #EEF5FF 0%, #F6F9FF 100%);
  padding: 36px 0 28px;
}
.dir-hero-v2 h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.dir-hero-v2 p { color: var(--text-secondary); margin-bottom: 22px; max-width: 560px; }
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.cat-tile {
  background: #fff;
  border: 1px solid var(--border-line);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-tile img { width: 100%; height: 110px; object-fit: cover; display: block; }
.cat-tile span { display: block; padding: 12px 14px; font-weight: 700; font-size: 14px; color: var(--navy-900); }

/* Business profile */
.prof-banner {
  height: 340px;
  background: #dbe7ff center/cover no-repeat;
  border-radius: 0 0 32px 32px;
  position: relative;
}
.prof-banner-inner { max-width: 1200px; margin: 0 auto; padding: 0 28px; position: relative; height: 100%; }
.prof-identity {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 0;
  padding-top: 20px;
  position: relative;
  z-index: 3;
}
.prof-avatar {
  width: 112px; height: 112px;
  border-radius: 24px;
  border: 4px solid #fff;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
  margin-top: -72px;
}
.prof-avatar img { width: 100%; height: 100%; object-fit: cover; }
.prof-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.prof-act {
  border: 1px solid var(--border-line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 13px;
  color: var(--navy-900);
  text-decoration: none;
}
.prof-act.primary { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.biz-tabs { background: #fff; }
.biz-tab.active { color: var(--blue-600); border-bottom-color: var(--blue-600); }

@media (max-width: 768px) {
  .prof-banner { height: 220px; }
  .prof-identity { padding-top: 16px; gap: 14px; }
  .prof-avatar { width: 88px; height: 88px; margin-top: -56px; }
  .prof-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

/* Listing wizard */
.wiz-layout {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}
.wizard-top { background: #fff !important; border-bottom: 1px solid var(--border-line); }
.wizard-top .wiz-brand { color: var(--navy-900) !important; }
.st-dot.done, .st-dot.active { background: var(--blue-600) !important; color: #fff !important; }
.st-dot.todo { background: #EEF5FF !important; color: var(--blue-700) !important; }
.st-line { background: #DCE7F7 !important; }
.st-line.done { background: var(--blue-600) !important; }
.wiz-preview {
  background: #fff;
  border: 1px solid var(--border-line);
  border-radius: 24px;
  padding: 20px;
  position: sticky;
  top: 88px;
  box-shadow: var(--shadow-sm);
}
.wiz-preview h4 { font-size: 13px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.photo-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.photo-pick button {
  border: 2px solid transparent; padding: 0; border-radius: 16px; overflow: hidden; background: none; cursor: pointer;
}
.photo-pick button.on { border-color: var(--blue-600); }
.photo-pick img { width: 100%; height: 72px; object-fit: cover; display: block; }
