
/* NILA v21.51 Map Hard Restore */
:root{
  --v51-ink:#071b31;
  --v51-green:#075f3c;
  --v51-blue:#176fc2;
  --v51-line:rgba(7,27,49,.12);
  --v51-muted:#52677f;
}

/* Never let old layers hide map surfaces */
#dirMapCard,
#dirMap,
.v51-map-card,
.v51-map-embed,
.v47-provider-map{
  visibility:visible!important;
  opacity:1!important;
}

body.page-directory #dirMapCard,
body[data-nila-page="directory"] #dirMapCard,
body.v51-directory-page #dirMapCard{
  display:flex!important;
  flex-direction:column!important;
  min-height:360px!important;
  border-radius:24px!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid var(--v51-line)!important;
  box-shadow:0 24px 70px rgba(7,27,49,.10)!important;
}

body.page-directory #dirMap,
body[data-nila-page="directory"] #dirMap,
body.v51-directory-page #dirMap{
  display:block!important;
  min-height:300px!important;
  width:100%!important;
  background:#eaf2fb!important;
}

/* Category pages: hard visible map next to image */
body.v51-category-page #v51CategoryMap{
  display:block!important;
  min-height:320px!important;
  border-radius:24px!important;
  overflow:hidden!important;
  background:#eaf2fb!important;
  border:1px solid var(--v51-line)!important;
  box-shadow:0 24px 70px rgba(7,27,49,.10)!important;
}

body.v51-category-page #v51CategoryMap iframe,
body.v51-category-page .v51-map-embed{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:320px!important;
  border:0!important;
}

body.v51-category-page #v48CategoryHero,
body.v51-category-page #v46CategoryHero{
  display:grid!important;
}

body.v51-category-page .v48-category-main,
body.v51-category-page .v46-category-main{
  grid-template-columns:minmax(280px,.88fr) minmax(400px,1.12fr)!important;
}

/* If earlier code creates blank blue map slot, make sure iframe fills it */
body.v51-category-page .v48-category-map-slot,
body.v51-category-page .v46-category-map,
body.v51-category-page .v36-category-map{
  display:block!important;
  min-height:320px!important;
  border-radius:24px!important;
  overflow:hidden!important;
  background:#eaf2fb!important;
}

body.v51-category-page .v48-category-map-slot iframe,
body.v51-category-page .v46-category-map iframe,
body.v51-category-page .v36-category-map iframe{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:320px!important;
  border:0!important;
}

/* Provider pages: map must be visible in provider view */
body.page-provider .v47-provider-map,
body.page-provider .v51-provider-map{
  display:block!important;
  min-height:300px!important;
  border-radius:24px!important;
  overflow:hidden!important;
  background:#eaf2fb!important;
  border:1px solid var(--v51-line)!important;
  margin-top:18px!important;
}

body.page-provider .v47-provider-map iframe,
body.page-provider .v51-provider-map iframe{
  display:block!important;
  width:100%!important;
  min-height:300px!important;
  height:100%!important;
  border:0!important;
}

@media(max-width:780px){
  body.page-directory #dirMapCard,
  body[data-nila-page="directory"] #dirMapCard,
  body.v51-directory-page #dirMapCard{
    min-height:300px!important;
  }
  body.page-directory #dirMap,
  body[data-nila-page="directory"] #dirMap,
  body.v51-directory-page #dirMap{
    min-height:260px!important;
  }
  body.v51-category-page #v51CategoryMap,
  body.v51-category-page #v51CategoryMap iframe,
  body.v51-category-page .v48-category-map-slot,
  body.v51-category-page .v48-category-map-slot iframe,
  body.v51-category-page .v46-category-map,
  body.v51-category-page .v46-category-map iframe{
    min-height:250px!important;
  }
  body.page-provider .v47-provider-map,
  body.page-provider .v51-provider-map,
  body.page-provider .v47-provider-map iframe,
  body.page-provider .v51-provider-map iframe{
    min-height:240px!important;
  }
}
