/* Map of competition venues and clubs (_includes/VenuesMap.html, js/VenuesMap.js); zoom controls in css/SvgMap.css */
.venuesMap {
    max-width: calc(85vh * 4 / 3); /* as wide as the column, but no taller than 85% of the window */
}
.venuesMap .svgMapStage {
    aspect-ratio: 4 / 3; /* images/VenuesMap.svg viewBox */
    background: #13235f; /* the map's sea */
}

/* markers (drawn at 1 unit = 1 px, scaled to keep their screen size) */
.venuesMap .venue circle {
    stroke: #fff;
    stroke-width: 2px;
    transition: stroke .15s;
}
.venuesMap .club .shadow {
    fill: rgba(0, 0, 0, .3);
}
.venuesMap .club .ring {
    fill: #fff;
    transition: fill .15s;
}
.venuesMap .club text {
    fill: #c2185b;
    font-weight: bold;
}
.venuesMap .venue:hover circle,
.venuesMap .venue:focus-visible circle,
.venuesMap .venue.active circle {
    stroke: #1c307e;
    stroke-width: 3px;
}
.venuesMap .club:hover .ring,
.venuesMap .club:focus-visible .ring,
.venuesMap .club.active .ring {
    fill: #ff5c7a;
}

/* outdoor / indoor switch: the chosen one in the colour of its venue dots */
.vmMode {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 2px;
    padding: 3px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
    font-size: 13px;
}
.vmMode label {
    position: relative;
    display: block;
}
.vmMode input { /* invisible, over its own label: it takes the tap, and stays focusable with the keyboard */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.vmMode span {
    display: block;
    padding: 5px 12px;
    border-radius: 4px;
    color: #666;
    transition: background .15s, color .15s;
}
.vmMode label:hover span {
    background: #eee;
}
.vmMode input:checked + span {
    color: #13235f;
}
.vmMode input[value="outdoor"]:checked + span {
    background: #66bb6a; /* COLORS in js/VenuesMap.js */
}
.vmMode input[value="indoor"]:checked + span {
    background: #ffa726;
}
.vmMode span::before { /* a radio dot, hollow or filled, so the choice doesn't rest on colour alone */
    content: "";
    display: inline-block;
    box-sizing: border-box;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border: 2px solid currentColor;
    border-radius: 50%;
    vertical-align: -1px;
}
.vmMode input:checked + span::before {
    border-width: 3px;
    background: #fff;
}
.vmMode input:focus-visible + span {
    box-shadow: inset 0 0 0 2px #1c307e;
}
@media (max-width: 600px) {
    .vmMode span {
        padding: 7px 14px; /* a bigger target for fingers */
    }
}
