.panel-title-line{display:contents}
.panel-back-icon,#panel-title-region{display:none}
@media(max-width:767px){
 #panel{--sheet-top-inset:calc(86px + var(--safe-top));position:absolute!important;inset:auto 0 0!important;width:100%!important;height:var(--sheet-height,200px)!important;max-height:calc(var(--visual-height,100dvh) - var(--sheet-top-inset))!important;min-height:0!important;display:flex;flex-direction:column;padding-bottom:var(--safe-bottom);border-radius:12px 12px 0 0;z-index:60;overflow:hidden;transition:height 180ms ease}
 #panel[hidden]{display:none!important}
 #panel[data-dragging=true]{transition:none;user-select:none}
 #panel .panel-heading{flex:none;position:relative;touch-action:none;padding-top:30px!important;cursor:grab}
 #panel[data-dragging=true] .panel-heading{cursor:grabbing}
 #panel #panel-expand{display:flex!important;align-items:center;justify-content:center;position:absolute;top:0;left:50%;transform:translateX(-50%);margin:0;width:88px;height:28px;min-height:28px;padding:0;touch-action:none;cursor:ns-resize}
 #panel #panel-expand span{display:block;width:38px;height:4px;border-radius:2px;background:var(--sec);opacity:.55}
 #panel #panel-close{min-width:44px;min-height:44px}
 /* Municipality navigation shares the title row; the sheet still fits two candidates. */
 #panel[data-compact-municipality] .panel-heading{align-items:center;gap:8px}
 #panel[data-compact-municipality] .panel-heading-copy{display:flex;align-items:center;gap:8px}
 #panel[data-compact-municipality] #panel-kicker,#panel[data-compact-municipality] .panel-back-label{display:none}
 #panel[data-compact-municipality] #panel-back{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:0;padding:0;border-radius:var(--radius-control)}
 #panel[data-compact-municipality] #panel-back:hover{background:var(--alpha-neutral-08);text-decoration:none}
 #panel[data-compact-municipality] .panel-back-icon{display:block;width:20px;height:20px}
 #panel[data-compact-municipality] .panel-title-line{display:block;flex:1;min-width:0;line-height:1.05;overflow-wrap:break-word}
 #panel[data-compact-municipality] #panel-title{display:inline;margin:0}
 #panel[data-compact-municipality] #panel-title-region{display:inline;white-space:nowrap;font:400 15px var(--font-body);color:var(--sec)}
 #panel[data-compact-municipality] #panel-close{margin:0}
 #panel #panel-content{flex:1;min-height:0;height:auto;max-height:none;overflow-y:auto;overscroll-behavior-y:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}
 #panel #panel-footer{flex:none}
 body[data-sheet-position] .map-navigation{bottom:calc(var(--active-sheet-height) + 12px + var(--safe-bottom))!important}
 body[data-sheet-position] #legend{bottom:calc(var(--active-sheet-height) + 12px + var(--safe-bottom))!important;max-height:calc(var(--visual-height,100dvh) - var(--active-sheet-height) - 100px)!important}
 body[data-sheet-position=full] .map-navigation,body[data-sheet-position=full] #legend{visibility:hidden;pointer-events:none}
 body[data-sheet-position] .map-header{z-index:70}
}
@media(prefers-reduced-motion:reduce){#panel{transition:none!important}}
