/* Social share modal — map capture + landing URL */

/* Header + nav share triggers (visible labels; do not rely on 🔗 emoji alone) */
#shareSocialBtn.share-social-trigger {
  width: auto;
  min-width: 34px;
  height: auto;
  min-height: 34px;
  padding: 4px 10px;
  gap: 6px;
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.08);
}
#shareSocialBtn.share-social-trigger:hover {
  background: rgba(56, 189, 248, 0.24);
  border-color: rgba(125, 211, 252, 0.75);
  color: #e0f2fe;
}
#shareSocialBtn.share-social-trigger .hdr-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
#shareSocialBtn.share-social-trigger .hdr-label {
  display: inline !important;
  font: 800 11px/1 sans-serif;
  letter-spacing: 0.02em;
  color: inherit;
}
#shareSocialNavBtn.share-social-nav {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
  color: #7dd3fc;
}
#shareSocialNavBtn.share-social-nav:hover {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.16);
  color: #e0f2fe;
}
#shareSocialNavBtn.share-social-nav .btm-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.share-social-modal {
  position: fixed;
  inset: 0;
  z-index: 130020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(5px);
}
.share-social-modal.open {
  display: flex;
}
.share-social-card {
  position: relative;
  width: min(420px, 96vw);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, #0f172a 0%, #0b0f19 100%);
  color: #e2e8f0;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  padding: 18px 18px 16px;
}
.share-social-card h3 {
  margin: 0 28px 6px 0;
  font: 800 17px/1.3 sans-serif;
  color: #fff;
}
.share-social-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}
.share-social-sub {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font: 600 12px/1.5 sans-serif;
  color: #94a3b8;
}
.share-social-time {
  flex: 0 0 auto;
  font: 900 11px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #7dd3fc;
  white-space: nowrap;
  padding-top: 1px;
}
.share-social-preview {
  margin: 0 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #0b0f19;
  overflow: hidden;
  min-height: 120px;
  display: grid;
  place-items: center;
}
.share-social-preview-loading {
  padding: 18px 14px;
  font: 700 12px/1.45 sans-serif;
  color: #94a3b8;
  text-align: center;
}
.share-social-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
}
.share-social-preview.ready {
  min-height: 0;
}
.share-social-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.share-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.share-social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.65);
  color: #f8fafc;
  padding: 12px 14px;
  font: 800 13px/1.2 sans-serif;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.share-social-btn:hover {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.1);
}
.share-social-btn .ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 17px;
  flex-shrink: 0;
}
.share-social-btn.kakao .ico { background: #fee500; color: #191919; }
.share-social-btn.line .ico { background: #06c755; color: #fff; }
.share-social-btn.whatsapp .ico { background: #25d366; color: #fff; }
.share-social-btn.x .ico { background: #0f1419; color: #fff; border: 1px solid rgba(255,255,255,.12); }
.share-social-btn.instagram .ico {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  color: #fff;
}
.share-social-btn.facebook .ico {
  background: #1877f2;
  color: #fff;
  font: 900 20px/1 sans-serif;
}
.share-social-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.share-social-aux {
  flex: 1 1 0;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  color: #cbd5e1;
  padding: 9px 8px;
  font: 700 11px/1.25 sans-serif;
  cursor: pointer;
}
.share-social-aux:hover {
  border-color: rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
}
.share-social-url {
  display: block;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.12);
  font: 900 15px/1.15 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #e0f2fe;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.08);
}
.share-social-url:hover {
  color: #e0f2fe;
  border-color: rgba(125, 211, 252, 0.75);
  background: rgba(56, 189, 248, 0.18);
}
.share-social-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  pointer-events: none;
  z-index: 130030;
  max-width: min(92vw, 420px);
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
  font: 700 13px/1.4 sans-serif;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  transition: opacity 0.2s, transform 0.2s;
}
.share-social-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 640px) {
  .share-social-modal { align-items: flex-end; padding: 0; }
  .share-social-card {
    width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 88vh;
    overflow: auto;
  }
}
