.map-button.poly-button {
    min-width: 140px;
    margin: 0 10px 10px 0;
}
.map-button.poly-button.active {
    background-color: yellow;
    cursor: pointer;
}
#draw-canvas {
    cursor: crosshair;
}
.polygon-control-wrapper {
    display: flex;
    flex-direction: column;
    width: max-content;
}
.polygon-control {
    float: left;
}
.interest-control-wrapper {
}
.interest-control {
    position: relative;
    display: flex;
    vertical-align: top;
    z-index: 10;
    font-family: Arial,Helvetica,sans-serif;
    font-size: 13px;
    margin: 0 10px 10px 0;
}
.interest-control .btn {
    font-size: 13px;
}
.interest-control .select2-selection__choice,
.interest-control .select2-search__field {
    line-height: 26px;
}
.interest-control .select2-selection__rendered {
    margin: -2px 0 -1px !important;
}
.interest-control__left,
.interest-control__right {
    border-radius: 3px;
    background-color: #fff;
    box-shadow: 0 1px 2px 1px rgba(0,0,0,.15), 0 2px 5px -3px rgba(0,0,0,.15);
    height: 100%;
}
.interest-control__left {
    padding: 0;
}
.interest-control__button {
    box-sizing: border-box!important;
    border-radius: 3px;
    background-clip: border-box;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    -webkit-transition: background-color .15s ease-out,border-color .15s ease-out,opacity .15s ease-out;
    transition: background-color .15s ease-out,border-color .15s ease-out,opacity .15s ease-out;
    text-align: left;
    white-space: nowrap;
    background-color: #fff;
    border-color: transparent;
    display: flex;
    justify-content: space-between;
    padding: 1px 5px;
}
.interest-control__button-icon {
    background-image: url("images/interest-icon.png");
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 5px solid transparent;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 1px;
}
.interest-control__button-text,
.interest-control__filter {
    display: inline-block;
    position: relative;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    font-size: 13px;
    line-height: 26px;
    margin-left: 5px;
    margin-right: 5px;
}
.interest-control__button-arrow {
    display: inline-block;
    width: 29px;
    height: 26px;
    right: 0;
    top: 0;
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMSIgaGVpZ2h0PSI2Ij48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4zMSAwTDUuNSA0LjY3LjY5IDAgMCAuNjcgNS41IDYgMTEgLjY3eiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+) center no-repeat;
    transition: transform .15s ease-out;
}
.interest-control__opened .interest-control__button-arrow{
    transform: rotate(-180deg);
}
.interest-control__panel {
    z-index: 1000;
    padding: 3px;
    background: #fff;
    max-height: 0;
    max-width: 0;
    padding: 0;
    overflow: hidden;
    transition: .15s;
    float: right;
}
.interest-control__opened .interest-control__panel {
    max-height: max-content;
    max-width: 400px;
    padding: 3px;
    margin-top: 7px;
}
.interest-control select {
    margin: 0 5px;
    width: calc(100% - 10px);
}
.control__distance {
    margin: 0 5px;
}
.control__distance .control__distance-head {
    white-space: nowrap;
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    cursor: pointer;
}
.control__distance .control__distance-head .btn {
    top: -5px;
}
.control__distance-ruler {
    margin: 12px 18px;
    width: calc(100% - 38px);
    border: lightgrey solid 1px;
    height: 5px;
    border-radius: 2px;
    background-color: lightgrey;
    position: relative;
}
.control__distance-button {
    position: absolute;
    left: -19px;
    height: 25px;
    width: 40px;
    top: -11px;
    padding-top: 4px;
    border: lightgrey solid 1px;
    border-radius: 4px;
    background-color: white;
    text-align: center !important;
}
.interest-control__down-buttons {
    display: flex;
    justify-content: space-between;
}
.interest-control__down-buttons .btn {
    margin: 5px;
}
.interest-control__right {
    padding: 1px 1px;
    margin-left: 5px;
}
.interest-control__right.empty {
    display: none;
}
.interest-control__opened .interest-control__right {
    display: none;
}
.interest-control__filter {
    white-space: normal;
    word-break: break-word;
}
.interest-control.waiting .interest-control__apply-button {
    cursor: not-allowed;
}
.interest-control__apply-button .icon {
    display: none;
}
.waiting .interest-control__apply-button .icon {
    display: inline-block;
}
.userpoints-control {
    position: relative;
    display: flex;
    vertical-align: top;
    z-index: 9;
    font-family: Arial,Helvetica,sans-serif;
    font-size: 13px;
    border-radius: 3px;
    margin: 0 10px 10px 0;
}
.userpoints-control .btn {
    font-size: 13px;
}
.userpoints-control__left,
.userpoints-control__right {
    border-radius: 3px;
    background-color: #fff;
    box-shadow: 0 1px 2px 1px rgba(0,0,0,.15), 0 2px 5px -3px rgba(0,0,0,.15);
    height: 100%;
}
.userpoints-control__left {
    padding: 0 5px;
}
.userpoints-control__button {
    box-sizing: border-box!important;
    border-radius: 3px;
    background-clip: border-box;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    -webkit-transition: background-color .15s ease-out,border-color .15s ease-out,opacity .15s ease-out;
    transition: background-color .15s ease-out,border-color .15s ease-out,opacity .15s ease-out;
    text-align: left;
    white-space: nowrap;
    background-color: #fff;
    border-color: transparent;
    display: flex;
    justify-content: space-between;
    padding: 1px;
}
.userpoints-control__button-icon {
    background-image: url("images/user-icon.png");
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 5px solid transparent;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 1px;
}
.userpoints-control__button-text {
    display: inline-block;
    position: relative;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    font-size: 13px;
    line-height: 26px;
    margin-left: 5px;
    margin-right: 5px;
}
.userpoints-control__button-arrow {
    display: inline-block;
    width: 29px;
    height: 26px;
    right: 0;
    top: 0;
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMSIgaGVpZ2h0PSI2Ij48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4zMSAwTDUuNSA0LjY3LjY5IDAgMCAuNjcgNS41IDYgMTEgLjY3eiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+) center no-repeat;
    -webkit-transition: -webkit-transform .15s ease-out;
    transition: transform .15s ease-out;
}
.userpoints-control__opened .userpoints-control__button-arrow{
    webkit-transform: rotate(-180deg);
    transform: rotate(-180deg);
}
.userpoints-control__panel {
    z-index: 1000;
    padding: 3px;
    background: #fff;
    max-height: 0;
    max-width: 0;
    padding: 0;
    overflow: hidden;
    transition: .15s;
    float: right;
}
.userpoints-control__opened .userpoints-control__panel {
    max-height: fit-content;
    max-width: 400px;
    padding: 3px;
    padding-top: 10px;
}
.userpoints-control__points-info {
    max-height: 120px;
    overflow-y: auto;
}
.userpoints-control__point-info {
    margin-bottom: 5px;
    padding: 0 5px;
}
.userpoints-control__point-info:last-child {
    margin-bottom: 0;
}
.userpoints-control__point-info input {
    margin-right: 5px;
}
.userpoints-control__point-info .btn--small {
    width: 34px;
}
.userpoints-control__points-buttons {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
}
.userpoints-control__points-buttons .btn {
    margin: 5px;
}
.userpoints-control__points-buttons .btn:last-child {
    /*margin-right: 0;*/
}
.userpoints-control .userpoints-control__button-end {
    display: none;
}
.userpoints-control .userpoints-control__button-begin {
    display: block;
}
.userpoints-control.active .userpoints-control__button-end {
    display: block;
}
.userpoints-control.active .userpoints-control__button-begin {
    display: none;
}
.interest-control .userpoints-control {
    margin: 15px 0 10px;
}
.interest-control .userpoints-control__left {
    padding: 0;
    width: calc(100% - -6px);
    margin: 0 -3px;
    box-shadow: none;
}
.interest-control .userpoints-control__button{
    background-color: ghostwhite;
    padding: 5px 5px 0;
}
.interest-control .userpoints-control__opened .userpoints-control__panel {
    max-width: none;
    width: 100%;
    background: ghostwhite;
    max-height: none;
}
.userpoints-control .userpoints-control__direction-title {
    text-align: center;
    line-height: 26px;
}
.userpoints-control__direction-buttons {
    display: flex;
    justify-content: space-around;
}
@media (max-width: 640px) {
    .interest-control__button-text,
    .interest-control__button-arrow {
        display: none;
    }
    .interest-control__opened .interest-control__button-text,
    .interest-control__opened .interest-control__button-arrow {
        display: block;
    }
    .userpoints-control__button-text,
    .userpoints-control__button-arrow {
        display: none;
    }
    .userpoints-control__opened .userpoints-control__button-text,
    .userpoints-control__opened .userpoints-control__button-arrow {
        display: block;
    }
}
.map-info {
    max-width: 220px;
    font-size: 14px;
    line-height: 16px;
    position: relative;
    z-index: 100;
}
.map-info-row {
    display: flex;
    justify-content: space-between;
    column-gap: 5px;
}
.map-info p {
    white-space: initial;
    display: block;
    text-align: left;
    padding-bottom: 0;
}
.map-info p.label {
    font-weight: 600;
    text-indent: -1em;
    margin-left: 1em;
}
.map-info p.value {
    text-align: right;
    word-break: break-word;
}
.map-info .images img {
    margin-top: 5px;
}
.map-info .images img[data-origin] {
    cursor: zoom-in;
}
.map-info img:nth-child(n+2){
    display: none;
}
.map-info-buttons {
    margin-top: 5px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    row-gap: 5px;
}
