/**
 * Public single listing page — matches profile “market” listing cards tone.
 */
:root {
  --nlp-ink: #0f172a;
  --nlp-muted: #64748b;
  --nlp-line: #e2e8f0;
  --nlp-bg: #f8fafc;
  --nlp-card: #ffffff;
  --nlp-green: #166534;
  --nlp-green-soft: rgba(22, 101, 52, 0.12);
  --nlp-amber-bg: rgba(254, 243, 199, 0.45);
  --nlp-radius: 12px;
}

.nlp-page {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--nlp-bg);
  color: var(--nlp-ink);
  line-height: 1.55;
  font-size: 16px;
}

.nlp-skip {
  position: absolute;
  left: -9999px;
}

.nlp-wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1.1rem 3rem;
}

.nlp-crumb {
  font-size: 13px;
  color: var(--nlp-muted);
  margin: 0 0 1.25rem;
}

.nlp-crumb a {
  color: #2563eb;
  text-decoration: none;
}

.nlp-crumb a:hover {
  text-decoration: underline;
}

.nlp-layout__main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.nlp-layout__main > .nlp-hero,
.nlp-layout__main > .nlp-section,
.nlp-layout__aside > .nlp-section {
  margin-bottom: 0;
}

.nfb-listing-image-card {
  margin-bottom: 1rem;
  border: 1px solid var(--nlp-line);
  border-radius: var(--nlp-radius);
  overflow: hidden;
  background: var(--nlp-card);
}

.nfb-listing-main-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #fff;
  transition: opacity 0.15s;
}

.nfb-listing-main-image:hover {
  opacity: 0.96;
}

.nfb-listing-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border-top: 1px solid var(--nlp-line);
  background: #f8fafc;
}

.nfb-listing-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: #fff;
  transition: border-color 0.15s;
}

.nfb-listing-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nfb-listing-thumb--active {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.nfb-listing-thumb:hover {
  border-color: #93c5fd;
}

.nfb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
}

.nfb-lightbox[hidden] {
  display: none;
}

.nfb-lightbox__img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  user-select: none;
}

.nfb-lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
  opacity: 0.8;
}

.nfb-lightbox__close:hover {
  opacity: 1;
}

.nfb-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 48px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s, background 0.15s;
}

.nfb-lightbox__nav:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.22);
}

.nfb-lightbox__prev {
  left: 16px;
}

.nfb-lightbox__next {
  right: 16px;
}

.nfb-lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.nlp-hero {
  border: 1px solid var(--nlp-line);
  border-radius: var(--nlp-radius);
  background: linear-gradient(165deg, var(--nlp-amber-bg) 0%, var(--nlp-card) 55%);
  box-shadow: 0 4px 24px rgba(15, 33, 51, 0.06);
  padding: 1.35rem 1.25rem 1.45rem;
  margin-bottom: 0;
}

/* 1–2: intent + category / attribute chips sit above the title */
.nlp-hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
}

.nlp-hero__eyebrow .nlp-intent {
  margin: 0;
  flex-shrink: 0;
}

.nlp-hero__eyebrow .nlp-hero-badges {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

/* 3: price / event summary / location — separated from title block */
.nlp-hero__facts {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.nlp-hero__facts .nlp-meta-line:first-child,
.nlp-hero__facts .nlp-price:first-child {
  margin-top: 0;
}

.nlp-hero__facts .nlp-loc:last-child {
  margin-bottom: 0;
}

.nlp-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(120, 90, 10, 0.95);
  background: rgba(254, 243, 199, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  margin: 0 0.35rem 0.4rem 0;
}

.nlp-badge--intent {
  color: #334155;
  background: rgba(241, 245, 249, 0.95);
  border-color: rgba(148, 163, 184, 0.55);
  text-transform: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.62rem;
}

.nlp-badge--muted {
  color: #475569;
  background: rgba(248, 250, 252, 0.95);
  border-color: rgba(148, 163, 184, 0.45);
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.62rem;
}

.nlp-submeta {
  margin: 0 0 0.5rem;
  font-size: 13px;
  color: var(--nlp-muted);
}

.nlp-title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.nlp-author {
  margin: 0 0 0.5rem;
  font-size: 14px;
  color: var(--nlp-muted, #64748b);
}

.nlp-author.nfb-post-attribution {
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
}

.nlp-author a {
  color: var(--nlp-ink, #0f172a);
  font-weight: 700;
  text-decoration: none;
}

.nlp-author a:hover {
  text-decoration: underline;
}

.nlp-author__sep {
  color: var(--nlp-muted, #94a3b8);
  margin: 0 0.15rem;
}

.nlp-author__view {
  color: #2563eb !important;
  font-weight: 600 !important;
  font-size: 13px;
}

.nlp-price {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--nlp-ink);
}

.nlp-price--membership {
  color: #15803d;
}

.nlp-price__trial {
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
}

.nlp-loc {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--nlp-muted);
}

.nlp-meta-line {
  margin: 0 0 0.55rem;
  font-size: 14px;
  font-weight: 650;
  color: #334155;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.nlp-meta-sep {
  color: rgba(100, 116, 139, 0.75);
  font-weight: 800;
}

.nlp-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(248, 250, 252, 0.95);
  color: #334155;
}

.nlp-pill--free {
  background: var(--nlp-green-soft);
  color: var(--nlp-green);
  border-color: rgba(22, 101, 52, 0.28);
}

.nlp-cta-row {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.nlp-hero .nlp-cta-row {
  margin-top: 1rem;
}

.nlp-contact-actions {
  margin-top: 0.75rem;
}

.nlp-owner-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--nlp-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.nlp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid var(--nlp-line);
  background: var(--nlp-card);
  color: var(--nlp-ink);
  cursor: pointer;
  font-family: inherit;
}

.nlp-btn--primary {
  background: var(--nlp-ink);
  color: #fff;
  border-color: var(--nlp-ink);
}

.nlp-btn--primary:hover {
  opacity: 0.92;
}

.nlp-btn--quiet:hover {
  border-color: rgba(26, 127, 74, 0.35);
  color: var(--nlp-green);
}

.nlp-section {
  border: 1px solid var(--nlp-line);
  border-radius: var(--nlp-radius);
  background: var(--nlp-card);
  padding: 1.15rem 1.2rem 1.25rem;
  margin-bottom: 1rem;
}

/* 4: long-form description — own card below the hero summary */
.nlp-listing-body {
  background: #fff;
  border-color: rgba(226, 232, 240, 0.9);
}

.nlp-listing-body .nlp-prose--listing {
  margin: 0;
  font-size: 1rem;
  line-height: 1.62;
  color: #334155;
}

.nlp-section h2 {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nlp-muted);
}

.nlp-prose {
  margin: 0;
  font-size: 15px;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
}

.nlp-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nlp-contact-list li {
  margin: 0 0 0.5rem;
  font-size: 15px;
}

.nlp-contact-list a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.nlp-contact-list a:hover {
  text-decoration: underline;
}

.nlp-contact-note {
  margin: 0.5rem 0 0;
  font-size: 13px;
  color: var(--nlp-muted);
}

.nlp-contact-note--pricing {
  font-weight: 600;
  color: #334155;
}

.nlp-seller {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nlp-seller a {
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  font-size: 16px;
}

.nlp-seller a:hover {
  text-decoration: underline;
}

.nlp-seller__biz {
  margin: 0;
  font-size: 14px;
  color: var(--nlp-muted);
}

.nlp-disclaimer {
  margin: 1.75rem 0 0;
  font-size: 12px;
  color: var(--nlp-muted);
  line-height: 1.45;
}

/* —— Top navigation + two-column layout (public listing detail) —— */
.nlp-topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  max-width: 56rem;
  margin: 0 auto;
  padding: 1rem 1.1rem 0.5rem;
  border-bottom: 1px solid var(--nlp-line);
  background: var(--nlp-bg);
}

.nlp-topnav__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nlp-topnav__brand img {
  display: block;
  height: 28px;
  width: auto;
}

.nlp-topnav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  font-size: 14px;
}

.nlp-topnav__links a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.nlp-topnav__links a:hover {
  text-decoration: underline;
}

.nlp-topnav__back {
  color: #334155 !important;
}

.nlp-topnav__edit {
  font-weight: 700 !important;
}

.nlp-layout {
  max-width: 56rem;
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.nlp-wrap.nlp-layout {
  max-width: 56rem;
}

/*
 * Mobile: reading order + touch targets (desktop unchanged at 880px+).
 *
 * QA / safety (please run when touching this block):
 * - Chrome DevTools device mode (or real Android): confirm visual order is
 *   hero → body → contact aside → posted by → county → continue exploring → disclaimer.
 * - Safari / iOS if available: same order, spacing, and tap targets.
 * - Anchor jump: open a listing with an in-page link to #nlp-action (e.g. event
 *   “Schedule & info” when there is no description); verify scroll lands on the
 *   contact card and scroll-margin feels correct.
 *
 * If Safari mis-handles display: contents (order, a11y, or scroll targets), drop
 * the contents+order approach here: remove display:contents on .nlp-layout__main,
 * remove order:* on the flattened items, and use a simpler mobile layout where
 * the aside stays after the main column in the DOM (may require a small HTML
 * change or accepting default column flow).
 */
@media (max-width: 879px) {
  .nlp-wrap {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 2.5rem;
  }

  .nlp-topnav {
    padding-left: 1rem;
    padding-right: 1rem;
    row-gap: 0.5rem;
  }

  .nlp-topnav__links a {
    padding: 0.35rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Flatten main so its children + aside share one grid and order: (see block comment above) */
  .nlp-layout__main {
    display: contents;
  }

  .nlp-layout {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .nfb-listing-image-card {
    order: 0;
  }

  .nlp-hero {
    order: 1;
    padding: 1.15rem 1rem 1.35rem;
  }

  .nlp-listing-body {
    order: 2;
  }

  .nlp-layout__aside {
    order: 3;
    position: static;
    top: auto;
    width: 100%;
    min-width: 0;
    scroll-margin-top: 0.75rem;
  }

  .nlp-bridge {
    order: 5;
  }

  .nlp-disclaimer {
    order: 6;
    margin-top: 0;
  }

  .nlp-hero,
  .nlp-listing-body,
  .nlp-layout__aside,
  .nlp-bridge,
  .nlp-disclaimer {
    min-width: 0;
  }

  .nlp-hero__facts {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
  }

  .nlp-title {
    margin-bottom: 0.45rem;
  }

  .nlp-hero .nlp-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .nlp-hero .nlp-cta-row .nlp-btn {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 1rem;
  }

  .nlp-action-card .nlp-btn {
    min-height: 44px;
    padding: 0.55rem 1rem;
  }

  .nlp-hero__eyebrow {
    gap: 0.35rem 0.5rem;
  }

  .nlp-hero-badges {
    gap: 0.28rem;
  }

  .nlp-badge,
  .nlp-badge--muted {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .nlp-intent {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 880px) {
  .nlp-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  }

  .nlp-layout__aside {
    position: sticky;
    top: 1rem;
  }
}

/* 5: sticky contact column reads as primary action panel */
.nlp-layout__aside .nlp-section.nlp-action-card {
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
  border-color: rgba(226, 232, 240, 0.95);
}

.nlp-intent {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  margin: 0 0 0.75rem;
  border: 1px solid transparent;
}

.nlp-intent--offer {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #14532d;
}

.nlp-intent--looking {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
}

.nlp-intent--promote {
  border-color: #fbcfe8;
  background: #fdf2f8;
  color: #9d174d;
}

.nlp-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
}

.nlp-location-summary {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e4a7a;
  line-height: 1.45;
}

.nlp-location-note {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: #5c6d7a;
}

.nlp-available {
  margin: 0 0 0.15rem;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.01em;
}

.nlp-available__sep {
  color: #cbd5e1;
  margin: 0 0.1rem;
}

.nlp-platform-tagline {
  margin: 0.5rem 0 0;
  font-size: 14px;
  color: #64748b;
  font-style: italic;
  line-height: 1.4;
}

.nlp-posted {
  margin: 0 0 0.25rem;
  font-size: 14px;
  color: var(--nlp-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.nlp-posted time {
  font-weight: 600;
  color: #475569;
}

.nlp-pill--status {
  text-transform: capitalize;
}


.nlp-bridge__lead {
  margin: 0 0 0.65rem;
  font-size: 16px;
  font-weight: 650;
  color: #334155;
}

.nlp-bridge__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nlp-bridge__links--row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.nlp-bridge__links li {
  font-size: 15px;
}

.nlp-bridge__links a {
  font-weight: 700;
  color: #0f766e;
  text-decoration: none;
}

.nlp-bridge__links a:hover {
  color: #0f4f49;
  text-decoration: underline;
}

.nlp-bridge__hint {
  margin: 0.25rem 0 0.65rem;
  font-size: 12px;
  color: var(--nlp-muted);
}

.nlp-action-card__title {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nlp-action-card__lead {
  margin: 0 0 0.65rem;
  font-size: 15px;
  font-weight: 650;
  color: #334155;
}

.nlp-action-card__through {
  margin: 0 0 0.65rem;
  font-size: 14px;
  color: #334155;
  font-weight: 650;
}

.nlp-action-card__muted {
  margin: 0 0 0.65rem;
  font-size: 14px;
  color: var(--nlp-muted);
  line-height: 1.45;
}

.nlp-action-card__benefits {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  font-size: 14px;
  line-height: 1.6;
  color: var(--nlp-text);
}

.nlp-action-card__benefits li {
  margin-bottom: 0.25rem;
}

.nlp-action-card__detail {
  margin: 0 0 0.5rem;
  font-size: 14px;
  word-break: break-word;
  color: #334155;
}

.nlp-btn--block {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.35rem;
}

.nlp-section.nlp-action-card .nlp-contact-note {
  margin-top: 0.85rem;
}

/* --- Reach badge --- */
.nlp-reach {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.35rem 0 0;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.nlp-reach__icon {
  font-size: 14px;
}

.nlp-reach--local {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}

.nlp-reach--nearby {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.nlp-reach--state {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.nlp-reach--national {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.nlp-reach--global {
  background: #fdf2f8;
  color: #9d174d;
  border-color: #f9a8d4;
}
