/* DriveQuery map UI unification v722 */
.charging-map-shell{
  --dq-map-side:360px;
}
.map-controls-top{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:end;
  gap:10px!important;
}
.map-controls-top .map-field{
  flex:1 1 145px;
  min-width:0;
}
.map-controls-top .map-field:first-child{
  flex:1.7 1 235px;
}
.map-controls-bottom{
  gap:9px!important;
}
.map-decision-bar{
  display:flex!important;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  padding:12px 16px;
  border-bottom:1px solid var(--line,#dde4ee);
  background:#f7f9fc;
}
.map-decision-label{
  color:var(--muted,#5d6674);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.025em;
  text-transform:uppercase;
}
.map-rank{
  appearance:none;
  border:1px solid #cbd6e4!important;
  border-radius:999px!important;
  background:#fff!important;
  color:var(--ink,#142033)!important;
  padding:8px 13px!important;
  font:inherit;
  font-size:.82rem!important;
  font-weight:800!important;
  line-height:1.15;
  cursor:pointer;
  box-shadow:none!important;
}
.map-rank:hover,
.map-rank.is-active,
.map-rank[aria-pressed="true"]{
  border-color:#173e37!important;
  background:#173e37!important;
  color:#fff!important;
}
.map-rank-note,
.map-zoom-note{
  margin:0!important;
  padding:10px 16px!important;
  border-bottom:1px solid var(--line,#dde4ee);
  background:#fff!important;
  color:var(--muted,#5d6674)!important;
  font-size:.78rem!important;
  line-height:1.45!important;
}
.map-rank-note + .map-zoom-note{
  background:#fbfcfe!important;
}

/* Native fullscreen and robust fallback both use the full map shell. */
.charging-map-shell:fullscreen,
.charging-map-shell:-webkit-full-screen,
.charging-map-shell.dq-map-shell-fullscreen{
  width:100vw!important;
  height:100vh!important;
  max-width:none!important;
  max-height:none!important;
  min-height:100vh!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#fff!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) var(--dq-map-side)!important;
  overflow:hidden!important;
}
.charging-map-shell.dq-map-shell-fullscreen{
  position:fixed!important;
  inset:0!important;
  z-index:2147483000!important;
}
.charging-map-shell:fullscreen .charging-map-main,
.charging-map-shell:-webkit-full-screen .charging-map-main,
.charging-map-shell.dq-map-shell-fullscreen .charging-map-main{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  min-height:0!important;
  height:100%!important;
}
.charging-map-shell:fullscreen [id$="charging-map-canvas"],
.charging-map-shell:-webkit-full-screen [id$="charging-map-canvas"],
.charging-map-shell.dq-map-shell-fullscreen [id$="charging-map-canvas"]{
  flex:1 1 auto!important;
  width:100%!important;
  height:auto!important;
  min-height:260px!important;
  max-height:none!important;
  border-radius:0!important;
}
.charging-map-shell:fullscreen .charging-map-side,
.charging-map-shell:-webkit-full-screen .charging-map-side,
.charging-map-shell.dq-map-shell-fullscreen .charging-map-side{
  min-width:0!important;
  min-height:0!important;
  height:100%!important;
  overflow:hidden!important;
}
.charging-map-shell:fullscreen .map-result-list,
.charging-map-shell:-webkit-full-screen .map-result-list,
.charging-map-shell.dq-map-shell-fullscreen .map-result-list{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:auto!important;
}
body.dq-map-fullscreen-lock{
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
@media(max-width:1050px){
  .map-controls-top .map-field:first-child{flex:1 1 100%}
}
@media(max-width:900px){
  .charging-map-shell:fullscreen,
  .charging-map-shell:-webkit-full-screen,
  .charging-map-shell.dq-map-shell-fullscreen{
    grid-template-columns:1fr!important;
  }
  .charging-map-shell:fullscreen .charging-map-side,
  .charging-map-shell:-webkit-full-screen .charging-map-side,
  .charging-map-shell.dq-map-shell-fullscreen .charging-map-side{
    display:none!important;
  }
}
@media(max-width:720px){
  .map-controls-top{display:grid!important;grid-template-columns:1fr!important}
  .map-controls-top .map-field,
  .map-controls-top .map-field:first-child{width:100%;flex:none}
  .map-decision-bar{align-items:flex-start}
  .map-decision-label{width:100%}
  .map-rank{font-size:.78rem!important;padding:8px 11px!important}
}


/* v724: fullscreen is a compact overlay control inside the map, not a filter-row button. */
[id$="charging-map-canvas"]{position:relative!important}
.dq-map-fullscreen-control{
  position:absolute!important;top:12px!important;right:12px!important;z-index:1200!important;
  width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;
  margin:0!important;padding:0!important;border:1px solid rgba(17,24,39,.22)!important;
  border-radius:8px!important;background:#fff!important;color:#111827!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  box-shadow:0 1px 5px rgba(0,0,0,.22)!important;cursor:pointer!important;line-height:1!important;
  appearance:none!important;-webkit-appearance:none!important;
}
.dq-map-fullscreen-control:hover{background:#f8fafc!important}
.dq-map-fullscreen-control:focus-visible{outline:3px solid rgba(37,99,235,.28)!important;outline-offset:2px!important}
.dq-map-fullscreen-control svg{display:block!important;width:18px!important;height:18px!important;max-width:18px!important;max-height:18px!important;stroke:currentColor!important;fill:none!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important}
@media(max-width:720px){.dq-map-fullscreen-control{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;top:10px!important;right:10px!important}}
