/* OTPOR Map v1.7 — map-first workspace. Original map rendering, filtering and API unchanged. */
.ma-body.ux-map-v17{
 --ux-ink:#171817;--ux-orange:#f2660d;--ux-paper:#f8f7f3;--ux-edge:#dfded8;
 height:100dvh;min-height:420px;overflow:hidden;background:#f3f2ed;
 color:var(--ux-ink);font-family:Inter,Arial,Helvetica,sans-serif;
}
.ux-map-v17 .ma-header.ux-header{
 flex:0 0 76px;min-height:76px;height:76px;padding:0 clamp(14px,2.5vw,36px);
 gap:24px;background:rgba(249,248,245,.98);border-bottom:1px solid #e8e6e0;z-index:45;
}
.ux-map-v17 .ma-brand{gap:9px;white-space:nowrap;}
.ux-map-v17 .ma-brand img{width:38px;height:38px;border-radius:12px}
.ux-map-v17 .ma-brand strong{font-size:27px;letter-spacing:-.06em;color:var(--ux-ink)}
.ux-header-name{padding-left:22px;border-left:1px solid #deddd6;display:grid;gap:2px;line-height:1.15;min-width:0}
.ux-header-name strong{font-size:15px;font-weight:800;color:var(--ux-ink)}
.ux-header-name span{font-size:11px;color:#757b77}
.ux-header-actions{margin-left:auto;display:flex;align-items:center;gap:18px;white-space:nowrap}
.ux-header-actions .ux-legal,.ux-header-actions .ux-method{color:#3b4240;font-size:13px;font-weight:700;text-decoration:none;background:transparent;border:0;cursor:pointer;transition:color .15s}
.ux-header-actions .ux-legal:hover,.ux-header-actions .ux-method:hover{color:var(--ux-orange)}
.ux-map-v17 .ma-report{min-height:43px;display:inline-flex;align-items:center;gap:10px;border-radius:15px;padding:0 19px;background:var(--ux-orange);color:white;font-size:13px;font-weight:800;text-decoration:none;box-shadow:0 10px 25px #f2660d25}
.ux-map-v17 .ma-report svg{width:19px;height:19px}
.ux-map-v17 .ma-mode{padding:7px 24px;background:#fff0e5;border-color:#ffdcc7;color:#93502b;font-size:11px;line-height:1.35;flex:0 0 auto}
.ux-map-v17 .ux-map-layout{
 display:block!important;position:relative;flex:1 1 0;min-height:0;overflow:hidden;
 padding:0;margin:0;isolation:isolate;
}
.ux-map-v17 .ma-map-area,.ux-map-v17[data-panel="analytics"] .ma-map-area{
 display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
 margin:0!important;grid-column:auto!important;grid-row:auto!important;border:0!important;
 overflow:hidden!important;z-index:0!important;background:#dce8e0;
}
.ux-map-v17 .ma-map{inset:0!important;height:100%!important;min-height:0!important}
.ux-map-v17 .ma-map-area .ma-map-top{left:22px;right:auto;top:86px;width:min(440px,calc(100% - 44px));z-index:9;align-items:flex-start;}
.ux-map-v17 .ma-map-top .ma-search{width:100%;max-width:340px;min-width:0;flex:1}
.ux-map-v17 .ma-search>svg{top:13px;left:16px;color:#66716d}
.ux-map-v17 .ma-search input{height:48px!important;border-radius:16px!important;border:1px solid #dde2df!important;box-shadow:0 9px 24px #30453c1e!important;padding-left:45px!important;font-size:13px!important;background:rgba(255,255,255,.97)!important;width:100%}
.ux-map-v17 .ma-map-top .ma-legend-control>.ma-floating{min-height:48px;border-radius:15px;padding:0 14px;border:1px solid #dce2dc;box-shadow:0 9px 24px #30453c17;background:rgba(255,255,255,.97)}
.ux-map-v17 .ma-legend{border-radius:16px!important;box-shadow:0 15px 30px #243c332a!important;max-height:50dvh;width:min(360px,calc(100vw - 40px))!important;min-width:320px!important;padding:18px 18px 16px!important}
.ux-map-v17 .ma-region-chip{top:144px;left:22px;border-radius:14px!important;z-index:9}
.ux-map-v17 .ma-map-tools{left:auto!important;right:20px!important;top:auto!important;bottom:25px!important;z-index:8!important;gap:9px}
.ux-map-v17 .ma-map-tools .ma-floating{width:44px;height:44px;border-radius:14px;background:rgba(255,255,255,.97);box-shadow:0 8px 20px #30453c1f}
.ux-map-v17 .ma-map-area .maplibregl-ctrl-top-left{top:auto;bottom:12px;left:18px}
.ux-map-v17 .ma-map-area .maplibregl-ctrl-group{border-radius:13px;overflow:hidden}
.ux-map-v17 .ma-map-area .maplibregl-ctrl-group button{width:40px;height:38px}
.ux-map-v17 .ma-case-card{top:152px;right:20px;width:min(360px,calc(100% - 32px));max-height:calc(100% - 173px);z-index:14;border-radius:24px;padding:24px;box-shadow:0 20px 65px #1e2d2640;background:#fffdfa}
.ux-map-v17 .ma-case-card[hidden]{display:none}
.ux-map-v17 .ma-case-card .ma-close{border-radius:50%;background:#f2f0ea}
/* Command bar. A hover shows a hint; a click opens its panel. */
.ux-toolbar{
 position:absolute;top:18px;left:22px;right:22px;z-index:12;display:flex;align-items:center;gap:9px;
 width:max-content;max-width:calc(100% - 44px);padding:6px;border:1px solid #dedfd9;
 border-radius:20px;background:rgba(252,251,247,.97);box-shadow:0 10px 30px #233b2b22;
 backdrop-filter:blur(18px);
}
.ux-tool{
 appearance:none;position:relative;display:inline-flex;align-items:center;justify-content:center;gap:9px;
 min-height:40px;padding:9px 14px;border:1px solid transparent;border-radius:14px;
 background:transparent;color:#28302d;font:700 13px/1.2 Inter,Arial,sans-serif;
 cursor:pointer;white-space:nowrap;transition:background .16s,color .16s,transform .16s;
}
.ux-tool svg{width:19px;height:19px;stroke-width:1.8}
.ux-tool:hover,.ux-tool:focus-visible{background:#f1eee8;color:#cf530b;transform:translateY(-1px)}
.ux-tool[aria-expanded="true"]{background:var(--ux-orange);color:#fff;box-shadow:0 6px 17px #f2660d33}
.ux-tool[aria-expanded="true"]:hover{background:#e65e08;color:#fff}
.ux-tool-count{padding:3px 7px;border-radius:9px;background:#f0ede7;font-size:11px;color:#69716b;font-variant-numeric:tabular-nums}
.ux-tool[aria-expanded="true"] .ux-tool-count{background:#ffffff38;color:#fff}
.ux-filter-count{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;border-radius:100px;background:#ffe3d2;color:#bb4b09;font-size:11px}
.ux-filter-count[hidden],.ux-period-dot[hidden]{display:none!important}
.ux-period-dot{width:7px;height:7px;background:var(--ux-orange);border-radius:100%;box-shadow:0 0 0 3px #f2660d20}
@media(hover:hover){.ux-tool[data-tooltip]:hover::after,.ux-tool[data-tooltip]:focus-visible::after{content:attr(data-tooltip);position:absolute;left:50%;top:calc(100% + 14px);transform:translateX(-50%);background:#242724;color:white;font-size:11px;font-weight:500;padding:9px 12px;border-radius:10px;white-space:nowrap;pointer-events:none;z-index:40;box-shadow:0 7px 18px #17201b26}}
.ux-toolbar .ux-tool:focus-visible,.ux-header-actions a:focus-visible,.ux-header-actions button:focus-visible,.ux-close:focus-visible{outline:3px solid #f2660d88;outline-offset:2px}
/* Drawers overlay the map instead of taking grid columns. */
.ux-map-v17 .ma-feed,.ux-map-v17 .ma-analytics,.ux-map-v17 .ux-filter-panel,.ux-map-v17 .ma-timeline{
 position:absolute!important;z-index:16!important;box-sizing:border-box!important;
 display:flex!important;flex-direction:column!important;top:84px!important;bottom:18px!important;height:auto!important;
 overflow:hidden!important;background:#fbfaf7!important;border:1px solid #e1e2db!important;border-radius:24px!important;
 box-shadow:0 18px 62px #152e2440!important;
 opacity:0;visibility:hidden;pointer-events:none;
 transition:transform .25s cubic-bezier(.2,.75,.2,1),opacity .2s ease,visibility .2s;
}
.ux-map-v17 .ma-feed,.ux-map-v17 .ux-filter-panel{
 left:18px!important;right:auto!important;width:min(390px,calc(100% - 36px))!important;
 transform:translateX(calc(-100% - 32px));
}
.ux-map-v17 .ma-analytics{
 right:18px!important;left:auto!important;width:min(415px,calc(100% - 36px))!important;
 transform:translateX(calc(100% + 32px));padding:18px 19px!important;overflow-y:auto!important;overscroll-behavior:contain;
}
.ux-map-v17 .ma-timeline{
 left:18px!important;right:18px!important;top:auto!important;bottom:18px!important;
 height:230px!important;width:auto!important;transform:translateY(calc(100% + 32px));padding:17px 22px 15px!important;
 overflow:hidden!important;
}
.ux-map-v17[data-ux-panel="feed"] .ma-feed,.ux-map-v17[data-ux-panel="filters"] .ux-filter-panel,
.ux-map-v17[data-ux-panel="analytics"] .ma-analytics,.ux-map-v17[data-ux-panel="timeline"] .ma-timeline{
 opacity:1;visibility:visible;pointer-events:auto;transform:translate(0,0);
}
.ux-map-v17 .ma-feed{background:#fbfaf7!important}
.ux-map-v17 .ma-feed>.ma-panel-title{padding:23px 20px 17px;display:flex;align-items:center;gap:10px}
.ux-map-v17 .ma-feed>.ma-panel-title h1{font-size:18px!important;letter-spacing:-.03em;text-transform:none!important;color:#1b211f}
.ux-map-v17 .ma-feed>.ma-panel-title>span{margin-left:auto;color:#cc5c18;background:#fff0e7;font-size:12px}
.ux-close{appearance:none;display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border-radius:50%;border:1px solid #e1e3dd;background:white;color:#59615b;font:400 25px/1 Arial,sans-serif;cursor:pointer;transition:background .15s}
.ux-close:hover{background:#fff0e7;color:#bb4b0b}
.ux-map-v17 .ma-feed .ma-event-list{padding:0 14px 12px;overflow:auto}
.ux-map-v17 .ma-event{border-radius:17px;margin-bottom:9px}
.ux-map-v17 .ma-feed-more{margin:8px 14px;border-radius:12px}
.ux-map-v17 .ma-feed-bottom{font-size:11px;padding:15px 17px}
.ux-map-v17 .ma-analytics-head{padding:3px 3px 12px}
.ux-map-v17 .ma-analytics-head .ma-panel-title{display:flex;align-items:center;gap:9px}
.ux-map-v17 .ma-analytics-head .ma-panel-title h2{font-size:19px!important;margin-right:auto!important;text-transform:none!important;letter-spacing:-.04em}
.ux-map-v17 .ma-updated{margin:6px 0 10px!important;font-size:11px!important}
.ux-map-v17 .ma-analytics .ma-periods{background:#f1f1ed;border-radius:14px}
.ux-map-v17 .ma-analytics .ma-periods button{border-radius:11px}
.ux-map-v17 .ma-metrics{gap:8px}
.ux-map-v17 .ma-metrics>div{border-radius:16px!important;padding:12px 10px!important}
.ux-map-v17 .ma-metrics strong{font-size:29px!important}
.ux-map-v17 .ma-analytic-block{padding-block:19px!important}
.ux-map-v17 .ma-region-summary{border-radius:17px!important}
.ux-map-v17 .ma-timeline-top{display:flex;min-height:38px;flex-wrap:wrap;gap:13px}
.ux-map-v17 .ma-timeline h2{font-size:15px!important;text-transform:none!important;letter-spacing:0!important}
.ux-map-v17 .ma-timeline-top>.ux-close{margin-left:auto;order:10}
.ux-map-v17 .ma-time-chart{flex:1;min-height:0}
.ux-map-v17 .ma-date-inputs input{border-radius:11px!important}
.ux-map-v17 .ma-mobile-tabs{display:none!important}
/* Consolidated controls */
.ux-filter-panel{padding:24px 22px!important;overflow-y:auto!important;overscroll-behavior:contain}
.ux-filter-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.ux-panel-kicker{display:block;color:#f2660d;font-size:11px;letter-spacing:.13em;text-transform:uppercase;font-weight:800;margin-bottom:6px}
.ux-filter-head h2{font-size:24px!important;line-height:1.1;margin:0;letter-spacing:-.045em}
.ux-panel-hint{font-size:13px;line-height:1.65;color:#68716b;margin:14px 0 20px}
.ux-filter-groups{display:grid;gap:21px}
.ux-filter-group{display:grid;gap:12px;border-top:1px solid #e8e6df;padding-top:18px}
.ux-filter-group h3{font-size:13px!important;font-weight:800;margin:0 0 3px;letter-spacing:0!important}
.ux-map-v17 .ux-filter-panel .ma-header-filters,.ux-map-v17 .ux-filter-panel .ma-feed-filter{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;width:100%!important;order:initial!important;margin:0!important;padding:0!important}
.ux-map-v17 .ux-filter-panel .ma-select{width:100%;border-radius:15px;background:white;padding:10px 13px;min-height:63px;gap:13px}
.ux-map-v17 .ux-filter-panel .ma-select svg{width:19px;height:19px;color:#cc6420}
.ux-map-v17 .ux-filter-panel .ma-select>span{flex:1;color:#6b746e;font-size:11px;line-height:1.45}
.ux-map-v17 .ux-filter-panel .ma-select select{display:block;width:100%!important;max-width:none!important;font-size:13px!important;font-weight:700;padding-right:26px;color:#222c28}
.ux-map-v17 .ux-filter-panel .ma-feed-filter label{display:block;width:100%}
.ux-map-v17 .ux-filter-panel .ma-feed-filter select{height:47px!important;border-radius:15px!important;font-size:13px!important;padding:0 14px!important}
.ux-reset{margin-top:24px;border:1px solid #ebc9b5;border-radius:14px;background:#fff4ee;color:#bd5211;padding:14px;width:100%;font-weight:800;font-size:13px;cursor:pointer}
.ux-reset:hover{background:#ffe6d5}
.ux-map-v17 .ma-analytics[data-ux-pane="analytics"]{scrollbar-width:thin}
@media(max-width:1100px){
 .ux-header-name span{display:none}
 .ux-header-actions{gap:12px}
 .ux-header-actions .ux-method{display:none}
 .ux-toolbar{left:15px;top:14px}
 .ux-map-v17 .ma-map-area .ma-map-top{top:77px;left:16px}
 .ux-map-v17 .ma-feed,.ux-map-v17 .ma-analytics,.ux-map-v17 .ux-filter-panel{top:72px!important}
}
@media(max-width:950px){
 .ma-body.ux-map-v17{height:100dvh!important;overflow:hidden!important;padding-bottom:0!important}
 .ux-map-v17 .ma-header.ux-header{position:relative!important;top:auto!important;flex:0 0 64px;height:64px!important;min-height:64px!important;flex-wrap:nowrap!important;padding:0 13px!important;gap:12px}
 .ux-header-name{padding-left:12px}
 .ux-header-name strong{font-size:13px}
 .ux-header-actions .ux-legal{display:none}
 .ux-header-actions .ma-report{padding:0 13px;font-size:12px;min-height:39px;height:39px}
 .ux-map-v17 .ux-map-layout{display:block!important;min-height:0!important;position:relative!important;flex:1 1 0!important;overflow:hidden!important}
 .ux-map-v17 .ma-map-area{height:100%!important;min-height:0!important;position:absolute!important;inset:0!important}
 .ux-map-v17 .ma-map-area .ma-map-top{top:80px;left:12px;right:12px;width:calc(100% - 24px)}
 .ux-toolbar{left:12px;right:12px;top:12px;max-width:calc(100% - 24px);overflow:visible;gap:0;padding:5px}
 .ux-tool{min-height:39px;padding:9px 13px;font-size:12px;gap:6px}
 .ux-map-v17 .ma-feed,.ux-map-v17 .ma-analytics,.ux-map-v17 .ux-filter-panel,.ux-map-v17 .ma-timeline{
  position:absolute!important;top:auto!important;bottom:10px!important;left:10px!important;right:10px!important;
  width:auto!important;height:min(72dvh,680px)!important;border-radius:23px!important;transform:translateY(calc(100% + 24px));
 }
 .ux-map-v17[data-ux-panel="feed"] .ma-feed,.ux-map-v17[data-ux-panel="filters"] .ux-filter-panel,.ux-map-v17[data-ux-panel="analytics"] .ma-analytics,.ux-map-v17[data-ux-panel="timeline"] .ma-timeline{transform:translateY(0)}
 .ux-map-v17 .ma-timeline{height:min(49dvh,370px)!important;padding:15px!important}
 .ux-map-v17 .ma-analytics{padding:18px!important}
 .ux-map-v17 .ma-map-tools{bottom:16px!important;right:12px!important}
 .ux-map-v17 .ma-case-card{top:auto;bottom:12px;left:12px;right:12px;width:auto;max-height:52dvh;z-index:14}
 .ux-map-v17 .ma-map-area .maplibregl-ctrl-top-left{bottom:10px;left:10px}
 .ux-map-v17 .ma-region-chip{top:143px;left:12px}
}
@media(max-width:590px){
 .ux-header-name{display:none}
 .ux-header-actions .ma-report{font-size:0;min-width:44px;width:44px;padding:0;justify-content:center;border-radius:13px}
 .ux-header-actions .ma-report svg{width:20px;height:20px}
 .ux-map-v17 .ma-brand img{height:35px;width:35px}
 .ux-map-v17 .ma-brand strong{font-size:23px}
 .ux-tool{flex:1;min-width:0;padding:10px 4px;font-size:11px;flex-direction:column;gap:3px}
 .ux-tool svg{width:19px;height:19px}
 .ux-tool-count,.ux-filter-count,.ux-period-dot{position:absolute;top:1px;right:3px;font-size:9px;padding:2px 5px}
 .ux-map-v17 .ma-map-area .ma-map-top{top:92px;gap:6px}
 .ux-map-v17 .ma-map-top .ma-legend-control>.ma-floating{padding:0 8px;height:46px;min-height:46px;font-size:0}
 .ux-map-v17 .ma-map-top .ma-legend-control>.ma-floating svg{width:19px;height:19px}
 .ux-map-v17 .ma-search input{font-size:12px!important;height:46px!important}
 .ux-map-v17 .ma-region-chip{top:147px}
 .ux-map-v17 .ma-feed,.ux-map-v17 .ma-analytics,.ux-map-v17 .ux-filter-panel{height:min(76dvh,670px)!important}
 .ux-map-v17 .ma-timeline{height:min(57dvh,440px)!important;overflow-y:auto!important}
 .ux-map-v17 .ma-timeline-top{display:flex;align-items:flex-start;gap:8px}
 .ux-map-v17 .ma-timeline .ma-date-inputs{order:8;width:100%;flex-wrap:wrap}
 .ux-map-v17 .ma-timeline .ma-date-inputs input{max-width:133px}
 .ux-map-v17 .ma-time-chart{min-height:90px}
 .ux-map-v17 .ma-timeline .ma-timeline-range{display:none}
 .ux-map-v17 .ma-analytics .ma-periods button{font-size:10px!important}
}
@media(prefers-reduced-motion:reduce){.ux-map-v17 .ma-feed,.ux-map-v17 .ma-analytics,.ux-map-v17 .ux-filter-panel,.ux-map-v17 .ma-timeline,.ux-tool{transition:none!important}}
/* Mobile polish: full-width four-column command bar, no hover popups over the search. */
@media(max-width:950px){
 .ux-tool::after{display:none!important}
}
@media(max-width:590px){
 .ux-toolbar{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;width:calc(100% - 24px)!important;max-width:none!important;gap:2px!important}
 .ux-tool{flex:initial!important;width:100%!important;min-width:0!important;min-height:62px!important;white-space:nowrap!important;font-size:10px!important;gap:5px!important;padding:8px 2px!important;line-height:1.1!important}
 .ux-tool-count,.ux-filter-count,.ux-period-dot{right:4px!important;top:3px!important}
 .ux-map-v17 .ma-map-area .ma-map-top{top:100px!important}
 .ux-map-v17 .ma-region-chip{top:155px!important}
}

.ux-filter-extra{display:flex;gap:10px;flex-wrap:wrap;padding-top:18px;margin-top:15px;border-top:1px solid #e8e6df}
.ux-filter-extra a,.ux-filter-extra button{background:none;border:0;padding:5px 0;color:#4e5650;font-weight:700;font-size:12px;cursor:pointer;text-decoration:none}
.ux-filter-extra a:hover,.ux-filter-extra button:hover{color:#e76411}

/* v1.7.1 refinements: wider legend, redesigned timeline, scrollable filters, softer map emphasis */
.ux-map-v17 .ma-legend{
  width:min(360px,calc(100vw - 48px))!important;
  max-height:min(64dvh,430px)!important;
  padding:18px 18px 16px!important;
  overflow:auto!important;
  scrollbar-width:thin;
}
/* v1.7.3: Only actual legend rows use the two-column layout.
   The former `.ma-legend > div` selector also affected the title, squeezing
   "Случаи на карте" into its 22px marker column. */
.ux-map-v17 .ma-legend{box-sizing:border-box!important;max-width:calc(100vw - 24px)!important}
.ux-map-v17 .ma-legend > .ma-legend-title{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  grid-template-columns:none!important;gap:12px!important;
  min-width:0;margin:0 0 14px!important;line-height:1.3!important;
}
.ux-map-v17 .ma-legend .ma-legend-title strong{
  display:block;flex:1 1 auto;min-width:0;margin:0!important;
  font-size:16px!important;line-height:1.3!important;letter-spacing:-.02em;
  color:#18211e;white-space:normal;overflow-wrap:normal;word-break:normal;
}
.ux-map-v17 .ma-legend .ma-legend-close{
  display:grid!important;place-items:center!important;flex:0 0 32px!important;
  width:32px!important;height:32px!important;margin:0 0 0 auto!important;
  border-radius:10px!important;font-size:20px!important;cursor:pointer;
}
.ux-map-v17 .ma-legend .ma-legend-close:focus-visible{outline:3px solid #f2660d88;outline-offset:2px}
.ux-map-v17 .ma-legend > .ma-legend-item{
  display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;
  gap:12px!important;align-items:center!important;min-width:0;
  margin:10px 0!important;font-size:13px!important;line-height:1.45;white-space:normal;
}
.ux-map-v17 .ma-legend > .ma-legend-item > i{justify-self:center;flex-shrink:0}
.ux-map-v17 .ma-legend > .ma-legend-item > span{min-width:0;overflow-wrap:normal;word-break:normal}
.ux-map-v17 .ma-legend small{font-size:11px!important;line-height:1.55;color:#6f776f;margin-top:10px;display:block;white-space:normal}
.ux-map-v17 .ma-legend hr{margin:12px 0!important}
.ux-map-v17 .ma-occupied-key{width:18px;height:14px;border-radius:4px;background:linear-gradient(180deg,#edc0b2,#e8aa96);border:1px dashed #c78971}
.ux-map-v17 #occupation-date{display:block;padding-top:4px}

.ux-map-v17 .ux-filter-panel{
  display:block!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-gutter:stable;
  padding-bottom:28px!important;
}
.ux-map-v17 .ux-filter-groups{padding-bottom:12px}
.ux-map-v17 .ux-filter-panel .ma-feed-filter label:last-child{margin-bottom:8px}
.ux-map-v17 .ux-reset{position:sticky;bottom:0;z-index:2;box-shadow:0 -12px 24px #fbfaf7;padding-top:14px}

.ux-map-v17 .ma-timeline{
  height:292px!important;
  padding:18px 22px 16px!important;
  background:linear-gradient(180deg,#fffdfa 0%,#faf8f3 100%)!important;
}
.ux-map-v17 .ma-timeline-top{align-items:center!important;gap:14px!important;margin-bottom:8px}
.ux-map-v17 .ma-date-inputs{gap:10px!important}
.ux-map-v17 .ma-date-inputs label{display:inline-flex;align-items:center}
.ux-map-v17 .ma-date-inputs input{height:36px!important;padding:0 12px!important;border:1px solid #e6e1d8!important;background:#fff!important;box-shadow:none!important}
.ux-map-v17 .ma-date-inputs button{height:36px;border-radius:12px;padding:0 14px;font-size:12px;background:#fff7f1;border:1px solid #f0d8c7;color:#b95a1a}
.ux-map-v17 .ma-timeline-summary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 14px;border:1px solid #ece5da;border-radius:18px;background:#fff;box-shadow:0 8px 24px #ede3d41f;margin-bottom:12px}
.ux-map-v17 .ma-timeline-summary span{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#a05d2d}
.ux-map-v17 .ma-timeline-summary strong{font-size:16px;line-height:1.2;color:#1a211e}
.ux-map-v17 .ma-timeline-summary small{font-size:12px;color:#6c756d;line-height:1.5;margin-left:auto}
.ux-map-v17 .ma-range-card{padding:13px 16px 14px;border:1px solid #ece5da;border-radius:18px;background:#fff;box-shadow:0 8px 24px #efe7da1c;margin-bottom:14px}
.ux-map-v17 .ma-range-labels{display:flex;justify-content:space-between;margin-bottom:10px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#9a6a43}
.ux-map-v17 .ma-range{height:30px!important;margin:0 6px!important}
.ux-map-v17 .ma-range-track,.ux-map-v17 .ma-range-selected{top:11px!important;height:8px!important;border-radius:999px!important}
.ux-map-v17 .ma-range-track{background:linear-gradient(90deg,#d8dfdb,#eff1ea)!important}
.ux-map-v17 .ma-range-selected{background:linear-gradient(90deg,#ffc891,#ef8d3d)!important;box-shadow:0 0 0 4px #f5a35a22}
.ux-map-v17 .ma-range input::-webkit-slider-thumb{width:18px!important;height:18px!important;background:#fff!important;border:4px solid #ee8a35!important;box-shadow:0 4px 12px #b16f2233!important}
.ux-map-v17 .ma-range input::-moz-range-thumb{width:18px!important;height:18px!important;background:#fff!important;border:4px solid #ee8a35!important;box-shadow:0 4px 12px #b16f2233!important}
.ux-map-v17 .ma-time-chart{display:grid!important;grid-auto-flow:column!important;grid-auto-columns:minmax(66px,1fr)!important;gap:10px!important;overflow-x:auto!important;overflow-y:hidden!important;align-items:stretch!important;padding:2px 2px 10px!important;min-height:152px!important;background:none!important;scrollbar-width:thin}
.ux-map-v17 .ma-time-column{display:grid!important;grid-template-rows:auto 1fr auto!important;align-items:stretch!important;justify-items:stretch!important;height:156px!important;padding:10px 8px!important;border:1px solid #e8e1d6!important;border-radius:18px!important;background:linear-gradient(180deg,#ffffff 0%,#faf6ef 100%)!important;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;background-clip:padding-box}
.ux-map-v17 .ma-time-column:hover{transform:translateY(-2px);border-color:#f0bb8d;box-shadow:0 12px 24px #e79a4b1f}
.ux-map-v17 .ma-time-column.is-selected{border-color:#ef8d3d!important;box-shadow:0 14px 30px #ef8d3d24!important;background:linear-gradient(180deg,#fff6ed 0%,#fff1df 100%)!important}
.ux-map-v17 .ma-time-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:8px}
.ux-map-v17 .ma-time-head small{font-size:11px!important;color:#7b847d;text-transform:capitalize;white-space:nowrap}
.ux-map-v17 .ma-time-head b{font-size:11px!important;color:#a06b43;font-weight:700}
.ux-map-v17 .ma-time-track{position:relative;display:flex;align-items:flex-end;justify-content:center;height:100%;border-radius:12px;background:linear-gradient(180deg,#f6f1e8 0%,#f2eee7 100%);overflow:hidden;padding:8px}
.ux-map-v17 .ma-time-track i{display:block;width:100%;min-height:8px;border-radius:10px 10px 6px 6px;background:linear-gradient(180deg,#ffc88a 0%,#ef8d3d 100%)!important;opacity:.92!important}
.ux-map-v17 .ma-time-column.is-selected .ma-time-track{background:linear-gradient(180deg,#f7ebdf 0%,#f2e5d6 100%)}
.ux-map-v17 .ma-time-total{display:block;text-align:center;margin-top:9px;font-size:12px;font-weight:800;color:#4e5650}
.ux-map-v17 .ma-bar-count,.ux-map-v17 .ma-time-column small{position:static!important;display:initial!important}
.ux-map-v17 .ma-timeline-foot{margin-top:10px!important;font-size:11px!important;color:#7b847d!important;gap:12px;align-items:flex-start}
.ux-map-v17 .ma-timeline-foot span:last-child{font-weight:700;color:#4c534e}

@media(max-width:950px){
  .ux-map-v17 .ma-timeline{height:min(60dvh,500px)!important;padding:16px!important}
  .ux-map-v17 .ma-timeline-summary small{margin-left:0;width:100%}
  .ux-map-v17 .ma-time-chart{grid-auto-columns:minmax(62px,72px)!important}
}
@media(max-width:590px){
  .ux-map-v17 .ma-legend{right:-8px!important;width:min(320px,calc(100vw - 24px))!important;min-width:0!important;max-height:min(58dvh,380px)!important;padding:15px 14px 14px!important}
  .ux-map-v17 .ma-legend > .ma-legend-item{font-size:12px!important}
  .ux-map-v17 .ux-filter-panel{padding:20px 18px 24px!important}
  .ux-map-v17 .ma-timeline{height:min(68dvh,560px)!important}
  .ux-map-v17 .ma-timeline-summary strong{font-size:15px}
  .ux-map-v17 .ma-range-card{padding:12px 13px 13px}
  .ux-map-v17 .ma-time-chart{grid-auto-columns:minmax(56px,68px)!important;gap:8px!important}
  .ux-map-v17 .ma-time-column{height:145px!important;padding:9px 7px!important;border-radius:16px!important}
  .ux-map-v17 .ma-time-head small,.ux-map-v17 .ma-time-head b,.ux-map-v17 .ma-time-total{font-size:11px!important}
}


/* v1.8.2 - compact but fully visible timeline. Keep existing date and two-handle range behavior. */
.ux-map-v17 .ma-timeline{
  height:258px!important;
  max-height:calc(100% - 36px)!important;
  padding:14px 18px 12px!important;
  gap:0!important;
  overflow:hidden!important;
  background:#fbfaf7!important;
}
.ux-map-v17 .ma-timeline-top{
  display:flex!important;flex-wrap:nowrap!important;
  align-items:center!important;gap:12px!important;
  min-height:38px!important;margin:0 0 10px!important;
  flex:0 0 auto!important;
}
.ux-map-v17 .ma-timeline-top h2{font-size:16px!important;line-height:1.2!important;white-space:nowrap}
.ux-map-v17 .ma-timeline-top>.ux-close{order:10;margin-left:auto;flex-shrink:0}
.ux-map-v17 .ma-date-inputs{
  display:flex!important;align-items:center!important;gap:8px!important;
  margin-left:auto!important;width:auto!important;min-width:0!important;
  flex-wrap:nowrap!important;order:0!important;
}
.ux-map-v17 .ma-date-inputs input{
  width:136px!important;max-width:100%!important;height:34px!important;
  padding:0 9px!important;font-size:12px!important;
}
.ux-map-v17 .ma-date-inputs button{height:34px!important;padding:0 11px!important}
.ux-map-v17 .ma-timeline-summary{display:none!important}
.ux-map-v17 .ma-range-card{
  display:block!important;flex:0 0 auto!important;
  border:0!important;background:transparent!important;box-shadow:none!important;
  padding:0 9px!important;margin:0 0 10px!important;border-radius:0!important;
}
.ux-map-v17 .ma-range-labels{display:none!important}
.ux-map-v17 .ma-range{height:26px!important;margin:0!important}
.ux-map-v17 .ma-range-track,.ux-map-v17 .ma-range-selected{top:10px!important;height:6px!important}
.ux-map-v17 .ma-time-chart{
  display:grid!important;grid-auto-flow:column!important;
  grid-auto-columns:minmax(76px,1fr)!important;gap:7px!important;
  flex:1 1 auto!important;min-height:0!important;height:auto!important;
  width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;
  align-items:stretch!important;scrollbar-width:thin;
  margin:0!important;padding:0 0 9px!important;
  overscroll-behavior-x:contain;
}
.ux-map-v17 .ma-time-column{
  height:100%!important;min-height:0!important;
  padding:8px 7px!important;border-radius:12px!important;
  grid-template-rows:auto minmax(10px,1fr) auto!important;
  box-shadow:none!important;
}
.ux-map-v17 .ma-time-column.is-selected{box-shadow:inset 0 0 0 1px #f1a266!important}
.ux-map-v17 .ma-time-track{min-height:0!important;padding:6px!important;border-radius:9px!important}
.ux-map-v17 .ma-time-total{margin-top:5px!important;font-size:11px!important}
.ux-map-v17 .ma-time-head{margin-bottom:6px!important}
.ux-map-v17 .ma-time-head small,.ux-map-v17 .ma-time-head b{font-size:10px!important}
.ux-map-v17 .ma-timeline-foot{
  display:flex!important;flex:0 0 auto!important;
  align-items:center!important;justify-content:space-between!important;
  gap:12px!important;margin:8px 2px 0!important;
  font-size:10px!important;line-height:1.35!important;
}
.ux-map-v17 .ma-timeline-foot>span:first-child{font-size:0!important}
.ux-map-v17 .ma-timeline-foot>span:first-child:after{
  content:'Выберите месяц, чтобы изменить период';font-size:11px!important;
}
.ux-map-v17 .ma-timeline-foot>span:last-child{white-space:nowrap}
@media(max-width:950px){
  .ux-map-v17 .ma-timeline{height:250px!important;max-height:calc(100% - 20px)!important;padding:13px 14px 11px!important}
  .ux-map-v17 .ma-date-inputs{margin-left:auto!important;gap:6px!important;width:auto!important;flex-wrap:nowrap!important;order:0!important}
  .ux-map-v17 .ma-date-inputs input{width:124px!important}
  .ux-map-v17 .ma-time-chart{grid-auto-columns:67px!important}
}
@media(max-width:620px){
  .ux-map-v17 .ma-timeline{
    height:294px!important;
    max-height:calc(100% - 20px)!important;
    overflow-y:auto!important;
  }
  .ux-map-v17 .ma-timeline-top{
    display:grid!important;grid-template-columns:minmax(0,1fr) 34px!important;
    gap:10px 8px!important;min-height:0!important;
    margin-bottom:10px!important;
  }
  .ux-map-v17 .ma-timeline-top h2{grid-column:1;grid-row:1}
  .ux-map-v17 .ma-timeline-top>.ux-close{grid-column:2;grid-row:1;order:0;margin:0;justify-self:end}
  .ux-map-v17 .ma-timeline .ma-date-inputs{
    grid-column:1/-1;grid-row:2;order:0!important;
    width:100%!important;max-width:100%!important;
    margin:0!important;gap:7px!important;flex-wrap:wrap!important;
  }
  .ux-map-v17 .ma-date-inputs label{flex:1 1 102px;min-width:0}
  .ux-map-v17 .ma-date-inputs input{width:100%!important;max-width:none!important;min-width:0!important;font-size:11px!important}
  .ux-map-v17 .ma-date-inputs button{margin:0 0 0 auto!important}
  .ux-map-v17 .ma-range-card{margin-bottom:9px!important}
  .ux-map-v17 .ma-time-chart{flex:1 0 110px!important;min-height:110px!important;grid-auto-columns:63px!important}
  .ux-map-v17 .ma-timeline-foot{flex-wrap:wrap;row-gap:3px!important}
}
@media(max-width:340px){
  .ux-map-v17 .ma-timeline{height:342px!important}
  .ux-map-v17 .ma-timeline .ma-date-inputs button{width:100%!important}
  .ux-map-v17 .ma-timeline-foot>span:first-child:after{font-size:10px!important}
}


/* v1.8.3 - unified timeline area chart (month hit-targets, no individual tiles). */
.ux-map-v17 .ma-timeline{
  height:250px!important;
  padding:14px 18px 12px!important;
  overflow:hidden!important;
}
.ux-map-v17 .ma-time-chart{
  display:block!important;
  flex:1 1 auto!important;
  min-height:104px!important;
  height:auto!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  padding:0 0 5px!important;
  margin:0!important;
  scrollbar-width:thin;
  scrollbar-color:#c9c4ba transparent;
}
.ux-map-v17 .ma-trend-plot{
  position:relative;
  width:100%;
  height:100%;
  min-height:104px;
  isolation:isolate;
  border-bottom:1px solid #e6e0d5;
  background:linear-gradient(180deg,#fffdfa 0%,#faf8f3 100%);
}
.ux-map-v17 .ma-trend-svg{
  position:absolute!important;
  inset:4px 0 26px!important;
  width:100%!important;
  height:calc(100% - 30px)!important;
  overflow:visible!important;
  pointer-events:none!important;
  fill:none;
}
.ux-map-v17 .ma-trend-svg .ma-trend-guide{
  stroke:#ebe9e2;
  stroke-width:1;
  vector-effect:non-scaling-stroke;
  fill:none;
}
.ux-map-v17 .ma-trend-svg .ma-trend-area{stroke:none}
.ux-map-v17 .ma-trend-svg .ma-trend-line{
  stroke:#eb8733;
  stroke-width:2.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
  fill:none;
}
.ux-map-v17 .ma-trend-months{
  display:grid;
  position:absolute;
  inset:0;
  height:100%;
  z-index:1;
}
.ux-map-v17 .ma-trend-month{
  position:relative;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  flex-direction:column;
  gap:0;
  min-width:0;
  margin:0;
  padding:0 1px 3px;
  height:100%;
  font:500 11px/1.3 Inter,Arial,sans-serif;
  text-align:center;
  color:#7c827c;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  cursor:pointer;
  transform:none!important;
}
.ux-map-v17 .ma-trend-month:hover,.ux-map-v17 .ma-trend-month:focus-visible{
  background:rgba(244,142,60,.09)!important;
  outline:0;
}
.ux-map-v17 .ma-trend-month:hover::before,.ux-map-v17 .ma-trend-month:focus-visible::before{
  content:"";
  position:absolute;
  top:5px;bottom:26px;left:50%;
  width:1px;
  background:#e9a05e;
  opacity:.7;
}
.ux-map-v17 .ma-trend-month:focus-visible{box-shadow:inset 0 0 0 2px #db7527!important}
.ux-map-v17 .ma-trend-date{
  position:relative;
  z-index:2;
  white-space:nowrap;
  display:block;
  font-size:10px;
  line-height:18px;
  color:#656d66;
}
.ux-map-v17 .ma-trend-date b{font-weight:700;color:#a36133}
.ux-map-v17 .ma-trend-month:not(.is-selected) .ma-trend-date{opacity:.65}
.ux-map-v17 .ma-trend-hint{
  position:absolute;
  display:none;
  z-index:3;
  bottom:calc(100% - 17px);
  left:50%;
  transform:translateX(-50%);
  padding:5px 8px;
  min-width:30px;
  background:#272a27;
  color:white;
  font-size:11px;
  border-radius:7px;
  white-space:nowrap;
  pointer-events:none;
}
.ux-map-v17 .ma-trend-month:hover .ma-trend-hint,
.ux-map-v17 .ma-trend-month:focus-visible .ma-trend-hint{display:block}
@media(max-width:950px){
  .ux-map-v17 .ma-timeline{height:250px!important}
  .ux-map-v17 .ma-trend-plot{width:100%}
}
@media(max-width:620px){
  .ux-map-v17 .ma-timeline{height:305px!important;overflow-y:auto!important}
  .ux-map-v17 .ma-time-chart{flex:1 0 113px!important;min-height:113px!important}
  .ux-map-v17 .ma-trend-date{font-size:10px}
  .ux-map-v17 .ma-timeline-foot{margin-top:7px!important}
}
@media(max-width:340px){
  .ux-map-v17 .ma-timeline{height:343px!important}
}
