/* IMCC Map — compact professional geospatial workspace.
   One font, one restrained navy accent, tightly structured controls.
   webmap.css provides OpenLayers/feature geometry; this file owns workspace UI. */
:root{
  --map-navy:#102740;
  --map-blue:#204b74;
  --map-blue-hover:#173d62;
  --map-ink:#1b2d40;
  --map-muted:#627184;
  --map-line:#dfe6ec;
  --map-surface:#f7f9fb;
  --map-shadow:0 14px 38px rgba(17,37,56,.16);
}
*{box-sizing:border-box}
html,body.imcc-map-body{
  width:100%;height:100%;margin:0;overflow:hidden;
  background:#f1f4f7;color:var(--map-ink);
  font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:13px;-webkit-font-smoothing:antialiased;
}
.imcc-map-body button,.imcc-map-body input,.imcc-map-body select,
.imcc-map-body textarea,.imcc-map-body .imcc-site-header{
  font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
}
.imcc-map-body button:focus-visible,.imcc-map-body a:focus-visible,
.imcc-map-body input:focus-visible,.imcc-map-body summary:focus-visible,
.imcc-map-body select:focus-visible{outline:2px solid #477da7;outline-offset:2px}
.map-app{display:flex;flex-direction:column;width:100%;height:100vh;height:100dvh;overflow:hidden}
.map-skip{position:absolute;z-index:200;top:-60px;left:12px;padding:9px 14px;
  background:#fff;color:var(--map-navy);border-radius:6px}
.map-skip:focus{top:8px}

/* Shared header retains its own structure; type and tone are harmonized. */
.imcc-map-body .imcc-site-header{background:#0e2238;color:#fff}
.imcc-map-body .imcc-site-brand-caption{color:#bdc9d5}
.imcc-map-body .imcc-site-nav>a{color:#b5c5d6!important}
.imcc-map-body .imcc-site-nav>a.is-current{border-bottom-color:#8faccc;color:#fff!important}

/* Mode bar: a single understated active state. */
.map-mode-bar{flex:none;z-index:41;background:#fff;border-bottom:1px solid var(--map-line)}
.map-mode-bar-inner{display:flex;align-items:center;justify-content:space-between;
  gap:18px;height:52px;padding:0 24px}
.webmap-mode-switcher{display:flex;grid-template-columns:none;align-items:center;
  gap:3px;margin:0;padding:3px;background:#f0f3f6;border:1px solid #e8edf1;border-radius:8px}
.webmap-mode-switcher button{display:flex;align-items:center;justify-content:center;
  gap:7px;min-height:32px;padding:6px 14px;background:transparent;border:0;
  border-radius:5px;color:#52667a;font-size:12px;font-weight:650;white-space:nowrap}
.webmap-mode-switcher button:hover{background:#e4ebf1;color:#233e58}
.webmap-mode-switcher button.active{background:var(--map-navy);color:#fff;
  border:0;box-shadow:0 2px 6px rgba(22,43,67,.14)}
.webmap-mode-switcher button i{font-size:13px}
.map-mode-caption{font-size:11px;color:#657689;text-align:right;font-weight:500}

/* Fixed, scrollable left rail and expandable map. */
.webmap-layout{position:relative;display:flex;flex:1;min-height:0;height:auto;
  width:100%;overflow:hidden}
.webmap-sidebar{position:relative;flex:none;width:332px;min-width:332px;
  height:100%;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;
  scrollbar-color:#c8d2dc transparent;background:#fff;border-right:1px solid #d8e0e7;
  padding:0 17px 18px;z-index:26;box-shadow:2px 0 12px rgba(23,42,61,.035)}
.webmap-sidebar::-webkit-scrollbar{width:6px}
.webmap-sidebar::-webkit-scrollbar-thumb{background:#c8d2dc;border-radius:6px}
.map-panel-heading{display:flex;align-items:center;justify-content:space-between;
  gap:10px;margin:0 -17px 0;padding:19px 17px 15px;border-bottom:1px solid var(--map-line);
  background:#fff}
.map-panel-eyebrow{display:block;margin-bottom:5px;color:#58718a;
  font-size:9px;font-weight:750;letter-spacing:.09em;line-height:1.4}
.map-panel-heading h1{margin:0;color:var(--map-navy);font-size:18px;
  font-weight:760;letter-spacing:-.035em;line-height:1.35}
.map-panel-heading p{margin:4px 0 0;color:var(--map-muted);font-size:11px;line-height:1.4}
.map-panel-close{display:none;align-items:center;justify-content:center;
  width:34px;height:34px;border:1px solid var(--map-line);
  background:#fff;color:var(--map-ink);border-radius:7px;flex:none}
.map-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;
  padding:0!important;margin:-1px!important;overflow:hidden!important;
  clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Geographic focus / time controls stay concise, with legible 12px values. */
.focus-area{margin:13px 0 0;padding:0;background:transparent;border:0;border-radius:0}
.map-sidebar-label,.map-section-title h2{display:flex;align-items:center;gap:7px;
  margin:0;color:#263e56;font-size:11.5px;font-weight:730;letter-spacing:0;text-transform:none}
.map-sidebar-label i,.map-section-title h2 i{font-size:13px;color:#4a6d8b}
.focus-area-current{display:flex;align-items:center;justify-content:space-between;
  gap:10px;margin:7px 0}
#focus-area-name{font-size:12px;font-weight:650;color:#2b435b}
.focus-area-clear{padding:3px 7px;border:1px solid #d4dfe8;border-radius:5px;
  color:#41627e;background:#fff;font-size:10px;font-weight:650}
.focus-area-clear:hover{border-color:#a9bbcc}
.focus-country-select{width:100%;height:35px;padding:6px 10px;border:1px solid #ced8e1;
  border-radius:6px;background:#fff;color:var(--map-ink);font-size:11.5px;cursor:pointer}
.map-subtle-note{margin:6px 0 0;color:#718092;font-size:10px!important;line-height:1.45}
.webmap-section{margin-top:14px;padding-top:13px;border-top:1px solid var(--map-line)}
.map-display-section{margin-top:13px}
.map-operational-display-select{display:block;width:100%;min-height:36px;
  padding:7px 10px;background:#fff;border:1px solid #ced8e1;
  border-radius:6px;color:#263e56;font-size:11.5px;cursor:pointer}
.map-display-section[hidden]{display:none!important}
.map-section-title{display:flex;align-items:center;justify-content:space-between;
  gap:8px;margin:0 0 9px}
.map-section-title h2{font-size:11.5px}
.map-time-value,.map-layer-counter{padding:3px 7px;border-radius:5px;
  border:1px solid #e2eaf0;background:#f5f7f9;color:#516e85;
  font-family:inherit;font-size:10px;font-weight:650;white-space:nowrap}
.quick-periods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:3px;padding:3px;background:#f0f3f6;border:1px solid #ebeff3;border-radius:7px}
.quick-periods button{padding:7px 4px;border:0;border-radius:5px;
  background:transparent;color:#5d7082;font-size:11px;font-weight:650}
.quick-periods button.active{border:0;background:var(--map-navy);color:#fff;
  box-shadow:0 1px 4px rgba(25,45,68,.15)}
.map-state-summary{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:7px}
.map-state-summary div{padding:6px 9px;border-radius:6px;border:1px solid #e3e9ef;background:#f9fafb}
.map-state-summary span{display:block;margin-bottom:2px;color:#77879a;font-size:9px;font-weight:600}
.map-state-summary strong{font-family:inherit;font-size:10.5px;font-weight:650;color:#344c64}
.map-archive-range{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.map-archive-range[hidden]{display:none}
.map-archive-range>div{display:flex;flex-direction:column;gap:5px}
.map-archive-range label{font-size:10px;font-weight:650;color:#526679}
.map-archive-range input{width:100%;min-width:0;padding:8px 7px;background:#fff;
  color:#243b52;border:1px solid #d1dce5;border-radius:6px;font-size:11px}
.map-archive-range>button{grid-column:span 2;padding:9px 10px;
  background:var(--map-blue);color:#fff;border:0;border-radius:6px;font-size:11px;font-weight:650}
.map-archive-range>button:hover{background:var(--map-blue-hover)}
.map-archive-range .map-subtle-note{grid-column:span 2;margin:0}
.map-archive-error{grid-column:span 2;color:#a43f3f;font-size:11px;margin:0}
.map-archive-error[hidden]{display:none}

/* Layer catalogue: dense rows, no default descriptions or legends.
   i opens source notes; sliders opens controls only when needed. */
.map-layers-section{margin-top:13px;padding-top:13px}
/* Workspace sidebar hierarchy: one clear surface per task family.
   These selectors outrank both the legacy webmap.css declarations and the
   previous section-specific margins/backgrounds. */
.webmap-sidebar{background:#f4f7fa}
.webmap-sidebar .map-panel-heading{background:#fff;position:relative;z-index:1}
.webmap-sidebar .map-sidebar-card{
  --section-accent:#8daaba;--section-wash:#edf3f6;
  position:relative;min-width:0;overflow:visible;
  display:block;margin:12px 0 0;padding:14px 13px 15px;
  background:#fff;border:1px solid #dce5ed;
  border-top:2px solid var(--section-accent);
  border-radius:11px;
  box-shadow:0 2px 8px rgba(25,51,78,.035)}
.webmap-sidebar .map-sidebar-card[hidden]{display:none!important}
.webmap-sidebar .map-context-card{--section-accent:#6e97b8;--section-wash:#e9f2f9}
.webmap-sidebar .map-mode-card{--section-accent:#8b8ec7;--section-wash:#eeedfa}
.webmap-sidebar .map-time-card{--section-accent:#c4a372;--section-wash:#faf2e5}
.webmap-sidebar .map-data-card{--section-accent:#71aa9b;--section-wash:#e7f5f0}
.webmap-sidebar .map-imagery-card{--section-accent:#55a5bd;--section-wash:#e7f5f9}
.webmap-sidebar .map-copernicus-card{--section-accent:#769fc6;--section-wash:#e8f0f9}
.map-card-kicker{display:block;margin:0 0 8px;
  font-size:8.5px;font-weight:800;letter-spacing:.11em;
  color:#8094a7;line-height:1.35}
.webmap-sidebar .map-sidebar-card .map-section-title{margin:0 0 12px;gap:6px}
.webmap-sidebar .map-sidebar-card .map-section-title h2,
.webmap-sidebar .map-sidebar-card .map-sidebar-label{
  font-size:12px;font-weight:760;letter-spacing:-.01em;line-height:1.45;color:#1c3952}
.webmap-sidebar .map-sidebar-card .map-section-title h2 i,
.webmap-sidebar .map-sidebar-card .map-sidebar-label i{
  display:inline-flex;align-items:center;justify-content:center;
  width:28px;height:28px;flex:0 0 28px;
  font-size:13px;color:#285878;border-radius:8px;
  background:var(--section-wash)}
.webmap-sidebar .map-context-card .map-sidebar-label{margin-bottom:11px}
.webmap-sidebar .map-context-card .focus-area-current{margin:0 0 9px}
.webmap-sidebar .map-context-card .map-subtle-note{margin:9px 0 0}
.webmap-sidebar .map-sidebar-card .map-archive-range label{
  display:block;margin:0 0 5px;font-size:10px;line-height:1.4}
.webmap-sidebar .map-sidebar-card .map-archive-range input{
  min-width:0;width:100%;max-width:100%}
.webmap-sidebar .map-sidebar-card .map-section-helper{margin:0 0 11px}
.webmap-sidebar .map-sidebar-card select{max-width:100%;box-sizing:border-box}
.webmap-sidebar .map-sidebar-footer{
  padding-top:16px;margin-top:18px;border-top:1px solid #dce5ec}

.map-section-helper{margin:0 0 9px;color:#718093;font-size:10.5px;line-height:1.45}
.layers-panel{display:flex;flex-direction:column;gap:8px}
.layers-loading,.layers-empty{padding:13px;color:#66798b;background:#f7f9fb;
  border:1px solid #e7edf2;border-radius:7px;font-size:11px;line-height:1.5}
.layer-group{position:relative;padding:0;overflow:visible;
  background:#fff;border:1px solid #dce5ec;border-radius:8px;box-shadow:none}
.layer-group:has(.layer-info[open]){z-index:6}
.layer-group-header{display:flex;align-items:center;justify-content:space-between;
  gap:9px;width:100%;min-height:36px;padding:9px 11px;background:#f8fafb;
  border:0;border-radius:8px 8px 0 0;color:#293f56;cursor:pointer;text-align:left}
.layer-group.collapsed .layer-group-header{border-radius:8px}
.layer-group-header:hover{background:#f0f4f7}
.layer-group-title-wrap{display:flex;align-items:center;gap:8px;min-width:0}
.layer-group-title{margin:0;font-size:11px;font-weight:750;
  letter-spacing:0;text-transform:none;color:#253e57}
.layer-group-chevron{font-size:11px;color:#6c8093;transition:transform .17s ease}
.layer-group.collapsed .layer-group-chevron{transform:rotate(-90deg)}
.layer-group-count{flex-shrink:0;padding:2px 6px;border-radius:4px;
  border:0;background:#ecf1f5;color:#557086;font-size:10px;font-weight:600}
.layer-group-body{display:flex;flex-direction:column;gap:0;padding:3px 7px 6px}
.layer-group.collapsed .layer-group-body{display:none}
.layer-card{position:relative;margin:0;padding:0;background:#fff;
  border:0;border-bottom:1px solid #eef1f4;border-radius:0;opacity:1;
  box-shadow:none;transition:background .14s ease}
.layer-card:last-child{border-bottom:0}
.layer-card:hover{background:#f8fafc}
.layer-card:has(.layer-info[open]){z-index:12}
.layer-card.disabled{opacity:1}
.layer-card.disabled .layer-card-title{color:#65758a}
.layer-card.disabled .layer-settings,.layer-card.disabled .layer-legend{display:none}
.layer-card-header{display:flex;align-items:center;gap:9px;min-height:42px;
  padding:6px 7px}
.layer-card:has(.layer-options) .layer-card-header{padding-right:34px}
.layer-card-checkbox{flex:none;appearance:none;width:15px;height:15px;margin:0;
  border:1.5px solid #99aabb;border-radius:4px;background:#fff;cursor:pointer}
.layer-card-checkbox:checked{border-color:var(--map-blue);background:var(--map-blue)}
.layer-card-checkbox:checked::after{content:"";display:block;width:7px;height:4px;
  margin:3px 2px;border-left:1.6px solid #fff;border-bottom:1.6px solid #fff;transform:rotate(-45deg)}
.layer-card-title{display:block;min-width:0;flex:1;color:#263a50;
  font-size:11.5px;font-weight:650;line-height:1.4;letter-spacing:0;
  cursor:pointer;overflow-wrap:break-word}
.layer-info{flex:none;position:static}
.layer-info-trigger,.layer-options-trigger{display:grid;place-items:center;
  width:26px;height:28px;padding:0;border:0;border-radius:5px;
  color:#708398;background:transparent;cursor:pointer;list-style:none;font-size:14px}
.layer-info-trigger::-webkit-details-marker,.layer-options-trigger::-webkit-details-marker{display:none}
.layer-info-trigger::marker,.layer-options-trigger::marker{content:""}
.layer-info-trigger:hover,.layer-options-trigger:hover,
.layer-info[open]>.layer-info-trigger,.layer-options[open]>.layer-options-trigger{
  background:#eaf0f5;color:var(--map-blue)}
.layer-info-panel{position:absolute;right:3px;top:37px;z-index:30;
  width:min(255px,calc(100% - 6px));padding:12px 13px;
  border-radius:7px;border:1px solid #cbd7e1;background:#fff;
  box-shadow:0 12px 24px rgba(12,28,46,.17);
  color:#4a6175;font-size:11px;line-height:1.65;font-weight:450}
.layer-options-trigger{position:absolute;right:7px;top:7px}
.layer-options-content{padding:4px 8px 12px 31px;
  border-top:1px solid #edf1f4;background:#fff}
.layer-settings,.layer-legend{display:block;margin:0;padding:9px 0 0;border:0}
.layer-setting+.layer-setting{margin-top:9px}
.layer-setting-label,.layer-legend-title{margin:0 0 6px;color:#556a7e;
  font-size:10px;font-weight:700;letter-spacing:0;text-transform:none}
.layer-choice-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.layer-choice{min-width:0;padding:7px 2px;background:#f7f9fa;
  border:1px solid #dfe6ed;border-radius:5px;color:#546779;
  font-size:10px;font-weight:600;cursor:pointer}
.layer-choice.active{border-color:#244f74;background:#244f74;color:#fff}
.layer-range{width:100%;accent-color:#244f74}
.layer-opacity-value{margin-top:2px;color:#68798a;font-size:10px}
.layer-legend-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.layer-legend-item{display:flex;align-items:center;gap:6px;min-width:0;
  color:#506578;font-size:10px;line-height:1.4}
.layer-legend-symbol{border-color:#fff}
.layer-card.disabled .layer-options{opacity:.7}
.map-sidebar-footer{display:flex;flex-direction:column;gap:7px;
  margin-top:14px;padding-top:12px;border-top:1px solid var(--map-line);
  color:#708092;font-size:10px;line-height:1.5}
.map-sidebar-footer a{color:var(--map-blue);font-size:11px;font-weight:700;text-decoration:none}

/* Map tools: quiet white chrome over the underlying cartography. */
.webmap-main{position:relative;flex:1;min-width:0;min-height:0;height:100%;
  background:#e5edf3}
.webmap-map{width:100%;height:100%}
.map-floating-top{position:absolute;top:16px;left:16px;z-index:16;
  display:flex;align-items:center;gap:7px;pointer-events:none}
.map-floating-top>*{pointer-events:auto}
.map-floating-button,.map-location-chip{display:flex;align-items:center;gap:7px;
  padding:9px 11px;border-radius:7px;border:1px solid #d8e2ea;
  background:rgba(255,255,255,.97);color:#334f67;
  box-shadow:0 4px 16px rgba(14,35,56,.12);font-size:11px;font-weight:700}
.map-layer-collapse,.map-layer-open{cursor:pointer}
.map-layer-collapse:hover,.map-layer-open:hover{background:#f0f5f9;color:#163e60}
.map-layer-open{display:none}
.map-float-count{padding:2px 6px;border-radius:4px;background:#e9eef3;color:#456781}
.map-location-chip{max-width:min(290px,70vw);font-weight:600;white-space:nowrap}
.map-location-chip span{overflow:hidden;text-overflow:ellipsis}
.map-location-chip i{color:#51728e}
.map-mode-notice{position:absolute;bottom:44px;left:50%;z-index:18;
  transform:translateX(-50%);padding:9px 13px;border-radius:7px;
  background:rgba(20,41,61,.94);color:#fff;font-size:11px;
  width:max-content;max-width:75%;text-align:center;box-shadow:var(--map-shadow)}
.map-mode-notice[hidden]{display:none}
.webmap-tools{position:absolute;right:16px;top:16px;z-index:20;
  display:flex;flex-direction:column;padding:4px;
  border:1px solid #d9e2e9;border-radius:9px;background:rgba(255,255,255,.98);
  box-shadow:0 5px 18px rgba(14,35,56,.13)}
.webmap-tools button{width:35px;height:35px;padding:0;border:0;border-radius:6px;
  background:transparent;color:#334f68;font-size:15px;cursor:pointer}
.webmap-tools button:hover{background:#eef3f8;color:var(--map-blue)}
.webmap-tools button.active{background:#e4edf5;color:var(--map-blue);border:0}
.map-tools-separator{height:1px;background:var(--map-line);margin:4px}
.basemap-panel,.feature-panel,.focus-panel{background:rgba(255,255,255,.99);
  color:var(--map-ink);border:1px solid #d7e1e9;border-radius:10px;box-shadow:var(--map-shadow)}
.basemap-panel{top:123px;right:66px;z-index:31;width:185px;padding:13px}
.basemap-panel-title{margin-bottom:8px;font-size:10px;color:var(--map-muted);font-weight:700}
.basemap-option{padding:9px;font-size:11px;border-radius:6px;
  background:#f8fafb;border:1px solid #e0e6ec;color:#3e586e}
.basemap-option.active{background:#e9f0f6;border-color:#b7c9d7;color:var(--map-blue)}
.feature-panel,.focus-panel{top:16px;right:66px;z-index:35;
  width:min(360px,calc(100% - 95px));max-height:calc(100% - 32px);
  padding:18px;overflow-y:auto}
.feature-panel-close,.focus-panel-close{width:31px;height:31px;
  border:1px solid #dce5ec;background:#f4f7f9;color:#405e76;font-size:15px}
.feature-kicker,.focus-panel-kicker{color:#657c90}
.feature-title,.feature-panel h2,.focus-panel h2{color:#19334b}
.feature-grid-item,.focus-panel-meta div,.feature-meta div{
  border:1px solid #e2eaf0;background:#f7f9fb}
.feature-grid-item span,.focus-panel-meta span,.feature-meta span{color:#687b8e}
.feature-grid-item strong,.focus-panel-meta strong,.feature-meta strong{color:#29445a}
.feature-text,.feature-description,.focus-panel-description,.focus-panel-note{color:#4b6377}
.feature-action-primary{color:#fff!important;background:var(--map-blue);border:1px solid var(--map-blue)}
.feature-action-secondary{color:var(--map-blue)!important;background:#edf2f7;border:1px solid #d3e0e9}
.measure-help{right:64px;bottom:26px;z-index:39;color:#fff;background:#203c57;border-color:#203c57}
.measure-tooltip{color:#fff;background:#203c57;border-color:#325e7c}
.measure-tooltip-static{background:#244f74;border-color:#244f74}
.webmap-main .imcc-map-error{top:64px;left:16px}
.imcc-map-credit-webmap{left:12px;bottom:9px;z-index:19}
/* Attribution, linked-event labels and map errors use the workspace typeface too. */
.imcc-map-body .imcc-map-credit-webmap .imcc-basemap-credit,
.imcc-map-body .situation-map-marker-label,
.imcc-map-body .webmap-main .imcc-map-error,
.imcc-map-body .ol-attribution{
  font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
}
.map-sidebar-backdrop{display:none}
.ol-attribution{font-size:10px}

/* Smooth collapse preserves full map area and original mobile drawer. */
@media(min-width:851px){
  .webmap-sidebar{transition:width .25s ease,min-width .25s ease,
    padding .25s ease,opacity .17s ease}
  .webmap-layout.sidebar-collapsed .webmap-sidebar{
    width:0;min-width:0;padding-left:0;padding-right:0;
    border-right:0;opacity:0;pointer-events:none;visibility:hidden}
  .webmap-layout.sidebar-collapsed .map-layer-open{display:flex}
  .webmap-layout.sidebar-collapsed .map-layer-collapse{display:none}
}
@media(max-width:1120px){
  .webmap-sidebar{width:302px;min-width:302px}
  .map-header-context,.map-brand-label,.map-brand-divider{display:none}
}
@media(max-width:850px){
  .map-layer-collapse{display:none}
  .map-mode-bar-inner{justify-content:center;height:50px;padding:0 10px}
  .map-mode-caption{display:none}
  .webmap-mode-switcher{width:100%;display:grid;grid-template-columns:repeat(3,1fr)}
  .webmap-mode-switcher button{padding:7px 5px;font-size:11px;gap:5px}
  .webmap-sidebar{position:fixed;z-index:90;top:auto;bottom:0;left:0;right:0;
    width:100%;min-width:0;height:min(78dvh,740px);max-height:calc(100dvh - 64px);
    border:0;border-radius:14px 14px 0 0;
    padding:0 16px calc(22px + env(safe-area-inset-bottom));
    overflow-y:auto;box-shadow:0 -18px 40px rgba(10,26,42,.25);
    transform:translateY(105%);transition:transform .22s ease;visibility:hidden}
  .webmap-sidebar.is-open{transform:translateY(0);visibility:visible}
  .map-panel-heading{margin:0 -16px 0;padding:17px 16px 13px}
  .map-panel-close{display:flex}
  .map-sidebar-backdrop:not([hidden]){position:fixed;display:block;inset:0;
    z-index:80;width:100%;height:100%;border:0;background:rgba(12,28,44,.48)}
  .webmap-sidebar:not(.is-open){pointer-events:none}
  .webmap-main{width:100%;height:100%}
  .map-layer-open{display:flex}
  .map-floating-top{top:12px;left:12px;right:64px;gap:6px}
  .map-location-chip{min-width:0;max-width:40vw}
  .webmap-tools{top:12px;right:11px}
  .webmap-tools button{width:35px;height:35px}
  .feature-panel,.focus-panel{position:absolute;top:auto;bottom:0;left:0;right:0;
    width:100%;max-height:min(65%,580px);border-radius:14px 14px 0 0;
    padding:20px 18px calc(20px + env(safe-area-inset-bottom));z-index:38}
  .basemap-panel{top:132px;right:60px}
  .measure-help{right:10px;bottom:75px;max-width:245px}
  .map-mode-notice{bottom:55px;max-width:85%}
  .imcc-map-credit-webmap{left:6px;bottom:6px;max-width:90%}
  .webmap-main .imcc-map-error{top:64px;left:12px;max-width:calc(100% - 85px)}
}
@media(max-width:440px){
  .webmap-mode-switcher button{font-size:10.5px}
  .webmap-mode-switcher button i{display:none}
  .map-floating-button{padding:8px 9px;font-size:10px}
  .map-location-chip{max-width:37vw;padding:8px;font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  .webmap-sidebar,.layer-card,.layer-group-chevron{transition:none!important}
}
/* Hidden always wins over display:grid/flex utilities. */
#map-period-presets[hidden],#map-focus-details[hidden],#map-layer-count[hidden]{display:none!important}
.map-focus-details{display:inline-flex;align-items:center;gap:7px;
  margin-top:8px;padding:7px 9px;border:1px solid #d6e1e9;border-radius:5px;
  background:#fff;color:var(--map-blue);font-size:11px;font-weight:650}
.map-focus-details:hover{background:#f2f7fa}
.map-mobile-view{display:none}
@media(max-width:850px){
  .map-mobile-view{position:sticky;bottom:0;z-index:2;display:flex;
    align-items:center;justify-content:center;gap:8px;
    width:100%;margin:14px 0 0;padding:12px;
    background:var(--map-blue);color:#fff;border:0;border-radius:7px;
    font-size:12px;font-weight:700;box-shadow:0 5px 15px rgba(15,43,68,.14)}
  .map-mobile-view:hover{background:var(--map-blue-hover)}
}


/* Stage 4: opt-in Copernicus research tools inside Map > Analytical. */
/* Same sidebar spacing/heading/border as Data layers; no tinted outer card. */
/* Copernicus uses the same sidebar card as the other section families. */
#map-satellite-section{min-width:0}
#map-satellite-section[hidden]{display:none!important}
.map-satellite-intro{margin:0 0 12px}
.map-satellite-intro p{font-size:10px;color:#73899b;line-height:1.6;margin:5px 0 0}
.map-satellite-form{display:flex;flex-direction:column;gap:10px}
.map-satellite-form label{display:block;margin:0;color:#395c76;font-size:10px;font-weight:720}
.map-satellite-form input[type=date],.map-satellite-form select{width:100%;min-width:0;background:#fff;border:1px solid #d1e1eb;border-radius:6px;color:#294f6b;padding:9px 8px;font-size:10px}
.map-satellite-form input[type=range]{width:100%;accent-color:#2b7797}
.map-satellite-form label strong{color:#21779d}
.map-satellite-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.map-satellite-dates>div{display:flex;flex-direction:column;gap:6px;min-width:0}
.map-satellite-hint,.map-satellite-aoi{font-size:9px;color:#758a9b;margin:0;line-height:1.5;overflow-wrap:anywhere}
.map-satellite-aoi{padding:9px;background:#eaf2f6;border-radius:6px;color:#456d87}
.map-satellite-aoi-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.map-satellite-aoi-actions button{padding:9px 5px;border:1px solid #cbdde8;background:#fff;border-radius:6px;color:#306589;cursor:pointer;font-size:10px;font-weight:700}
.map-satellite-aoi-actions button.is-active{background:#e2f0f7;border-color:#6ba6c4}
.map-satellite-search{padding:12px 10px;background:#265d80;color:#fff;font-size:11px;font-weight:750;border:0;border-radius:7px;cursor:pointer}
.map-satellite-search:disabled{opacity:.5;cursor:not-allowed}
.map-satellite-status{margin:12px 0;padding:10px;color:#53758c;background:#eaf2f6;border-radius:6px;font-size:10px;line-height:1.55}
.map-satellite-status[data-state=error]{color:#9b5940;background:#fff0e8}
.map-satellite-status[data-state=success]{color:#35715c;background:#eaf6ee}
.map-satellite-status[data-state=loading]{color:#8d6b37;background:#fff5e3}
.map-satellite-results{display:flex;flex-direction:column;gap:8px}
.map-satellite-empty{margin:0;color:#70889a;font-size:10px;line-height:1.5;padding:8px 2px}
.map-satellite-result{display:grid;grid-template-columns:96px minmax(0,1fr);gap:10px;border:1px solid #dfe8ee;border-radius:8px;background:#fff;padding:8px}
.map-satellite-result.is-selected{border-color:#5395ba;background:#f1f8fc}
.map-satellite-quicklook{width:96px;height:83px;border-radius:5px;overflow:hidden;background:#e9eff4;display:grid;place-items:center}
.map-satellite-quicklook img{display:block;width:100%;height:100%;object-fit:cover}
.map-satellite-no-preview{color:#7891a3;font-size:9px;line-height:1.35;text-align:center;padding:6px}
.map-satellite-result-text{display:flex;flex-direction:column;align-items:start;gap:5px;min-width:0}
.map-satellite-result-text>strong{font-size:10px;color:#2a4c65;overflow-wrap:anywhere;line-height:1.4}
.map-satellite-result-text>span{font-size:9px;color:#70889a}
.map-satellite-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
.map-satellite-actions button,.map-satellite-actions a{border:0;background:none;color:#2b7096!important;font-weight:740;font-size:10px;padding:0;cursor:pointer}
.map-satellite-source{color:#276f91!important;font-size:10px;font-weight:710}
.map-satellite-detail-title{font-size:13px;color:#1e435d;overflow-wrap:anywhere;margin:8px 0}
.map-satellite-detail-preview{min-height:110px;background:#eaf0f4;display:grid;place-items:center;overflow:hidden;border-radius:7px;margin:10px 0}
.map-satellite-detail-preview img{display:block;max-height:235px;max-width:100%;object-fit:contain}
.map-satellite-detail-field{font-size:11px;line-height:1.5;color:#4e7187;margin:7px 0}
.map-satellite-record-link{display:inline-block;font-size:11px;color:#286e91!important;font-weight:700;margin:9px 0}
.map-satellite-selecting{cursor:crosshair!important}



/* OAuth-protected georeferenced imagery controls in Map Analytical. */
.map-satellite-processing{margin-top:14px;padding:12px;background:#fff;border:1px solid var(--map-line);border-radius:7px}
.map-satellite-processing h3{display:flex;align-items:center;gap:7px;font-size:11px;color:#285774;margin:0 0 9px;text-transform:none;letter-spacing:normal}
.map-satellite-processing-status{font-size:10px;line-height:1.55;color:#5e7c90;margin:0 0 10px}
.map-satellite-processing-status[data-state=ready]{color:#286b4d}
.map-satellite-processing-status[data-state=error]{color:#9b603f}
.map-satellite-processing-status[hidden],#map-satellite-layer-status[hidden]{display:none!important}
.map-satellite-comparison[hidden]{display:none!important}
.map-satellite-comparison{display:flex;flex-direction:column;gap:9px;margin:9px 0;padding:10px;background:#fff;border-radius:6px}
.map-satellite-comparison-dates{display:flex;flex-direction:column;gap:5px;font-size:10px;color:#54768d}
.map-satellite-comparison-dates strong{color:#265777;font-weight:750}
.map-satellite-comparison>label{display:flex;justify-content:space-between;font-size:10px;color:#376480}
.map-satellite-comparison>input{width:100%;accent-color:#286d92}
.map-satellite-clear-imagery{border:1px solid #c6dce8;border-radius:6px;background:#f7fafc;color:#396e8d;padding:8px;font-size:10px;font-weight:700;cursor:pointer}
.map-satellite-render-actions{display:flex;gap:8px;flex-wrap:wrap;padding:8px 0}
.map-satellite-render-actions button{border:1px solid #afccd9;border-radius:5px;background:#edf5f9;color:#2b6586;padding:7px 8px;font-size:10px;cursor:pointer;font-weight:700}
.map-satellite-render-actions button:disabled{opacity:.5;cursor:not-allowed}
.map-satellite-preview-note{font-size:10px;color:#796a52;line-height:1.5}


/* Selected STAC acquisition: true georeferenced imagery within OpenLayers,
   not a floating thumbnail or a rectangle with a texture stretched into it. */
.map-satellite-live-image{
  margin:13px 0;padding:12px 12px 13px;
  background:#fff;border:1px solid var(--map-line);border-radius:7px;
}
.map-satellite-live-image h3{
  display:flex;align-items:center;gap:8px;font-size:11px;
  color:#25536e;margin:0 0 8px;
}
#map-satellite-layer-status{
  color:#5e7b90;font-size:10px;line-height:1.6;
  margin:0;overflow-wrap:anywhere;
}
#map-satellite-layer-status[data-state="loading"]{color:#896b30}
#map-satellite-layer-status[data-state="error"],
#map-satellite-layer-status[data-state="warning"]{color:#975438}
#map-satellite-layer-status[data-state="ready"]{color:#2c7456}
#map-satellite-layer-controls[hidden]{display:none!important}
#map-satellite-layer-controls{
  margin-top:11px;display:flex;flex-direction:column;gap:8px;
  padding:10px;background:#fff;border:1px solid #dce9ef;border-radius:7px;
}
#map-satellite-layer-controls label{
  display:flex;justify-content:space-between;align-items:center;
  font-size:10px;color:#416a82;font-weight:700;
}
#map-satellite-layer-opacity{width:100%;accent-color:#296e96}
#map-satellite-hide-image{
  border:1px solid #c9dae5;background:#f6fafc;
  border-radius:6px;padding:8px;color:#316d90;
  font-size:10px;font-weight:730;cursor:pointer;
}
#map-satellite-refresh-detail{
  border:1px solid #a7c5d8;background:#eaf4fa;
  border-radius:6px;padding:9px;color:#245b80;
  font-size:10px;font-weight:750;cursor:pointer;
}
#map-satellite-refresh-detail:hover{background:#dcecf7}
.map-satellite-detail-hint{margin:0;font-size:9px;color:#718698;line-height:1.5}


/* The STAC scene outlines are a real, independently switchable OpenLayers
   vector layer; the entry lives under Data layers (not in the results list).
   The existing layer-card styling keeps the controls visually consistent. */
.map-satellite-footprints-entry{margin-top:8px}
.map-satellite-footprints-entry[hidden]{display:none!important}
.map-satellite-footprints-entry .layer-card-header{display:flex;align-items:center}
.map-satellite-footprints-entry .layer-card-title{flex:1;min-width:0;cursor:pointer}
.map-satellite-footprints-entry input[type=checkbox]{accent-color:#29709b;cursor:pointer}
.map-satellite-footprints-count{flex-shrink:0;font-size:9px;color:#678294;
  background:#edf4f7;border-radius:5px;padding:3px 5px}
.map-satellite-detail-show-image{width:100%;border:0;border-radius:7px;
  background:#236d98;color:#fff;font-weight:750;font-size:12px;
  padding:12px 14px;margin:11px 0 9px;cursor:pointer}
.map-satellite-detail-show-image:hover{background:#18577d}
.map-satellite-detail-show-image:disabled{opacity:.5;cursor:not-allowed}

/* NASA daily layers are a separate thematic sidebar card. Their controls are
   intentionally scoped by ID to override the legacy '.webmap-section label'
   declarations in webmap.css (display:block; margin:11px; font-size:14px). */
.map-nasa-daily-imagery{min-width:0;margin:0;padding:0}
.map-nasa-daily-heading{margin-bottom:6px}
#map-nasa-daily-period{flex:none;font-size:10px;line-height:1.2;color:#4e7188;
  padding:4px 6px;background:#eef5f8;border:1px solid #dceaf0;border-radius:5px}
.map-nasa-daily-description{font-size:10px;line-height:1.5;color:#6b8395;margin:0 0 12px}
#map-nasa-daily-sensors{display:flex;flex-direction:column;gap:9px;min-width:0}
#map-nasa-daily-imagery .map-nasa-satellite{
  min-width:0;border:1px solid #dae5ee;border-radius:9px;
  background:#fff;overflow:hidden;transition:border-color .15s,background-color .15s}
#map-nasa-daily-imagery .map-nasa-satellite:has(input:checked){
  border-color:#9fc0d5;background:#f8fbfd}
#map-nasa-daily-imagery .map-nasa-satellite-head{
  display:flex;align-items:center;gap:11px;min-height:47px;width:100%;
  padding:11px 12px;margin:0;cursor:pointer;font-size:11.5px;
  line-height:1.35;font-weight:650;color:#27445e}
#map-nasa-daily-imagery .map-nasa-satellite-head:hover{background:#f2f8fb}
#map-nasa-daily-imagery .map-nasa-satellite-head input[type=checkbox]{
  flex:0 0 17px;width:17px;height:17px;margin:0;
  accent-color:#24769f;cursor:pointer}
#map-nasa-daily-imagery .map-nasa-satellite-head .map-nasa-satellite-name{
  flex:1 1 auto;min-width:0;font-size:11.5px;font-weight:730;color:#2c4b64}
#map-nasa-daily-imagery .map-nasa-satellite-head .map-nasa-satellite-sensor{
  flex:none;font-size:9px;font-weight:700;letter-spacing:.02em;color:#59798b;
  background:#edf3f6;padding:4px 7px;border:1px solid #e0eaf0;border-radius:5px}
#map-nasa-daily-imagery .map-nasa-days{
  max-height:194px;overflow-y:auto;overscroll-behavior:contain;
  display:flex;flex-direction:column;gap:1px;
  padding:6px 9px 8px 19px;border-top:1px solid #dce7ee;background:#f8fbfd}
#map-nasa-daily-imagery .map-nasa-day{
  display:flex;align-items:center;gap:11px;width:100%;min-height:34px;
  padding:7px 8px;margin:0;border-radius:6px;
  font-size:10.5px;line-height:1.3;font-weight:550;color:#496b82;cursor:pointer}
#map-nasa-daily-imagery .map-nasa-day:hover{background:#eaf3f8;color:#245675}
#map-nasa-daily-imagery .map-nasa-day:has(input:checked){
  background:#e9f2f7;color:#1c597b;font-weight:750}
#map-nasa-daily-imagery .map-nasa-day input[type=radio]{
  flex:0 0 15px;width:15px;height:15px;margin:0;
  accent-color:#24769f;cursor:pointer}
#map-nasa-daily-imagery .map-nasa-unavailable{
  font-size:10px;color:#798b99;padding:0 12px 11px;margin:0}
.map-nasa-daily-attribution{font-size:9.5px;color:#71899b;
  line-height:1.55;margin:10px 0 0}
.map-nasa-daily-attribution a{color:#276c91!important;font-weight:650}
