/* Local map of directory offices. All rules are scoped to dm-* components. */
.dm-heading{margin:1rem 0;font-size:clamp(1.3rem,2vw,1.7rem)}
.dm-filters{display:grid;gap:1rem;grid-template-columns:minmax(0,1fr);margin-bottom:1rem}
.dm-search input{width:100%;min-height:44px;box-sizing:border-box}
.dm-search-row{display:flex;align-items:stretch;gap:.6rem}
.dm-search-row input{min-width:0;flex:1}
.dm-search-row .button{flex:none;min-height:44px}
.dm-search-hint{margin:.5rem 0 0;line-height:1.5}
.dm-search-feedback{margin:.65rem 0 0;line-height:1.5;font-weight:500}
.dm-search>.button{margin-top:.4rem}
.dm-layers{display:flex;flex-wrap:wrap;gap:.6rem 1.2rem;border:0;padding:0;margin:0;min-width:0}
.dm-layers legend{font-size:.875rem;font-weight:700;margin-bottom:.5rem}
.dm-layer{display:inline-flex;align-items:center;gap:.45rem;min-height:44px;font-size:.875rem;cursor:pointer}
.dm-layer input{width:18px;height:18px;accent-color:#0056ac}
.dm-key{width:12px;height:12px;border-radius:50%;display:inline-block;border:2px solid #fff;box-shadow:0 0 0 1px #445366;background:#0056ac;flex:none}
.dm-poltur .dm-key{background:#006b58}
.dm-toolbar{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.6rem;align-items:center}
.dm-toolbar .button{min-width:44px;min-height:44px;padding:.55rem .8rem}
.dm-toolbar .button:disabled{opacity:.45;cursor:default}
.dm-toolbar .dm-locate{white-space:normal}
.dm-geolocation-status{margin:.25rem 0 .8rem;line-height:1.5;color:#34445a}
.dm-geolocation-status:empty{display:none}
.dm-user-layer{pointer-events:none}
.dm-user-halo{fill:#f1e6fc;fill-opacity:.85;stroke:#6f2da8;stroke-width:2;vector-effect:non-scaling-stroke}
.dm-user-dot{fill:#6f2da8;stroke:#fff;stroke-width:2;vector-effect:non-scaling-stroke}
.dm-user-cross{fill:none;stroke:#6f2da8;stroke-width:2;stroke-linecap:round;vector-effect:non-scaling-stroke}
.dm-svg{display:block;width:100%;height:480px;max-height:65vh;min-height:320px;background:#f0f7fb;border:1px solid #cddbe5;border-radius:8px;touch-action:pan-y;cursor:grab}
.dm-svg.dm-touch-active{touch-action:none}
.dm-svg:active{cursor:grabbing}
.dm-svg:focus-visible{outline:3px solid #0056ac;outline-offset:3px}
.dm-region{fill:#e0e7df;stroke:#fff;stroke-width:1;vector-effect:non-scaling-stroke}
.dm-region.is-active{fill:#bcd6e7;stroke:#7da3c0;stroke-width:1.3}
.dm-marker{cursor:pointer;outline:none}
.dm-hit{fill:transparent;stroke:none}
.dm-pin{fill:#0056ac;stroke:#fff;stroke-width:2;vector-effect:non-scaling-stroke;pointer-events:none}
.dm-poltur .dm-pin{fill:#006b58}
.dm-cluster .dm-pin{fill:#253c55}
.dm-cluster-count{font-family:Roboto,Arial,sans-serif;font-weight:700;fill:#fff;pointer-events:none}
.dm-marker.is-selected .dm-pin{stroke:#ffbf47;stroke-width:4}
.dm-marker:focus-visible .dm-pin{stroke:#ffbf47;stroke-width:4}
.dm-marker:focus-visible .dm-hit{stroke:#172b4d;stroke-width:2;vector-effect:non-scaling-stroke}
.dm-instructions{margin:.6rem 0;line-height:1.5}
.dm-office-panel{margin-top:2rem;padding-top:2rem;border-top:1px solid #d9e0e6}
.dm-office-panel>h2{margin-top:0}
.dm-office-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.5rem;align-items:start}
.dm-office-list{max-height:680px;max-height:min(76vh,760px);overflow-y:auto;border:1px solid #d2dce4;border-radius:8px;background:#fff;scroll-padding-block:12px}
.dm-office-list>p{padding:1rem}
.dm-office-item+.dm-office-item{border-top:1px solid #dce3e8}
.dm-office-button{display:flex;flex-direction:column;gap:.3rem;width:100%;border:0;background:#fff;padding:1rem 1.1rem;text-align:left;color:#252e3b;font:inherit;cursor:pointer;min-height:88px}
.dm-office-button:hover{background:#f0f6fb}
.dm-office-button[aria-pressed="true"]{background:#e6f0fa;box-shadow:inset 4px 0 0 #0056ac}
.dm-office-button:focus-visible{outline:3px solid #0056ac;outline-offset:-3px}
.dm-location-state{font-size:.75rem;color:#4b5b6c}
.dm-office-detail{padding:0 1.1rem 1.2rem;border:0;border-radius:0;background:#f3f7fb;min-width:0;overflow-wrap:anywhere}
.dm-office-detail h3{margin:.8rem 0;font-size:1.3rem;line-height:1.35}
.dm-office-detail h3:focus-visible{outline:2px solid #0056ac;outline-offset:3px}
.dm-contact-actions{display:flex;flex-wrap:wrap;gap:.7rem;margin:1rem 0;align-items:center}
.dm-contact-actions .button{white-space:normal;min-height:44px}
.dm-office-detail>.text-link{display:inline-block;margin-top:.75rem}
.dm-shared-location{border-top:1px solid #dce3e8;margin-top:1rem;padding-top:.75rem;display:flex;flex-direction:column;align-items:start;gap:.4rem}
.dm-shared-location .button{text-align:left;white-space:normal}
@media(max-width:700px){.dm-office-columns{grid-template-columns:minmax(0,1fr)}.dm-office-detail{padding:1rem}.dm-svg{min-height:300px}.dm-layers{gap:.4rem .8rem}}
@media(max-width:420px){.dm-search-row{flex-wrap:wrap}.dm-search-row input{flex-basis:100%}.dm-search-row .button{width:100%}}
@media print{.dm-filters,.dm-toolbar,.dm-instructions{display:none}.dm-svg{max-height:400px;print-color-adjust:exact}.dm-office-list{max-height:none;overflow:visible}.dm-office-columns{grid-template-columns:1fr 1fr}.dm-contact-actions .button{display:inline-flex!important}}

.dm-schedule{margin:1rem 0;padding:.8rem 1rem;background:#f4f7fa;border-left:3px solid #0056ac;border-radius:0 5px 5px 0}
.dm-schedule>div+div{margin-top:.65rem}
.dm-schedule dt{font-size:.8rem;font-weight:700;color:#34445a}
.dm-schedule dd{margin:.2rem 0 0;font-size:.9rem;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere}
.dm-contact-actions .dm-phone-action{display:flex;flex-direction:column;align-items:flex-start;gap:.2rem;text-align:left}
.dm-phone-action small{font-weight:400;font-size:.76rem;line-height:1.4}
.dm-contact-note{white-space:pre-line;overflow-wrap:anywhere}

/* Unified directory: one set of filters, one result list and one map. */
.dm-intro{padding-block:32px!important}
.dm-intro h1{font-size:clamp(1.7rem,3vw,2.5rem);line-height:1.2}
.dm-intro .hero-lead{max-width:780px;font-size:1.1rem;margin-bottom:0}
.dm-section{padding-top:28px}
.dm-shell{min-width:0}
.dm-filter-panel{padding:20px 24px;border:1px solid #d8e2eb;border-radius:8px;background:#f4f8fb}
.dm-filter-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(220px,1fr);gap:16px 24px;align-items:start}
.dm-filter-grid .field{margin:0}
.dm-filter-grid .dm-layers{grid-column:1/-1}
.dm-region-field select{width:100%;min-height:48px}
.dm-filter-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:16px}
.dm-filter-actions p{margin:0;flex:1 1 230px}
.dm-filter-actions .button{min-height:44px;white-space:normal}
.dm-filter-actions .button:disabled{opacity:.5;cursor:default}
.dm-feedback p{margin-bottom:4px}
.dm-results-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:24px 0 16px}
.dm-results-bar h2{font-size:1.35rem;margin:0 0 6px}
.dm-results-bar h2:focus{outline:none}
.dm-results-bar p{margin:0;font-size:.9rem;color:#46576a;display:flex;flex-wrap:wrap;gap:8px 16px}
.dm-scope{border-left:1px solid #afbdca;padding-left:16px}
.dm-workspace{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(0,1.3fr);gap:24px;align-items:start}
.dm-list-panel,.dm-map-panel{min-width:0}
.dm-map-panel{position:sticky;top:16px;background:#fff;border:1px solid #d8e2eb;border-radius:8px;padding:16px}
.dm-map-note{border-top:1px solid #d8e2eb;padding-top:12px;margin-bottom:0;line-height:1.5}
.dm-pagination{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:12px}
.dm-pagination .button{min-height:44px;padding:9px 12px}
.dm-pagination [disabled]{opacity:.45;cursor:default}
.dm-office-type{font-size:.75rem;font-weight:700;color:#0056ac}
.dm-office-type.dm-poltur{color:#006b58}
.dm-office-action{font-size:.8rem;color:#0056ac;text-decoration:underline;margin-top:3px}
.dm-office-button[aria-expanded="true"]{background:#f3f7fb;box-shadow:inset 4px 0 0 #0056ac}
.dm-office-detail .tag{margin-top:8px}
.dm-office-detail h3{font-size:1.1rem}
.dm-office-detail .dm-schedule{padding:10px;font-size:.85rem}
.dm-show-map{margin-top:8px;white-space:normal}
.dm-view-buttons{display:none}
.dm-touch-toggle{display:none}
.dm-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.dm-other-help{display:grid;grid-template-columns:1.5fr 1fr;gap:24px;margin-top:32px;padding:24px;border:1px solid #d8e2eb;border-top:3px solid #0056ac;border-radius:6px}
.dm-other-help h2{font-size:1.25rem;margin:0 0 10px}
.dm-other-help p{font-size:.95rem;line-height:1.6}
.dm-national-contact{display:flex;flex-direction:column;align-items:flex-start;gap:12px;justify-content:center;overflow-wrap:anywhere}
.dm-national-contact .button{white-space:normal}
.dm-sources{margin-top:24px}
@media(pointer:coarse){.dm-touch-toggle{display:inline-flex}}
@media(max-width:1000px){.dm-workspace{gap:16px;grid-template-columns:minmax(290px,.95fr) minmax(0,1fr)}.dm-map-panel{padding:12px}.dm-filter-panel{padding:18px}}
@media(max-width:850px){
 .dm-workspace{display:block}
 .dm-view-buttons{display:flex;gap:4px;padding:4px;background:#eaf0f6;border-radius:6px}
 .dm-view-button{min-height:44px;padding:8px 12px;background:transparent;border:0;white-space:normal;font-size:.9rem;color:#19354e}
 .dm-view-button[aria-pressed="true"]{background:#fff;box-shadow:0 1px 4px #152c4522;color:#0056ac;font-weight:700}
 .dm-shell[data-view="list"] #directory-map-view{display:none}
 .dm-shell[data-view="map"] #directory-list-view{display:none}
 .dm-map-panel{position:static}
 .dm-office-list{max-height:none;overflow:visible}
 .dm-office-detail{padding:0 16px 16px}
 .dm-filter-grid{grid-template-columns:minmax(0,1.5fr) minmax(180px,1fr)}
 .dm-other-help{grid-template-columns:1fr}
}
@media(max-width:550px){
 .dm-filter-grid{grid-template-columns:minmax(0,1fr)}
 .dm-filter-panel{padding:16px}
 .dm-results-bar{align-items:flex-start;flex-direction:column;gap:12px}
 .dm-view-buttons{width:100%;box-sizing:border-box}
 .dm-view-button{flex:1}
 .dm-filter-actions>.dm-locate{flex:1 1 180px}
 .dm-svg{height:390px;max-height:58vh;min-height:280px}
 .dm-other-help{padding:18px}
 .dm-search-row input{flex-basis:auto}
 .dm-search-row .button{width:auto}
 .dm-search-row{flex-wrap:nowrap}
}
@media print{.dm-filter-panel,.dm-pagination,.dm-view-buttons,.dm-toolbar{display:none!important}.dm-workspace{display:block}.dm-list-panel,.dm-map-panel{display:block!important}.dm-map-panel{position:static;break-inside:avoid}.dm-office-list{max-height:none;overflow:visible}.dm-other-help{break-inside:avoid}}

/* v10: choose a region first; direct contact actions and optional street detail. */
.dm-region{cursor:pointer}
.dm-region:hover{fill:#c6dce9}
.dm-region:focus-visible{outline:none;stroke:#0056ac;stroke-width:3;fill:#c6dce9}
.dm-map-modes{display:flex;gap:4px;background:#edf3f8;border-radius:6px;padding:4px;margin-bottom:12px}
.dm-map-mode{flex:1;min-height:44px;border:0;background:transparent;color:#243c54;white-space:normal}
.dm-map-mode[aria-pressed="true"]{background:#fff;color:#0056ac;box-shadow:0 1px 4px #152c4522;font-weight:700}
.dm-map-mode[aria-busy="true"]{opacity:.7}
.dm-street-status{line-height:1.5;color:#364b60;margin:.5rem 0}
.dm-street-status:empty{display:none}
.dm-detail-hint{margin:.6rem 0;line-height:1.5}
.dm-street-host[hidden],#territory-map[hidden]{display:none!important}
.dm-office-address{font-size:.85rem;line-height:1.5;margin:0 1.1rem .65rem;color:#46576a;overflow-wrap:anywhere}
.dm-quick-call{display:inline-flex;flex-wrap:wrap;gap:.25rem .6rem;margin:0 1.1rem 1rem;max-width:calc(100% - 2.2rem);min-height:44px;white-space:normal;overflow-wrap:anywhere;font-size:.9rem}
.dm-quick-call small{width:100%;font-size:.75rem}
.dm-office-button{padding-bottom:.65rem}
@media print{.dm-map-modes,.dm-detail-hint,.dm-street-host{display:none!important}#territory-map[hidden]{display:block!important}}
