.pm-clinic-map { width: 100%; min-width: 0; margin-top: auto; }
.pm-clinic-map [hidden] { display: none !important; }
.pm-clinic-map__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.pm-clinic-map__toggle, .pm-clinic-map__route { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 46px; max-width: 100%; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.pm-clinic-map__toggle { border: 1px solid var(--pm-brand-600); border-radius: 12px; padding: 10px 16px; background: var(--pm-brand-600); color: #fff; cursor: pointer; }
.pm-clinic-map__toggle svg { flex: 0 0 20px; }
.pm-clinic-map__toggle:hover { filter: brightness(.92); }
.pm-clinic-map__route { color: var(--pm-brand-600); }
.pm-clinic-map__route:hover { text-decoration: underline; }
.pm-clinic-map :is(button,a):focus-visible { outline: 3px solid var(--pm-brand-600); outline-offset: 4px; }
.pm-clinic-map .pm-clinic-map__notice, .pm-clinic-map .pm-clinic-map__status { margin: 12px 0 0; font-size: 13px; line-height: 1.55; color: var(--pm-ink-700, #36516d); }
.pm-clinic-map__notice a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pm-clinic-map__viewport { position: relative; width: 100%; min-width: 0; margin-top: 20px; overflow: hidden; border: 1px solid var(--pm-brand-200, #c7dbff); border-radius: 16px; background: #fff; }
.pm-clinic-map__viewport iframe { border-radius: 0; display: block; width: 100%; height: 360px; min-height: 0; border: 0; }
.pm-brand-map-preview:has(.pm-home-map) { height: auto; min-height: 0; }
.pm-home-map { display: flex; flex-direction: column; justify-content: center; gap: 20px; width: 100%; height: auto; min-height: 300px; padding: clamp(24px, 3vw, 40px); background: var(--pm-brand-100); }
.pm-home-map h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 600; color: var(--pm-brand-600); }
.pm-home-map > p { line-height: 1.6; }
.pm-home-map > .pm-clinic-map { margin-top: 0; }
.pm-contact-maps { min-width: 0; }
.pm-contact-maps__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; margin-top: 24px; }
.pm-contact-maps__card { display: flex; flex-direction: column; gap: 20px; min-width: 0; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--pm-brand-200, #c7dbff); border-radius: 24px; background: var(--pm-brand-100); }
.pm-contact-maps__card h3 { margin: 0; font-size: 24px; font-weight: 600; color: var(--pm-brand-600); }
.pm-contact-maps__card > p { margin: 0; line-height: 1.6; }
@media (max-width: 767px) {
  .pm-contact-maps__grid { grid-template-columns: minmax(0, 1fr); }
  .pm-clinic-map__viewport iframe { border-radius: 0; height: 320px; }
}

.pm-clinic-map__viewport[aria-busy="true"]::after { content: "Загружаем Яндекс Карты…"; position: absolute; inset: 0; display: grid; place-content: center; padding: 24px; text-align: center; font-size: 15px; line-height: 1.6; color: var(--pm-ink-700, #36516d); background: var(--pm-brand-100); pointer-events: none; }
.pm-clinic-map__viewport[data-map-timeout]::after { content: "Карта пока недоступна. Попробуйте открыть её снова или воспользуйтесь ссылкой «Построить маршрут»."; }

/* One map for all branch cards; selecting a city swaps its contents in place. */
.pm-branch-map { min-width:0; margin-top:24px; padding:clamp(20px,3vw,36px); border:1px solid var(--clinic-line,var(--pm-brand-200)); border-radius:28px; background:#fff; }
.pm-branch-map__head { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.pm-branch-map h3 { margin:0; font-size:clamp(24px,2.5vw,32px); font-weight:600; color:var(--clinic-primary,var(--pm-brand-600)); }
.pm-branch-map__choices { display:flex; flex-wrap:wrap; gap:6px; padding:5px; border:1px solid var(--pm-brand-200); border-radius:15px; background:var(--pm-brand-50); }
.pm-branch-map [hidden] { display:none !important; }
.pm-branch-map__choices button { min-height:44px; padding:10px 20px; border:0; border-radius:10px; color:var(--pm-brand-700); background:transparent; font:inherit; font-size:15px; font-weight:600; cursor:pointer; }
.pm-branch-map__choices button[aria-pressed="true"] { color:#fff; background:var(--pm-brand-600); }
.pm-branch-map__choices button:focus-visible { outline:3px solid var(--pm-brand-500); outline-offset:3px; }
.pm-branch-map__choices button:disabled { opacity:.5; cursor:default; }
.pm-branch-map > .pm-branch-map__address { margin:20px 0; max-width:850px; font-size:17px; line-height:1.6; }
.pm-branch-map .pm-clinic-map__viewport iframe { height:440px; }
.pm-branch-map__fallback { display:flex; flex-wrap:wrap; gap:20px; margin-top:16px; }
.pm-branch-map__fallback a { text-decoration:underline; }
@media(max-width:600px) {
  .pm-branch-map { border-radius:22px; }
  .pm-branch-map__head { align-items:stretch; flex-direction:column; gap:16px; }
  .pm-branch-map__choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pm-branch-map__choices button { min-width:0; padding:10px 8px; font-size:14px; overflow-wrap:anywhere; }
  .pm-branch-map > .pm-branch-map__address { font-size:15px; }
  .pm-branch-map .pm-clinic-map__viewport iframe { height:340px; }
}

.pm-clinic-map__settings { border:0; padding:0; background:none; color:inherit; font:inherit; text-decoration:underline; text-underline-offset:2px; cursor:pointer; }
