/* hsidx landing pages (general + listing) — ported from the bk redesign
   (broker-site appnew.css / listing.css). Standalone: these pages don't load
   the IDX bundle or its styles. */

@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600&display=swap');

/* Base ---------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  color: #1f1f1f;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

p, h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 500; }

img { max-width: 100%; }

button { font-family: inherit; }

/* LANDING (.ln) ------------------------------------------------------- */

.ln {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ln-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 100px 24px 0;
  /* gradient applied inline so it picks up theme_primary */
}

.ln-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.ln-agent-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-color: #f5f5f5;
  background-size: cover;
  background-position: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ln-app-icon-overlay {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid #ffffff;
  background-color: #f5f5f5;
  background-size: cover;
  background-position: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 4px 40px rgba(0, 0, 0, 0.08);
}

.ln-app-icon-solo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background-color: #f5f5f5;
  background-size: cover;
  background-position: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.ln-sent-by { text-align: center; }

.ln-sent-label {
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.28px;
  color: rgba(255, 255, 255, 0.6);
}

.ln-sent-name {
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.32px;
  color: #ffffff;
}

.ln-title {
  font-size: 32px;
  line-height: 36px;
  letter-spacing: -0.64px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.ln-title[hidden] { display: none; }

.ln-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 360px;
}

.ln-cta-email,
.ln-cta-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.ln-cta-email[hidden],
.ln-cta-success[hidden] { display: none; }

.ln-cta-choice {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.ln-cta-choice[hidden] { display: none; }

.ln-choice-btn {
  width: 100%;
  height: 56px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 28px;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.32px;
  cursor: pointer;
  transition: opacity 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.ln-choice-btn:hover { opacity: 0.94; }
.ln-choice-btn:active { opacity: 0.86; }

.ln-choice-btn--primary {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.ln-choice-btn--secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.ln-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.ln-form-input {
  width: 100%;
  max-width: 360px;
  height: 56px;
  padding: 0 20px;
  border: 0;
  outline: none;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.32px;
  color: #ffffff;
  -webkit-appearance: none;
  appearance: none;
}

.ln-form-input::placeholder { color: rgba(255, 255, 255, 0.6); }
.ln-form-input:focus { background: rgba(255, 255, 255, 0.14); }

.ln-form-btn {
  width: auto;
  min-width: 140px;
  max-width: 100%;
  height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 28px;
  background: #ffffff;
  color: #000000;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.32px;
  cursor: pointer;
  transition: opacity 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.ln-form-btn:hover { opacity: 0.94; }
.ln-form-btn:active { opacity: 0.86; }
.ln-form-btn:disabled { opacity: 0.6; cursor: default; }

.ln-form-msg {
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.28px;
  color: #ffd2d2;
  min-height: 18px;
  text-align: center;
}

.ln-form-msg:empty { display: none; }

.ln-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.ln-badge img {
  height: 40px;
  width: auto;
  display: block;
}

.ln-hero-image-wrap {
  width: 100%;
  max-width: 512px;
  margin-top: 8px;
  padding: 0 8px;
}

.ln-hero-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.ln-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 28px 24px;
  background: #ffffff;
}

.ln-footer-logo {
  width: 122px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.ln-footer-copy {
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.28px;
  color: rgba(67, 66, 66, 0.6);
  text-align: center;
}

@media (max-width: 991.98px) {
  .ln-hero {
    padding: 64px 20px 0;
    gap: 20px;
  }

  .ln-title {
    font-size: 32px;
    line-height: 36px;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .ln-title {
    font-size: 28px;
    line-height: 32px;
    letter-spacing: -0.56px;
  }
}

/* LISTING (.l2) ------------------------------------------------------- */

.l2-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.l2 {
  font-weight: 500;
  color: #1f1f1f;
  padding: 24px 24px 64px;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

.l2-center { text-align: center; }

.l2-grid {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  width: 100%;
}

.l2-notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 80px 24px;
}

.l2-notfound img {
  max-width: 200px;
  margin-bottom: 14px;
}

.l2-notfound h1 {
  font-size: 24px;
  line-height: 30px;
  letter-spacing: -0.48px;
  font-weight: 600;
}

.l2-notfound p {
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.32px;
  color: #7a7a7a;
  max-width: 420px;
}

.l2-left {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
}

.l2-photo-wrap {
  width: 320px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 36px;
  background: #f5f5f5;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 48px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 12px;
}

.l2-photo {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 32px;
}

.l2-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.28px;
  color: rgba(67, 66, 66, 0.6);
  text-transform: capitalize;
}

.l2-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2bb673;
  display: inline-block;
}

.l2-price-block {
  text-align: center;
  margin-top: 4px;
}

.l2-price {
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -0.48px;
  color: #1f1f1f;
}

.l2-addr,
.l2-meta {
  margin-top: 4px;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.32px;
  color: #7a7a7a;
}

.l2-right {
  flex: 1 1 0;
  min-width: 0;
  max-width: 480px;
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-self: stretch;
}

.l2-sep {
  height: 1px;
  background: #eeeeee;
  width: 100%;
}

.l2-agent {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 24px;
}

.l2-agent-photo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: #f5f5f5;
  flex-shrink: 0;
}

.l2-agent-photo--empty { background-color: #f5f5f5; }

.l2-agent-info { min-width: 0; flex: 1 1 0; }

.l2-agent-name {
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.32px;
  color: #1f1f1f;
}

.l2-agent-role {
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.28px;
  color: rgba(67, 66, 66, 0.6);
}

.l2-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.l2-h3 {
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.4px;
  font-weight: 500;
  color: #1f1f1f;
}

.l2-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px 24px;
}

.l2-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.l2-tile-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.l2-tile-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.l2-tile-text { min-width: 0; flex: 1 1 0; }

.l2-tile-value {
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.32px;
  color: #1f1f1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.l2-tile-label {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.24px;
  color: #7a7a7a;
}

.l2-desc {
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.32px;
  color: #7a7a7a;
  white-space: pre-line;
}

.l2-cta {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.l2-cta-email,
.l2-cta-success {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.l2-cta-email[hidden],
.l2-cta-success[hidden] { display: none; }

.l2-cta-choice {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.l2-cta-choice[hidden] { display: none; }

.l2-choice-btn {
  width: 100%;
  height: 56px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 28px;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.32px;
  cursor: pointer;
  transition: opacity 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.l2-choice-btn:hover { opacity: 0.92; }
.l2-choice-btn:active { opacity: 0.85; }

.l2-choice-btn--primary {
  background: #6155f5;
  color: #ffffff;
  border-color: #6155f5;
}

.l2-choice-btn--secondary {
  background: transparent;
  color: #6155f5;
  border-color: rgba(97, 85, 245, 0.4);
}

.l2-cta-success-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.l2-cta-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.l2-app-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: #f5f5f5;
  flex-shrink: 0;
}

.l2-app-icon--empty { background-color: #f5f5f5; }

.l2-cta-text { min-width: 0; flex: 1 1 0; }

.l2-cta-title {
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.32px;
  color: #1f1f1f;
}

.l2-cta-sub,
.l2-sub {
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.32px;
  color: rgba(67, 66, 66, 0.6);
}

.l2-form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.l2-input {
  flex: 1 1 0;
  min-width: 0;
  height: 56px;
  padding: 0 20px;
  border: 0;
  outline: none;
  border-radius: 30px;
  background: rgba(128, 126, 125, 0.12);
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.32px;
  color: #1f1f1f;
  -webkit-appearance: none;
  appearance: none;
}

.l2-input::placeholder { color: rgba(67, 66, 66, 0.6); }
.l2-input:focus { background: rgba(128, 126, 125, 0.18); }

.l2-btn {
  width: 77px;
  min-width: 77px;
  height: 56px;
  flex: 0 0 auto;
  padding: 0 20px;
  border: 0;
  border-radius: 28px;
  background: #6155f5;
  color: #ffffff;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.32px;
  cursor: pointer;
  transition: opacity 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.l2-btn:hover { opacity: 0.92; }
.l2-btn:active { opacity: 0.85; }
.l2-btn:disabled { opacity: 0.6; cursor: default; }

.l2-form-msg {
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.28px;
  color: #d23535;
  min-height: 18px;
  margin-top: -8px;
}

.l2-form-msg:empty { display: none; }

.l2-badges {
  display: flex;
  gap: 12px;
}

.l2-badges.l2-center { justify-content: center; }

.l2-badge img {
  height: 40px;
  width: auto;
  display: block;
}

.l2-qr {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 16px;
}

.l2-qr-code {
  width: 128px;
  height: 128px;
  flex-shrink: 0;
}

.l2-qr-code img,
.l2-qr-code canvas {
  width: 128px !important;
  height: 128px !important;
}

.l2-qr-text {
  flex: 1 1 0;
  min-width: 0;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.32px;
  color: rgba(67, 66, 66, 0.6);
}

/* MLS compliance footer */

.mls-footer {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  text-align: center;
}

.mls-footer-list {
  text-align: left;
  font-size: 14px;
  line-height: 20px;
  color: #7a7a7a;
  margin-bottom: 15px;
}

.mls-footer-disclaimer {
  font-size: 12px;
  line-height: 17px;
  color: #9a9a9a;
  text-align: left;
}

.mls-footer-copy {
  margin-top: 24px;
  font-size: 14px;
  color: rgba(67, 66, 66, 0.6);
}

.mls-footer-logo {
  width: 122px;
  height: 22px;
  object-fit: contain;
  margin: 8px auto 0;
}

/* Mobile sticky bottom card */

.l2-sticky { display: none; }

@media (max-width: 991.98px) {
  /* keep the MLS footer reachable above the fixed sticky card */
  .l2-page { padding-bottom: 260px; }

  .l2 { padding: 16px 24px 0; }

  .l2-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .l2-left { padding: 24px 0 8px; }

  .l2-photo-wrap { width: 256px; }

  .l2-right {
    padding: 16px 0 32px;
    max-width: 100%;
    width: 100%;
    align-items: stretch;
    gap: 24px;
  }

  .l2-agent { justify-content: center; }

  .l2-cta-desktop,
  .l2-qr-desktop,
  .l2-sep-desktop { display: none; }

  .l2-desc {
    background: linear-gradient(to bottom, #7a7a7a 0%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }

  .l2-sticky {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    padding: 24px 24px calc(28px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.16);
    z-index: 100;
    gap: 16px;
  }

  .l2-sticky .l2-badges { justify-content: center; }

  .l2-sticky .l2-cta-success-head {
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .l2-tiles { gap: 18px 16px; }
}
