/* Beta 26: availability results, map flow and county autocomplete.
   Loaded last; scoped to the Book More Leadz public territory component. */
.bml-app .bml-territory-release .bml-territory-result:not([hidden]){
  position:relative!important;clear:both!important;float:none!important;
  width:100%!important;min-height:0!important;height:auto!important;
  box-sizing:border-box!important;overflow:visible!important;
}
.bml-app .bml-territory-release .bml-territory-result-copy{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  align-content:start!important;gap:10px!important;min-width:0!important;width:100%!important;
}
.bml-app .bml-territory-release .bml-territory-result-copy>:is([data-result-location],[data-result-title],[data-result-message]){
  grid-column:1/-1!important;grid-row:auto!important;margin:0!important;max-width:100%!important;
}
.bml-app .bml-territory-release .bml-county-result-list{
  grid-column:1/-1!important;grid-row:auto!important;
}
.bml-app .bml-territory-release .bml-result-actions{
  grid-column:1/-1!important;grid-row:auto!important;display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-flow:row!important;
  grid-auto-columns:minmax(0,1fr)!important;gap:12px!important;
  align-items:stretch!important;justify-content:stretch!important;
  width:100%!important;max-width:none!important;min-width:0!important;
  margin:16px 0 0!important;padding:0!important;
}
.bml-app .bml-territory-release .bml-result-actions>:is(button,a):not([hidden]){
  display:flex!important;position:static!important;grid-column:auto!important;grid-row:auto!important;
  align-items:center!important;justify-content:center!important;align-self:stretch!important;
  min-width:0!important;min-height:50px!important;height:auto!important;max-height:none!important;
  width:100%!important;max-width:none!important;flex:none!important;box-sizing:border-box!important;
  padding:12px 15px!important;white-space:normal!important;line-height:1.3!important;
  margin:0!important;border-radius:10px!important;text-align:center!important;
  transform:none!important;
}
.bml-app .bml-territory-release .bml-result-actions>:is(button,a)[hidden]{display:none!important}
/* A two-action available result uses two equal columns, not an empty third slot. */
.bml-app .bml-territory-release .bml-result-actions:not(:has(>.bml18-special:not([hidden]))){grid-template-columns:repeat(2,minmax(0,1fr))!important}
/* The county list is portalled to body, outside clipped cards. */
body>.bml24-county-suggestions{
  position:fixed!important;left:0;top:0;right:auto!important;bottom:auto!important;
  z-index:2147483000!important;box-sizing:border-box!important;max-height:min(310px,55dvh)!important;
  overflow-y:auto!important;overscroll-behavior:contain;border:1px solid #c5d8e1;
  border-radius:12px;background:white;box-shadow:0 16px 40px #132a3d3d;
  -webkit-overflow-scrolling:touch;padding:6px;
}
body>.bml24-county-suggestions[hidden]{display:none!important}
/* Preserve the site's typography even though autocomplete suggestions are portalled to body.
   The JS reads the live font from the original county input, so brand changes are respected. */
body>.bml24-county-suggestions{
  font-family:var(--bml22-public-body,var(--lcos-font,"DM Sans",system-ui,sans-serif));
}
body>.bml24-county-suggestions .bml24-county-option,
body>.bml24-county-suggestions .bml24-county-empty{
  font-family:inherit!important;
}
body>.bml24-county-suggestions .bml24-county-option{
  display:block;width:100%;min-height:44px;padding:11px 14px;color:#16384b;
  text-align:left;font-size:14px;line-height:1.35;white-space:normal;
}
.bml-app .bml-territory-release [data-territory-county],
.bml-app .bml-territory-release .bml-territory-form,
.bml-app .bml-territory-release .bml-form-grid{overflow:visible!important}
/* The map participates in normal document flow; no covering the result card or footer. */
.bml-app .bml-territory-release .bml-map-stage{
  box-sizing:border-box!important;position:relative!important;float:none!important;
  min-height:0!important;height:auto!important;max-height:none!important;
  min-width:0!important;max-width:100%!important;overflow:visible!important;
  align-self:start!important;
}
.bml-app .bml-territory-release .bml-v1-map-interactive:not([hidden]){
  display:block!important;position:relative!important;inset:auto!important;
  max-height:none!important;box-sizing:border-box!important;overflow:hidden!important;
  margin:14px 0 0!important;
}
.bml-app .bml-territory-release .bml-v1-map-interactive-canvas{
  display:block!important;position:relative!important;box-sizing:border-box!important;
  min-height:0!important;width:100%!important;max-width:100%!important;
  height:clamp(245px,34vw,390px)!important;overflow:hidden!important;
}
.bml-app .bml-territory-release .bml-v1-map-toolbar{margin:12px 0 0!important;gap:12px!important}
.bml-app .bml-territory-release .bml-v1-map-toolbar button{min-height:44px!important}
@media (min-width:900px){
 .bml-app .bml-territory-release .bml-territory-result:not([hidden]){
   grid-column:1/-1!important;grid-row:2!important;display:grid!important;
   grid-template-columns:68px minmax(0,1fr)!important;gap:18px!important;align-items:start!important;
 }
 .bml-app .bml-territory-release .bml-territory-result-copy{grid-template-columns:minmax(0,1fr)!important}
 .bml-app .bml-territory-release .bml-v1-map-interactive-canvas{height:385px!important}
}
@media (max-width:899px){
 .bml-app .bml-territory-release .bml-territory-layout{
   display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:17px!important;
 }
 .bml-app .bml-territory-release .bml-territory-copy{grid-column:1!important;grid-row:auto!important;min-width:0!important}
 .bml-app .bml-territory-release .bml-map-stage.bml21-searched{
   grid-column:1!important;grid-row:auto!important;width:100%!important;
   display:block!important;margin:0!important;padding:12px!important;
   border:1px solid #d9e6ec!important;border-radius:18px!important;
 }
 .bml-app .bml-territory-release .bml-map-stage.bml22-map-active{
   min-height:0!important;height:auto!important;padding:12px!important;
 }
 .bml-app .bml-territory-release .bml-v1-map-interactive-canvas{
   min-height:0!important;height:clamp(240px,68vw,345px)!important;
 }
 .bml-app .bml-territory-release .bml-territory-result:not([hidden]){
   display:grid!important;grid-column:1!important;grid-row:auto!important;
   grid-template-columns:minmax(0,1fr)!important;align-items:start!important;
   padding:18px!important;margin:0 0 15px!important;
 }
 .bml-app .bml-territory-release .bml-territory-result .bml-result-icon{
   position:static!important;grid-row:auto!important;justify-self:start!important;
 }
 .bml-app .bml-territory-release .bml-territory-result-copy{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
 .bml-app .bml-territory-release .bml-result-actions{
   grid-template-columns:repeat(2,minmax(0,1fr))!important;
   grid-auto-rows:minmax(50px,auto)!important;gap:10px!important;
 }
 .bml-app .bml-territory-release .bml-result-actions>:is(button,a):not([hidden]){min-height:52px!important;padding:12px 9px!important}
 .bml-app .bml-territory-release .bml-result-actions:has(>.bml18-special:not([hidden]))>:is(button,a):not([hidden]):last-child{
   grid-column:1/-1!important;
 }
}
@media (max-width:355px){
 .bml-app .bml-territory-release .bml-result-actions>:is(button,a):not([hidden]){font-size:12px!important;padding:11px 7px!important}
}
