/* Public business listing pages on theleaplist.com.
   Locked button/card chrome comes from buttons.css and components.css.
   Layout follows the approved free-listing mockup (cover, avatar, details)
   with the coming-soon site header and footer. */

.listing-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.listing-page main {
  flex: 1 0 auto;
  padding: 0 0 40px;
}

.listing-shell {
  width: min(640px, 100%);
  margin: 0 auto;
}

.listing {
  position: relative;
}

/* The site-wide top-right watermark would sit under the cover banner here,
   so the glider is placed in the cream content area below the cover. */
.listing-glider {
  position: absolute;
  left: 0;
  right: 0;
  top: 108px;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.listing-glider img {
  position: absolute;
  display: block;
  max-width: none;
  width: 109.58%;
  height: auto;
  top: 18px;
  left: 50%;
  right: auto;
  opacity: 0.10;
  transform: translateX(-46.104%) rotate(-16deg);
  transform-origin: 50% 50%;
  user-select: none;
  pointer-events: none;
}

.listing .profile-block,
.listing .app-cta {
  position: relative;
  z-index: 1;
}

/* Cover + overlapping silhouette. Crop the banner, never the avatar. */
.listing .cover-wrap {
  position: relative;
  z-index: 2;
  height: 108px;
  overflow: visible;
  background: #f2f2f2;
}

.listing .cover-crop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #f2f2f2;
}

.listing .cover-crop .cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing .cover-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 18, 31, 0.14) 0%, transparent 46%);
}

.listing .logo {
  position: absolute;
  left: 16px;
  bottom: -22px;
  z-index: 3;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #f2f2f2;
  outline: 3px solid #fff7ef;
  box-shadow: none;
  overflow: hidden;
}

.listing .logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  object-position: center;
}

.listing .profile-block {
  padding: 6px 16px 0;
}

.listing .ident {
  padding-left: 76px;
  min-height: 28px;
}

.listing .ident h1 {
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-weight: 900;
  font-size: 22px;
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 7px;
}

.listing .biz-label {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 6px;
  box-shadow: inset 0 0 0 1px rgba(43, 29, 23, 0.28);
  border: 0;
  border-radius: 999px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
  line-height: 1;
  background: transparent;
}

.listing .category {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
}

.listing .bio {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.listing .meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
}

.listing .meta-row p,
.listing .meta-row a {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--mute);
}

.listing .meta-row a:hover {
  color: var(--ink);
}

.listing .meta-row svg {
  flex: none;
  color: var(--mute);
}

/* Centre locked buttons (ghost/primary) when used as flex items.
   Ghost actions share a row; the primary Claim button takes its own row. */
.listing .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.listing .actions .btn,
.listing .actions .btn-ghost,
.listing .actions .btn-grad,
.listing .actions a.btn,
.listing .actions a.btn-ghost,
.listing .actions a.btn-grad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  text-align: center;
  font-size: 14px;
  min-height: 44px;
  padding: 0 18px;
}

.listing .actions .btn-ghost,
.listing .actions a.btn-ghost {
  flex: 1 1 calc(50% - 4px);
}

.listing .actions a.btn:not(.btn-ghost) {
  flex: 1 1 100%;
}

.listing .hours {
  margin-top: 12px;
}

.listing .hours h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}

.listing .hours h2 svg {
  flex: none;
  color: var(--mute);
}

.listing .hours p,
.listing .hours li {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.listing .hours ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.listing .hours li + li {
  margin-top: 2px;
}

.listing .photos-link {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mute);
}

.listing .photos-link a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.listing .app-cta {
  margin: 24px 16px 0;
  padding: 16px 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.listing .app-cta h2 {
  font-family: "Big Shoulders Display", Impact, sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0 0 6px;
}

.listing .app-cta p {
  font-size: 14px;
  font-weight: 500;
  color: var(--mute);
  line-height: 1.4;
  margin: 0 0 12px;
}

.listing .app-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

@media (min-width: 641px) {
  .listing-shell {
    padding: 8px 0 0;
  }

  .listing {
    background: transparent;
  }

  .listing .cover-wrap {
    margin: 0 16px;
  }

  .listing .logo {
    left: 16px;
  }
}

/* OSM attribution: required on pages that use OpenStreetMap data. */
.osm-credit a{
  color:inherit;
  text-decoration:underline;
  text-underline-offset:2px;
}
.osm-credit a:hover{color:var(--gold)}
body.listing-page > main .osm-credit{
  margin:24px 0 8px;
  max-width:46ch;
  font:500 12px "JetBrains Mono",ui-monospace,monospace;
  letter-spacing:.25px;
  line-height:1.5;
  color:#6b5349;
}

.index-lead{
  margin:0 0 16px;
  font-size:16px;
  line-height:1.5;
  color:#6b5349;
}
.index-lead a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.index-lead a:hover{color:var(--gold)}
