/* BusinessOwners.lk — members area + directory (loads after main.css) */

.app-nav { display: flex; gap: 14px; align-items: center; }
.app-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.app-nav a.active { color: var(--maroon); border-bottom-color: var(--maroon); }
.app-nav a:hover { color: var(--ink); }

.container.narrow { max-width: 780px; }

/* ---------- Auth / login card ---------- */
.auth-card {
  max-width: 480px;
  margin: 56px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 42px 34px;
  text-align: center;
}
.auth-card h1 { font-size: 1.7rem; margin-bottom: 12px; }
.auth-card .auth-lead { color: var(--muted); margin-bottom: 24px; font-size: 1.02rem; }
.auth-card form { text-align: left; }
.auth-icon {
  font-size: 2rem; display: inline-flex; align-items: center; justify-content: center;
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(160deg, #FCEEE0, #F7DEC6);
  border: 1px solid #F0D5BC;
  margin: 0 auto 16px;
}
.auth-alt { margin-top: 22px; font-size: 15px; color: var(--muted); }
.auth-alt a { color: var(--maroon); font-weight: 600; }

/* ---------- Directory header ---------- */
.dir-head {
  padding: 56px 0 40px;
  background:
    radial-gradient(50% 60% at 85% -20%, rgba(242, 107, 31, 0.12), transparent 60%),
    linear-gradient(180deg, #FFFDF9, var(--bg-soft));
  border-bottom: 1px solid var(--line);
}
.dir-head h1 { font-size: clamp(1.9rem, 3vw + 0.6rem, 2.6rem); margin-bottom: 10px; }
.dir-head p { color: var(--muted); font-size: 1.06rem; }

/* ---------- Directory filters ---------- */
.dir-filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin: 26px 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
}
.dir-filters .f { display: flex; flex-direction: column; gap: 6px; }
.dir-filters .f.grow { flex: 1 1 240px; }
.dir-filters label { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.dir-filters input, .dir-filters select {
  min-height: 48px;
  padding: 11px 13px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  border: 1.5px solid #DDD4C7;
  border-radius: 11px;
  background: var(--cream);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.dir-filters input:focus, .dir-filters select:focus {
  outline: none; background: #fff; border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 107, 31, 0.14);
}
.dir-filters .f:not(.grow) select, .dir-filters .f:not(.grow) input { min-width: 150px; }

.dir-count { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.dir-empty {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}

/* ---------- Business cards ---------- */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.biz-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.biz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-soft); }
.biz-card-main {
  display: flex;
  gap: 15px;
  padding: 20px 20px 15px;
  text-decoration: none;
  color: inherit;
  flex: 1;
}
.biz-logo { flex: none; }
.biz-logo img {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.biz-logo img.avatar { border-radius: 50%; }
.profile-logo img.avatar { border-radius: 50%; }
.brand-mark { margin-top: 10px; }
.brand-mark img { height: 40px; width: auto; border: 1px solid var(--line); border-radius: 8px; padding: 3px 6px; background: #fff; }
.biz-logo-fallback {
  width: 60px; height: 60px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(160deg, #F4FAF5, #E0EFE4);
  border: 1px solid #DCEBDF;
  color: var(--green-deep);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
}
.biz-logo-fallback.big { width: 92px; height: 92px; font-size: 2.2rem; }
.biz-body h2 { font-size: 1.18rem; margin: 0 0 4px; line-height: 1.25; }
.biz-meta { font-size: 13px; color: var(--green-deep); font-weight: 700; margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.03em; }
.biz-blurb { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.biz-actions {
  display: flex;
  gap: 8px;
  padding: 0 20px 18px;
  flex-wrap: wrap;
}
.biz-actions .btn { flex: 1; min-width: 0; }

/* ---------- Profile ---------- */
.prof-back { margin: 26px 0 16px; }
.prof-back a { color: var(--maroon); font-weight: 600; text-decoration: none; }
.prof-back a:hover { text-decoration: underline; }
.profile {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
  margin-bottom: 48px;
}
@media (max-width: 820px) { .profile { grid-template-columns: 1fr; } }
.profile .panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px;
  margin-bottom: 20px;
}
.profile .panel h2 { font-size: 1.2rem; margin-bottom: 14px; }
.profile-head {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  margin-bottom: 20px;
}
.profile-logo img {
  width: 92px; height: 92px;
  object-fit: cover; border-radius: 16px;
  border: 1px solid var(--line);
}
.profile-head h1 { font-size: clamp(1.5rem, 2.5vw + 0.6rem, 2.1rem); line-height: 1.15; }
.profile-meta { color: var(--green-deep); font-weight: 700; margin: 8px 0 4px; text-transform: uppercase; letter-spacing: 0.03em; font-size: 13.5px; }
.profile-owner { color: var(--muted); font-size: 15px; }
.profile .kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; }
.profile .kv dt { font-weight: 600; color: var(--muted); font-size: 14.5px; }
.profile .kv dd { margin: 0; }
.contact-panel .btn { margin-bottom: 10px; }
.btn.full { width: 100%; }
.contact-links { margin-top: 18px; }

/* ---------- Status banner (my listing) ---------- */
.status-banner {
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  border: 1px solid transparent;
}
.status-banner strong { font-size: 15.5px; }
.status-banner span { color: inherit; opacity: 0.88; font-size: 15px; }
.status-banner a { font-weight: 700; margin-left: auto; white-space: nowrap; }
.status-banner.s0 { background: #FEF6E0; border-color: #F5E4B8; color: #8A5B0F; }
.status-banner.s1 { background: #E6F6EA; border-color: #C6E9CE; color: #166534; }
.status-banner.s2 { background: #EEF0F2; border-color: #DDE1E5; color: #374151; }
.status-banner.s0 a, .status-banner.s1 a, .status-banner.s2 a { color: inherit; }

/* ---------- Pagination (shared) ---------- */
.pagination { display: flex; gap: 8px; margin: 8px 0 48px; align-items: center; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 10px 17px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.pagination a:hover { border-color: var(--maroon); color: var(--maroon); }
.pagination .cur { background: var(--maroon); color: #fff; border-color: var(--maroon); }

/* ---------- Inquiry form (profile) ---------- */
.inquiry-panel h2 { margin-bottom: 6px; }
.inquiry-panel textarea { width: 100%; min-height: 130px; resize: vertical; }
.inquiry-panel .field { margin-bottom: 16px; }
.inq-note {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0;
}

/* ---------- Nav / count badge ---------- */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  margin-left: 3px;
  border-radius: 999px;
  background: var(--maroon);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}
.inbox-new { background: var(--green-deep); }

/* ---------- Inquiry inbox (members) ---------- */
.stat-strip { display: flex; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.stat-strip > div {
  flex: 1 1 160px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.stat-strip .n { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 700; color: var(--maroon); line-height: 1.1; }
.stat-strip .l { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }

.inbox-list { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 14px; }
.inbox-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}
.inbox-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 9px; flex-wrap: wrap; }
.inbox-top strong { font-size: 1.05rem; }
.inbox-biz { color: var(--green-deep); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.03em; margin-left: 8px; }
.inbox-item time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.inbox-msg { color: var(--ink); font-size: 15px; line-height: 1.6; margin: 0 0 14px; }
.inbox-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Public profile: breadcrumbs + verified badge ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); margin: 24px 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--maroon); text-decoration: underline; }
.crumbs .sep { color: var(--muted-2); }
.crumbs .cur { color: var(--ink-soft); font-weight: 600; }
.prof-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-green); color: var(--green-deep);
  border: 1px solid #CDE7D3; font-size: 13px; font-weight: 700;
  padding: 5px 13px; border-radius: 999px; margin-top: 12px;
}

/* ---------- Member publish/unpublish toggle ---------- */
.publish-card {
  display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 16px;
}
.publish-card strong { font-size: 1.02rem; }
.publish-card p { color: var(--muted); font-size: 14px; margin: 4px 0 6px; max-width: 54ch; }
.publish-card form { margin: 0; flex: none; }

/* ---------- Hub sibling links (internal linking) ---------- */
.hub-siblings { margin: 46px 0 8px; }
.hub-siblings h2 { font-size: 1.25rem; margin-bottom: 16px; }
.hub-siblings .chips { justify-content: flex-start; }
.chip-n { color: var(--muted-2); font-weight: 700; font-size: 12px; margin-left: 4px; }
