.wtb-dev {
    --wtb-orange: #ef7d00;
    --wtb-text: #313131;
    --wtb-muted: #777;
    --wtb-border: #dfe4e8;
    --wtb-light: #f6f6f6;
    color: var(--wtb-text);
}

.wtb-dev-title { margin-bottom: 48px; }

.wtb-dev-filters { margin-bottom: 46px; }
.wtb-dev-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px 180px;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}
.wtb-dev-search__input-wrap { position: relative; }
.wtb-dev-search__input {
    height: 50px;
    padding-right: 64px;
    border-radius: 4px;
}
.wtb-dev-search__button {
    position: absolute;
    top: 0;
    right: 0;
    width: 58px;
    height: 50px;
    border-radius: 0 4px 4px 0;
    font-size: 22px;
}
.wtb-dev-city-select,
.wtb-dev-near-button { height: 50px; }
.wtb-dev-near-button { white-space: nowrap; }

.wtb-dev-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.wtb-dev .btn-tag {
    border: 1px solid #b8cce0;
    background: #fff;
    color: var(--wtb-text);
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.2;
    padding: 7px 12px;
    text-decoration: none;
}
.wtb-dev .btn-tag.active {
    background: #0054a6;
    border-color: #0054a6;
    color: #fff;
}
.wtb-dev .btn-tag.active span { color: #fff !important; }

/* Сертифицированные партнёры визуально выделяются отдельно от остальных типов. */
.wtb-dev .btn-tag.btn-tag--certified {
    border-color: var(--wtb-orange);
}
.wtb-dev .btn-tag.btn-tag--certified.active {
    background: var(--wtb-orange);
    border-color: var(--wtb-orange);
    color: #fff;
}
.wtb-dev .btn-tag.btn-tag--certified.active span {
    color: #fff !important;
}

.wtb-dev-layout {
    display: grid;
    grid-template-columns: 480px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.wtb-dev-store-list {
    max-height: 680px;
    overflow: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}
.wtb-dev-map-wrap {
    position: sticky;
    top: 16px;
}
.wtb-dev-map {
    width: 100%;
    height: 680px;
    overflow: hidden;
    background: #eef1f3;
}
.wtb-dev-map--detail { height: 480px; margin-top: 36px; }

.wtb-dev-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    margin-bottom: 10px;
    border: 1px solid var(--wtb-border);
    border-radius: 4px;
    background: #fff;
}
.wtb-dev-card--compact { margin: 0; min-height: 100%; }
.wtb-dev-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.wtb-dev-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 6px;
    border: 1px solid #d7e2ec;
    border-radius: 4px;
    color: #777;
    font-size: 12px;
    line-height: 1.2;
}
.wtb-dev-tag--certified {
    border-color: var(--wtb-orange);
}
.wtb-dev-card__title {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 500;
}
.wtb-dev-contact {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 9px;
    font-size: 14px;
    line-height: 1.45;
}
.wtb-dev-contact a { text-decoration: none; }
.wtb-dev-contact a:hover { color: var(--wtb-orange); }

.wtb-dev-card__address { margin-bottom: 13px; }
.wtb-dev-card__contacts { margin-bottom: 2px; }
.wtb-dev-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.wtb-dev-card__details { grid-column: 1 / -1; }
.wtb-dev-card__action,
.wtb-dev-card__details { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

.wtb-dev-marketplaces { margin: 82px 0 20px; }
.wtb-dev-marketplaces__items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 34px 52px;
    margin-top: 28px;
}
.wtb-dev-marketplaces__items img {
    display: block;
    width: auto;
    max-width: 190px;
    height: 38px;
    object-fit: contain;
    transition: transform .25s ease;
}
.wtb-dev-marketplaces__items a:hover img { transform: scale(1.04); }

.wtb-dev-balloon { min-width: 285px; max-width: 340px; font-family: inherit; }
.wtb-dev-balloon__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.wtb-dev-balloon__tag { border: 1px solid #d7e2ec; border-radius: 3px; padding: 2px 4px; color: #777; font-size: 11px; }
.wtb-dev-balloon__tag--certified { border-color: var(--wtb-orange); }
.wtb-dev-balloon__title { margin: 0 0 10px; font-size: 17px; font-weight: 500; }
.wtb-dev-balloon__line { margin: 5px 0; font-size: 13px; line-height: 1.35; }
.wtb-dev-balloon__more { display: inline-block; margin-top: 8px; color: var(--wtb-orange) !important; font-weight: 500; text-decoration: none; }

.wtb-dev-detail__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 30px;
}
.wtb-dev-detail__tags { justify-content: flex-end; max-width: 50%; margin: 0; }
.wtb-dev-detail__address { font-size: 18px; font-weight: 500; margin-bottom: 44px; }
.wtb-dev-detail__contacts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    align-items: center;
    gap: 20px;
    padding: 24px;
    margin-bottom: 42px;
    background: var(--wtb-light);
}
.wtb-dev-detail__contact-block { text-align: center; min-width: 0; }
.wtb-dev-contact--detail { justify-content: center; margin-bottom: 4px; font-size: 16px; overflow-wrap: anywhere; }
.wtb-dev-detail__hint { color: #888; font-size: 12px; }
.wtb-dev-detail__route { justify-self: end; }
.wtb-dev-detail__about { margin-bottom: 28px; }
.wtb-dev-detail__text { line-height: 1.55; }
.wtb-dev-near { margin-top: 72px; }
.wtb-dev-near__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.wtb-dev-near__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wtb-dev-all-link,
.wtb-dev-more-link {
    position: relative;
    padding-right: 20px;
    color: #0054a6 !important;
    font-weight: 500;
    text-decoration: none;
}
.wtb-dev-more-link { color: var(--wtb-orange) !important; }
.wtb-dev-all-link::after,
.wtb-dev-more-link::after { content: '›'; position: absolute; right: 4px; transition: transform .2s ease; }
.wtb-dev-all-link:hover::after,
.wtb-dev-more-link:hover::after { transform: translateX(4px); }

@media (max-width: 1199.98px) {
    .wtb-dev-search { grid-template-columns: minmax(0, 1fr) 220px; }
    .wtb-dev-near-button { grid-column: 2; }
    .wtb-dev-layout { grid-template-columns: 1fr; }
    .wtb-dev-store-list {
        order: 2;
        max-height: none;
        overflow: visible;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding-right: 0;
    }
    .wtb-dev-card { margin: 0; }
    .wtb-dev-map-wrap { position: static; order: 1; }
    .wtb-dev-map { height: 520px; }
    .wtb-dev-detail__contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wtb-dev-detail__route { justify-self: center; }
}

@media (max-width: 767.98px) {
    .wtb-dev-title { margin-bottom: 30px; }
    .wtb-dev-search { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
    .wtb-dev-city-select,
    .wtb-dev-near-button { width: 100%; }
    .wtb-dev-filter-tags { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
    .wtb-dev .btn-tag { white-space: nowrap; }
    .wtb-dev-store-list { grid-template-columns: 1fr; }
    .wtb-dev-map { height: 420px; }
    .wtb-dev-marketplaces { margin-top: 56px; }
    .wtb-dev-marketplaces__items { justify-content: center; gap: 24px 34px; }
    .wtb-dev-marketplaces__items img { max-width: 145px; height: 30px; }
    .wtb-dev-detail__head { display: block; }
    .wtb-dev-detail__tags { justify-content: flex-start; max-width: none; margin-top: 18px; }
    .wtb-dev-detail__address { margin-bottom: 28px; }
    .wtb-dev-detail__contacts { grid-template-columns: 1fr; text-align: left; }
    .wtb-dev-detail__contact-block { text-align: left; }
    .wtb-dev-contact--detail { justify-content: flex-start; }
    .wtb-dev-detail__route { justify-self: stretch; }
    .wtb-dev-detail__route .btn { width: 100%; }
    .wtb-dev-map--detail { height: 390px; }
    .wtb-dev-near__head { display: block; }
    .wtb-dev-all-link { display: inline-block; margin-top: 12px; }
    .wtb-dev-near__grid { grid-template-columns: 1fr; }
}


.wtb-dev-balloon__line {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}
.wtb-dev-balloon__icon {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    fill: currentColor;
    color: #313131;
}


/* Search button: center icon independently of Bootstrap button line-height/padding. */
.wtb-dev-search__button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    line-height: 1 !important;
}
.wtb-dev-search__button .wtb-dev-search-icon {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0;
    flex: 0 0 20px;
}


/* Button icons: protect against global site SVG rules. */
.wtb-dev .wtb-dev-search__button svg.wtb-dev-search-icon,
.wtb-dev .wtb-dev-near-button svg.wtb-dev-near-icon {
    position: static !important;
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    flex: 0 0 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    fill: #fff !important;
    color: #fff !important;
}

.wtb-dev .wtb-dev-near-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    color: #fff !important;
    line-height: 1 !important;
}
.wtb-dev .wtb-dev-near-button > span {
    color: #fff !important;
    line-height: 1.2;
}

.wtb-dev .wtb-dev-search__button {
    color: #fff !important;
}
