/* Zoomable SVG map (js/SvgMap.js), shared by the X map and the venues map. Each map's own stylesheet sets the stage's
   aspect-ratio and background. */
.svgMap {
    position: relative;
    margin: 0 auto 8px;
}
@media (max-width: 600px) { /* full width of the screen: undo .mainLeft's side padding */
    .svgMap {
        max-width: none !important;
        margin-left: -20px;
        margin-right: -20px;
    }
}
.svgMapStage {
    width: 100%;
    overflow: hidden;
    touch-action: none; /* we handle drag and pinch */
    cursor: grab;
    outline: none;
}
.svgMap.zoomedOut .svgMapStage {
    touch-action: pan-y; /* not zoomed in: let a vertical swipe scroll the page */
}
.svgMapStage:active {
    cursor: grabbing;
}
.svgMapStage > img,
.svgMapStage > svg {
    display: block;
    width: 100%;
    height: 100%;
    user-select: none;
}
.svgMapStage:focus-visible {
    box-shadow: inset 0 0 0 3px #ff5c7a;
}
.svgMap .spot {
    cursor: pointer;
    outline: none;
}

.svgMapButtons {
    position: absolute;
    top: 10px;
    left: 10px;
    display: none;
    flex-direction: column;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
    overflow: hidden;
}
.svgMap.ready .svgMapButtons {
    display: flex;
}
.svgMapButtons button {
    width: 32px;
    height: 32px;
    border: 0;
    border-bottom: 1px solid #ddd;
    background: #fff;
    color: #222;
    font: bold 18px/32px Arial, sans-serif;
    cursor: pointer;
}
.svgMapButtons button:last-child {
    border-bottom: 0;
}
.svgMapButtons button:hover {
    background: #f2f2f2;
}
@media (pointer: coarse) { /* touch screens pinch to zoom: only the reset button, once zoomed */
    .svgMapButtons [data-zoom="in"],
    .svgMapButtons [data-zoom="out"],
    .svgMapButtons button:disabled {
        display: none;
    }
}
.svgMapButtons button:disabled {
    color: #bbb;
    cursor: default;
    background: #fff;
}

.svgMapInfo {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: 420px;
    padding: 8px 36px 8px 12px;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 13px;
    line-height: 1.45;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .4);
}
.svgMapInfo strong {
    display: block;
}
.svgMapInfo button {
    position: absolute;
    top: 2px;
    right: 4px;
    border: 0;
    background: none;
    font-size: 20px;
    line-height: 1;
    padding: 4px;
    color: #777;
    cursor: pointer;
}

@media (max-width: 600px) {
    .svgMap .svgMapInfo { /* below the map instead of over it */
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 6px 20px 0;
        max-width: none;
        box-shadow: 0 0 0 1px #ddd;
    }
    .svgMapButtons button {
        width: 28px;
        height: 28px;
        font-size: 16px;
        line-height: 28px;
    }
}

.text .mapNote {
    font-size: 13px;
}
