﻿/* Canvas map used by index-nm.php (replaces Leaflet). */

/* Shown in the sidebar when a search has no matches. */
.no-results-message {
    margin: 12px 16px;
    color: #555;
    font-size: 14px;
}


.map-nm {
    position: relative;
    overflow: hidden;
    background: #ddd;
    font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.map-nm .map-nm-canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
    touch-action: none;
}

.map-nm .map-nm-corner {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 800;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

.map-nm .map-nm-corner > * {
    margin: 0 10px 10px 0;
    pointer-events: auto;
}

.map-nm .map-nm-bar {
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
}

.map-nm .map-nm-bar a {
    display: block;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    text-decoration: none;
    font: bold 18px 'Lucida Console', Monaco, monospace;
    text-indent: 1px;
    color: #000;
    background: #fff;
    border-bottom: 1px solid #ccc;
    box-sizing: content-box;
}

@media (hover: none) {
    .map-nm .map-nm-bar a {
        width: 30px;
        height: 30px;
        line-height: 30px;
    }
}

.map-nm .map-nm-bar a:first-child {
    border-radius: 4px 4px 0 0;
}

.map-nm .map-nm-bar a:last-child {
    border-bottom: none;
    border-radius: 0 0 4px 4px;
}

.map-nm .map-nm-bar a:hover {
    background: #f4f4f4;
}

.map-nm .map-nm-bar a.map-nm-disabled {
    cursor: default;
    background: #f4f4f4;
    color: #bbb;
}

.map-nm .map-nm-attribution {
    background: rgba(255, 255, 255, 0.8);
    padding: 0 5px;
    color: #333;
    line-height: 1.4;
    font-size: 12px;
}

.map-nm .map-nm-attribution a {
    color: #0078a8;
    text-decoration: none;
}

.map-nm .map-nm-attribution a:hover {
    text-decoration: underline;
}

.map-nm .map-nm-popup {
    position: absolute;
    z-index: 700;
    display: none;
    text-align: center;
    transform: translateX(-50%);
}

.map-nm .map-nm-popup-content-wrapper {
    position: relative;
    padding: 1px;
    width: max-content;
    max-width: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
}

.map-nm .map-nm-popup-content {
    margin: 13px 19px;
    line-height: 1.4;
    min-width: 50px;
    text-align: left;
    overflow-wrap: break-word;
}

.map-nm .map-nm-popup-close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 4px 0 0;
    width: 18px;
    height: 14px;
    font: bold 16px/14px Tahoma, Verdana, sans-serif;
    text-align: center;
    text-decoration: none;
    color: #c3c3c3;
    z-index: 1;
}

.map-nm .map-nm-popup-close:hover {
    color: #999;
}

.map-nm .map-nm-popup-tip-container {
    position: absolute;
    left: 50%;
    width: 40px;
    height: 20px;
    margin-left: -20px;
    overflow: hidden;
    pointer-events: none;
}

.map-nm .map-nm-popup-tip {
    width: 17px;
    height: 17px;
    padding: 1px;
    margin: -10px auto 0;
    background: #fff;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
    transform: rotate(45deg);
}
