/* Plugin-contained presentation, with theme-token fallbacks for relocation. */
.pacecore-maps {
    box-sizing: border-box;
    position: relative;
    width: 100%;
}

.pacecore-maps *,
.pacecore-maps *::before,
.pacecore-maps *::after {
    box-sizing: inherit;
}

.pacecore-maps [hidden] {
    display: none !important;
}

.pacecore-maps-canvas {
    position: relative;
    width: 100%;
}

.pacecore-maps-svg {
    display: block;
    width: 100%;
    height: auto;
    touch-action: pan-y;
}

.pacecore-maps-region[role="button"],
.pacecore-maps-point {
    cursor: pointer;
}

/* Programmatic focus opens the dialog and returns to its SVG trigger on close.
   Browsers can draw a default outline here even without :focus-visible. Remove
   that rectangle; the separate keyboard-only state stroke remains visible. */
.pacecore-maps-region:focus,
.pacecore-maps-point:focus,
.pacecore-maps-popup:focus {
    outline: none;
}

.pacecore-maps-region:focus-visible,
.pacecore-maps-point:focus-visible {
    outline: none;
    stroke: #222 !important;
    stroke-width: 2px;
}

.pacecore-maps button:focus-visible,
.pacecore-maps a:focus-visible,
.pacecore-maps summary:focus-visible {
    outline: 2px solid #00549e;
    outline-offset: 3px;
}

.pacecore-maps-zoom {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    border: 1px solid #aaa;
    background: #fff;
}

.pacecore-maps-zoom button {
    min-width: 36px;
    min-height: 36px;
    border: 0;
    border-right: 1px solid #aaa;
    background: #fff;
    color: #222;
    cursor: pointer;
}

.pacecore-maps-zoom button:last-child {
    border-right: 0;
}

.pacecore-maps-tooltip {
    position: absolute;
    z-index: 2;
    max-width: calc(100% - 8px);
    padding: 4px 8px;
    border-radius: 3px;
    background: #222;
    color: #fff;
    font-size: 12px;
    pointer-events: none;
}

.pacecore-maps-popup {
    position: absolute;
    z-index: 3;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    max-width: calc(100% - 16px);
    max-height: min(80vh, 600px);
    overflow-y: auto;
    padding: 25px 20px 20px;
    background: var(--wp--preset--color--white, #fff);
    box-shadow: 0 4px 8px rgb(0 0 0 / 25%);
}

.pacecore-maps-close {
    position: absolute;
    z-index: 1;
    top: 3px;
    right: 3px;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #222;
    font: 700 42px/1 sans-serif;
    cursor: pointer;
}

.pacecore-maps-details {
    display: grid;
    grid-template-columns: 106px auto;
    gap: 18px;
}

.pacecore-maps-copy:only-child {
    grid-column: 1 / -1;
}

.pacecore-maps-image-cta figure {
    margin: 0 0 7px;
}

.pacecore-maps-image-cta img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 7px;
}

.pacecore-maps-image-cta figcaption {
    font-size: var(--wp--preset--font-size--extra-small, 11px);
    line-height: 1;
}

.pacecore-maps-cta {
    display: block;
    width: 100%;
    border-radius: 2px;
    background: var(--wp--preset--color--navy, #002d72);
    color: var(--wp--preset--color--white, #fff);
    font-size: 10px;
    line-height: 25px;
    text-align: center;
    text-decoration: none;
}

.pacecore-maps-cta:hover {
    color: #fff;
    text-decoration: underline;
}

.pacecore-maps-popup-title {
    margin: 0 0 10px;
    padding: 0 0 10px;
    border-bottom: .25px solid #000;
    color: var(--wp--preset--color--blue-light, #00549e);
    font-size: var(--wp--preset--font-size--small, 14px);
    font-weight: 700;
    line-height: 18px;
}

.pacecore-maps-popup-title span {
    display: block;
    width: 58%;
}

.pacecore-maps-popup-copy p {
    margin: 0;
    color: #000;
    font-size: 10px;
    font-weight: 500;
    line-height: 14.68px;
}

.pacecore-maps-popup-copy strong {
    font-size: 12px;
}

.pacecore-maps-list {
    margin-top: 20px;
}

.pacecore-maps-list summary {
    cursor: pointer;
    padding: 8px 0;
}

.pacecore-maps-list .pacecore-maps-details {
    max-width: 500px;
    margin: 12px 0;
}

@media (max-width: 781px) {
    .pacecore-maps-popup {
        top: 0;
        width: 232px;
        padding: 30px 28px 15px;
    }

    .pacecore-maps-close {
        top: 6px;
        right: 10px;
        width: 25px;
        height: 25px;
        font-size: 28px;
    }

    .pacecore-maps-details {
        display: flex;
        flex-direction: column-reverse;
        gap: 0;
    }

    .pacecore-maps-image-cta {
        display: flex;
        justify-content: center;
    }

    .pacecore-maps-popup .pacecore-maps-image-cta figure {
        display: none;
    }

    .pacecore-maps-cta {
        display: inline-block;
        width: 106px;
        margin-top: 20px;
    }

    .pacecore-maps-zoom {
        position: relative;
        justify-content: flex-end;
        width: max-content;
        margin-left: auto;
    }
}