/* Dynamic directory components inherit typography from their native Divi Text module. */
.ph-directory {
    --ph-gap: var(--gvid-u77bsm0szb, clamp(26px, 4vw, 65px));
    --ph-radius: var(--gvid-ph-directory-radius, 0px);
    --ph-button-radius: var(--gvid-ph-directory-button-radius, 999px);
    --ph-pad: var(--gvid-ph-directory-card-padding, 26px);
    --ph-ink: var(--gcid-primary-color, #3f544d);
    --ph-paper: var(--gcid-secondary-color, #fffff3);
    --ph-tint: var(--gcid-zly0zd9g7l, #e4efcc);
    --ph-surface: var(--gcid-ph-directory-surface, transparent);
    color: inherit; min-width: 0;
}
.ph-directory *, .ph-directory *::before, .ph-directory *::after { box-sizing: border-box; }
.ph-directory [hidden] { display: none !important; }
.ph-directory :where(a, button, input, select):focus-visible { outline: 2px solid var(--ph-ink); outline-offset: 4px; }
.ph-directory :where(a, button, input, select) { font: inherit; }
.ph-directory :where(a) { color: inherit; }
.ph-directory-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--gvid-ph-directory-results-before, clamp(24px, 2vw, 32px)); }
.ph-directory-switch a { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: .3em 1em; border: 2px solid var(--ph-ink); border-radius: var(--ph-button-radius); text-decoration: none; font-size: var(--gvid-sdbqvx8rec, 15px); font-weight: var(--gvid-ph-directory-button-weight, 300); text-transform: uppercase; }
.ph-directory-switch a { gap: 10px; white-space: nowrap; background: var(--ph-tint); border-color: var(--ph-tint); color: var(--ph-ink); }
.ph-directory-switch a[aria-current="page"] { background: var(--ph-ink); border-color: var(--ph-ink); color: var(--ph-paper); }
.ph-directory-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 18px; background: var(--ph-surface); border: 0; padding: 0; border-radius: var(--ph-radius); }
.ph-directory-form label { display: block; margin-bottom: 8px; font-weight: 600; }
.ph-directory-query { flex: 2 1 260px; min-width: 0; position: relative; }
.ph-directory .ph-directory-suggestions { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 0; list-style: none; background: var(--ph-paper); color: var(--ph-ink); border: 1px solid var(--ph-ink); box-shadow: 0 6px 16px #0002; }
.ph-directory-suggestions [role="option"] { display: block; min-height: 44px; padding: 10px 16px; overflow-wrap: anywhere; cursor: pointer; }
.ph-directory-suggestions [role="option"]:hover, .ph-directory-suggestions [aria-selected="true"] { background: var(--ph-tint); }
.ph-directory-city { flex: 1 1 180px; min-width: 0; }
.ph-directory-radius { flex: 0 1 160px; min-width: 0; }
.ph-directory-radius-status { margin-top: 16px; }
.ph-directory-form :where(input, select, button) { min-height: var(--gvid-ph-directory-control-height, 44px); border-radius: var(--ph-radius); }
.ph-directory-form :where(input, select) { width: 100%; max-width: 100%; padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--ph-ink) 35%, transparent); background: var(--ph-paper); color: var(--ph-ink); }
.ph-directory-form button { padding: .3em 1em; display: inline-flex; gap: 24px; justify-content: space-between; align-items: center; border: 2px solid var(--ph-tint); border-radius: var(--ph-button-radius); background: var(--ph-tint); color: var(--ph-ink); font-size: var(--gvid-sdbqvx8rec, 15px); font-weight: var(--gvid-ph-directory-button-weight, 300); text-transform: uppercase; cursor: pointer; }
.ph-directory-form button:hover { background: var(--ph-ink); border-color: var(--ph-ink); color: var(--ph-paper); }
.ph-directory-reset { padding: 14px 0; text-decoration: underline; }
.ph-directory-results-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin: var(--gvid-ph-directory-results-before, clamp(24px, 2vw, 32px)) 0 var(--gvid-ph-directory-results-after, clamp(18px, 1.5vw, 24px)); }
.ph-directory .ph-directory-count { font-size: var(--gvid-ph-directory-count-size, clamp(24px, 2.3vw, 36px)); padding: 0; margin: 0; }
.ph-directory-results-heading > span { font-size: .9em; }
.ph-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ph-gap); align-items: stretch; min-width: 0; }
.ph-directory-grid > article { min-width: 0; overflow-wrap: anywhere; border-radius: var(--ph-radius); }
.ph-directory-person { background: var(--ph-surface); border: 0; overflow: hidden; }
.ph-directory-profile { display: flex; flex-direction: column; height: 100%; font-weight: inherit; text-decoration: none; }
.ph-directory-portrait { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 25%; background: var(--ph-tint); }
.ph-directory-initial { display: grid; place-items: center; font-size: 5em; }
.ph-directory-card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 14px 0 0; }
.ph-directory .ph-directory-eyebrow { font-size: .85em; padding-bottom: 10px; line-height: 1.5; }
.ph-directory .ph-directory-card-body h3 { font-size: var(--gvid-3fq7kja6iv, clamp(17px, 3vw, 20px)); line-height: 1.2; padding-bottom: 18px; margin: 0; }
.ph-directory-more { display: flex; align-items: center; justify-content: space-between; align-self: flex-start; gap: 18px; min-height: 44px; margin-top: auto; padding: .3em 1em; border: 2px solid var(--ph-tint); border-radius: var(--ph-button-radius); background: var(--ph-tint); font-size: var(--gvid-sdbqvx8rec, 15px); font-weight: var(--gvid-ph-directory-button-weight, 300); text-transform: uppercase; }
.ph-directory-more > span { transition: translate .18s ease; }
.ph-directory-profile:hover { background: color-mix(in srgb, var(--ph-tint) 20%, transparent); }
.ph-directory-profile:hover .ph-directory-more { background: var(--ph-ink); border-color: var(--ph-ink); color: var(--ph-paper); }
.ph-directory-profile:hover .ph-directory-more > span { translate: 3px -3px; }
.ph-directory .ph-directory-profile:focus-visible { outline-offset: -4px; }
.ph-directory-with-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--ph-gap); align-items: start; }
.ph-directory-with-map .ph-directory-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--ph-pad); }
.ph-directory-clinic { display: flex; flex-direction: column; background: var(--ph-paper); border: 1px solid color-mix(in srgb, var(--ph-ink) 25%, transparent); overflow: hidden; }
.ph-directory-clinic-heading { padding: var(--ph-pad); background: var(--ph-tint); }
.ph-directory .ph-directory-clinic-heading h3 { font-size: var(--gvid-3fq7kja6iv, 20px); line-height: 1.2; margin: 0; padding: 0; color: inherit; }
.ph-directory .ph-directory-clinic-heading .ph-directory-eyebrow { padding-bottom: 10px; }
.ph-directory-clinic > .ph-directory-card-body { padding: var(--ph-pad); }
.ph-directory-clinic .ph-directory-actions { gap: 10px 16px; }
.ph-directory-clinic:focus-visible { outline: 2px solid var(--ph-ink); outline-offset: 4px; }
.ph-directory .ph-directory-contact { display: grid; gap: 6px; margin: 14px 0 24px; }
.ph-directory-contact a { width: fit-content; max-width: 100%; }
.ph-directory-contact a:hover { text-decoration: underline; }
.ph-directory-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid color-mix(in srgb, var(--ph-ink) 20%, transparent); padding-top: 18px; margin-top: auto; }
.ph-directory-actions a { text-decoration: underline; text-underline-offset: 4px; }
.ph-directory-map { position: sticky; top: 120px; min-width: 0; background: var(--ph-surface); border-top: 1px solid var(--ph-ink); border-radius: var(--ph-radius); overflow: hidden; }
.ph-directory-map-title { padding: 14px 0 var(--ph-pad); }
.ph-directory-map-title p { padding-bottom: 0; margin-top: 6px; }
.ph-directory-map-canvas { display: block; width: 100%; height: 440px; border: 0; background: var(--ph-paper); }
.ph-directory-map-external { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, var(--ph-ink) 20%, transparent); text-decoration: underline; text-underline-offset: 4px; }
.ph-directory-empty { padding: var(--ph-pad); border: 1px solid currentColor; border-radius: var(--ph-radius); }
.ph-directory p:last-of-type:not(:last-child) { padding-bottom: 1em; }
@media (max-width: 980px) {
    .ph-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ph-directory-with-map { grid-template-columns: minmax(0, 1fr); }
    .ph-directory-with-map .ph-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ph-directory-map { position: static; scroll-margin-top: 110px; }
}
@media (max-width: 600px) {
    .ph-directory-grid, .ph-directory-with-map .ph-directory-grid { grid-template-columns: minmax(0, 1fr); }
    .ph-directory-query, .ph-directory-city, .ph-directory-radius { flex-basis: 100%; }
    .ph-directory-form button { flex: 1; }
    .ph-directory-switch a { flex: 1; text-align: center; padding-inline: 12px; }
    .ph-directory-map-canvas { height: 330px; }
}

/* Isolate Leaflet's stacking levels from the site's header and contact controls. */
.ph-directory-map-canvas { position: relative; isolation: isolate; z-index: 0; font-family: inherit; }
.ph-directory .leaflet-container { background: #e7ede5; }
.ph-directory .leaflet-container a { color: var(--ph-ink); }
.ph-directory .leaflet-control-attribution { font: 11px/1.5 Arial, sans-serif; padding: 2px 5px; }
.ph-directory .leaflet-control-attribution a { font-weight: normal; }
.ph-directory .leaflet-bar { border: 1px solid var(--ph-ink); box-shadow: none; border-radius: 0; }
.ph-directory .leaflet-bar a { background: var(--ph-paper); color: var(--ph-ink); border-radius: 0; }
.ph-map-pin { background: transparent; border: 0; }
.ph-map-pin svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 2px #0003); }
.ph-pin-body { fill: var(--ph-tint); stroke: var(--ph-ink); stroke-width: 2; }
.ph-pin-leaf { position: absolute; left: 8px; top: 6px; width: 20px; height: 22px; background: var(--ph-ink); mask: url('brand-leaf.svg') center / contain no-repeat; }
.ph-map-pin.is-selected .ph-pin-body { fill: var(--ph-ink); stroke: var(--ph-paper); }
.ph-map-pin.is-selected .ph-pin-leaf { background: var(--ph-paper); }
.ph-map-cluster { display: grid; place-items: center; background: var(--ph-tint); color: var(--ph-ink); border: 2px solid var(--ph-ink); border-radius: 50%; box-shadow: 0 0 0 5px #fffff380; font: 600 16px/1 sans-serif; }
.ph-directory .leaflet-tooltip { width: max-content; max-width: 240px; white-space: normal; background: var(--ph-paper); color: var(--ph-ink); border: 1px solid var(--ph-ink); border-radius: 0; box-shadow: none; font: inherit; font-size: 13px; }
.ph-directory .leaflet-marker-icon:focus-visible { outline: 2px solid var(--ph-ink); outline-offset: 4px; }
.ph-directory .ph-directory-clinic.is-map-selected { border-color: var(--ph-ink); box-shadow: inset 0 0 0 2px var(--ph-ink); }
.ph-directory-clinic.is-map-selected .ph-directory-clinic-heading { background: var(--ph-ink); color: var(--ph-paper); }
.ph-directory-map-tools { display: flex; flex-wrap: wrap; gap: 0 20px; align-items: center; }
.ph-directory-map-tools a, .ph-directory-map-tools button { font: inherit; font-size: .85em; color: var(--ph-ink); }
.ph-directory-map-overview { cursor: pointer; background: none; border: 0; padding: 16px 0; text-decoration: underline; text-underline-offset: 4px; }
.ph-directory-map-external { flex: 1 1 220px; }
.ph-directory-map-profile { flex-basis: 100%; padding: 4px 0 16px; text-decoration: underline; }
.ph-directory-map-status, .ph-directory-map-fallback { padding: 16px; font-size: .85em; }
