.map-measure{margin:0 0 24px;padding:18px;border:1px solid #c8d3dc;border-radius:12px;background:#f4f8fa}
.map-open{width:100%;min-height:52px;padding:12px 18px;border:1px solid #23445c;border-radius:8px;background:#17364c;color:#fff;font-weight:750;text-align:left}
.map-panel[hidden]{display:none}
.map-panel{padding-top:18px}
.map-intro,.map-hint{font-size:14px;color:#40586a;line-height:1.5}
.map-search{display:flex;align-items:end;gap:10px;margin:12px 0}
.map-search label{flex:1;min-width:0;font-size:13px;font-weight:700}
.map-autocomplete{display:block;position:relative;width:100%;margin-top:7px}
.map-autocomplete gmp-place-autocomplete{display:block;width:100%;min-height:48px;border:1px solid #8296a5;border-radius:0;font-size:16px;font-weight:400;color-scheme:light;background:#fff;color:#10283e;--gmp-mat-color-surface:#fff;--gmp-mat-color-primary:#17364c}
.map-autocomplete gmp-place-autocomplete::part(input){min-height:46px;padding-right:48px;border:0;border-radius:0;box-shadow:none;background:transparent;color:#10283e}
.map-autocomplete gmp-place-autocomplete::part(focus-ring){border-radius:0}
.map-search-icon{position:absolute;top:50%;right:15px;width:20px;height:20px;transform:translateY(-50%);fill:none;stroke:#40586a;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.map-search input{display:block;width:100%;min-height:48px;margin-top:7px;padding:10px 12px;border:1px solid #8296a5;border-radius:7px;background:#fff;color:#10283e}
.map-search button,.map-tools button{min-height:46px;padding:9px 14px;border:1px solid #8da4b4;border-radius:7px;background:#fff;color:#17364c;font-weight:700}
.map-tools button[aria-pressed=true]{background:#17364c;color:#fff;border-color:#17364c}
.map-status{min-height:24px;margin:8px 0;color:#415869;font-size:13px}
.map-canvas{position:relative;width:100%;height:clamp(320px,45vw,510px);border:1px solid #bccbd5;border-radius:8px;background:#d9e2e8}
.map-gate-ghost{position:absolute;left:50%;top:50%;z-index:5;width:38px;height:38px;transform:translate(-50%,-50%);filter:drop-shadow(0 2px 3px #10283e99);pointer-events:none;user-select:none}
.map-gate-ghost[hidden]{display:none}
.map-tools{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.map-gate-tools{margin:9px 0;padding:10px;border:1px solid #cadbd1;border-radius:8px;background:#f3faf5;color:#17364c}
.map-gate-tools>strong{display:block;margin-bottom:6px;font-size:13px}
.map-gate-tools>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.map-gate-tools>div button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:5px 9px;border:1px solid #26834a;border-radius:6px;background:#fff;color:#176339;font-weight:700}
.map-gate-tools>div button svg{width:32px;height:32px;flex:none}
.map-gate-tools>div button[aria-pressed=true]{background:#176339;color:#fff}
.map-gate-tools>div button:disabled{opacity:.5;cursor:not-allowed}
.map-gate-tools small{display:block;margin-top:6px;line-height:1.3;color:#486252}
.map-gate-tools ol{margin:6px 0 0;padding:0;list-style:none}
.map-gate-tools li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 0;border-top:1px solid #d4e4d8;font-size:12px}
.map-gate-actions{display:flex;gap:8px;flex:none}
.map-gate-tools li button{padding:3px 6px;border:0;background:transparent;color:#a7232a;text-decoration:underline;cursor:pointer}
.map-gate-tools li button[data-map-gate-move]{color:#176339}
.map-gate-dialog{width:min(360px,calc(100vw - 32px));padding:22px;border:1px solid #b7c8d4;border-radius:10px;background:#fff;color:#10283e;box-shadow:0 12px 36px #10283e44}
.map-gate-dialog::backdrop{background:#10283e88}
.map-gate-dialog h3{margin:0 0 20px;font-size:18px}
.map-gate-dialog>div{display:flex;justify-content:flex-end;gap:10px}
.map-gate-dialog button{min-height:42px;padding:8px 14px;border:1px solid #9baebd;border-radius:6px;background:#fff;color:#17364c;font-weight:700}
.map-gate-dialog button[data-map-gate-confirm]{border-color:#b92732;background:#b92732;color:#fff}
.map-hint{margin:0 0 12px}
.map-privacy{margin:0 0 14px;color:#40586a;font-size:12px;line-height:1.5}
.map-privacy a{color:#175d83;text-decoration:underline}
.map-results{display:flex;align-items:start;justify-content:space-between;gap:14px;padding:12px 0;border-top:1px solid #ccd8e0}
.map-results strong{white-space:nowrap;color:#10283e}
.map-results ol{display:flex;flex-wrap:wrap;gap:7px 20px;margin:0;padding-left:22px;color:#40586a;font-size:13px}
.map-apply{width:100%}
@media(max-width:700px){.map-measure{padding:12px}.map-search{flex-direction:column;align-items:stretch}.map-search button{width:100%}.map-canvas{height:min(58vh,430px);min-height:300px}.map-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.map-tools button{padding:9px 6px;font-size:12px}.map-results{flex-direction:column}}
@media print{.map-measure{display:none}}
@media(pointer:coarse){
 .map-gate-tools>div button,.map-gate-tools li button{min-height:44px}
 .map-gate-tools li button{min-width:44px}
 .map-tools button,.map-open,.map-apply{touch-action:manipulation}
 .map-canvas{overscroll-behavior:contain}
}
@media(prefers-reduced-motion:reduce){.map-measure *{scroll-behavior:auto!important}}
