html.shortlist-modal-open {
  overflow: hidden;
}

.shortlist-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 28px;
  font-family: Inter, Arial, sans-serif;
}

.shortlist-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 24, 34, 0.74);
  backdrop-filter: blur(10px);
}

.shortlist-modal__dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(880px, calc(100vh - 56px));
  overflow: auto;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(217, 43, 15, 0.22);
  border-radius: 30px;
  background: #fffdfa;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.32);
  color: #17202b;
}

.shortlist-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #cbd5df;
  border-radius: 50%;
  background: #fff;
  color: #17202b;
  font: 400 30px/1 Arial, sans-serif;
  cursor: pointer;
}

.shortlist-modal__close:hover {
  border-color: #17202b;
  transform: rotate(4deg);
}

.shortlist-modal__eyebrow {
  margin: 0 56px 16px 0;
  color: #d92b0f;
  font: 700 13px/1.3 "Interphases Mono", monospace;
  letter-spacing: 0.12em;
}

.shortlist-modal h2 {
  max-width: 650px;
  margin: 0 0 20px;
  font: 500 clamp(38px, 6vw, 68px)/0.98 Georgia, serif;
  letter-spacing: -0.035em;
}

.shortlist-modal__intro {
  max-width: 650px;
  margin: 0 0 30px;
  color: #536171;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

.shortlist-modal__form {
  min-height: 260px;
}

.shortlist-modal pflb-form {
  --pf-accent: #ff3000;
  --pf-radius: 14px;
  --pf-font: Inter, Arial, sans-serif;
}

@media (max-width: 640px) {
  .shortlist-modal {
    align-items: end;
    padding: 10px;
  }

  .shortlist-modal__dialog {
    max-height: calc(100vh - 20px);
    padding: 32px 20px 24px;
    border-radius: 24px;
  }

  .shortlist-modal h2 {
    padding-right: 30px;
    font-size: clamp(34px, 11vw, 48px);
  }

  .shortlist-modal__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
}

/* Modal sizing and map legibility refinements */
.shortlist-modal,
.shortlist-modal * {
  box-sizing: border-box;
}

.shortlist-modal__dialog {
  width: min(960px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  padding: clamp(30px, 4vw, 48px);
}

.shortlist-modal h2 {
  max-width: 780px;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.shortlist-modal__intro {
  max-width: 760px;
  margin-bottom: 24px;
}

.shortlist-modal__form,
.shortlist-modal__form > *,
.shortlist-modal__form pflb-form {
  width: 100%;
  max-width: 100%;
}

.map-tool-label {
  paint-order: stroke fill;
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.map-tool:hover .map-tool-label,
.map-tool:focus .map-tool-label,
.map-tool.is-active .map-tool-label {
  font-weight: 800;
  stroke-width: 4px;
}

@media (max-width: 640px) {
  .shortlist-modal {
    padding: 6px;
  }

  .shortlist-modal__dialog {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    padding: 48px 18px 20px;
    border-radius: 20px;
  }

  .shortlist-modal h2 {
    padding-right: 18px;
    font-size: clamp(30px, 9.5vw, 42px);
  }

  .shortlist-modal__eyebrow {
    margin-right: 44px;
  }

  .shortlist-modal__intro {
    font-size: 16px;
    line-height: 1.45;
  }
}

/* The corner icon is the map's only full-screen control. Keep the legacy
   React node hidden so server and client markup remain hydration-safe. */
.map-expand-button {
  display: none !important;
}


/* Mobile: hide the quick-answer strip and make the shortlist modal fit one screen */
.shortlist-modal__dialog { overflow-y: auto; }
@media (max-width: 640px) {
  .quick-answer { display: none; }
  .shortlist-modal__intro { display: none; }
  .shortlist-modal h2 { font-size: 24px; line-height: 1.15; padding-right: 40px; }
  .shortlist-modal__eyebrow { font-size: 10px; margin: 0 44px 6px 0; }
  .shortlist-modal__dialog { padding: 34px 14px 14px; }
}
