/* Search-results map (results-map.js). Inherits each site's colors and buttons; --dir-map-color is the site color. */
.dir-map-wrap{--dir-map-color:#1d4ed8}
.dir-map{margin:12px 0 16px;padding:0;border:1px solid rgba(0,0,0,.12);border-radius:14px;overflow:hidden;background:#f4f5f7;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.dir-map-canvas{height:380px;width:100%}
.dir-map-phone .dir-map-canvas{height:min(70vh,560px)}
/* Wide screens: list on the left, map on the right, staying in view while the list scrolls. */
.dir-map-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,42%);gap:20px;align-items:start}
.dir-map-split>.dir-map{grid-column:2;grid-row:1;margin:0;position:sticky;top:var(--dir-map-top,12px);display:flex;flex-direction:column;height:min(calc(100vh - var(--dir-map-top,12px) - 12px),760px)}
.dir-map-split>.dir-map[hidden]{display:none}
.dir-map-split>.dir-map .dir-map-canvas{flex:1 1 auto;height:auto;min-height:0}
.dir-map-split>:not(.dir-map){grid-column:1;grid-row:1;min-width:0;margin-top:0}
/* A card grid beside the map: two columns at most, so cards keep their width. */
.dir-map-split>.grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.dir-map-note{display:flex;flex-wrap:wrap;gap:4px 14px;margin:0;padding:7px 12px;background:#fff;border-top:1px solid rgba(0,0,0,.08);font-size:.82rem;line-height:1.3}
.dir-map-note:empty{display:none}
.dir-map-key{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.dir-map-key svg{width:14px;height:14px;flex:none}
.dir-map-failed .dir-map-note{padding:12px}
.dir-map-toggle{display:none;gap:8px;margin:10px 0}
.dir-map-toggle[hidden]{display:none!important}
.dir-map-toggle .btn[aria-pressed="true"]{outline:2px solid currentColor;outline-offset:1px;font-weight:700}
@media (max-width:760px){.dir-map-toggle{display:flex}}
.dir-map-popup{font:inherit;font-size:.9rem;line-height:1.35;max-height:240px;overflow:auto}
.dir-map-popup strong{display:flex;align-items:baseline;gap:6px}
.dir-map-item+.dir-map-item{margin-top:8px;padding-top:8px;border-top:1px solid rgba(0,0,0,.1)}
.dir-map-popup .muted{opacity:.75}
/* The card's number matches its pin. */
.dir-map-num{display:inline-flex;align-items:center;justify-content:center;min-width:1.5em;height:1.5em;padding:0 .3em;margin-right:.45em;border-radius:999px;background:var(--dir-map-color);color:#fff;font-size:.72em;font-weight:700;line-height:1;vertical-align:.15em;box-sizing:border-box}
.dir-map-popup .dir-map-num{flex:none;font-size:.75rem;vertical-align:0}
.dir-map-active{outline:3px solid var(--dir-map-color);outline-offset:2px;border-radius:inherit}
.dir-map-wrap [data-npi]{transition:outline-color .15s}
.fact-labels{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 0;padding:0;list-style:none}
.fact-labels li{font-size:.8rem;padding:2px 8px;border-radius:999px;background:rgba(29,78,216,.08);color:inherit}
.distance-approx{opacity:.8}
@media print{.dir-map,.dir-map-toggle,.dir-map-num{display:none!important}.dir-map-split{display:block}}
.dir-map-list-off{display:none!important}
@media (prefers-reduced-motion:reduce){.dir-map-wrap [data-npi]{transition:none}}
/* Round 2: map tools, popup stars and actions. */
.dir-map{position:relative}
.dir-map-tools{position:absolute;top:10px;left:10px;right:56px;display:flex;flex-wrap:wrap;gap:6px;pointer-events:none;z-index:2}
.dir-map-tool{pointer-events:auto;font:inherit;font-size:.82rem;font-weight:600;padding:6px 11px;border-radius:999px;border:1px solid rgba(0,0,0,.15);background:#fff;color:var(--dir-map-color);box-shadow:0 1px 4px rgba(0,0,0,.15);cursor:pointer}
.dir-map-tool:hover{background:#f3f4f6}
.dir-map-tool:focus-visible{outline:3px solid var(--dir-map-color);outline-offset:2px}
.dir-map-tool[hidden]{display:none}
.dir-map-redo{background:var(--dir-map-color);color:#fff;border-color:transparent}
.dir-map-redo:hover{background:var(--dir-map-color);filter:brightness(1.12)}
.dir-map-stars{font-size:.82rem;margin:2px 0}
.dir-map-star-row{color:#b45309;letter-spacing:1px}
.dir-map-actions{display:flex;gap:6px;margin-top:6px}
.dir-map-act{display:inline-block;padding:3px 10px;border-radius:999px;border:1px solid var(--dir-map-color);color:var(--dir-map-color);font-size:.8rem;font-weight:600;text-decoration:none}
.dir-map-act:hover{background:var(--dir-map-color);color:#fff}
/* Profile pages: the office map. */
.dir-office-map{margin:14px 0;border:1px solid rgba(0,0,0,.12);border-radius:14px;overflow:hidden;background:#f4f5f7}
.dir-office-map[hidden]{display:none}
.dir-office-canvas{height:300px;width:100%}
@media print{.dir-office-map{display:none!important}}
.dir-map-follow{display:inline-flex;align-items:center;gap:6px;color:#1f2937;font-weight:500}
.dir-map-follow input{margin:0;accent-color:var(--dir-map-color)}
/* Keep the map tools compact whatever the site's own button, label and input styles are. */
.dir-map .dir-map-tools .dir-map-tool{width:auto;height:auto;min-height:0;min-width:0;margin:0;line-height:1.25;white-space:nowrap;text-transform:none;letter-spacing:normal}
.dir-map .dir-map-tools .dir-map-follow input{width:15px;height:15px;min-height:0;padding:0;margin:0;border-radius:3px;box-shadow:none;flex:none;appearance:auto}
.dir-map-h{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border:1.5px solid #475569;border-radius:3px;background:#fff;color:#475569;font-size:9px;font-weight:700;line-height:1;flex:none;box-sizing:border-box}
.dir-map-hosp-docs{margin-top:4px}
.dir-map-hosp-docs a{font-weight:700}
.dir-map-src{font-size:.75rem;margin-top:4px}
.dir-map-hosp-on{outline:3px dashed #475569;outline-offset:2px;border-radius:inherit}
/* Review fixes (2026-11-22). Phones: the List / Map switch floats at the bottom of the screen while there are results,
   instead of sitting under the filter form. */
@media (max-width:760px){.dir-map-toggle{position:fixed;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:50;margin:0;padding:5px;border-radius:999px;background:#fff;box-shadow:0 4px 18px rgba(0,0,0,.22)}
  .dir-map-toggle .btn{margin:0;border-radius:999px;min-width:84px}}
.dir-map-hosp-list{list-style:none;margin:4px 0 0;padding:0}
.dir-map-hosp-list li{margin:3px 0}
.dir-map-hosp-list a{display:inline-flex;align-items:baseline;font-weight:600}
.maplibregl-popup{max-width:calc(100% - 16px)!important}
