.map-canvas.is-three>#map,.map-canvas.is-three>.map-tools,.map-canvas.is-three>.map-compass,.map-canvas.is-three>.map-note{display:none}
.map-three{position:absolute;inset:0;overflow:hidden;background:#e8ece6;color:#34454f;container-type:inline-size}
.three-viewport{position:absolute;inset:0}
.three-viewport canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-3px;cursor:grab}
.three-viewport canvas:active{cursor:grabbing}
/* One shared control surface. It wraps as a single panel on narrow maps. */
.three-toolbar{z-index:4;position:absolute;top:12px;left:12px;display:flex;align-items:center;gap:5px;width:max-content;max-width:calc(100% - 24px);padding:5px;background:#fffffff5;border:1px solid #d2dade;border-radius:6px;box-shadow:0 2px 8px #273c4912}
.three-view-controls,.three-navigation{display:flex;align-items:center;gap:2px;min-width:0}
.three-navigation{border-left:1px solid #dde3e6;padding-left:5px}
.three-toolbar button{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:34px;padding:5px;border:0;border-radius:3px;background:transparent;color:#405460;line-height:1}
.three-toolbar button:hover,.three-settings summary:hover{background:#eef3f6}
.three-toolbar .three-preset{font-size:12px;font-weight:600;padding:5px 9px;white-space:nowrap}
.three-toolbar [aria-pressed=true]{background:#e8f1fa;color:#0d5fa6;box-shadow:inset 0 -2px #0f6cbd}
.three-toolbar button:disabled{opacity:.4;cursor:default;background:transparent;box-shadow:none}
.three-toolbar button:focus-visible,.three-settings summary:focus-visible,.three-selected button:focus-visible,.three-footer button:focus-visible{outline:2px solid #0f6cbd;outline-offset:2px}
.three-toolbar .ui-icon,.three-selected .ui-icon{width:16px;height:16px}
.three-toolbar [data-three=right] .ui-icon{transform:scaleX(-1)}
.three-pan{margin-left:4px}
.three-control-divider{height:17px;border-left:1px solid #dde3e6;margin:0 3px}
.three-zoom{font-size:11px;min-width:34px;text-align:center;color:#65757e;font-variant-numeric:tabular-nums}
.three-settings{position:relative;flex:none;border-left:1px solid #dde3e6;padding-left:5px;font-size:12px;color:#405460}
.three-settings summary{display:flex;align-items:center;gap:4px;padding:5px 7px;min-height:34px;cursor:pointer;border-radius:3px;font-weight:600;list-style:none}
.three-settings summary::-webkit-details-marker{display:none}
.three-settings summary .ui-icon{width:12px;height:12px}
.three-settings[open] summary{background:#e8f1fa;color:#0d5fa6}
.three-settings>div{position:absolute;z-index:4;top:calc(100% + 12px);right:-5px;width:242px;max-width:calc(100cqw - 24px);padding:10px 12px;border:1px solid #d2dade;border-radius:6px;background:#fff;box-shadow:0 5px 20px #273c4920}
.three-settings label{display:flex;align-items:center;gap:9px;min-height:34px;font-size:12px;cursor:pointer;color:#405460}
.three-settings input{width:15px;height:15px;margin:0;accent-color:#0f6cbd}
.three-settings p{font-size:11px;line-height:1.5;color:#66757c;margin:7px 0 2px;padding-top:8px;border-top:1px solid #e1e6e8}
.three-settings .three-export{width:100%;gap:6px;margin-top:8px;justify-content:flex-start;font-size:12px;font-weight:600;min-height:38px;padding:8px 10px;border:1px solid #d2dade}
/* The dossier holds detail; this compact address strip provides a clear deselection action. */
.three-selected{z-index:2;position:absolute;bottom:48px;left:12px;display:flex;align-items:center;gap:14px;max-width:calc(100% - 24px);min-height:36px;padding:3px 5px 3px 10px;background:#fffffff5;border:1px solid #c1d2e0;border-left:3px solid #0f6cbd;border-radius:4px;box-shadow:0 2px 8px #273c4912}
.three-selected strong{display:block;font-size:12px;line-height:1.4;font-weight:600;color:#28495f}
.three-selected button{display:grid;place-items:center;width:30px;height:30px;padding:5px;flex:none;border:0;border-radius:3px;background:transparent;color:#607485}
.three-selected button:hover{background:#eef3f6}
.three-hover{position:absolute;z-index:3;max-width:228px;padding:9px 12px;background:#fffffff5;border:1px solid #d2dade;border-radius:4px;box-shadow:0 3px 12px #273c491c;pointer-events:none;color:#34454f}
.three-hover strong,.three-hover span,.three-hover small{display:block;line-height:1.5}
.three-hover strong{font-size:12px}.three-hover span{font-size:11px}.three-hover small{font-size:10px;color:#63727c}
.three-hover.has-warning{border-left:3px solid #b17b2d}.three-hover.has-warning small{color:#805814}
.three-footer{position:absolute;bottom:0;left:0;right:0;display:flex;flex-wrap:wrap;gap:3px 12px;justify-content:space-between;align-items:center;padding:7px 12px;background:#f7f9f8ed;border-top:1px solid #dbe2df;line-height:1.5}
.three-footer>span{font-size:10px;color:#56676e;max-width:100%}
.three-footer button{background:none;border:0;border-bottom:1px solid #aab9bf;padding:0;color:#526873;font-size:10px;text-align:left;cursor:pointer}
.three-loading{z-index:5;position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;text-align:center;padding:28px;background:#e8ece6}
.three-loading strong{font-size:18px;font-weight:650;color:#34454f}.three-loading p{max-width:330px;font-size:13px;line-height:1.6;color:#596b74;margin:0}
.three-loading>div{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:8px}.three-loading button{font-size:12px;min-height:38px}
.three-spinner{width:26px;height:26px;border:3px solid #d2dade;border-top-color:#0f6cbd;border-radius:50%;animation:three-spin 1s linear infinite}
@keyframes three-spin{to{transform:rotate(360deg)}}
/* Plain, roof-aligned number text; only the selected address gets a small blue-edged label. */
.three-labels{z-index:1;position:absolute;inset:0;overflow:hidden;pointer-events:none;user-select:none}
.three-house-number,.three-street-name{position:absolute;left:0;top:0;display:flex;align-items:center;justify-content:center;white-space:nowrap;box-sizing:border-box;pointer-events:none}
.three-house-number{font-size:11px;font-weight:650;line-height:1;color:#34414a;font-variant-numeric:tabular-nums;text-shadow:0 1px 1px #ffffffc9,-1px 0 1px #ffffffa6,1px 0 1px #ffffffa6}
.three-house-number.is-selected{z-index:2;color:#0b5fa8;background:#fff;border:1.5px solid #0f6cbd;border-radius:3px;text-shadow:none}
.three-street-name{height:18px;font-size:12px;line-height:18px;font-weight:600;color:#465a67;text-shadow:-1px -1px 0 #f3f5f4,1px -1px 0 #f3f5f4,-1px 1px 0 #f3f5f4,1px 1px 0 #f3f5f4,0 0 3px #fff;letter-spacing:.1px;transform-origin:center}
.three-label-hint{color:#436679}
.three-compass{position:absolute;right:16px;top:70px;z-index:2;width:24px;height:42px;display:flex;align-items:center;flex-direction:column;gap:1px;pointer-events:none;color:#536974;text-shadow:0 1px 2px #fff}
.three-compass span{font-size:10px;font-weight:650}.three-compass i{font-size:24px;line-height:27px;font-style:normal;transform-origin:center}
@container(max-width:560px){.three-toolbar{display:grid;grid-template-columns:1fr auto;gap:3px 5px;top:8px;left:8px;max-width:calc(100% - 16px)}.three-view-controls{grid-column:1;grid-row:1}.three-settings{grid-column:2;grid-row:1}.three-navigation{grid-column:1 / -1;grid-row:2;border-left:0;border-top:1px solid #e1e6e8;padding:3px 0 0}.three-pan{margin-left:auto}.three-compass{top:116px;right:12px}.three-footer{padding:6px 8px}.three-selected{left:8px;bottom:72px;max-width:calc(100% - 16px)}}
@container(max-width:360px){.three-toolbar .three-preset{padding:5px 6px}.three-settings summary{padding:5px 4px}.three-zoom{display:none}}
@media(pointer:coarse){.three-toolbar button,.three-selected button{min-width:44px;min-height:44px}.three-settings summary,.three-settings label{min-height:44px}.three-footer button{min-height:32px}.three-selected{bottom:84px}}
@media(prefers-reduced-motion:reduce){.three-spinner{animation:none}}
