.rf-map,
.rf-map *{
    box-sizing: border-box;
}    
.rf-map {
    position: relative;
    max-width: 1580px;
    margin: auto;
    padding: 20px;
}
.rf-map .district b {
    position: absolute;
    z-index: 5;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    left: 6px;
    top: 18px;
    transition: all 0.3s;
}
.rf-map .district span {
    position: absolute;
    z-index: 5;
    top: 20px;
    left: 30px;
    font-size: 13px;
    font-weight: bold;
    font-family: Tahoma, sans-serif;
    line-height: 1;
    color: #afc3d5;
}
.rf-map .district {
    display: none;
}
.rf-map.open .district b {
    top: 50;
    left: 0;
    border-radius: 0;
    width:500px;
    height: 500px;
    border-radius: 2%;	
    box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 16px 20px rgba(0,0,0,0.2);    
}
.rf-map.open .district span {
    color: #000;
}
.rf-map svg {
    width: 100%;
    height: 100%;
    /*filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.5));*/    
}
.rf-map path {
    stroke: #FFFFFF;
    stroke-width: 1;
    stroke-linejoin: round; 
}

.rf-map g[type="capital"] {
    pointer-events: none;
}

.rf-map path[type="city"] {
    stroke: #000000;
    stroke-width: 0;
    stroke-linejoin: round; 
}

.rf-map [data-code] {
    fill: #afc3d5;
    transition: fill 0.2s;
}
.rf-map [data-code]:hover {
    fill: #0180ef;
}
.rf-map .district-text {
    display: none;
    position: absolute;
    z-index: 6;
    left: 0;
    top: 60px;
    width: calc(100% - 300px);
    height: calc(100% - 90px);
    padding: 0 20px;
    overflow: auto;
    color: #000;
    font-size: 13px;
    font-family: Verdana, sans-serif;   
}
.rf-map .close-district {
    opacity: 0;
    z-index: 6;
    position: absolute;
    top: 50px;
    left: 420px;
    display: flex;
    align-items: center;
    justify-content: center;    
    width: 40px;
    height: 40px;
    line-height: 1;
    font-size: 40px;
    color: #000;
    cursor: pointer;
    transition: opacity 1s;
    pointer-events: none;
}
.rf-map.open .close-district {
    opacity: 1;
    pointer-events: initial;
}
.rf-map .district-links {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
}
.rf-map .district-links div {
    font-size: 13px;
    font-family: Verdana, sans-serif; 
    padding: 4px;
}
.rf-map .district-links div:after {
    content: " | ";
    color: afc3d5;
}
.rf-map .district-links div:last-child:after {
    content: "";
}
.dropfill {
    fill: #afc3d5!important;
}
.mainfill {
    fill: #1d4567!important;
}
@media (min-width:768px){
    .rf-map .district b {
        width: 28px;
        height: 28px;    
        left: 6px;
        top: 28px;
    }
    .rf-map .district span {
        top: 80px;
        left: 46px;
        font-size: 20px;
        font-weight: normal;
    }
    .rf-map .district-text {
        left: 30px;
        top: 120px;
        width: calc(100% - 60px);
        height: calc(100% - 130px);
        font-size: 16px; 
    }
    .rf-map .close-district {  
        width: 60px;
        height: 60px;
        font-size: 60px;
    }
    .rf-map .district-links {
        display: none;
    }
}
/* Цвета регионов */
.rf-map [data-code="RU-SAR"] {
    fill: #8da3b7;
    cursor: pointer;
}
.rf-map [data-code="RU-SA"] {
    fill: #8da3b7;
    cursor: pointer;
}
.rf-map [data-code="RU-KO"] {
    fill: #8da3b7;
}
.rf-map [data-code="RU-SAR"]:hover {
    fill: #1bad33;
}
.rf-map [data-code="RU-SA"]:hover {
    fill: #e3954b;
}
.rf-map [data-code="RU-KO"]:hover {
    fill: #bf37e1;
}