/* Share listing link — toast + mobile bar button */
.listing-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* Top of listing — next to price (desktop + mobile headline) */
.ld-header__price-row,
.lp-headline__price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

.ld-header__price-row .ld-price,
.ld-header__price-row .listing-modal-price,
.lp-headline__price-row .lp-price,
.lp-headline__price-row .listing-modal-price {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.listing-share-btn--top {
  flex: 0 0 auto;
  margin: 0.15rem 0 0;
  padding: 0.55rem 1.05rem;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #071526;
  background: #fff;
  border: 1.5px solid #c8d4e0;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(7, 21, 38, 0.08);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.listing-share-btn--top:hover {
  background: #f4f7fa;
  border-color: #071526;
  box-shadow: 0 3px 12px rgba(7, 21, 38, 0.12);
}

.listing-share-btn--top:active {
  transform: scale(0.98);
}

.listing-share-btn--top:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.listing-detail-mobile-bar .listing-detail-mobile-share {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  flex-shrink: 0;
}

.listing-detail-mobile-bar .listing-detail-mobile-share:hover {
  background: rgba(255, 255, 255, 0.24);
}

@media (min-width: 769px) {
  body.listing-modal-open #listing-modal .lp-mobile-bar .lp-mobile-share {
    display: none;
  }
}

.listing-share-btn::before {
  content: '';
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 12v7a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7M16 6l-4-4-4 4M12 2v14'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 12v7a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7M16 6l-4-4-4 4M12 2v14'/%3E%3C/svg%3E")
    center / contain no-repeat;
  opacity: 0.9;
}

.lp-mobile-share,
.listing-detail-mobile-share {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  flex-shrink: 0;
}

.lp-mobile-share:hover,
.listing-detail-mobile-share:hover {
  background: rgba(255, 255, 255, 0.22);
}

.listing-card-btn--share {
  flex: 1;
  min-width: 0;
}

.listing-share-toast {
  position: fixed;
  left: 50%;
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(12px);
  z-index: 12050;
  max-width: min(92vw, 22rem);
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: #fff;
  background: rgba(7, 21, 38, 0.94);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.listing-share-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
