/* The listing page's "Share this listing" card (owner handoff "Listing Share Card", 2026-11-28; web/partials/listing-share-card.blade.php, public/js/ip-listing-share.js). Loaded by
   web/listing-detail.blade.php alone; every rule starts from .listing-share-card*. The card is the other right-column cards' own shell (.sidebar-card, web.css: the surface, the 1px border, the corner,
   the 20px padding, no shadow - the live page's look wins over the handoff's drawn 16px corner and shadow, owner 2026-11-20 section CI), the heading is the owner-verified card's (the business-name
   style, 20 / 24 / 400), and the buttons are the Tertiary outline button (.btn.btn-tertiary: its colours, hover and focus are the Outline family's own) made 44px high, three equal widths
   in a row with 8px between them (6px on a phone, so three fit). Not named in the design system yet: the 44px height and the 6px phone gap (the handoff's flag).
   The copied state is the owner-verified card's green (--success-*): a green check, the word "Copied". */
.listing-share-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4, 16px);
  margin-top: var(--space-5, 24px);
  padding: var(--sidebar-card-pad);   /* the 20px every sidebar card shares (web.css .sidebar-card sets the look, each card sets its own inside) */
}
/* The first block of the right column: no gap above it, level with the top of the title block. The cards under it keep their own 24px (the claim / owner-verified card's base margin). */
.listing-sidebar > .listing-share-card-container:first-child .listing-share-card {
  margin-top: 0;
}
.listing-share-card .listing-share-card__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--listing-title-size, 20px);
  line-height: var(--listing-title-line-height, 24px);
  font-weight: var(--listing-title-weight, 400);
  color: var(--ink, #44555b);
}
.listing-share-card__buttons {
  display: flex;
  gap: var(--space-2, 8px);
}
.listing-share-card .listing-share-card__btn {
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2, 8px);
  height: 44px;
  margin: 0;
  padding: 0 var(--space-2, 8px);
  border-radius: var(--radius-md, 8px);
  font-size: var(--button-md-size, 14px);
  line-height: var(--button-md-line-height, 18px);
  font-weight: var(--button-md-weight, 600);
  white-space: nowrap;
  text-decoration: none;
}
.listing-share-card .listing-share-card__btn[hidden] {
  display: none;
}
.listing-share-card .listing-share-card__btn i {
  flex: none;
  margin: 0;
  font-size: 20px;
  line-height: 1;
}
.listing-share-card .listing-share-card__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 479px) {
  .listing-share-card__buttons {
    gap: 6px;
  }
  .listing-share-card .listing-share-card__btn {
    gap: 6px;
    padding: 0 6px;
  }
}
/* the copied state */
.listing-share-card .listing-share-card__btn.is-copied,
.listing-share-card .listing-share-card__btn.is-copied:hover,
.listing-share-card .listing-share-card__btn.is-copied:focus {
  background: var(--success-bg, #f3f8ee);
  border-color: var(--success-border, #dbebcb);
  color: var(--success-text, #294a09);
}
.listing-share-card .listing-share-card__btn.is-copied i {
  color: var(--success-icon, var(--secondary-dark, #47810f));
}
