.map-holder .map-expand-trigger{position:absolute;top:10px;right:10px;z-index:25;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:9px 12px;border:1px solid #c9d9e9;border-radius:6px;background:#fff;color:#164b88;box-shadow:0 2px 8px #15345112;font:600 13px/1.4 Arial,Helvetica,sans-serif;cursor:pointer}
.map-expand-trigger svg{width:17px;height:17px;flex:0 0 17px}
.map-expand-trigger:focus-visible,#expanded-map-close:focus-visible{outline:3px solid #377fc5;outline-offset:3px}
#expanded-map-dialog{box-sizing:border-box;position:fixed;inset:0;width:100%;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0 0 env(safe-area-inset-bottom,0px);border:0;border-radius:0;background:#fff;color:#153451;overflow:hidden}
#expanded-map-dialog[open]{display:flex;flex-direction:column}
#expanded-map-dialog::backdrop{background:#071a2bb8}
.expanded-map-toolbar{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:12px;padding:calc(8px + env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) 8px max(12px,env(safe-area-inset-left,0px));border-bottom:1px solid #dce7f2;background:#f6f9fd}
.expanded-map-toolbar h2{margin:0;color:#164b88;font:600 15px/1.4 Arial,Helvetica,sans-serif}
#expanded-map-close{flex:0 0 auto;min-width:80px;min-height:44px;padding:9px 13px;border:1px solid #c9d9e9;border-radius:6px;background:#fff;color:#164b88;font:600 14px/1.4 Arial,Helvetica,sans-serif;cursor:pointer}
#expanded-map-dialog .map-shell{display:flex;flex:1 1 auto;flex-direction:column;width:100%;min-height:0;border:0;border-radius:0;box-shadow:none}
#expanded-map-dialog .map-topbar{flex:0 0 auto;flex-wrap:wrap}
#expanded-map-dialog .map-title{flex:1 1 100px;overflow-wrap:anywhere}
#expanded-map-dialog .place-picker{flex:0 0 auto;flex-direction:row;align-items:center;gap:10px;padding:10px 12px}
#expanded-map-dialog .place-picker label{flex:0 0 auto;font-size:12px}
#expanded-map-dialog .place-picker select{flex:1 1 auto;min-width:0;width:auto;color:#153451;background-color:#fff;color-scheme:light}
#expanded-map-dialog .place-picker option{color:#153451;background-color:#fff}
#expanded-map-dialog .map-holder{flex:1 1 auto;height:auto;min-height:0}
#expanded-map-dialog #map{min-height:0;height:100%}
#expanded-map-dialog .map-expand-trigger{display:none}

/* In-dialog location list avoids native desktop popup rendering problems. */
.expanded-location-picker{display:none}
@media(min-width:601px){
 #expanded-map-dialog .has-expanded-location-picker>.place-picker{display:none}
 #expanded-map-dialog .expanded-location-picker{display:flex;flex:0 0 auto;align-items:center;gap:10px;padding:10px 12px;background:#fff}
 .expanded-location-picker>span{flex:0 0 auto;color:#164b88;font:12px/1.5 Arial,sans-serif}
 .expanded-location-field{position:relative;flex:1 1 auto;min-width:0}
 .expanded-location-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:10px 12px;border:1px solid #c9d9e9;border-radius:5px;background:#fff;color:#153451;text-align:left;font:16px/1.4 Arial,sans-serif;cursor:pointer}
 #expanded-location-value{min-width:0;overflow-wrap:anywhere}
 .expanded-location-options:not([hidden]){display:block;position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:60;max-height:min(320px,45dvh);overflow-y:auto;overscroll-behavior:contain;border:1px solid #b8cce0;border-radius:6px;background:#fff;box-shadow:0 6px 20px #15345126;padding:4px}
 .expanded-location-options button{display:block;width:100%;min-height:40px;padding:9px 12px;border:0;border-radius:4px;background:#fff;color:#153451;text-align:left;white-space:normal;font:15px/1.4 Arial,sans-serif;cursor:pointer}
 .expanded-location-options button:hover,.expanded-location-options button:focus{background:#eaf3fc;color:#164b88;outline:0}
 .expanded-location-options button[aria-selected="true"]{background:#edf5fc;font-weight:700}
 .expanded-location-toggle:focus-visible{outline:3px solid #377fc5;outline-offset:3px}
}
