/* Service map: branch list panel + map (contact and branches pages) */

.branch-map {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: solid 1px #e1e1fb;
    border-radius: 18px;
    overflow: hidden;
    margin: 30px 0 60px;
}

/* ---- left panel ---- */

.branch-map__panel {
    flex: 0 0 400px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    border-right: solid 1px #e1e1fb;
    background: #fff;
}

.branch-map__panel__head {
    padding: 24px 24px 16px;
    border-bottom: solid 1px #e1e1fb;
}

.branch-map__panel__title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    color: #2c2c51;
    margin-bottom: 16px;
}

.branch-map__panel__count {
    margin-left: 10px;
    min-width: 30px;
    height: 24px;
    padding: 0 8px;
    border-radius: 12px;
    background: #fef5e9;
    color: #f5a416;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.branch-map__search {
    position: relative;
}

.branch-map__search__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94949f;
    line-height: 0;
    pointer-events: none;
}

.branch-map__search__input {
    width: 100%;
    height: 46px;
    border: solid 1px #e1e1fb;
    border-radius: 23px;
    padding: 0 18px 0 44px;
    font-size: 14px;
    color: #2c2c51;
    background: #f4f8fb;
    outline: none;
    transition: .2s;
}

.branch-map__search__input:focus {
    background: #fff;
    border-color: #15b2ec;
}

.branch-map__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.branch-map__chip {
    border: solid 1px #e1e1fb;
    background: #fff;
    color: #7b7b93;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 16px;
    cursor: pointer;
    transition: .2s;
}

.branch-map__chip:hover {
    border-color: #15b2ec;
    color: #15b2ec;
}

.branch-map__chip.is-active {
    background: #2c2c51;
    border-color: #2c2c51;
    color: #fff;
}

/* ---- list ---- */

.branch-map__list {
    flex: 1 1 auto;
    overflow-y: auto;
    max-height: 520px;
}

.branch-map__list::-webkit-scrollbar {
    width: 5px;
}

.branch-map__list::-webkit-scrollbar-thumb {
    background: #cecee2;
    border-radius: 3px;
}

.branch-map__item {
    display: flex;
    align-items: flex-start;
    width: 100%;
    text-align: left;
    padding: 18px 24px;
    border: none;
    border-bottom: solid 1px #f0f0f8;
    border-left: solid 3px transparent;
    background: #fff;
    cursor: pointer;
    transition: .2s;
}

.branch-map__item:hover {
    background: #f4f8fb;
}

.branch-map__item.is-active {
    background: #f4f8fb;
    border-left-color: #fd475d;
}

.branch-map__item__index {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    margin-right: 14px;
    border-radius: 10px;
    background: #f4f8fb;
    color: #94949f;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

.branch-map__item:hover .branch-map__item__index {
    background: #e1e1fb;
}

.branch-map__item.is-active .branch-map__item__index {
    background: #fd475d;
    color: #fff;
}

.branch-map__item__body {
    flex: 1 1 auto;
    min-width: 0;
}

.branch-map__item__title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #2c2c51;
    margin-bottom: 3px;
}

.branch-map__item__address {
    display: block;
    font-size: 13px;
    line-height: 19px;
    color: #7b7b93;
}

.branch-map__item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.branch-map__item__tag {
    font-size: 11px;
    font-weight: 600;
    color: #7b7b93;
    background: #f4f8fb;
    border-radius: 10px;
    padding: 4px 10px;
}

.branch-map__item__tag--city {
    background: rgba(21, 178, 236, .1);
    color: #15b2ec;
}

.branch-map__empty {
    display: none;
    padding: 32px 24px;
    text-align: center;
    color: #7b7b93;
    font-size: 14px;
}

/* ---- map ---- */

.branch-map__map {
    flex: 1 1 auto;
    min-width: 0;
}

#branch-map-canvas {
    width: 100%;
    height: 100%;
    min-height: 640px;
}

.branch-map__bubble strong {
    display: block;
    font-size: 15px;
    color: #2c2c51;
    margin-bottom: 4px;
}

.branch-map__bubble span {
    font-size: 13px;
    color: #7b7b93;
}

@media (max-width: 991px) {
    .branch-map {
        flex-direction: column-reverse;
        border-radius: 14px;
        margin: 20px 0 40px;
    }

    .branch-map__panel {
        flex: 1 1 auto;
        max-width: 100%;
        border-right: none;
    }

    .branch-map__panel__head {
        padding: 20px 16px 14px;
    }

    .branch-map__item {
        padding: 16px;
    }

    .branch-map__list {
        max-height: 420px;
    }

    #branch-map-canvas {
        min-height: 320px;
    }
}
