.wrap{width:100%;min-width:0}
.filters>div{min-width:0}.filters select{max-width:100%}
body.smart-page .territory-workspace{padding:0}
.territory-search{padding:20px 22px;border-bottom:1px solid var(--line)}
.territory-map-card{margin:0;padding:0;overflow:hidden}
body.smart-page .territory-workspace>.result{margin:0;padding:22px;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none}
.map-selected-place{position:absolute;top:15px;left:16px;z-index:2;display:flex;align-items:center;gap:8px;max-width:calc(100% - 88px);padding:10px 12px;border:1px solid #d9e3f1;border-radius:9px;background:#fff;box-shadow:0 3px 12px #25436a14;color:#172b47;font-size:14px;font-weight:700;line-height:1.4;overflow-wrap:anywhere;pointer-events:none}
.map-selected-place::before{content:"";width:6px;height:6px;flex:none;border-radius:50%;background:var(--selected-status-color,#475467)}
.map-selected-place[hidden]{display:none}
.map-legend{display:flex;flex-wrap:wrap;gap:7px;padding:14px 22px}
.map-legend button{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #d9e1ec;border-radius:8px;padding:8px 10px;font-size:12px;font-weight:600;text-align:left;line-height:1.35}
.map-legend button:hover{background:#f7f9fc;border-color:#98a2b3}
.map-legend button[aria-pressed=false]{opacity:.48;text-decoration:line-through}
.map-legend .swatch{width:12px;height:12px;flex:none;border-radius:3px;background:var(--status-color);border:1px solid #0002}
.map-legend .legend-count{color:#667085;font-variant-numeric:tabular-nums}
.territory-map{height:580px;min-height:360px;background:#e8edf2;position:relative}
.territory-map canvas:focus-visible{outline:3px solid #155eef;outline-offset:-3px}
.map-loading{position:absolute;inset:0;display:grid;place-content:center;padding:30px;text-align:center;color:#475467;font-size:15px;line-height:1.6}
.place-search{position:relative;margin-bottom:16px}
.place-search input{width:100%;min-height:46px;border:1px solid #b8c3d3;border-radius:10px;font-size:16px;padding:10px 13px;background:#fff;color:var(--text)}
.place-search input:focus{outline:3px solid #155eef29;border-color:#155eef}
.search-results{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid var(--line);border-radius:10px;max-height:320px;overflow:auto;z-index:10;box-shadow:var(--shadow)}
.search-results[hidden]{display:none}.search-results button{width:100%;display:block;text-align:left;border-radius:0;background:#fff;border-bottom:1px solid #edf0f5;padding:11px 13px;font-size:14px;font-weight:650}
.search-results button:hover,.search-results button:focus{background:#edf3ff}.search-results small{display:block;font-size:12px;color:#667085;font-weight:400;margin-top:3px}.search-message{padding:13px;font-size:14px;color:#667085}
.result:focus{outline:none}
/* Keep map controls distinct from the shared site's primary action buttons. */
body.smart-page .map-legend button{min-height:36px;color:#344054;background:#fff;border:1px solid #d9e1ec;border-radius:8px}
body.smart-page .map-legend button:hover{background:#f7f9fc;border-color:#98a2b3}
body.smart-page .search-results button{color:#162033;background:#fff;border-radius:0;border-bottom:1px solid #edf0f5}
body.smart-page .search-results button:hover,body.smart-page .search-results button:focus{background:#edf3ff}
/* Match the controls in the Notaries of Ukraine directory. */
.territory-map .maplibregl-ctrl-bottom-right{bottom:12px;right:8px}
.territory-map .maplibregl-ctrl-attrib{font-size:8px;background:#ffffffc9}
.territory-map .maplibregl-ctrl-attrib,.territory-map .maplibregl-ctrl-attrib a{color:#52627a;font-weight:600}
body.smart-page .territory-map .maplibregl-ctrl-group button{background:transparent;color:#172b47;width:29px;height:29px;min-height:29px;border-radius:0;padding:0}
body.smart-page .territory-map .maplibregl-ctrl-group button+button{border-top:1px solid #ddd}
body.smart-page .territory-map .maplibregl-ctrl-group button:first-child{border-radius:4px 4px 0 0}
body.smart-page .territory-map .maplibregl-ctrl-group button:last-child{border-radius:0 0 4px 4px}
body.smart-page .territory-map .maplibregl-ctrl-group button:only-child{border-radius:4px}
body.smart-page .territory-map .maplibregl-ctrl-group button:hover{background:#f0f0f0}
.territory-map .map-expand-control{margin:15px 16px 0 0}
body.smart-page .territory-map .map-expand-button{display:flex;align-items:center;justify-content:center;width:36px;height:36px;min-height:36px;padding:0;color:#172b47;background:#fff;border:1px solid #d9e3f1;border-radius:10px;box-shadow:0 3px 12px #25436a14}
body.smart-page .territory-map .map-expand-button:hover{background:#eaf0f9}
.territory-map button:focus-visible,.territory-map summary:focus-visible{outline:3px solid #155eef;outline-offset:2px}
body.smart-page .territory-map-card.map-expanded{position:fixed;inset:0;z-index:2000;margin:0;padding:15px;border:0;border-radius:0;background:#fff;display:flex;flex-direction:column}
.map-expanded .territory-map{flex:1;min-height:0;border-radius:12px}
.map-message{position:absolute;bottom:40px;left:10px;max-width:calc(100% - 70px);padding:8px 10px;border-radius:6px;background:#fff;color:#475467;font:12px/1.4 sans-serif;box-shadow:0 2px 10px #0002}
@media(max-width:760px){.territory-map .map-expand-control{margin:11px 11px 0 0}.territory-map .maplibregl-ctrl-bottom-right{bottom:10px}.territory-map .maplibregl-ctrl-attrib{font-size:7px}body.smart-page .territory-map .map-expand-button{width:32px;height:34px;min-height:34px}body.smart-page .territory-map-card.map-expanded{padding:8px}body.smart-page .map-expanded .map-expand-button{width:46px;height:38px;min-height:38px}}
@media(max-width:650px){.territory-search,body.smart-page .territory-workspace>.result{padding:16px 15px}.map-selected-place{top:11px;left:11px;font-size:13px;padding:8px 10px;max-width:calc(100% - 78px)}.territory-map{height:480px}.map-legend{padding:12px 15px;display:grid;grid-template-columns:1fr 1fr;gap:6px}.map-legend button{padding:7px;font-size:11px;gap:6px}.map-legend .legend-count{margin-left:auto}.search-results small{line-height:1.5}}
@media print{.territory-map-card,.place-search{display:none}.result{display:block}}
