.house-card[id] {
  scroll-margin-top: 104px;
}

.house-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.house-share-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(35, 51, 45, .24);
  border-radius: 999px;
  background: transparent;
  color: var(--forest);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.house-share-trigger svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.house-share-trigger:hover {
  border-color: var(--rust);
  background: rgba(185, 99, 62, .07);
  color: var(--rust);
  transform: translateY(-1px);
}

.house-share-trigger:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

.share-dialog {
  position: fixed;
  inset: 0;
  width: min(520px, calc(100vw - 32px));
  max-width: 520px;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: #f7f1e7;
  color: var(--ink);
  overflow: visible;
  box-shadow: 0 28px 80px rgba(21, 17, 14, .34);
}

.share-dialog::backdrop {
  background: rgba(24, 19, 15, .68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.share-dialog-inner {
  padding: 44px 38px 36px;
  text-align: center;
}

.share-dialog-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 19px;
  border: 1px solid rgba(185, 99, 62, .38);
  border-radius: 50%;
  color: var(--rust);
}

.share-dialog-mark svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.share-dialog .eyebrow {
  margin-bottom: 9px;
  color: #786454;
}

.share-dialog h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 2.65rem);
  font-weight: 400;
  line-height: 1;
}

.share-house-name {
  margin: 12px 0 28px;
  color: #6c6259;
  font-size: 14px;
}

.share-dialog button {
  position: static;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  font-size: inherit;
}

.share-dialog .share-dialog-close {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 13px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(35, 51, 45, .2);
  border-radius: 50%;
  color: var(--ink);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.share-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.share-options a,
.share-options button {
  display: flex;
  min-width: 0;
  min-height: 92px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 8px;
  border: 1px solid rgba(35, 51, 45, .14);
  background: rgba(255, 255, 255, .52);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.share-options a:hover,
.share-options button:hover {
  border-color: rgba(185, 99, 62, .5);
  background: #fff;
  transform: translateY(-2px);
}

.share-options span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(35, 51, 45, .23);
  border-radius: 50%;
  color: var(--rust);
  font-size: 9px;
  font-weight: 700;
}

.share-options svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.share-options strong {
  font-size: 11px;
  font-weight: 600;
}

.share-status {
  min-height: 18px;
  margin: 13px 0 0;
  color: var(--rust);
  font-size: 12px;
}

@media (max-width: 680px) {
  .house-card-actions {
    width: 100%;
    justify-content: space-between;
  }

  .house-share-trigger {
    min-height: 38px;
  }

  .share-dialog-inner {
    padding: 40px 18px 24px;
  }

  .share-options {
    gap: 6px;
  }

  .share-options a,
  .share-options button {
    min-height: 86px;
    padding: 10px 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .house-share-trigger,
  .share-options a,
  .share-options button {
    transition: none;
  }
}
