/* Canonical account-backed favorites UI: navbar badge + guest account prompt. */
.sgg-nav-favorites {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e3e4e6;
  border-radius: 999px;
  background: #fff;
  color: #111;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.sgg-nav-favorites:hover,
.sgg-nav-favorites:focus-visible {
  border-color: #c9cbcf;
  background: #f7f7f5;
  color: #111;
  transform: translateY(-1px);
}

.sgg-nav-favorites > .bi-heart,
.sgg-nav-favorites > .bi-heart-fill {
  font-size: 20px;
  line-height: 1;
}

.sgg-nav-favorite-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-flex;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.heart-btn.is-favorite-loading,
.sgg-fav-btn.is-favorite-loading,
.heart-btn[aria-busy="true"],
.sgg-fav-btn[aria-busy="true"] {
  pointer-events: none;
  cursor: wait;
  opacity: .72;
}

.heart-btn.is-favorite .bi-heart-fill,
.sgg-fav-btn.is-favorite .bi-heart-fill {
  transform: scale(1.04);
}

/* Shared account prompt uses Bootstrap's native modal lifecycle. */
body.sgg-account-modal-visible .sgg-ai__launcher {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.sgg-account-modal-visible > .modal-backdrop {
  z-index: 1000190 !important;
  background: #111 !important;
}

body.sgg-account-modal-visible > .modal-backdrop.show {
  opacity: .48 !important;
}

body > #sggFavoriteAccountModal.sgg-favorite-account-modal.modal {
  position: fixed;
  z-index: 1000200;
  inset: 0;
  background: transparent;
}

.sgg-favorite-account-shell {
  width: min(calc(100% - 40px), 480px);
  max-width: 480px;
  margin-right: auto;
  margin-left: auto;
}

.sgg-favorite-account-dialog {
  position: relative;
  width: 100%;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(0, 0, 0, .09);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .2);
}

.sgg-favorite-account-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e5e3;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 18px;
}

.sgg-favorite-account-close:focus-visible,
.sgg-favorite-account-actions .btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(23, 23, 23, .12);
}

.sgg-favorite-account-content {
  padding: 34px 34px 30px;
}

.sgg-favorite-account-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 16px;
  background: #f3f2ee;
  color: #111;
  font-size: 24px;
}

.sgg-favorite-account-content h2 {
  margin: 0 48px 10px 0;
  color: #111;
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -.035em;
}

.sgg-favorite-account-content p {
  margin: 0;
  color: #686b70;
  font-size: .98rem;
  line-height: 1.55;
}

.sgg-favorite-account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 26px;
}

.sgg-favorite-account-actions .btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 750;
}

.sgg-favorite-account-footnote {
  margin-top: 16px !important;
  color: #898b8f !important;
  font-size: .78rem !important;
}

@media (max-width: 575.98px) {
  .sgg-nav-favorites {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .sgg-favorite-account-shell {
    width: calc(100% - 20px);
    margin: max(10px, env(safe-area-inset-top)) auto max(10px, env(safe-area-inset-bottom));
  }

  .sgg-favorite-account-dialog {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 24px;
  }

  .sgg-favorite-account-content {
    padding: 30px 22px 24px;
  }

  .sgg-favorite-account-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sgg-nav-favorites { transition: none; }
  [data-sgg-follow-venue][data-sgg-busy="1"] i { animation: none; }
}

.sgg-menu-favorite-count {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  vertical-align: 1px;
}

/* Follow + saved-search reuse the existing public account interaction layer. */
.sgg-follow-action-wrap{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap}
.sgg-follow-button:not(.is-icon),.sgg-directory-shortcut.sgg-growth-save-search{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 16px;border:1px solid #d9d9d4;border-radius:999px;background:#f1f1ed;color:#171717;font-weight:750;text-decoration:none!important;transition:background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease}
.sgg-follow-button:not(.is-icon):hover,.sgg-directory-shortcut.sgg-growth-save-search:hover{border-color:#c7c7c1;background:#e9e9e4;color:#171717}
.sgg-follow-button:not(.is-icon):focus-visible,.sgg-directory-shortcut.sgg-growth-save-search:focus-visible{outline:0;border-color:#9d9d97;box-shadow:0 0 0 3px rgba(23,23,23,.10)}
.sgg-follow-button:not(.is-icon):active,.sgg-directory-shortcut.sgg-growth-save-search:active,.sgg-follow-button:not(.is-icon).is-active,.sgg-directory-shortcut.sgg-growth-save-search.is-active{border-color:#cfcfc9;background:#dfdfda;color:#171717}
.sgg-follow-button:not(.is-icon)[aria-disabled="true"],.sgg-directory-shortcut.sgg-growth-save-search:disabled{cursor:not-allowed;opacity:.55}
[data-sgg-follow-venue][data-sgg-busy="1"]{pointer-events:none;cursor:wait;opacity:.68}
[data-sgg-follow-venue][data-sgg-busy="1"] i{animation:sgg-follow-busy .75s linear infinite}
@keyframes sgg-follow-busy{to{transform:rotate(360deg)}}
.sgg-follow-button.is-icon{display:inline-grid;place-items:center;text-decoration:none!important}
.sgg-follow-button.is-icon.is-active{border-color:#171717!important;background:#171717!important;color:#fff!important}
.sgg-follow-count{color:#777771;font-size:12px;font-weight:650;line-height:1.2;white-space:nowrap}
.sgg-growth-toast{position:fixed;left:50%;bottom:24px;z-index:100090;max-width:min(92vw,520px);transform:translate(-50%,18px);opacity:0;background:#171717;color:#fff;border-radius:999px;padding:12px 18px;font-size:13px;font-weight:750;box-shadow:0 16px 40px rgba(0,0,0,.2);transition:opacity .2s ease,transform .2s ease;text-align:center}
.sgg-growth-toast.is-visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:600px){.sgg-growth-toast{bottom:18px;width:calc(100vw - 32px);border-radius:14px}}
