/* Compelling lead capture popup — shown after 3 listing views */

.lead-modal-dialog--capture,
.lead-modal-dialog--welcome {
  border: 2px solid rgba(201, 162, 39, 0.55);
  box-shadow:
    0 24px 80px rgba(7, 21, 38, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.lead-modal-dialog--welcome {
  border-color: rgba(201, 162, 39, 0.45);
}

.lead-modal-dialog--capture .lead-modal-header,
.lead-modal-dialog--welcome .lead-modal-header {
  background: linear-gradient(135deg, #071526 0%, #0d2847 48%, #1a4a7a 100%);
  color: #fff;
  padding: 1.35rem 1.35rem 1rem;
  margin: 0;
  border-bottom: none;
}

.lead-modal-dialog--welcome .lead-modal-header {
  background: linear-gradient(135deg, #0a1f38 0%, #13406e 52%, #1e5a8a 100%);
}

.lead-modal-dialog--welcome .lead-modal-header #lead-modal-title::before {
  content: '👋 ';
}

.lead-modal-dialog--capture .lead-modal-header #lead-modal-title,
.lead-modal-dialog--welcome .lead-modal-header #lead-modal-title {
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead-modal-dialog--capture .lead-modal-header .lead-modal-lead,
.lead-modal-dialog--welcome .lead-modal-header .lead-modal-lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1.45;
  margin-top: 0.45rem;
}

.lead-modal-dialog--capture .lead-modal-kw {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.lead-popup-perks {
  list-style: none;
  margin: 0;
  padding: 0.85rem 1.25rem 0.25rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid rgba(7, 21, 38, 0.08);
}

.lead-popup-perks li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.65rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #1e293b;
}

.lead-popup-perks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #c9a227;
  color: #071526;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lead-modal-dialog--capture .lead-modal-body {
  padding-top: 0.75rem;
}

.lead-modal-dialog--capture #lead-modal-submit,
.lead-modal-dialog--capture .lead-step-actions .btn-gold {
  background: linear-gradient(180deg, #d4af37 0%, #c9a227 100%);
  border-color: #b8921f;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}

.lead-modal-dialog--capture #lead-modal-submit:hover {
  filter: brightness(1.05);
}

@media (min-width: 769px) {
  .lead-modal-dialog--capture {
    width: min(540px, calc(100vw - 2rem));
  }
}

/* Floating “Get alerts” button — always available, non-blocking */
.swmo-lead-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 12000;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: min(280px, calc(100vw - 2rem));
  padding: 0.65rem 0.85rem 0.65rem 0.7rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #071526 0%, #0d2847 55%, #1a4a7a 100%);
  color: #fff;
  box-shadow: 0 10px 32px rgba(7, 21, 38, 0.35);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.2s ease;
  pointer-events: none;
}

.swmo-lead-fab.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.swmo-lead-fab:hover {
  box-shadow: 0 14px 36px rgba(7, 21, 38, 0.42);
}

.swmo-lead-fab__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.swmo-lead-fab__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.2;
}

.swmo-lead-fab__text strong {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.swmo-lead-fab__text span {
  font-size: 0.72rem;
  opacity: 0.88;
}

body.listing-modal-open .swmo-lead-fab,
body.lead-modal-open .swmo-lead-fab {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 480px) {
  .swmo-lead-fab__text span {
    display: none;
  }
  .swmo-lead-fab {
    padding: 0.75rem 1rem;
  }
}
