/* Shared access lightbox — sample LP concept (dim + centered panel + X). Not header chrome. */
#access-modal{display:none;position:fixed;inset:0;width:100%;height:100%;z-index:80}
#access-modal.is-open{display:block}
#access-modal .lightbox-dim{
  background:rgba(0,0,0,.85);min-height:100%;display:flex;align-items:center;justify-content:center;
  padding:20px 16px;box-sizing:border-box;animation:access-fade .35s ease;
}
/* Rounded shell — overflow hidden so any inner scroll never squares the right edge */
#access-modal .lightbox-content{
  position:relative;background:#fff;color:#182244;border-radius:12px;
  width:min(400px,100%);max-height:min(92vh,680px);
  overflow:hidden;
  box-shadow:0 16px 48px rgba(0,0,0,.35);
  animation:access-slide .35s ease;
}
#access-modal .lightbox-body{
  overflow:auto;max-height:min(92vh,680px);
  padding:18px 20px 16px;
  box-sizing:border-box;
  scrollbar-gutter:auto;
}
#access-modal .lightbox-kicker{font-size:.7rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#4CAF50;margin-bottom:4px}
#access-modal .lightbox-title{font-size:1.2rem;font-weight:800;line-height:1.2;margin:0 0 10px;color:#182244;padding-right:28px}
#access-modal .lightbox-close{
  position:absolute;top:8px;right:8px;width:32px;height:32px;padding:0;border:0;background:transparent;
  cursor:pointer;border-radius:50%;z-index:2;
}
#access-modal .lightbox-close:hover{background:rgba(24,34,68,.06)}
#access-modal .lightbox-close svg{display:block;margin:3px}
#access-modal .lead-form .field{margin-bottom:8px}
#access-modal .lead-form label{display:block;font-size:.8rem;font-weight:700;margin-bottom:3px;color:#182244}
#access-modal .lead-form input,#access-modal .lead-form select{
  width:100%;padding:8px 10px;border:1px solid rgba(24,34,68,.12);border-radius:8px;
  font:inherit;font-size:.95rem;color:#182244;background:#fff;box-sizing:border-box;min-height:2.5rem
}
#access-modal .lead-form .btn-block{width:100%;margin-top:6px}
#access-modal .note.form-min-note{color:#182244;font-weight:800;font-size:.98rem;line-height:1.3;margin:6px 0 8px}
#access-modal .recaptcha-host,#access-modal #recaptcha-host-modal{margin:6px 0 4px;transform:scale(.92);transform-origin:left top;min-height:0}
body.access-modal-open{overflow:hidden}
body.has-access-modal form.lead-form{display:none!important}
body.has-access-modal #access-modal form.lead-form,
body.has-access-modal #access-bottom form.lead-form,
body.has-access-modal #gate form.lead-form,
body.has-access-modal #gate-lead-form,
body.has-access-modal #map-listings-gate form.lead-form,
body.has-access-modal .map-cards-gate form.lead-form,
body.has-access-modal #detail.map-listings-detail form.lead-form{display:block!important}
/* Contact is NOT form.lead-form; these id/class rules are a safety net only. */
body.has-access-modal #contact-lead-form,
body.has-access-modal form.contact-form{display:grid!important}
@keyframes access-fade{from{opacity:0}to{opacity:1}}
@keyframes access-slide{from{transform:translateY(-16px);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){
  #access-modal .lightbox-dim,#access-modal .lightbox-content{animation:none}
}
@media (min-height:780px){
  #access-modal .lightbox-content,#access-modal .lightbox-body{max-height:none;overflow:hidden}
  #access-modal .lightbox-body{overflow:visible}
}
#access-modal .btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:.7rem 1.2rem;min-height:2.65rem;border:0;border-radius:10px;
  font-family:inherit;font-weight:700;font-size:1rem;line-height:1.2;
  cursor:pointer;text-decoration:none!important
}
#access-modal .btn-green{background:#4CAF50;color:#fff!important}
#access-modal .btn-green:hover{background:#3D9A41}
