/* The listing page's "Share this listing" box (owner handoffs "Listing Share Card" and "Listing Right Column Boxes", 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 shell is the other sidebar cards' own (.sidebar-card, web.css: the live corner, no shadow). ONE row:
   the words on the left (14 / 20 weight 700, ink), round icon buttons on the right, 8px apart - 32 x 32, a circle, an 18px icon, white with the 1px border - THE SAME BUTTON as the Copy e-mail button, the modal close X and the scroll-to-top (owner 2026-11-28: "make sure these buttons are the same as the other ones"):
   their hover and the single blue focus line are the round icon buttons' own (public/css/ip-outline.css section 5b), the copied state the Copy e-mail button's. */
.listing-share-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3, 12px);
  padding: var(--space-3, 12px) var(--space-4, 16px);
}
/* the first box of the right column: no gap above it, level with the top of the title block; the boxes under it keep their own 24px */
.listing-sidebar > .listing-share-card:first-child {
  margin-top: 0;
}
.listing-share-card .listing-share-card__title {
  margin: 0;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;   /* the same heading as every box on the side (owner 2026-11-28) */
  color: var(--ink, #44555b);
}
.listing-share-card__buttons {
  display: flex;
  flex: none;
  gap: var(--space-2, 8px);
}
.listing-share-card .listing-share-card__icon-btn {
  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  min-width: 32px;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-pill, 999px);
  text-decoration: none;
}
.listing-share-card .listing-share-card__icon-btn[hidden] {
  display: none;
}
/* a 44px touch target round the 32px circle, the same invisible ::before the Copy e-mail button and the close buttons have */
.listing-share-card .listing-share-card__icon-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}
.listing-share-card .listing-share-card__icon-btn i {
  display: block;
  margin: 0;
  font-size: 18px;
  line-height: 1;
}
/* the copied state: the Copy e-mail button's own (contact-widget.css) - the green border, the light green fill, the green check - kept on :hover so the family's hover does not paint over the confirmation */
.listing-share-card .listing-share-card__icon-btn.is-copied,
.listing-share-card .listing-share-card__icon-btn.is-copied:hover {
  border-color: var(--secondary-dark, #47810f);
  background: var(--success-bg, #f3f8ee);
  color: var(--secondary-dark, #47810f);
}
