/* Branch-specific map links. Scoped to the contact page. */
.contacts-page.has-branch-map-links .contacts-details-section {
    height: auto;
    padding-bottom: 40px;
}
.contacts-page.has-branch-map-links .contacts-details-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    height: auto;
    align-items: stretch;
}
.contacts-page.has-branch-map-links .contacts-list {
    min-width: 0;
    padding-top: 0;
}
.contacts-page.has-branch-map-links .contacts-row {
    width: 100%;
    height: auto;
    min-height: 104px;
    margin: 0;
    padding: 16px 0;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
}
.contacts-page.has-branch-map-links .contacts-row:first-child { padding-top: 0; }
.contacts-page.has-branch-map-links .contacts-row::after { bottom: 0; }
.contacts-page.has-branch-map-links .contacts-row h2 {
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    margin-bottom: 8px;
    font-size: 19px;
    line-height: 1.3;
}
.contacts-page.has-branch-map-links .contacts-row p {
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    align-items: flex-start;
    line-height: 1.4;
}
.contacts-page.has-branch-map-links .contacts-row p i { margin-top: 1px; }
.contacts-page.has-branch-map-links .contacts-row-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.contacts-page.has-branch-map-links .contacts-row-phone { min-height: 28px; }
.contacts-page.has-branch-map-links .contacts-branch-maps { display: flex; gap: 8px; }
.contacts-page.has-branch-map-links .contacts-map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    min-height: 44px;
    padding: 8px;
    border: 1px solid #45474b;
    border-radius: 10px;
    background: #292a2d;
    color: #fff;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease;
}
.contacts-page.has-branch-map-links .contacts-map-link img { display: block; width: 24px; height: 24px; object-fit: contain; }
.contacts-page.has-branch-map-links .contacts-map-link > span { display: none; }
.contacts-page.has-branch-map-links .contacts-map-link--2gis:hover { border-color: #65c344; background: #253425; }
.contacts-page.has-branch-map-links .contacts-map-link--yandex:hover { border-color: #ff443a; background: #3b292a; }
.contacts-page.has-branch-map-links .contacts-map-link:focus-visible { outline: 3px solid #51adff; outline-offset: 3px; }
.contacts-page.has-branch-map-links .contacts-main-phone { width: 100%; padding-top: 22px; }
.contacts-page.has-branch-map-links .contacts-map { display: flex; min-width: 0; }
.contacts-page.has-branch-map-links .contacts-map .map-frame { width: 100%; height: auto; min-height: 560px; flex: 1; }

@media (max-width: 1180px) {
    .contacts-page.has-branch-map-links .contacts-details-grid { grid-template-columns: minmax(0, 1fr); }
    .contacts-page.has-branch-map-links .contacts-map .map-frame { height: 420px; min-height: 420px; }
}
@media (max-width: 760px) {
    .contacts-page.has-branch-map-links .contacts-details-section { padding-bottom: 28px; }
    .contacts-page.has-branch-map-links .contacts-row { display: flex; flex-direction: column; gap: 12px; min-height: 0; padding: 20px 0; }
    .contacts-page.has-branch-map-links .contacts-row h2 { font-size: 19px; }
    .contacts-page.has-branch-map-links .contacts-row-actions { width: 100%; align-items: flex-start; gap: 12px; }
    .contacts-page.has-branch-map-links .contacts-branch-maps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; width: 100%; }
    .contacts-page.has-branch-map-links .contacts-map-link { width: 100%; min-height: 48px; gap: 8px; padding: 10px 8px; border-radius: 8px; font-size: 14px; line-height: 20px; }
    .contacts-page.has-branch-map-links .contacts-map-link > span { display: inline; }
    .contacts-page.has-branch-map-links .contacts-map-link img { width: 22px; height: 22px; }
    .contacts-page.has-branch-map-links .contacts-map .map-frame { height: 320px; min-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
    .contacts-page.has-branch-map-links .contacts-map-link { transition: none; }
}
