/* Static SVG map (locator "map" plugin) - see Templates/Map/Show.html */
.svgmap__viewport {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: #dbe7ee;
    user-select: none;
    -webkit-user-select: none;
}
@media (pointer: fine) {
    .svgmap__viewport { cursor: grab; }
    .svgmap__viewport.is-dragging { cursor: grabbing; }
    .svgmap__viewport.is-dragging .svgmap__pin { cursor: grabbing; }
}
.svgmap__card { user-select: text; -webkit-user-select: text; cursor: auto; }

/* reset button (appears after panning) */
.svgmap__reset {
    position: absolute;
    z-index: 250;
    left: 12px;
    top: 12px;
    border: 0;
    border-radius: 999px;
    padding: 7px 14px 7px 12px;
    background: #fff;
    color: #1e1e1e;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    cursor: pointer;
}
.svgmap__reset::before { content: "⟲"; color: #cd113e; font-size: 16px; line-height: 0; margin-right: 6px; vertical-align: -1px; }
.svgmap__reset:hover { background: #f4f4f4; }
.svgmap__reset[hidden] { display: none; }

.svgmap__svg {
    display: block;
    width: 100%;
    height: 100%;
    --k: 1;
}

/* cities: constant on-screen size regardless of the viewBox scale (--k = 1 / scale, set by JS) */
.svgmap__city-inner {
    transform: scale(var(--k));
}
.svgmap__city circle {
    fill: #8a949a;
}
.svgmap__city text {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    fill: #6f7a80;
    paint-order: stroke;
    stroke: rgba(255, 255, 255, .85);
    stroke-width: 3px;
    stroke-linejoin: round;
}
.svgmap__city--r1 text { font-size: 13px; font-weight: 700; fill: #525f66; }
.svgmap__city--r3 text { font-size: 11px; }

/* pins */
.svgmap__pin {
    cursor: pointer;
    outline: none;
}
.svgmap__pin-shape {
    transform-origin: 0 0;
    transition: transform .15s ease;
}
.svgmap__pin path {
    fill: #cd113e;
    stroke: #fff;
    stroke-width: 1.5;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25));
}
.svgmap__pin circle {
    fill: #fff;
}
.svgmap__pin:hover .svgmap__pin-shape,
.svgmap__pin:focus-visible .svgmap__pin-shape,
.svgmap__pin.is-active .svgmap__pin-shape,
.svgmap__pin.is-highlight .svgmap__pin-shape {
    transform: scale(1.2);
}
.svgmap__pin.is-active path,
.svgmap__pin.is-highlight path {
    fill: #a50d31;
}
.svgmap__pin:focus-visible path {
    stroke: #000;
}

/* info card - same look as the former Google InfoBox (.infoBox in polipol_base) */
.svgmap__card.infoBox {
    position: absolute;
    z-index: 300;
    margin: 0;
    width: 300px;
    max-width: calc(100vw - 30px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
}
.svgmap__card[hidden] {
    display: none;
}
.svgmap__card .row {
    margin: 0;
}
.svgmap__card .column {
    padding: 0 5px;
}
.svgmap__card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}
.svgmap__close {
    position: absolute;
    top: 2px;
    right: 6px;
    border: 0;
    background: none;
    font-size: 20px;
    line-height: 1;
    color: #525f66;
    cursor: pointer;
    padding: 2px 4px;
}
.svgmap__close:hover {
    color: #cd113e;
}
.svgmap__links {
    display: flex;
    gap: 14px;
    margin-top: 10px !important;
    padding: 8px 5px 0;
    border-top: 1px solid #d7dadb;
}
.svgmap__link {
    font-size: 13px;
    font-weight: 700;
    color: #cd113e;
    text-decoration: none;
    cursor: pointer;
}
.svgmap__link:hover {
    text-decoration: underline;
}
.svgmap__link--route {
    color: #525f66;
    font-weight: 400;
}
.svgmap__link--route::after {
    content: " ↗";
}

/* arrow (from polipol_base .infoBox:before) follows the pin; points up when the card is below the pin */
.svgmap__card.infoBox:before {
    left: calc(var(--arrow-x, 50%) - 10px);
    right: auto;
    width: 20px;
}
.svgmap__card.infoBox.is-below:before {
    bottom: auto;
    top: -16px;
    transform: none;
}

/* logo bar: interactive feedback */
.svgmap .map-overlay {
    z-index: 200;
}
.svgmap .marker-trigger-item {
    cursor: pointer;
    transition: opacity .15s ease, transform .15s ease;
}
.svgmap .marker-trigger-item:hover,
.svgmap .marker-trigger-item:focus-visible {
    opacity: .75;
    transform: translateX(3px);
}
