/**
 * Map
 */
.map-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;

    /* Fix a render bug with Safari */
    transform: translateZ(0);
}

.map-container > [data-map-area] {
    display: block;
    position: relative;
    transform-origin: top left;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: grab;
}
.map-container > [data-map-area].supports-will-change {
    will-change: transform;
}
.map-container > [data-map-area].map-dragging {
    cursor: grabbing;
}

.map-container > [data-map-area].loading {
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    transition: none !important;
}
.map-container > [data-map-area].loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(75, 75, 75, 0.2);
}
.map-container > [data-map-area].loading::after {
    content: url('../images/spinner.svg');
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    transform: translateX(-50%) translateY(-50%);
}

.map-container > [data-map-area] > [data-map] > svg {
    display: block;
    max-width: none;
}

/**
 * Overlays
 */
.map-container > [data-map-area] > .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

.map-container > [data-map-area].loading > .overlay {
    display: none;
}


/**
 * Detail points
 */
.map-container .detail-point {
    transform: translateX(-50%) translateY(-50%);
}


/**
 * Search bar
 */
.map-container .search-bar {
    position: absolute;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    max-width: 550px;
    opacity: 1;
    visibility: visible;
    z-index: 1000;
    transition: visibility 0s 0s, opacity 0.5s 0s;
}

.map-container .search-bar.hide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s 0s, visibility 0s 0.5s;
}

.map-container .search-bar .search-field {
    border-radius: 0.2rem;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.map-container .search-bar .search-field > input {
    display: block;
    width: 100%;
    margin: 0;
    border: 0;
    padding: 0.75rem 1.5rem;
    vertical-align: middle;
    white-space: normal;
    background: white;
    font-size: 1.25rem;
    line-height: 1;
}

.map-container .search-bar .results-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    border-radius: 0 0 0.2rem 0.2rem;
    background-color: white;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    list-style-type: none;
}

.map-container .search-bar ul.results-list > .search-result {
    padding: 0.5rem 0.75rem;
    color: #005198;
    cursor: pointer;
    border-bottom: 1px solid #DEE2E6;
}
.map-container .search-bar ul.results-list > .search-result:hover,
.map-container .search-bar ul.results-list > .search-result:active,
.map-container .search-bar ul.results-list > .search-result:focus,
.map-container .search-bar ul.results-list > .search-result.focus {
    background-color: rgba(224, 224, 224, 0.5);
}

.map-container .search-bar ul.results-list > .search-result:last-child {
    border-bottom: none;
}

.map-container .search-bar ul.results-list > .no-results {
    padding: 0.5rem 0.75rem;
    text-align: center;
    color: #333;
}

.map-container .search-bar.search-results-open .search-field {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 2px solid #DEE2E6;
}

.map-container .search-bar.search-results-open .results-list {
    display: block;
}
