.crime-cmp td:nth-child(n+2):nth-of-type(-n+3) {
    display: none
}

.crime-cmp.is-hood td:nth-of-type(3) {
    display: table-cell !important
}

.crime-cmp.is-city td:nth-of-type(2) {
    display: table-cell !important
}

@media (max-width:579px) {
    .crime-chance {
        display: flex;
        flex-flow: column;
        justify-content: flex-start;
        gap: 15px;
    }

    .crime-chance .chance-item {
        display: flex;
        flex-flow: column;
        justify-content: space-evenly;
        align-items: flex-start;
        padding: 15px 0;
        height: 130px;
        background: #fff url(/images/ico_sprite_crime.png) no-repeat;
        background-origin: content-box;
        border: solid 8px #eaf1f7;
        border-radius: 8px;
    }

    .crime-chance .chance-item.vc {
        background-position: 0 -500px
    }
		
    .crime-chance .chance-item.pc {
        background-position: 0 0
    }

    .crime-chance .chance-item.tc {
        background-position: 0 -1000px
    }

    .crime-chance .chance-item span {
        margin: 0 15px 0 130px
    }

    .crime-chance .chance-item span:first-child {
        font-size: 1.6rem;
        line-height: 1.2
    }

    .crime-chance .chance-item span:last-child {
        font-size: 2.5rem;
        line-height: 1
    }
}

@media (min-width:580px) {
    .crime-chance {
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-between;
        gap: 15px
    }

    .crime-chance .chance-item {
        display: flex;
        flex-flow: column;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem;
        height: 230px;
        background: #fff url(/images/ico_sprite_crime.png) no-repeat;
        text-align:center;
        border: solid 2px #eaf1f7;
        border-radius: 8px;
    }

    .crime-chance .chance-item.vc {
        background-position: 50% -420px
    }

    .crime-chance .chance-item.pc {
        background-position: 50% 80px
    }

    .crime-chance .chance-item.tc {
        background-position: 50% -920px
    }

    .crime-chance .chance-item span:first-child {
        font-size: 1.6rem;
        line-height: 1.2
    }

    .crime-chance .chance-item span:last-child {
        font-size: 2.5rem;
        line-height: 1
    }
}

.how-safe-chart {
    float: left;
    width: 100%;
    min-height: 200px;
    height: 100%
}

.crime-map {
    position: relative;
    width: 100%;
    height: 50vw;
    min-height: 30vh;
    max-height: 60vh
}

.crime-map .crime-map-map {
    width: 100%;
    height: 100%
}

.crime-map .crime-map-bubble {
    display: block;
    position: absolute;
    z-index: 200;
    min-width: 5rem;
    max-width: 16rem;
    min-height: 2rem;
    padding: .3rem .7rem;
    border-radius: .3rem;
    border: solid 1px rgba(0, 0, 0, .2);
    background-color: rgba(232, 232, 232, .9);
    color: #333;
    opacity: 1;
    transition: opacity 200ms linear;
    font-size: 1.2rem;
    white-space: nowrap
}

.crime-map .crime-map-bubble[data-hide] {
    opacity: 0;
    transition: opacity 200ms linear;
    pointer-events: none
}

.crime-map-source,
.crime-map-text {
    margin: 1rem 0 0 0
}

.crime-map-source {
    white-space: nowrap;
    font-size: 1.2rem;
    line-height: 1.2;
    overflow: hidden
}

.crime-map-legend {
    display: flex;
    margin-top: 3px
}

.crime-map-legend li {
    flex: 1;
    overflow: hidden;
    border-bottom: solid 1rem;
    line-height: 2rem;
    white-space: nowrap;
    font-size: 1.3rem;
    font-style: normal
}

.crime-map-legend li:nth-of-type(1) {
    border-bottom-color: #eefcff
}

.crime-map-legend li:nth-of-type(2) {
    border-bottom-color: #a6d4de
}

.crime-map-legend li:nth-of-type(3) {
    border-bottom-color: #6ab0be
}

.crime-map-legend li:nth-of-type(4) {
    border-bottom-color: #3b8d9e
}

.crime-map-legend li:nth-of-type(5) {
    border-bottom-color: #176c7e
}

.crime-map-legend li:nth-of-type(6) {
    border-bottom-color: #004e5e;
    text-align: right;
    margin-right: 1rem
}

.crime-map-legend li:nth-of-type(7) {
    border-bottom-color: #ccc;
    text-align: center
}
