.branch-map-layer{z-index:200;padding:20px}
body:has(.promo-sticky-offer) .map-dialog-layer.branch-map-layer{bottom:0}
body:has(.promo-sticky-offer) .map-dialog.branch-map-dialog{max-height:calc(100dvh - 40px)}
.branch-map-dialog{width:min(1120px,100%);height:min(790px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);padding:0;overflow:hidden;border-radius:24px;background:#fff}
.branch-map-dialog .branch-map-scroll{position:relative;height:100%;overflow-y:auto;overscroll-behavior:contain}
.branch-map-dialog .map-frame{position:absolute;inset:15px;height:auto;margin:0;border-radius:18px}
.branch-map-dialog .map-frame iframe{display:block}
.branch-map-dialog .map-frame-open{min-height:44px;max-width:calc(100% - 24px);font-size:12px;right:12px;bottom:12px;padding:9px 12px}
.branch-map-dialog .map-dialog-close{z-index:4;top:25px;right:25px;width:44px;height:44px;background:#fff;box-shadow:0 2px 12px #20314924}
.branch-map-dialog .branch-map-card{position:absolute;z-index:2;left:30px;top:30px;bottom:30px;width:450px;padding:19px;overflow-y:auto;overscroll-behavior:contain;border:1px solid #e0e7ef;border-radius:22px;background:#fff;box-shadow:0 8px 28px #213f5c21;text-align:left;color:#25243d}
.branch-map-card .map-dialog-header{grid-template-columns:42px minmax(0,1fr);padding:0;gap:11px;margin-bottom:17px}
.branch-map-card .map-dialog-pin{width:42px;height:46px;border-radius:13px;background:#eaf5ff;color:#1578e8}
.branch-map-card .map-dialog-header h2{margin:0 0 5px;font-size:24px;line-height:1.25;letter-spacing:-.025em;color:#25243d;overflow-wrap:normal}
.branch-map-card .map-dialog-header p{margin:0;font-size:14px;line-height:1.5;color:#526279;font-weight:600}
.branch-map-card .map-dialog-header span:not(.map-dialog-pin){margin-top:3px;font-size:14px;line-height:1.5;color:#526279}
.branch-gallery{min-width:0}
.branch-gallery-stage{position:relative;display:grid;place-items:center;aspect-ratio:2.2;overflow:hidden;border-radius:11px;background:#edf2f7;touch-action:pan-y}
.branch-gallery-stage>img{display:block;width:100%;height:100%;min-height:0;position:absolute;inset:0;object-fit:cover}
.branch-map-dialog .branch-gallery-arrow{position:absolute;z-index:1;top:calc(50% - 22px);display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #d9e7f4;border-radius:50%;background:#fff;color:#1578e8;box-shadow:0 2px 9px #203b5b20;cursor:pointer}
.branch-gallery-arrow.is-prev{left:5px}.branch-gallery-arrow.is-next{right:5px}.branch-gallery-arrow.is-next svg{transform:rotate(180deg)}
.branch-gallery-counter{position:absolute;right:8px;bottom:8px;min-width:43px;padding:3px 7px;border-radius:7px;background:#192439ce;color:#fff;font-size:12px;font-weight:650;line-height:1.5}
.branch-map-dialog .branch-gallery-thumbnails{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:8px}
.branch-map-dialog .branch-gallery-thumbnails button{position:relative;display:block;min-width:0;width:100%;height:60px;padding:2px;border:2px solid transparent;border-radius:8px;background:transparent;cursor:pointer}
.branch-gallery-thumbnails img{display:block;width:100%;height:100%;object-fit:cover;border-radius:4px}
.branch-map-dialog .branch-gallery-thumbnails button.is-selected{border-color:#1578e8;background:#eaf5ff}
.branch-map-dialog button:focus-visible,.branch-map-dialog a:focus-visible{outline:3px solid #1578e8;outline-offset:2px}
.branch-map-dialog .branch-gallery-arrow:hover{background:#eaf5ff}
.branch-gallery-error{margin:0;padding:18px 50px;font-size:13px;line-height:1.5;color:#526279}
.branch-map-about{margin-top:16px;padding-bottom:14px;border-bottom:1px solid #e6edf4}
.branch-map-about h3{margin:0 0 6px;font-size:18px;line-height:1.4;font-weight:750;color:#25243d}
.branch-map-about p{margin:0;color:#526279;font-size:16px;line-height:1.55}
.branch-map-card .map-route-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-top:13px}
.branch-map-card .map-route-actions a{display:grid;grid-template-columns:25px minmax(0,1fr) 16px;align-items:center;gap:10px;min-height:56px;padding:8px 12px;border:1px solid #b9d7f4;border-radius:10px;background:#f5faff;color:#1578e8;font-size:16px;line-height:1.4;font-weight:650;text-align:left}
.branch-map-card .map-route-actions a>svg:last-child{display:block}
.branch-map-card .map-route-origin{margin:0;color:#526279;font-size:12px;line-height:1.45}
@media(max-width:900px){
 .branch-map-layer{align-items:end;padding:0}
 .branch-map-dialog{width:100%;height:94dvh;max-height:94dvh;border-radius:22px 22px 0 0;border-width:1px 0 0}
 body:has(.promo-sticky-offer) .map-dialog.branch-map-dialog{max-height:94dvh}
 .branch-map-dialog .branch-map-scroll{display:flex;flex-direction:column}
 .branch-map-dialog .map-dialog-close{top:12px;right:12px}
 .branch-map-dialog .map-frame{position:relative;inset:auto;flex:none;width:100%;height:clamp(180px,24dvh,240px);min-height:180px;margin:0;border:0;border-radius:22px 22px 0 0}
 .branch-map-dialog .map-frame-open{right:12px;bottom:24px;font-size:11px;min-height:44px}
 .branch-map-dialog .branch-map-card{position:relative;left:auto;top:auto;bottom:auto;flex:none;width:100%;margin-top:-16px;padding:16px 18px 18px;overflow:visible;border-width:1px 0 0;border-radius:22px 22px 0 0;box-shadow:0 -6px 20px #213f5c0d}
 .branch-map-dialog .branch-gallery-stage{aspect-ratio:2.1}
 .branch-map-card .map-dialog-header{margin-bottom:14px;gap:10px}
 .branch-map-card .map-dialog-header h2{font-size:18px}
 .branch-map-card .map-dialog-header p{font-size:13px}
 .branch-map-card .map-dialog-header span:not(.map-dialog-pin){font-size:12px}
 .branch-map-about{margin-top:13px;padding-bottom:12px}
 .branch-map-about p{font-size:13px}
 .branch-map-about h3{font-size:15px}
 .branch-map-dialog .branch-gallery-thumbnails button{height:48px}
 .branch-map-card .map-route-actions{margin-top:12px;gap:6px}
 .branch-map-card .map-route-actions a{min-height:44px;font-size:13px}
}
@media(max-width:350px){.branch-map-dialog .branch-map-card{padding-right:14px;padding-left:14px}.branch-map-card .map-dialog-header{grid-template-columns:36px minmax(0,1fr);gap:8px}.branch-map-card .map-dialog-pin{width:36px}.branch-map-card .map-dialog-header h2{font-size:17px}.branch-map-dialog .branch-gallery-thumbnails{gap:4px}.branch-map-dialog .branch-gallery-thumbnails button{height:44px;padding:1px}}
@media(prefers-reduced-motion:reduce){.branch-map-layer{animation:none}.branch-map-card .map-route-actions a{transition:none}}
