/* Карта доставки на странице отзывов: полноэкранный диалог, панель городов + сцена карты. */
dialog.fsr-map:not([open]){display:none !important}
dialog.fsr-map{
  --ink:#16211c;--text:#33403a;--text-2:#47534c;--muted:#617568;
  --g900:#143c1e;--g800:#1b5e20;--g700:#2e7d32;--g600:#22652d;--g500:#43a047;
  --mint:#edf7f0;--mint-3:#e8f5e9;--line-g:#cfe3d2;--line-g2:#dcebdc;--bg-soft:#f7faf7;
  --orange:#c44b00;--paper:#fbfdfb;
  --panel:360px;--r-sm:10px;--r:14px;--r-lg:18px;--pill:999px;
  --sh-1:0 1px 3px rgba(20,40,25,.06);--sh-2:0 4px 14px rgba(20,40,25,.10);--sh-pop:0 18px 46px rgba(25,78,35,.16);
  --water-1:#e9eff0;--water-2:#e9eff0;--land:#f6f5ef;--land-ship:#d4e3cd;--land-on:#a9c99b;
  position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;
  background:var(--paper);color:var(--ink);overflow:hidden;box-sizing:border-box;font-family:inherit;line-height:1.45
}
dialog.fsr-map[open]{display:block;animation:fsrMapIn .22s ease}
@keyframes fsrMapIn{from{opacity:.9}to{opacity:1}}
dialog.fsr-map::backdrop{background:rgba(16,37,20,.55)}
dialog.fsr-map *,dialog.fsr-map *::before,dialog.fsr-map *::after{box-sizing:border-box}
dialog.fsr-map :focus-visible{outline:3px solid var(--g700);outline-offset:2px}
dialog.fsr-map [hidden]{display:none !important}

/* ---------- каркас ---------- */
.fsr-map-frame{display:flex;flex-direction:column;height:100%;min-height:0}
.fsr-map-stage-wrap{
  order:1;position:relative;flex:1 1 auto;min-height:120px;overflow:hidden;
  background:var(--water-1)
}
.fsr-map-stage{position:absolute;inset:0;touch-action:none;overflow:hidden;cursor:grab}
.fsr-map-stage:active{cursor:grabbing}
.fsr-map-stage svg{width:100%;height:100%;display:block;background:transparent}
.fsr-map-stage svg :is(path,polygon,rect)[data-region]{fill:var(--land);stroke:#bac6b8;stroke-width:.7px;vector-effect:non-scaling-stroke;transition:fill .18s ease;cursor:pointer}
.fsr-map-stage svg :is(path,polygon,rect)[data-region].fsr-map-region-ship{fill:var(--land-ship);stroke:#b1c5a8}
.fsr-map-stage svg :is(path,polygon,rect)[data-region].fsr-map-region-kin{fill:#a9cd96;stroke:#7ca56b;stroke-width:1.1}
.fsr-map-stage svg :is(path,polygon,rect)[data-region].fsr-map-region-on{fill:var(--land-on);stroke:#fff;stroke-width:1}
.fsr-map-stage svg text[data-region]{display:none;fill:#65715f;stroke:rgba(249,250,245,.85);paint-order:stroke fill;font-family:inherit;font-weight:500;letter-spacing:.02em;pointer-events:none}
.fsr-map-stage svg text[data-region].fsr-map-label-on{display:block}
.fsr-map-stage svg text[data-region].fsr-map-label-ship{fill:#53684b;font-weight:600}
.fsr-map-stage svg text[data-region].fsr-map-label-selected{fill:#506c48;font-weight:600}

/* ---------- маркеры на карте ---------- */
.fsr-map-pin{cursor:pointer}
.fsr-map-pin .fsr-map-dot{fill:var(--g800);stroke:#fff;stroke-width:1.6px;vector-effect:non-scaling-stroke;transform-box:fill-box;transform-origin:center;transition:transform .12s ease}
.fsr-map-pin:hover .fsr-map-dot,.fsr-map-pin:focus-visible .fsr-map-dot{fill:var(--g900);stroke:#c44b00;stroke-width:2.5px;transform:scale(1.3)}
.fsr-map-pin.is-on .fsr-map-dot{fill:var(--g900)}
.fsr-map-hit{fill:transparent;stroke:none;pointer-events:all}
.fsr-map-dot,.fsr-map-coat,.fsr-map-city-label,.fsr-map-origin{pointer-events:none}
.fsr-map-halo{fill:rgba(27,94,32,.12);stroke:var(--g700);stroke-width:1px;vector-effect:non-scaling-stroke;pointer-events:none}
.fsr-map-cluster{cursor:pointer}
.fsr-map-cluster circle:not(.fsr-map-hit){fill:var(--g800);stroke:#fff;stroke-width:1.5px;vector-effect:non-scaling-stroke}
.fsr-map-cluster .fsr-map-cluster-bubble{transform-box:fill-box;transform-origin:center;transition:transform .12s ease}
.fsr-map-cluster:hover circle:not(.fsr-map-hit),.fsr-map-cluster:focus-visible circle:not(.fsr-map-hit){fill:var(--g900);stroke:#c44b00;stroke-width:2px}
.fsr-map-cluster:hover .fsr-map-cluster-bubble,.fsr-map-cluster:focus-visible .fsr-map-cluster-bubble{transform:scale(1.15)}
.fsr-map-cluster text{fill:#fff;font-family:inherit;font-weight:700;pointer-events:none}
.fsr-map-origin-label{fill:var(--ink);stroke:#fff;paint-order:stroke fill;font-family:inherit;font-weight:800}
.fsr-map-origin-ring{fill:#fff;stroke:rgba(27,94,32,.3);stroke-width:1px;vector-effect:non-scaling-stroke}
.fsr-map-city-label{fill:#10241a;stroke:rgba(255,255,255,.94);paint-order:stroke fill;font-family:inherit;font-weight:700}
.fsr-map-route{fill:none;stroke:var(--g800);stroke-width:2px;vector-effect:non-scaling-stroke;stroke-dasharray:7 5;stroke-linecap:round;animation:fsrRoute .8s ease}
@keyframes fsrRoute{from{stroke-dashoffset:56}to{stroke-dashoffset:0}}
.fsr-map-route-all{fill:none;stroke:rgba(27,94,32,.1);stroke-width:1px;stroke-dasharray:3 5;vector-effect:non-scaling-stroke;pointer-events:none}
.fsr-map-route-under{fill:none;stroke:rgba(255,255,255,.9);stroke-width:5px;vector-effect:non-scaling-stroke;pointer-events:none}
.fsr-map-route-label{fill:#fff;font-family:inherit;font-weight:800;letter-spacing:.01em;pointer-events:none}
.fsr-map-route-pill{fill:#245b39;stroke:#fff;stroke-width:1px;vector-effect:non-scaling-stroke;pointer-events:none}

/* ---------- оверлеи поверх карты ---------- */
dialog.fsr-map button{appearance:none;margin:0;min-width:0;max-width:none;width:auto;padding:0;border:0;background:transparent;font:inherit;line-height:1;letter-spacing:0;text-transform:none;flex:none;box-shadow:none}
#fsr-map-close{
  position:absolute;z-index:6;top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));
  width:44px;height:44px;min-width:44px;min-height:44px;border-radius:50%;
  border:1px solid rgba(27,94,32,.18);background:#fff;color:#2f3f33;box-shadow:var(--sh-2);
  display:flex;align-items:center;justify-content:center;cursor:pointer
}
#fsr-map-close svg{width:18px;height:18px}
#fsr-map-close:hover{background:var(--mint)}
.fsr-map-chip{
  position:absolute;z-index:5;top:max(10px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));
  display:flex;align-items:center;gap:8px;max-width:calc(100% - 80px);
  background:#fff;border:1px solid rgba(27,94,32,.16);border-radius:var(--pill);box-shadow:var(--sh-2);
  padding:0 2px 0 14px;font-size:13.5px;line-height:1.3;color:var(--text)
}
.fsr-map-chip b{color:var(--ink);font-weight:800}
.fsr-map-chip .fsr-map-chip-km{color:var(--g800);font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
#fsr-map-chip-clear{width:44px;height:44px;min-width:44px;border-radius:50%;background:transparent;color:var(--g800);font-size:20px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center}
#fsr-map-chip-clear:hover{background:var(--mint-3)}
.fsr-map-tip{
  position:absolute;z-index:6;left:0;top:0;max-width:250px;max-height:46dvh;overflow:auto;pointer-events:none;
  background:#fff;border:1px solid rgba(27,94,32,.18);border-radius:12px;box-shadow:var(--sh-pop);
  padding:14px 16px;font-size:13px;line-height:1.35;color:var(--text)
}
.fsr-map-tip b{display:block;font-size:16px;font-weight:800;color:var(--ink)}
.fsr-map-tip-region{display:block;margin-top:3px;font-size:12px;color:var(--muted)}
.fsr-map-tip-meta{display:block;margin-top:8px;font-size:12px;font-weight:700;color:var(--g800);font-variant-numeric:tabular-nums}
.fsr-map-tip-ferry{display:block;margin-top:2px;font-size:11.5px;font-weight:700;color:var(--orange)}
.fsr-map-tip ul{margin:4px 0 0;padding:0;list-style:none}
.fsr-map-tip li{padding:1px 0;font-size:12px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fsr-map-tip .fsr-map-tip-more{color:var(--muted);font-weight:700}
.fsr-map-scale{
  position:absolute;z-index:4;left:max(12px,env(safe-area-inset-left));bottom:calc(max(10px,env(safe-area-inset-bottom)) + 44px);
  display:flex;flex-direction:column;gap:3px;background:rgba(255,255,255,.92);
  border:1px solid rgba(27,94,32,.14);border-radius:var(--r-sm);padding:6px 10px 7px;box-shadow:var(--sh-1)
}
.fsr-map-scale i{display:block;height:4px;background:var(--ink);border-radius:2px;border-left:1.5px solid var(--ink);border-right:1.5px solid var(--ink)}
.fsr-map-scale span{font-size:11.5px;font-weight:700;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}
.fsr-map-hint{
  position:absolute;z-index:4;left:max(12px,env(safe-area-inset-left));bottom:max(10px,env(safe-area-inset-bottom));
  margin:0;max-width:calc(100% - 140px);font-size:12px;line-height:1.35;color:#395c40;
  background:rgba(255,255,255,.88);border:1px solid rgba(27,94,32,.1);border-radius:var(--pill);
  padding:5px 12px;pointer-events:none
}
.fsr-map-status{position:absolute;z-index:7;left:12px;right:72px;top:64px;margin:0;padding:10px 12px;background:#fff;border:1px solid rgba(196,75,0,.35);border-radius:var(--r);color:var(--ink);font-size:13.5px;box-shadow:var(--sh-2)}
.fsr-map-retry{position:absolute;z-index:7;left:12px;top:118px;min-height:44px;padding:0 18px;border-radius:var(--pill);border:1px solid rgba(27,94,32,.3);background:#fff;color:var(--g800);font-weight:700;font-size:14px;cursor:pointer;box-shadow:var(--sh-1)}
.fsr-map-zoom{position:absolute;z-index:5;right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:flex-end;gap:8px;pointer-events:none}
.fsr-map-zoom button{pointer-events:auto}
#fsr-map-zoom-in,#fsr-map-zoom-out,#fsr-map-fit{background:#fff;border:1px solid rgba(27,94,32,.28);color:var(--ink);box-shadow:var(--sh-2);cursor:pointer;transition:background .15s ease,transform .1s ease}
#fsr-map-zoom-in,#fsr-map-zoom-out{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:12px;font-size:22px;font-weight:700}
#fsr-map-fit{width:auto;min-width:44px;height:44px;padding:0 14px;border-radius:12px;font-size:13px;font-weight:800;color:var(--g800)}
#fsr-map-zoom-in:hover,#fsr-map-zoom-out:hover,#fsr-map-fit:hover{background:var(--mint)}
#fsr-map-zoom-in:active,#fsr-map-zoom-out:active,#fsr-map-fit:active{transform:scale(.95)}

/* ---------- панель городов ---------- */
.fsr-map-dock{order:3;display:none;background:#fff;min-height:0;z-index:2;flex:none}
dialog.fsr-map.fsr-map-dock-open .fsr-map-dock{display:flex;flex-direction:column;height:min(43dvh,420px);border-top:1px solid var(--line-g2);border-radius:18px 18px 0 0;box-shadow:0 -12px 32px rgba(25,78,35,.16)}
.fsr-map-dock-body{display:flex;flex-direction:column;min-height:0;flex:1;gap:6px;padding:12px;overflow:auto}
.fsr-map-head{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;flex:none;padding-right:44px}
.fsr-map-brand{margin:0;font-size:10px;font-weight:800;letter-spacing:.14em;color:var(--g700);text-transform:uppercase;flex:none}
#fsr-map-title{margin:0;font-size:17px;line-height:1.2;font-weight:800;letter-spacing:-.01em;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fsr-map-stats{display:flex;align-items:center;gap:14px;background:transparent;border:0;padding:0;flex:none}
.fsr-map-stat{display:flex;align-items:baseline;gap:4px;text-align:left;line-height:1.4;min-width:0}
.fsr-map-stat b{display:block;font-size:17px;font-weight:800;color:var(--g900);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fsr-map-stat span{display:block;font-size:12px;line-height:1.25;color:var(--muted);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fsr-map-far{
  flex:none;display:flex;align-items:center;gap:8px;width:100%;min-height:40px;padding:5px 10px;
  background:#fff;border:1px solid var(--line-g);border-radius:var(--r-sm);cursor:pointer;text-align:left;font:inherit;
  transition:border-color .15s ease,background .15s ease,box-shadow .15s ease
}
.fsr-map-far:hover{border-color:var(--g500);background:var(--mint);box-shadow:var(--sh-1)}
.fsr-map-far:focus-visible{outline:3px solid var(--g700);outline-offset:2px}
.fsr-map-far-cap{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);flex:none}
.fsr-map-far b{font-size:14px;font-weight:800;color:var(--g900);font-variant-numeric:tabular-nums;white-space:nowrap}
.fsr-map-far #fsr-map-stat-far-label{font-size:12.5px;font-weight:700;color:var(--g800);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fsr-map-far-arrow{margin-left:auto;flex:none;color:var(--g700);transition:transform .15s ease}
.fsr-map-far:hover .fsr-map-far-arrow{transform:translateX(2px)}
dialog.fsr-map .fsr-map-search{display:flex;flex-direction:column;flex:none;gap:0;margin:0}
.fsr-map-search-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.fsr-map-search-box{position:relative;display:flex;align-items:center}
.fsr-map-search-box svg{position:absolute;z-index:1;left:12px;width:16px;height:16px;color:var(--muted);pointer-events:none}
#fsr-map-q{width:100%;height:44px;min-height:44px;border:1px solid var(--line-g2);border-radius:12px;padding:0 12px 0 38px;font:inherit;font-size:16px;background:var(--bg-soft);color:var(--ink)}
#fsr-map-q::placeholder{color:#8ba094;opacity:1}
/* Product search raises every focused search field; keep this local city filter below its icon. */
dialog.fsr-map #fsr-map-q:focus{z-index:auto!important}
#fsr-map-q:focus{outline:none;border-color:var(--g700);box-shadow:0 0 0 3px rgba(46,125,50,.16);background:#fff}
.fsr-map-tools{display:flex;align-items:center;gap:6px;flex:none}
#fsr-map-sort{display:grid;grid-template-columns:1fr 1.3fr .6fr;gap:3px;background:#eef4ec;border:1px solid var(--line-g2);border-radius:10px;padding:3px;flex:1;min-width:0}
#fsr-map-sort button{width:100%;min-height:38px;border-radius:7px;padding:0 4px;white-space:normal;overflow-wrap:anywhere;line-height:1.25;font-size:11.5px;font-weight:700;color:var(--muted);cursor:pointer;transition:background .15s ease,color .15s ease}
#fsr-map-sort button.is-on{background:var(--g800);color:#fff;box-shadow:var(--sh-1)}
#fsr-map-sort button:not(.is-on):hover{background:#fff;color:var(--g900)}
.fsr-map-region{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:0 6px;background:var(--mint);border:1px solid var(--line-g);border-radius:10px;font-size:12px;flex:none}
#fsr-map-region-button{flex:1 1 120px;min-height:40px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;text-align:left;color:var(--g900);cursor:pointer;border-radius:8px;padding:0 4px;font-weight:700}
#fsr-map-region-button[aria-pressed="true"]{color:var(--g700);background:var(--mint-3);box-shadow:inset 3px 0 0 var(--g700)}
#fsr-map-region-label{flex:1 1 10em;min-width:0;overflow-wrap:anywhere;white-space:normal}
#fsr-map-region-count{flex:none;color:var(--text-2);font-size:12px;white-space:nowrap}
#fsr-map-region-reviews{min-height:44px;display:flex;align-items:center;flex:none;color:var(--g800);font-weight:700;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.fsr-map-count{margin:0;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);flex:none}
.fsr-map-legend{display:flex;flex-wrap:wrap;gap:4px 12px;margin:0;padding:0;list-style:none;font-size:11.5px;color:var(--text-2);flex:none}
.fsr-map-legend li{display:flex;align-items:center;gap:6px}
.fsr-map-legend i{width:11px;height:11px;border-radius:50%;display:block;flex:none}
.fsr-map-legend-origin{background:var(--g900)}
.fsr-map-legend-city{background:var(--g800)}
.fsr-map-legend i.fsr-map-legend-region{background:var(--land-ship);border-radius:3px}
#fsr-map-list{position:relative;flex:1 1 0;min-height:96px;margin:0;padding:0;list-style:none;overflow:auto;border-top:1px solid #eef3ec;scrollbar-width:thin;scrollbar-color:#cfe3d2 transparent}
.fsr-map-pad{pointer-events:none}
.fsr-map-win{position:absolute;left:0;right:0}
#fsr-map-list [role="option"]{height:48px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 10px;cursor:pointer;border-bottom:1px solid #f0f5ee;border-radius:10px}
#fsr-map-list [role="option"]:hover{background:var(--bg-soft)}
#fsr-map-list [role="option"][aria-selected="true"]{background:var(--mint);box-shadow:inset 3px 0 0 var(--g700)}
.fsr-map-opt-main{display:flex;flex-direction:column;min-width:0;gap:1px}
.fsr-map-opt-main b{font-size:14px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fsr-map-opt-main small{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fsr-map-opt-side{display:flex;align-items:center;gap:6px;flex:none}
.fsr-map-opt-side em{font-style:normal;font-size:12px;font-weight:700;color:var(--g800);font-variant-numeric:tabular-nums;white-space:nowrap}
.fsr-map-opt-ferry{width:14px;height:14px;color:var(--orange);flex:none}
.fsr-map-opt-count{font-style:normal;font-size:11px;font-weight:800;color:var(--g700);background:var(--mint-3);border-radius:var(--pill);padding:2px 7px}
.fsr-map-empty{padding:14px 10px;color:var(--muted);font-size:13.5px}

/* ---------- карточка выбранного города ---------- */
.fsr-map-card{flex:none;background:var(--mint);border:1px solid var(--line-g);border-radius:var(--r-lg);padding:12px}
.fsr-map-card > p{margin:0;font-size:13.5px;color:var(--muted)}
.fsr-map-card-head{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:10px;align-items:start}
.fsr-map-trail{display:flex;flex-wrap:wrap;align-items:center;gap:5px;font-size:12.5px;font-weight:700;color:var(--text-2)}
.fsr-map-trail svg{width:14px;height:10px;color:var(--g700);flex:none}
.fsr-map-km{margin:3px 0 0;font-size:30px;line-height:1.05;font-weight:800;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--g900)}
.fsr-map-km small{font-size:13px;letter-spacing:0;font-weight:700;color:var(--g700)}
.fsr-map-card-note{margin:5px 0 0;font-size:12px;line-height:1.4;color:var(--muted)}
.fsr-map-card-note--ferry{color:var(--orange);font-weight:700}
.fsr-map-card img{display:block;width:48px;height:52px;object-fit:contain;background:#fff;border:1px solid var(--line-g);border-radius:var(--r-sm)}
.fsr-map-links{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-top:10px}
.fsr-map-links a{min-height:44px;display:inline-flex;align-items:center;color:var(--g800);font-weight:700;font-size:13.5px;text-decoration:underline;text-decoration-color:rgba(27,94,32,.3);text-underline-offset:3px}
#fsr-delivery-map .fsr-map-links a.fsr-map-catalog{background:linear-gradient(135deg,var(--g600),var(--g800));color:#fff;border-radius:var(--pill);padding:0 16px;min-height:44px;text-decoration:none;box-shadow:0 6px 14px rgba(34,101,45,.25)}
#fsr-delivery-map .fsr-map-links a.fsr-map-catalog:hover{filter:brightness(1.06)}
.fsr-map-geo{margin:0;font-size:12px;line-height:1.4;color:var(--muted)}
.fsr-map-geo summary{min-height:32px;display:flex;align-items:center;cursor:pointer;font-weight:600}
.fsr-map-geo p{margin:4px 0}
.fsr-map-geo a{color:var(--g800)}

/* One panel control: a desktop collapse button, a bottom tray on phones. */
#fsr-map-dock-toggle{
  order:2;flex:none;display:flex;align-items:center;justify-content:center;gap:10px;
  min-width:44px;min-height:52px;border-top:1px solid var(--line-g2);background:#fff;color:var(--g800);
  font-weight:800;font-size:14px;cursor:pointer;box-shadow:0 -4px 18px rgba(25,78,35,.08)
}
#fsr-map-dock-toggle svg{width:18px;height:18px;flex:none;transform:rotate(-90deg)}
dialog.fsr-map.fsr-map-dock-open #fsr-map-dock-toggle svg{transform:rotate(90deg)}

@media (max-width:799px){
  .fsr-map-dock-body{padding-bottom:max(12px,env(safe-area-inset-bottom))}
  .fsr-map-head,.fsr-map-stats{display:none !important}
  #fsr-map-sort button{min-height:44px;font-size:12px}
  .fsr-map-far{min-height:44px}
  dialog.fsr-map.fsr-map-dock-open .fsr-map-card{display:none}
  dialog.fsr-map.fsr-map-has-city:not(.fsr-map-dock-open) .fsr-map-dock{display:flex;max-height:34dvh;border-top:1px solid var(--line-g2)}
  dialog.fsr-map:not(.fsr-map-dock-open) .fsr-map-dock-body > :not(.fsr-map-card){display:none}
  #fsr-delivery-map:not(.fsr-map-dock-open) #fsr-map-sort{display:none}
  dialog.fsr-map:not(.fsr-map-dock-open) .fsr-map-card{background:#fff;border:0;padding:0;border-radius:0}
  .fsr-map-links{justify-content:space-between;margin-top:6px}
  .fsr-map-km{font-size:28px}
  .fsr-map-hint{display:none}
  .fsr-map-scale{bottom:12px}
  .fsr-map-chip{font-size:12px}
  .fsr-map-chip .fsr-map-chip-km{display:none}
  #fsr-map-dock-toggle{padding-bottom:env(safe-area-inset-bottom)}
}

/* Desktop keeps the existing split composition, with a fully collapsible panel. */
@media (min-width:800px){
  .fsr-map-frame{display:grid;grid-template-columns:var(--panel) minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
  dialog.fsr-map:not(.fsr-map-dock-open) .fsr-map-frame{grid-template-columns:0 minmax(0,1fr)}
  .fsr-map-dock{order:0;grid-column:1;grid-row:1 / span 2;display:none;height:100%;border-right:1px solid var(--line-g2)}
  dialog.fsr-map.fsr-map-dock-open .fsr-map-dock{display:flex;height:100%;max-height:none;border:0;border-radius:0;box-shadow:8px 0 24px rgba(25,78,35,.06)}
  .fsr-map-dock-body{overflow:hidden;padding:10px 12px;gap:6px}
  .fsr-map-stage-wrap{order:0;grid-column:2;grid-row:1;flex:none}
  #fsr-map-title{font-size:17px;padding-right:0;max-width:100%}
  #fsr-map-dock-toggle{position:absolute;z-index:8;left:calc(var(--panel) - 54px);top:10px;width:44px;min-height:44px;border:1px solid var(--line-g);border-radius:12px;background:var(--mint);box-shadow:none}
  #fsr-map-dock-toggle svg,dialog.fsr-map.fsr-map-dock-open #fsr-map-dock-toggle svg{transform:none}
  dialog.fsr-map.fsr-map-dock-open #fsr-map-dock-label{display:none}
  dialog.fsr-map:not(.fsr-map-dock-open) #fsr-map-dock-toggle{left:16px;top:12px;width:auto;padding:0 12px;background:#fff;box-shadow:var(--sh-2)}
  dialog.fsr-map:not(.fsr-map-dock-open) #fsr-map-dock-toggle svg{transform:rotate(180deg)}
  dialog.fsr-map:not(.fsr-map-dock-open) .fsr-map-chip{left:150px;max-width:calc(100% - 222px)}
}
@media (min-width:800px) and (max-width:1099px){dialog.fsr-map{--panel:320px}.fsr-map-dock-body{padding:10px 12px}}
@media (min-width:800px) and (max-height:650px){
  .fsr-map-head,.fsr-map-stats,.fsr-map-far,.fsr-map-geo,.fsr-map-count{display:none !important}
  .fsr-map-dock-body{gap:8px}
  .fsr-map-card{padding:10px}
  .fsr-map-card-head{grid-template-columns:minmax(0,1fr) 36px}
  .fsr-map-card img{width:36px;height:40px}
  .fsr-map-km{font-size:24px}
  .fsr-map-links{margin-top:4px;gap:4px 8px}
  .fsr-map-links a{font-size:12px}
}
@media (min-width:800px) and (max-height:500px){
  dialog.fsr-map.fsr-map-has-city #fsr-map-title{display:none}
  dialog.fsr-map.fsr-map-has-city #fsr-map-q{padding-right:60px}
  #fsr-map-list{min-height:48px}
}
@media (max-width:799px) and (max-height:500px){
  .fsr-map-card-head{grid-template-columns:minmax(0,1fr) 36px}
  .fsr-map-card img{width:36px;height:40px}
  .fsr-map-km{font-size:24px}
  .fsr-map-card-note{display:none}
  .fsr-map-card-note--ferry{display:block}
  .fsr-map-links{margin-top:2px}
}

/* ---------- кнопка-триггер на странице отзывов ---------- */
.fsr#otzyvy button.fsr-fact.fsr-fact--map,button.fsr-fact.fsr-fact--map{
  display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border-radius:14px;
  border:1px solid #cfe3d2;background:#fff;color:#33403a;font:inherit;cursor:pointer;text-align:left;
  box-shadow:0 1px 3px rgba(20,40,25,.06);transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease
}
button.fsr-fact.fsr-fact--map:hover{border-color:#43a047;box-shadow:0 4px 14px rgba(20,40,25,.1);transform:translateY(-1px)}
button.fsr-fact.fsr-fact--map b{font-size:18px;color:#1b5e20;font-variant-numeric:tabular-nums}
button.fsr-fact.fsr-fact--map .fsr-map-trigger-ico{width:17px;height:17px;flex:none;color:#2e7d32}
button.fsr-fact.fsr-fact--map .fsr-map-trigger-note{color:#1b5e20;text-decoration:underline;text-underline-offset:3px;font-weight:700;font-size:13px}
button.fsr-fact.fsr-fact--map:focus-visible{outline:3px solid #2e7d32;outline-offset:3px}

@media (prefers-reduced-motion:reduce){
  dialog.fsr-map,dialog.fsr-map *{animation:none !important;transition:none !important;scroll-behavior:auto !important}
}

/* Route endpoints take priority over neighbouring decorations; city dots stay interactive. */
dialog.fsr-map.fsr-map-has-city .fsr-map-pin:not(.is-on) .fsr-map-city-label,
dialog.fsr-map.fsr-map-has-city .fsr-map-pin:not(.is-on) .fsr-map-coat{display:none}
/* Optional geographic context is quieter than the selected route. */
dialog.fsr-map.fsr-map-has-city .fsr-map-stage svg text[data-region]{opacity:.72}

#fsr-map-stage [data-fsr-occluded]{display:none}

/* A road distance is foreground information; names remain a quiet atlas layer. */
.fsr-map-tip-distance{display:block;margin-top:10px;padding-top:10px;border-top:1px solid var(--line-g2);font-size:22px;font-weight:800;line-height:1.2;color:var(--g900);font-variant-numeric:tabular-nums}
.fsr-map-tip-distance small{font-size:13px;font-weight:600}
.fsr-map-tip-caption{display:block;margin-top:2px;font-size:11px;color:var(--muted)}
.fsr-map-stage svg :is(path,polygon,rect)[data-region]:hover{fill:#e3eadc}
.fsr-map-stage svg :is(path,polygon,rect)[data-region].fsr-map-region-on:hover{fill:var(--land-on)}

/* Compact utilities leave the working height to the city list. */
#fsr-map-search-toggle{display:flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;border:1px solid var(--line-g2);border-radius:10px;background:var(--bg-soft);color:var(--g800);cursor:pointer;transition:background .15s ease}
#fsr-map-search-toggle:hover,#fsr-map-search-toggle[aria-expanded="true"]{background:var(--mint-3);border-color:var(--line-g)}
.fsr-map-search-cross,#fsr-map-search-toggle[aria-expanded="true"] .fsr-map-search-loupe{display:none}
#fsr-map-search-toggle[aria-expanded="true"] .fsr-map-search-cross{display:block}
.fsr-map-count{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
/* A flow row below the canvas reserves the legend's space on every screen. */
.fsr-map-footer{order:1;flex:none;padding:6px max(12px,env(safe-area-inset-right)) 6px max(12px,env(safe-area-inset-left));background:var(--water-1);min-width:0}
.fsr-map-footer .fsr-map-legend{gap:2px 14px;font-size:11px;line-height:1.35}
@media (min-width:800px){
 .fsr-map-footer{grid-column:2;grid-row:2;order:0}
 .fsr-map-region{min-height:38px}
 #fsr-map-region-button,#fsr-map-region-reviews{min-height:36px}
}
@media (max-width:799px){
 #fsr-map-region-button{min-height:44px}
}
/* In shallow desktop windows the head is hidden. Reserve its toggle beside
   the first visible control row instead of laying it over another action. */
@media (min-width:800px) and (max-height:650px){
 .fsr-map-dock-body:has(#fsr-map-region:not([hidden])) #fsr-map-region,
 .fsr-map-dock-body:has(#fsr-map-region[hidden]) #fsr-map-search:not([hidden]),
 .fsr-map-dock-body:has(#fsr-map-region[hidden]):has(#fsr-map-search[hidden]) .fsr-map-tools{margin-right:48px;min-height:44px}
 .fsr-map-dock-body:has(#fsr-map-region[hidden]):has(#fsr-map-search[hidden]) #fsr-map-sort button{font-size:10px}
}

@media (min-width:800px) and (max-height:650px){
 #fsr-map-region-count{display:none}
}
@media (max-width:799px) and (max-height:500px){
 .fsr-map-zoom{flex-direction:row;align-items:center}
}

.fsr-map-route-hit{fill:none;stroke:transparent;stroke-width:12px;vector-effect:non-scaling-stroke;pointer-events:stroke;cursor:pointer}
.fsr-map-route-choice{fill:none;stroke:#69826b;stroke-width:1.6px;stroke-dasharray:4 6;vector-effect:non-scaling-stroke;opacity:.47;pointer-events:stroke;cursor:pointer}
.fsr-map-route-choice:hover{stroke:var(--g800);opacity:1}
dialog.fsr-map .fsr-map-observed{margin:6px 0 0;color:var(--text);font-size:13px;line-height:1.38}
.fsr-map-duration-bins{margin-top:8px;font-size:13px;color:var(--text)}
.fsr-map-duration-bins summary{cursor:pointer;color:var(--g800);font-weight:650}
.fsr-map-duration-bins ul{margin:6px 0 0;padding-left:18px}
.fsr-map-expand{display:none}
.fsr-map-card{max-height:48dvh;overflow:auto}
dialog.fsr-map.fsr-map-inline{
  position:relative;inset:auto;display:block;width:100%;height:auto;max-height:none;
  margin:1rem 0 1.5rem;border:1px solid var(--line-g);border-radius:var(--r-lg);animation:none
}
dialog.fsr-map-single .fsr-map-frame{
  display:grid;grid-template-columns:minmax(0,1.5fr) minmax(235px,1fr);
  grid-template-rows:1fr auto;height:auto;min-height:280px
}
dialog.fsr-map-single .fsr-map-stage-wrap{grid-area:1 / 1;min-height:230px;display:flex;flex-direction:column}
dialog.fsr-map-single #fsr-map-stage{position:relative;inset:auto;order:2;flex:1;min-height:170px;touch-action:pan-y;cursor:auto}
dialog.fsr-map-single #fsr-map-stage svg{position:absolute;inset:0;pointer-events:none}
dialog.fsr-map-single #fsr-map-tip{
  position:static;order:1;transform:none!important;max-width:none;max-height:none;padding:8px 14px;border:0;
  border-radius:0;box-shadow:none;background:var(--water-1);font-size:14px;color:var(--g900);font-weight:700
}
dialog.fsr-map-single.fsr-map .fsr-map-dock{
  display:block;grid-area:1 / 2 / 3 / 3;height:auto;max-height:none;border:0;box-shadow:none;border-radius:0
}
dialog.fsr-map-single .fsr-map-dock-body{display:block;height:auto;max-height:none;overflow:visible;padding:0}
dialog.fsr-map-single.fsr-map .fsr-map-dock-body > :not(.fsr-map-card),
dialog.fsr-map-inline.fsr-map #fsr-map-close,dialog.fsr-map-single.fsr-map #fsr-map-dock-toggle,
dialog.fsr-map-single #fsr-map-chip,dialog.fsr-map-single #fsr-map-scale,dialog.fsr-map-single .fsr-map-hint,
dialog.fsr-map-single .fsr-map-zoom,dialog.fsr-map-single .fsr-map-legend{display:none!important}
dialog.fsr-map-single.fsr-map .fsr-map-card:not([hidden]){
  display:block;background:#fff;padding:18px;border:0;border-radius:0;max-height:none;overflow:visible
}
dialog.fsr-map-single .fsr-map-card-note{display:block}
dialog.fsr-map-single .fsr-map-links{display:none}
dialog.fsr-map-single .fsr-map-footer{grid-area:2 / 1;padding:4px 12px 10px}
dialog.fsr-map-single .fsr-map-expand{display:inline-block;background:#fff;color:var(--g800);border:1px solid var(--line-g);padding:10px 14px;border-radius:10px;min-height:44px;cursor:pointer}
@media (max-width:799px){
  dialog.fsr-map-single .fsr-map-frame{display:flex;flex-direction:column}
  dialog.fsr-map-single .fsr-map-stage-wrap{order:0;flex:none;height:clamp(215px,36svh,320px)}
  dialog.fsr-map-single .fsr-map-footer{order:1}
  dialog.fsr-map-single .fsr-map-dock{order:2}
}

dialog.fsr-map-detail{overflow:auto;overscroll-behavior:contain}
dialog.fsr-map-detail .fsr-map-frame{height:100%;min-height:340px}
dialog.fsr-map-detail #fsr-map-tip{padding:16px 68px 12px 16px;min-height:64px}
dialog.fsr-map-detail .fsr-map-dock{overflow:auto}
dialog.fsr-map-detail .fsr-map-links{display:flex}
@media (max-width:799px){
  dialog.fsr-map-detail .fsr-map-frame{height:auto;min-height:100%}
  dialog.fsr-map-detail .fsr-map-stage-wrap{height:clamp(245px,53svh,600px)}
  dialog.fsr-map-single.fsr-map-has-city:not(.fsr-map-dock-open) .fsr-map-dock{max-height:none}
}
