@media only screen and (min-width: 992px) {
    .MapexplorerMap {
        margin-top: 7rem !important;
    }
}

.MapexplorerMap {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.MapexplorerMap svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- Map sections (polygon, path, rect, ...) ---------- */

/* Default look */
.MapexplorerMap svg [data-section-code] {
    fill: #DCDCDC !important;
    transition: all 0.3s;
    cursor: pointer;
}

/* Hover / focus */
.MapexplorerMap svg [data-section-code]:hover,
.MapexplorerMap svg [data-section-code]:focus {
    fill: #014751 !important;
}

/* Selected */
.MapexplorerMap svg [data-section-code].active {
    fill: #014751 !important;
}

/* Default section */
.MapexplorerMap svg [data-section-code].default-section {
    fill: #901317 !important;
}

.MapexplorerMap svg [data-section-code].default-section.active {
    fill: #014751 !important;
}

/* City name labels: readable on light gray, and never block clicks */
.MapexplorerMap svg text {
    pointer-events: none;
    fill: #333 !important;
}

/* Shapes that did not get a section code (tiny slivers) */
.MapexplorerMap svg polygon:not([data-section-code]) {
    display: none;
}

/* ---------- Misc ---------- */

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.info-grid {
    display: inline-flex;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    margin-bottom: 10px;
    width: 30%;
    gap: 1rem;
    flex-wrap: nowrap;
    flex-grow: 1;
}

@media (max-width: 576px) {
    .info-item {
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    .info-item {
        width: 50%;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .info-item {
        width: 50%;
    }
}

.info-item:hover {
    cursor: pointer;
}

.info-item:hover .icon {
    background: #014751;
}

.info-item:hover .value {
    color: #2bc1a0;
}

.info-item .icon {
    background: #2bc1a0;
    color: white;
    height: 60px;
    min-width: 60px;
    font-size: 2.6rem;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
}

.info-item .details {
    display: flex;
    flex-direction: column;
}

.info-item .con-name {
    color: rgb(56, 56, 56);
}

.info-item .value {
    color: #014751;
    font-size: 1.5rem;
    font-weight: bold;
}

.tooltip {
    position: absolute;
    text-align: center;
    padding: 6px;
    font-size: 12px;
    background: lightsteelblue;
    border: 1px solid #333;
    border-radius: 4px;
    pointer-events: none;
}

/* ---------- Legend ---------- */

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
}

.legend-color {
    width: 14px;
    height: 14px;
    display: inline-block;
    margin-left: 8px;
    border-radius: 2px;
}

.legend-default {
    background: #901317;
}

.legend-active {
    background: #014751;
}


