body {
    font-family: 'Lato', sans-serif;
}


/*********************** MAP **********************/
.offers-map,
.charts-map,
.contacts-map {
    font-family: 'Lato', sans-serif;
    display: block;
    max-width: 100%;
    margin: auto;
}

.offers-map.loading:before,
.charts-map.loading:before {
    content: '';
    display: block;
    border: 2px solid #f3f3f3;
    border-radius: 50%;
    border-top: 2px solid #3498db;
    width: 50px;
    height: 50px;
    margin: auto;
    -webkit-animation: spin .7s linear infinite; /* Safari */
    animation: spin .7s linear infinite;
}
/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

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

.offers-map.loading .map,
.charts-map.loading .map {
    display: none;
}

.offers-map svg,
.charts-map svg,
.contacts-map svg {
    max-width: 100%;
    max-height: 690px;
    margin: auto;
    display: block;
}

.charts-map svg {
    background: url('../img/logo3.png') left bottom no-repeat;
    background-size: 20%;
}

.contacts-map svg .exits,
.contacts-map svg #roads,
.contacts-map svg #railway,
.contacts-map svg #wisla {
    display: none;
}

.region,
.commune {
    cursor: pointer;
    transition: all .2s;
}

.region.hover,
.commune.hover {
    fill: #5760AB;
}

.contacts-map {
    max-width: 900px;
}
.contacts-map .commune.disabled {
    cursor: not-allowed;
}
.investor-contacts .commune.disabled.hover {
    fill: #D8D9ED;
}
.commune-contacts {
    position: relative;
}
.commune-contacts .commune.disabled.hover {
    fill: #EC273C;
}
.commune-contacts .contacts-list {
    display: none;
}

.commune-contacts .contacts-list .contacts-wrapper {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,.9);
    overflow-y: auto;
}

.commune-contacts .contact {
    width: 450px;
    max-width: 100%;
}

.commune-contacts .contact-image {
    float: left;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-right: 10px;
}

.contact-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.back-button-container {
    display: none;
}
.region-map {
    display: none;
}

.back-button {
    display: inline-block;
    background: #EE273B;
    padding: 8px 24px;
    color: #fff;
    cursor: pointer;
}

.map-info {
    margin: 25px auto 20px auto;
}

.map-info > span {
    display: inline-block;
}

.map-info .color {
    white-space: nowrap;
    margin-right: 15px;
}

.map-info .color i {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 5px;
    vertical-align: middle;
}
.map-info .color:nth-child(1) i {
    background: #D8D9ED;
}
.map-info .color:nth-child(2) i {
    background: #B1B1D8;
}
.map-info .color:nth-child(3) i {
    background: #8285C0;
}
.map-info .color:nth-child(4) i {
    background: #3C4DA1;
}

.contacts-map path.commune.selected {
    fill: #5760AB;
}

.contacts-map .commune-label {
    display: none;
}

.contacts-list {
    font-size: 13px;
}

.contacts-list .contact {
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.contacts-list .contact a {
    text-decoration: none;
}

.contacts-list .contact > span {
    display: block;
}

#country-filter {
    padding: 8px 10px;
    font-size: 15px;
}
.investors-table {
    text-align: left;
    border-collapse: collapse;
    width: 100%;
    margin-top: 10px;
}
.investors-table th, .investors-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.investors-table th {
    background: #D8D9ED;
}
.contacts-list .contact .contact-name {
    font-size: 18px;
    color: #EE273B;
}

@media screen and (max-width: 700px) {
    .investors-table {
        display: block;
    }
    .investors-table thead {
        display: none;
    }
    .investors-table tr,
    .investors-table td {
        display: block;
        padding-left: 0;
    }
    .investors-table td:not(.contact-name):before {
        content: attr(data-label);
        margin-right: 5px;
        font-weight: bold;
    }
}

.commune-contacts #region-labels g[data-region] rect,
.commune-contacts .commune-labels g[data-commune] rect {
    display: none;
}

/************************ TOOLTIPS ***********************/

.tipso_bubble {
    font-size: 12px;
}
