.atpn .atpn-map { min-width:0; margin:0; padding:0; }
.atpn .atpn-map-window { width:100%; aspect-ratio:2.15; min-height:185px; max-height:320px; overflow:hidden; border:1px solid #a6b9ac; border-radius:10px; position:relative; isolation:isolate; background:#dcece9; }
.atpn #atpn-overview,.atpn #atpn-map-frame { position:absolute; inset:0; width:100%; height:100%; margin:0; display:block; }
.atpn #atpn-overview { object-fit:cover; object-position:center; }
.atpn #atpn-map-caption { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:0 12px; padding:6px 2px 0; font:500 13px/1.5 system-ui,sans-serif; color:#2d463b; }
.atpn .atpn-map-actions { display:inline-flex; align-items:center; gap:14px; }
.atpn .atpn-map-actions button,.atpn .atpn-map-actions a { border:0; padding:3px 0; min-height:28px; background:transparent; border-radius:1px; color:#195941; text-decoration:underline; text-underline-offset:3px; font:600 13px/1.5 system-ui,sans-serif; }
.atpn #atpn-map-note { font:400 13px/1.4 system-ui,sans-serif; margin:5px 0 0; }
.atpn #atpn-map-frame { background:#e8ece4; z-index:1; }
.atpn #atpn-map-frame img.leaflet-tile { max-width:none!important; max-height:none!important; margin:0; padding:0; border:0; box-shadow:none; }
.atpn #atpn-map-frame a.leaflet-control-zoom-in,.atpn #atpn-map-frame a.leaflet-control-zoom-out { text-decoration:none; color:#193e33; }
.atpn #atpn-map-frame .leaflet-control-attribution { margin:0; background:rgba(255,255,255,.95); line-height:1.45; font-size:10px; }
.atpn #atpn-map-frame .leaflet-control-attribution a { color:#125341; }
.atpn .atpn-center-pin { border:3px solid white; border-radius:50%; background:#174b80; box-shadow:0 0 0 5px #376cb94d,0 1px 6px #233e4a; }
.atpn .atpn-place-pin { border:2px solid white; border-radius:50%; background:#a74717; box-shadow:0 0 0 1px #763713; }
.atpn #atpn-map-frame .leaflet-popup-content { font:600 14px/1.4 system-ui,sans-serif; color:#193e33; margin:10px 18px; padding-right:7px; }

.atpn {
    --atpn-ink: #18382e;
    --atpn-green: #20523e;
    --atpn-line: #d8ded3;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fafaf5;
    color: var(--atpn-ink);
    font: 400 14px/1.45 system-ui, sans-serif;
    text-align: start;
    isolation: isolate;
    scrollbar-width: thin;
    overscroll-behavior: contain;
}
.atpn *, .atpn *::before, .atpn *::after { box-sizing: border-box; }
.atpn [hidden] { display: none !important; }
.atpn .atpn-head { order: 0; background: var(--atpn-green); padding: 22px 18px 20px; }
.atpn h2, .atpn h3, .atpn h4 { text-transform: none; letter-spacing: normal; }
.atpn .atpn-head h2 { color: #fffaf0; margin: 0 0 6px; font: 500 clamp(24px,2vw,32px)/1.1 Georgia,serif; }
.atpn .atpn-head p { color: #e3eddf; font: inherit; margin: 0; }
.atpn .atpn-map { order: 1; margin: 0 14px; flex-shrink: 0; }
.atpn .atpn-map-window { aspect-ratio: 2; min-height: 120px; max-height: 180px; }
.atpn .atpn-toolbar { order: 2; display: grid; gap: 4px; padding: 0 14px; }
.atpn #atpn-dropdown { order: 3; padding: 0 14px 20px; }
.atpn-open .atpn-map { order: 4; margin-bottom: 14px; }
.atpn-open #atpn-dropdown { padding-bottom: 0; }
.atpn form { margin: 0; }
.atpn label { display: block; font: 650 13px/1.5 system-ui,sans-serif; color: var(--atpn-ink); }
.atpn input, .atpn select, .atpn button {
    font: 550 14px/1.35 system-ui,sans-serif; color: var(--atpn-ink); background: white;
    border: 1px solid #9aaca0; border-radius: 7px; padding: 8px 10px;
    min-height: 42px; margin: 0; box-shadow: none; text-transform: none; letter-spacing: normal;
}
.atpn button { cursor: pointer; }
.atpn #atpn-toggle {
    display: flex; align-items: center; justify-content: flex-start; gap: 10px;
    width: 100%; padding: 11px 13px; color: #fff; background: var(--atpn-green); border-color: var(--atpn-green);
}
.atpn #atpn-toggle:hover { background: #153e30; }
.atpn .atpn-pin { position: relative; width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); margin: -3px 2px 0; }
.atpn .atpn-pin::after { content: ''; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: currentColor; left: 3.5px; top: 3.5px; }
.atpn .atpn-chevron { width: 9px; height: 9px; margin: -3px 2px 0 auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.atpn-open .atpn-chevron { transform: rotate(225deg); margin-top: 4px; }
.atpn .atpn-mobile-label { display: none; }
.atpn #atpn-manual, .atpn #atpn-locate { background: transparent; border: 0; text-decoration: underline; text-underline-offset: 3px; color: var(--atpn-green); }
.atpn-open #atpn-manual { display: none; }
.atpn #atpn-locate { padding-inline: 0; font-size: 13px; }
.atpn .atpn-input-row, .atpn .atpn-filters { display: flex; gap: 6px; }
.atpn .atpn-input-row input { flex: 1; min-width: 0; width: 100%; }
.atpn .atpn-input-row button { flex: none; }
.atpn .atpn-filters { flex-wrap: wrap; }
.atpn select { display: block; max-width: 100%; }
.atpn #atpn-status { color: #385542; margin: 6px 0 12px; }
.atpn #atpn-status:empty { display: none; }
.atpn h3 { font: 500 22px/1.2 Georgia,serif; margin: 4px 0 10px; color: var(--atpn-ink); }
.atpn h4 { font: 650 15px/1.35 system-ui,sans-serif; color: var(--atpn-ink); margin: 0 0 6px; }
.atpn .atpn-note, .atpn small { font: 400 12px/1.5 system-ui,sans-serif; color: #485c4e; }
.atpn .atpn-note { margin: 8px 0; }
.atpn #atpn-places { list-style: none; padding: 0; margin: 8px 0; }
.atpn #atpn-places li { background: white; border: 1px solid var(--atpn-line); border-radius: 8px; margin: 0 0 6px; padding: 9px 12px; overflow-wrap: anywhere; }
.atpn #atpn-places strong { display: block; color: var(--atpn-ink); font: 650 15px/1.3 system-ui,sans-serif; margin: 2px 0; }
.atpn a { color: #195941; text-decoration: underline; text-underline-offset: 3px; }
.atpn #atpn-places a, .atpn .atpn-links a { display: inline-block; font: 550 13px/1.5 system-ui,sans-serif; margin: 2px 10px 2px 0; }
.atpn .atpn-links { margin: 16px 0; }
.atpn :focus-visible, .atpn-jump:focus-visible { outline: 3px solid #ba701d; outline-offset: 2px; }
.ed-cover-actions .atpn-jump { white-space: nowrap; }

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
    body.atpn-ready { --atpn-width: clamp(248px,20.5vw,340px); }
    body.atpn-ready.atp-edition #page { padding-right: var(--atpn-width); }
    body.atpn-ready:not(.atp-edition), body.atpn-ready.atp-edition:not(:has(#page)) { width: auto; margin-right: var(--atpn-width); }
    body.atpn-ready .dc-email-float { right: calc(var(--atpn-width) + 14px); }
    body.atpn-ready .attdm-ft-nav { min-width: 0; overflow-wrap: anywhere; }
    body.atpn-ready .atp-contactbar { flex-wrap: wrap; }
    .atpn-ready .atpn { position: fixed; inset: 0 0 0 auto; width: var(--atpn-width); z-index: 95; overflow-y: auto; border-left: 1px solid var(--atpn-line); }
    .admin-bar.atpn-ready .atpn { top: var(--wp-admin--admin-bar--height,32px); }
}
@media (max-width: 1023px), (hover: none), (pointer: coarse) {
    .atpn-ready .atpn {
        position: fixed; z-index: 95; left: max(12px,env(safe-area-inset-left)); bottom: max(12px,env(safe-area-inset-bottom));
        width: max-content; max-width: calc(100vw - 24px); max-height: 70vh; max-height: 70dvh;
        border: 1px solid var(--atpn-line); border-radius: 12px; overflow: hidden; gap: 0; box-shadow: 0 3px 18px #123b2629;
    }
    .atpn-ready .atpn.atpn-open { width: min(360px,calc(100vw - 24px)); overflow-y: auto; }
    .atpn .atpn-head, .atpn .atpn-desktop-label, .atpn #atpn-manual, .atpn:not(.atpn-open) .atpn-map { display: none; }
    .atpn .atpn-mobile-label { display: inline; }
    .atpn .atpn-toolbar { order: 0; padding: 0; position: sticky; top: 0; z-index: 3; }
    .atpn #atpn-toggle { border-radius: 0; }
    .atpn #atpn-dropdown { padding: 12px; }
    .atpn-open .atpn-map { margin: 0 12px 12px; }
    .atpn input[type="search"] { font-size: 16px; }
}
