/* NNB v8.5 – full-size, privacy-conscious My Maps modal.
   The original iframe was rendered at the HTML fallback of 150px despite
   its surrounding container having a min-height. Give the dialog a definite
   height and absolutely fill the flexed iframe stage. */
.nnv-home #mapModal.modal-backdrop {
  position:fixed!important;
  inset:0!important;
  z-index:310!important;
  display:none;
  justify-content:center!important;
  align-items:center!important;
  padding:0!important;
  background:rgba(0,0,0,.84);
  overscroll-behavior:contain;
}
.nnv-home #mapModal.modal-backdrop.open { display:flex!important; }
.nnv-home #mapModal .map-modal {
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  width:90vw!important;
  max-width:90vw!important;
  height:90vh!important;
  height:90dvh!important;
  min-height:0!important;
  max-height:90vh!important;
  max-height:90dvh!important;
  margin:0 auto!important;
  background:#151518!important;
  border:2px solid #ff852d!important;
  border-radius:16px!important;
  overflow:hidden!important;
  box-shadow:0 32px 96px rgba(0,0,0,.78)!important;
}
.nnv-home #mapModal .map-modal-head {
  display:flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:clamp(9px,1.7vw,18px)!important;
  min-height:58px;
  box-sizing:border-box;
  background:#171719;
}
.nnv-home #mapModal .map-modal-head h2 {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:clamp(16px,2.1vw,28px);
  line-height:1.2;
}
.nnv-home #mapModal .map-modal-head .modal-close {
  flex:0 0 42px;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  cursor:pointer;
}
.nnv-home #mapModal .nnb-mymaps-wrap {
  position:relative!important;
  isolation:isolate;
  display:block!important;
  flex:1 1 auto!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  width:100%!important;
  align-self:stretch!important;
  overflow:hidden!important;
  background:#111114!important;
}
.nnv-home #mapModal #nnbMyMapsFrame {
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  min-height:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  box-sizing:border-box!important;
}
.nnv-home #mapModal .nnb-map-foot {
  flex:0 0 auto!important;
  padding:11px 16px!important;
  min-height:44px;
  box-sizing:border-box;
  background:#171719;
}
/* For users who do not want their Google My Maps account exposed, never
   show a direct My Maps viewer link. The court-only external link points
   to the court coordinates in regular Google Maps instead. */
.nnv-home #mapModal #nnbMapExternal[hidden] { display:none!important; }
@media(max-width:680px) {
  .nnv-home #mapModal .map-modal {
    width:96vw!important;
    max-width:96vw!important;
    height:94vh!important;
    height:94dvh!important;
    max-height:94dvh!important;
    border-radius:13px!important;
  }
  .nnv-home #mapModal .map-modal-head { min-height:52px; padding:8px 11px!important; }
  .nnv-home #mapModal .nnb-map-foot { padding:9px 12px!important; font-size:12px; }
}
@media(max-height:500px) and (orientation:landscape) {
  .nnv-home #mapModal .map-modal {height:96dvh!important;max-height:96dvh!important;}
  .nnv-home #mapModal .map-modal-head {min-height:43px;padding:5px 10px!important;}
  .nnv-home #mapModal .nnb-map-foot {min-height:30px;padding:6px 10px!important;}
}
