/* ── Mortgage badge ───────────────────────────────────────────── */
.mortgage-badge {
  display: inline-flex;
  padding: 10px 12px;
  align-items: center;
  gap: 12px;
  border-radius: 4.515px;
  background: #e1f2ff;
  margin-top: 8px;
  font-family: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-decoration: none;
  color: inherit;
}

/* Badge inside the property highlights grey-back panel (after the h1) */
.grey-back .mortgage-badge {
  margin-top: 0;
  margin-bottom: 16px;
}
.mortgage-badge__estimate {
  color: #000;
  font-family: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

@media screen and (max-width: 768px) {
  .mortgage-badge__estimate {
    font-size: 14px;
  }
}
.mortgage-badge__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 0;
  vertical-align: middle;
  aspect-ratio: 1 / 1;
}
.mortgage-badge__info svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  pointer-events: none;
}
.mortgage-badge__info svg path {
  pointer-events: none;
}
.mortgage-badge__cta {
  color: #2094a9;
  font-family: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;

  @media screen and (max-width: 768px) {
    font-size: 14px;
      font-size: 14px;
    }
}

/* ── Popup wrapper — only handles visibility ──────────────────── */
.mortgage-popup {
  display: block;
}
.mortgage-popup[hidden] {
  display: none;
}

/* ── Panel — fixed, positioned by JS below the info icon ──────── */
.mortgage-popup__panel {
  position: fixed;
  z-index: 9999;
  display: flex;
  width: 400px;
  padding: 24px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--Colors-White, #fff);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

/* Arrow pointing up at the info icon */
.mortgage-popup__panel::before {
  content: "";
  position: absolute;
  top: -8px;
  left: var(--arrow-left, 40px);
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #fff;
  /* Drop-shadow to match the panel */
  filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.08));
}

/* ── Header ───────────────────────────────────────────────────── */
.mortgage-popup__header {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
}

#mortgage-popup-title {
  color: var(--OBSESSED-GREY, #252526);
  font-family: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

/* ── Close button ─────────────────────────────────────────────── */
.mortgage-popup__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 0;
}
.mortgage-popup__close svg {
  width: 14px;
  height: 14px;
  display: block;
  pointer-events: none;
}

/* ── Content wrapper ──────────────────────────────────────────── */
.mortgage-popup__content {
  width: 100%;
  margin-top: 12px;
}

/* ── Body ─────────────────────────────────────────────────────── */
.mortgage-popup__body {
  color: var(--OBSESSED-GREY, #252526);
  font-family: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px !important;
  font-style: normal;
  font-weight: 400;
  line-height: normal !important;
  width: 100%;
  margin: 0;
}

.mortgage-popup__link {
  color: #5689a4;
  font-family: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: normal !important;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

.mortgage-popup__disclaimer {
  color: var(--OBSESSED-GREY, #252526);
  font-family: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px !important;
  font-style: italic;
  font-weight: 400;
  line-height: normal !important;
  width: 100%;
  margin: 0;
  text-decoration: none !important;
}
.mortgage-popup__disclaimer em,
#mortgage-info-popup .mortgage-popup__disclaimer em {
  font-size: 15px !important;
  font-style: italic;
  line-height: normal !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
}

/* ── Mobile fixes ─────────────────────────────────────────────── */

/*
 * The show-for-small-only header row sits in document order above
 * the prop-highlights-group which uses margin-top: -148px to pull
 * up and overlay it. Creating a stacking context on the row keeps
 * the mortgage badge rendered on top.
 */
@media screen and (max-width: 768px) {
  .show-for-small-only.ow.p_bot_zero {
    position: relative;
    z-index: 1;
  }

  .show-for-small-only.ow.p_bot_zero .column.spacer2 {
    padding-bottom: 80px;
  }

  .column.medium-8.no-padding .grey-back .mortgage-badge {
    display: none;
  }

  /* Centered modal on mobile — overlay + panel, no arrow */
  .mortgage-popup:not([hidden]) {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.40);
    align-items: center;
    justify-content: center;
  }

  .mortgage-popup__panel {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 360px;
    height: 640px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.30);
  }

  .mortgage-popup__panel::before {
    display: none;
  }
}


/* Gravity Forms — Request More Info: left padding on Phone field only. */
.detail-form li.detail-phone {
  padding-left: 12px;
}

/* Financing checkbox — GF Custom CSS Class: financing-checkbox */
.financing-checkbox .gfield_checkbox li,
.financing-checkbox .ginput_container_checkbox li,
.financing-checkbox > label {
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  gap: 6px !important;
  margin-bottom: 0 !important;
}
.financing-checkbox .gfield_checkbox li label,
.financing-checkbox .ginput_container_checkbox li label,
.financing-checkbox > label {
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  cursor: pointer;
}
.financing-checkbox .gfield_checkbox li input[type="checkbox"],
.financing-checkbox .ginput_container_checkbox li input[type="checkbox"],
.financing-checkbox > label input[type="checkbox"] {
  margin: 0 !important;
  flex-shrink: 0 !important;
  position: static !important;
  top: auto !important;
  float: none !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  accent-color: #000;
}
.schedule-tour-modal .financing-checkbox,
#mobile-properties-more-info .financing-checkbox {
  margin-bottom: 24px;
}
.sidebar-financing-checkbox {
  margin-top: 10px;
  margin-bottom: 4px;
}

@media screen and (max-width: 1170px) {
  .prop-highlights-group .column.p_bot_ten.grey-back {
    margin-top: -148px;
  }
}
