/* Load after style.css. The controller owns pixel board size and uniform zoom;
   the viewport clips overflow instead of stretching the geographic canvas. */
#zone-map.zone-map-dialog{inset:8px;width:min(1100px,calc(100vw - 16px));height:min(760px,calc(100dvh - 16px));max-width:none;max-height:none;overflow:hidden;box-sizing:border-box}
#zone-map .zone-map-content{height:calc(100% - 76px);min-height:0}
#zone-map .zone-map-viewport{height:100%;width:100%;min-height:0;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
#zone-map .zone-map-viewport[data-dragging="true"]{cursor:grabbing}
#zone-map .zone-map-board{position:absolute;inset:auto;transform-origin:50% 50%;will-change:transform}
#zone-map .zone-map-board canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#zone-map .zone-map-marker{width:44px;height:44px;min-width:44px;min-height:44px;transform-origin:center;font-size:25px;touch-action:none}
#zone-map .zone-map-you{width:32px;height:32px;transform-origin:center;z-index:2;pointer-events:none}
#zone-map .zone-map-you-arrow{display:block;width:32px;height:32px;border:0;border-radius:0;background:none;color:#f4cd59;font-size:32px;line-height:1;text-align:center;box-shadow:none;-webkit-text-stroke:1px #fff;text-shadow:-2px 0 #132e38,2px 0 #132e38,0 -2px #132e38,0 2px #132e38;transform-origin:center}
#zone-map .zone-map-you-label{top:36px;padding:2px 7px;border:2px solid #fff3c7;border-radius:5px;background:#f4cd59;color:#132e38;font-size:13px;font-weight:800;line-height:1.35}
#zone-map .zone-map-tools{z-index:4;left:10px;bottom:10px;gap:5px}
#zone-map .zone-map-tools button{min-width:44px;min-height:44px;touch-action:manipulation}
#zone-map .zone-map-tools #zone-map-reset{padding:0 9px}
#zone-map .zone-map-tools #zone-map-locate{padding:0 9px;font-size:12px}
#zone-map .zone-map-destination{box-sizing:border-box;z-index:5;touch-action:pan-y;overscroll-behavior:contain}
#zone-map .zone-map-dismiss{width:44px;height:44px;min-height:44px;right:0;top:0}
#zone-map .zone-map-destination h3{margin-right:30px}
#zone-map .zone-map-destination .primary-button{min-height:44px;touch-action:manipulation}
#zone-map .zone-map-guide{bottom:66px;max-width:calc(100% - 24px);white-space:normal;text-align:center}
@media(max-width:700px){
 #zone-map.zone-map-dialog .panel-heading{height:70px;padding:12px 14px}
 #zone-map .zone-map-content{height:calc(100% - 70px)}
 #zone-map .zone-map-destination{width:220px;padding:14px}
}
@media(max-height:450px) and (orientation:landscape){
 #zone-map.zone-map-dialog{inset:6px;width:calc(100vw - 12px);height:calc(100dvh - 12px)}
 #zone-map.zone-map-dialog .panel-heading{height:56px;padding:7px 14px}
 #zone-map .zone-map-content{height:calc(100% - 56px)}
}
