.service-centers {
    position: relative;
}


.service-centers__search-row {
    flex-direction: row !important;
}


.service-centers__map,
.service-centers__search,
.service-centers__empty {
    background: #fff;
}

.service-centers__toolbar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.service-centers__map-canvas {
    width: 100%;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    background: #f7f7f8;
}

.service-centers__search {
    position: relative;
    z-index: 4;
}

.service-centers__search-inner {
    padding: 26px 28px 24px;
}

.service-centers__search-panel {
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(247, 247, 248, 0.78) 0%, rgba(255, 255, 255, 1) 100%);
}

.service-centers__search-label {
    display: inline-block;
    font-weight: 600;
}

.service-centers__search-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-centers__search-submit {
    flex: 0 0 auto;
    min-width: 116px;
    height: 52px;
    padding: 0 24px;
    white-space: nowrap;
}

.service-centers__search-input-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.service-centers__search-input {
    width: 100%;
    height: 52px;
    padding-right: 44px !important;
    border-radius: 14px;
}

.service-centers__search-reset {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    border: 0;
    background: transparent;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.service-centers__search-reset:before,
.service-centers__search-reset:after {
    content: '';
    position: absolute;
    left: 11px;
    top: 4px;
    width: 2px;
    height: 16px;
    background: #999;
    border-radius: 1px;
}

.service-centers__search-reset:before {
    transform: rotate(45deg);
}

.service-centers__search-reset:after {
    transform: rotate(-45deg);
}

.service-centers__search-input-wrap.has-value .service-centers__search-reset {
    opacity: 1;
    visibility: visible;
}

.service-centers__suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 10;
}

.service-centers__suggestions-items {
    display: block;
    background: #fff;
    overflow: hidden;
}

.service-centers__suggestion {
    display: block;
    width: 100%;
    padding: 14px 18px;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.service-centers__suggestion:last-child {
    border-bottom: 0;
}

.service-centers__suggestion:hover {
    background: rgba(0, 0, 0, 0.03);
}

.service-centers__suggestion-title {
    display: block;
    font-size: 14px;
    line-height: 1.35;
    color: #222;
    font-weight: 600;
}

.service-centers__suggestion-meta {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.4;
    color: #777;
}

.service-centers-list__section:first-child {
    margin-top: 0 !important;
}


.service-centers-list__section-head {
    padding: 0 6px 0 6px;
}

.service-centers-list__section-title {
    display: block;
    margin-bottom: 14px;
    color: #222;
}

.service-centers-list--filtered .service-centers-list__section-title {
    font-size: 22px;
}

.service-centers-list__items {
    position: relative;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    overflow: hidden;
}

.service-centers-card-wrap {
    position: relative;
}

.service-centers-card-wrap:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.service-centers-card {
    cursor: pointer;
    align-items: stretch;
    gap: 24px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.service-centers-card:hover {
    background: rgba(0, 0, 0, 0.012);
}

.service-centers-card.is-active {
    box-shadow: 0 0 0 2px var(--theme-base-color, #ee7a29) inset;
    border-radius: 24px;
}

.service-centers-card--no-coordinates {
    cursor: default;
}

.service-centers-card__image-col {
    flex: 0 0 168px;
    width: 168px;
    margin-left: 2%;
}

.service-centers-card .contacts-list__item-link,
.service-centers-card .contacts-list__item-image,
.service-centers-card__image-placeholder {
    display: block;
    width: 168px;
    height: 128px;
}

.service-centers-card .contacts-list__item-image,
.service-centers-card__image-placeholder {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-centers-card__image-col--empty .contacts-list__item-image {
    background: transparent;
}

.service-centers-card__image-empty {
    background: transparent;
    border-radius: 12px;
}

.service-centers-card__layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.service-centers-card__main-col {
    flex: 1 1 auto;
    min-width: 0;
}

.service-centers-card__contacts-col {
    flex: 0 0 250px;
    width: 250px;
    min-width: 250px;
    padding-left: 24px;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.service-centers-card__map-col {
    flex: 0 0 150px;
    width: 150px;
    min-width: 150px;
    padding-left: 24px;
    margin-right: 2%;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
}

.service-centers-card__city {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-centers-card__city::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--theme-base-color, #ee7a29);
    opacity: 0.85;
}

.service-centers-card__detail-title {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.service-centers-card__detail-value {
    line-height: 1.55;
}

.service-centers-card__contacts-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-centers-card__contacts-list a {
    color: inherit;
}

.service-centers-card__contacts-list a:hover {
    color: var(--theme-base-color, #ee7a29);
}

.service-centers-card__map-button {
    min-width: 128px;
}

.service-centers-card__no-coordinates {
    display: inline-block;
    max-width: 140px;
}

.service-centers-card__empty {
    opacity: 0.7;
}

.service-centers__empty {
    border-style: dashed;
}

.service-centers-balloon {
    max-width: 320px;
}

.service-centers-balloon__image-wrap {
    margin-bottom: 12px;
}

.service-centers-balloon__image {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 16px;
}

.service-centers-balloon__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(238, 122, 41, 0.08);
    color: #222;
}

.service-centers-cluster {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(238, 122, 41, 0.16);
}

.service-centers-cluster:before,
.service-centers-cluster:after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--theme-base-color, #ee7a29);
}

.service-centers-cluster:after {
    inset: 10px;
    background: #fff;
}

.service-centers-cluster__count {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

@media (max-width: 1300px) {
    .service-centers-card__contacts-col {
        flex-basis: 220px;
        width: 220px;
        min-width: 220px;
    }

    .service-centers-card__map-col {
        flex-basis: 130px;
        width: 130px;
        min-width: 130px;
    }
}

@media (max-width: 991px) {
    .service-centers__search-inner {
        padding: 20px;
    }

    .service-centers__search-panel {
        padding: 12px;
        border-radius: 18px;
    }

    .service-centers__search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .service-centers__search-submit {
        width: 100%;
        min-width: 0;
    }

    .service-centers-card {
        gap: 18px;
    }

    .service-centers-card__layout {
        flex-direction: column;
        gap: 18px;
    }

    .service-centers-card__contacts-col,
    .service-centers-card__map-col {
        width: 100%;
        min-width: 0;
        flex-basis: auto;
        padding-left: 0;
        border-left: 0;
        padding-top: 16px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .service-centers-card__map-col {
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .service-centers-card {
        flex-direction: column;
    }

    .service-centers-card__image-col,
    .service-centers-card .contacts-list__item-link,
    .service-centers-card .contacts-list__item-image,
    .service-centers-card__image-placeholder {
        width: 100%;
    }

    .service-centers-card__image-col {
        flex-basis: auto;
    }

    .service-centers-card .contacts-list__item-image,
    .service-centers-card__image-placeholder {
        height: 180px;
    }

    .service-centers-card-wrap:not(:last-child)::after {
        left: 20px;
        right: 20px;
    }
}

.service-centers__loading {
    background: #fff;
}
