/* Share row for Travel Planner tools & guides — use with tp-share.js */
.tp-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 1.25rem;
}

/* One row with primary hero CTAs (Tailwind “px-5 py-2.5 rounded-xl” style) */
.tp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.tp-share.tp-share--hero-inline {
  margin-top: 0 !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

/* Desktop: share group aligns right in the same band as CTAs */
@media (min-width: 768px) {
  .tp-hero-actions .tp-share--hero-inline {
    margin-left: auto;
  }
}

/* Narrow: full-width share under CTAs, subtle separator */
@media (max-width: 767px) {
  .tp-share.tp-share--hero-inline {
    flex-basis: 100%;
    flex-wrap: wrap;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  .tp-share.tp-share--hero-inline.tp-share--light {
    border-top-color: rgba(28, 25, 23, 0.1);
  }
}

/* Match hero CTA size (≈ Tailwind text-sm py-2.5 px-5 rounded-xl) */
.tp-share.tp-share--hero-inline .tp-share-btns {
  gap: 0.5rem;
}
.tp-share.tp-share--hero-inline .tp-share-btns a {
  padding: 0.625rem 1.125rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  min-height: 2.75rem;
  box-sizing: border-box;
  line-height: 1.2;
  align-items: center;
}
.tp-share.tp-share--hero-inline .tp-share-label {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  margin-right: 0.1rem;
  white-space: nowrap;
}
.tp-share.tp-share--hero-inline.tp-share--on-dark .tp-share-x {
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
  backdrop-filter: blur(8px);
}
.tp-share.tp-share--hero-inline.tp-share--on-dark .tp-share-x:hover {
  background: rgba(255, 255, 255, 0.1);
}
.tp-share.tp-share--hero-inline.tp-share--light .tp-share-x {
  border: 2px solid #d6d3d1;
  background: #fafaf9;
  color: #1c1917;
}
.tp-share.tp-share--hero-inline.tp-share--light .tp-share-x:hover {
  background: #f5f5f4;
  border-color: #a8a29e;
}
.tp-share-label {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tp-share-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tp-share-btns a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.tp-share-btns a:hover {
  transform: translateY(-1px);
}
.tp-share-btns a svg {
  flex-shrink: 0;
  opacity: 0.95;
}

/* Dark hero backgrounds */
.tp-share--on-dark .tp-share-label {
  color: rgba(255, 255, 255, 0.55);
}
.tp-share--on-dark .tp-share-fb {
  background: #1877f2;
  color: #fff;
  box-shadow: 0 2px 12px rgba(24, 119, 242, 0.35);
}
.tp-share--on-dark .tp-share-fb:hover {
  background: #166fe5;
  color: #fff;
}
.tp-share--on-dark .tp-share-x {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}
.tp-share--on-dark .tp-share-x:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Light / white hero or cards */
.tp-share--light .tp-share-label {
  color: #78716c;
}
.tp-share--light .tp-share-fb {
  background: #1877f2;
  color: #fff;
}
.tp-share--light .tp-share-fb:hover {
  background: #166fe5;
  color: #fff;
}
.tp-share--light .tp-share-x {
  background: #1c1917;
  color: #fff;
}
.tp-share--light .tp-share-x:hover {
  background: #292524;
  color: #fff;
}

/* Tighter under inline CTA rows */
.tp-share--tight {
  margin-top: 0.85rem;
}

/* Centered hero (templates index) */
.tp-share--center {
  justify-content: center;
  width: 100%;
}
