/* Macro Map · MODE · GRID DESK · fase 1 (shell · zero tiles) */

#ih-panel-macro-map[data-mm-mode="grid_desk"] {
  --griddesk-accent: #E8B44A;
  --griddesk-bg: #07090c;
  --griddesk-panel: rgba(8, 10, 14, 0.96);
  --griddesk-line: rgba(232, 180, 74, 0.32);
  --griddesk-muted: #7a8494;
  --griddesk-dock-h: 148px;
  --griddesk-foot-h: 54px;
  --griddesk-film-h: 62px;
}

#ih-panel-macro-map[data-mm-mode="grid_desk"] .ih-map-stage {
  background: #05070a !important;
  border: 1px solid rgba(40, 48, 58, 0.95) !important;
  overflow: hidden;
}

#ih-panel-macro-map[data-mm-mode="grid_desk"] #cal-map-host,
body.ih-hub-full #view-caleco.ih-view.active.ih-show-calendar #ih-panel-macro-map[data-mm-mode="grid_desk"] #cal-map-host,
#view-caleco.ih-show-calendar #ih-panel-macro-map[data-mm-mode="grid_desk"] #cal-map-host {
  background: #0a121c !important;
  inset: auto !important;
  top: var(--griddesk-film-h) !important;
  left: 0 !important;
  right: 0 !important;
  bottom: calc(var(--griddesk-dock-h) + var(--griddesk-foot-h)) !important;
  height: auto !important;
  width: auto !important;
  min-height: 160px !important;
  z-index: 1 !important;
}

#ih-panel-macro-map[data-mm-mode="grid_desk"] #cal-map-host .ih-mm-maplibre,
#ih-panel-macro-map[data-mm-mode="grid_desk"] #cal-map-ml {
  background: #0a121c !important;
  bottom: 0 !important;
  height: 100% !important;
  left: 0 !important;
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  width: 100% !important;
}

#ih-panel-macro-map[data-mm-mode="grid_desk"] #cal-map-ml,
#ih-panel-macro-map[data-mm-mode="grid_desk"] .maplibregl-canvas-container,
#ih-panel-macro-map[data-mm-mode="grid_desk"] .maplibregl-canvas {
  cursor: grab;
  pointer-events: auto !important;
  touch-action: none;
}

#ih-panel-macro-map[data-mm-mode="grid_desk"] .ih-mm-kpi,
#ih-panel-macro-map[data-mm-mode="grid_desk"] .ih-mm-sessions,
#ih-panel-macro-map[data-mm-mode="grid_desk"] #ih-mm-disaster-foot,
#ih-panel-macro-map[data-mm-mode="grid_desk"] .ih-module-bar,
#ih-panel-macro-map[data-mm-mode="grid_desk"] #ih-mm-data-source,
#ih-panel-macro-map[data-mm-mode="grid_desk"] #ih-mm-eq-legend,
#ih-panel-macro-map[data-mm-mode="grid_desk"] .ih-mm-layer-menu {
  display: none !important;
  pointer-events: none !important;
}

#ih-panel-macro-map[data-mm-mode="grid_desk"] #ih-mm-bmap {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: none !important;
  visibility: visible !important;
  z-index: 130 !important;
}
#ih-panel-macro-map[data-mm-mode="grid_desk"] #ih-mm-bmap .ih-mm-bmap__chrome,
#ih-panel-macro-map[data-mm-mode="grid_desk"] #ih-mm-bmap.is-open .ih-mm-bmap__list,
#ih-panel-macro-map[data-mm-mode="grid_desk"] #ih-mm-bmap.is-open .ih-mm-bmap__q {
  pointer-events: auto;
}

#ih-panel-macro-map[data-mm-mode="grid_desk"] .ih-mm-film {
  background: #07090c !important;
  border-bottom: 1px solid rgba(232, 180, 74, 0.28) !important;
  left: 0;
  padding: 0 !important;
  right: 0;
  z-index: 14;
}

#ih-panel-macro-map[data-mm-mode="grid_desk"] .ih-mm-film__gct-word {
  color: var(--griddesk-accent);
  font: 800 24px/1 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.06em;
}

#ih-panel-macro-map[data-mm-mode="grid_desk"] .ih-mm-film__gct-product {
  color: #ebe5d8;
  font: 600 16px/1.25 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#ih-panel-macro-map[data-mm-mode="grid_desk"] .ih-mm-film__mode-center {
  color: var(--griddesk-accent) !important;
  font: 700 20px/1.2 "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing: 0.16em !important;
}

#ih-panel-macro-map .ih-mm-griddesk-dock {
  align-items: stretch;
  background: var(--griddesk-panel, rgba(8, 10, 14, 0.96));
  border-top: 1px solid var(--griddesk-line, rgba(232, 180, 74, 0.32));
  bottom: var(--griddesk-foot-h, 54px);
  display: flex;
  flex-direction: row;
  gap: 18px;
  height: var(--griddesk-dock-h, 148px);
  left: 0;
  overflow: hidden;
  padding: 10px 16px 8px;
  pointer-events: auto;
  position: absolute;
  right: 0;
  z-index: 12;
}

#ih-panel-macro-map .ih-mm-griddesk-rail {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 10px 22px;
  min-width: 0;
  overflow: auto;
  pointer-events: auto;
}

#ih-panel-macro-map .ih-mm-griddesk-rail[hidden],
#ih-panel-macro-map .ih-mm-griddesk-dock[hidden],
#ih-panel-macro-map .ih-mm-griddesk-foot[hidden] {
  display: none !important;
}

#ih-panel-macro-map .ih-mm-griddesk-rail__hd {
  color: var(--griddesk-muted, #7a8494);
  font: 700 16px/1.2 "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

#ih-panel-macro-map .ih-mm-griddesk-rail__empty {
  color: var(--griddesk-muted, #7a8494);
  font: 400 16px/1.4 "Segoe UI", sans-serif;
}

#ih-panel-macro-map .ih-mm-griddesk-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#ih-panel-macro-map .ih-mm-griddesk-chip {
  background: rgba(18, 22, 28, 0.9);
  border: 1px solid rgba(74, 143, 160, 0.4);
  color: #c8d0da;
  cursor: default;
  font: 700 16px/1 "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  opacity: 0.55;
  padding: 10px 13px;
}
#ih-panel-macro-map .ih-mm-griddesk-chip:not([disabled]) {
  cursor: pointer;
  opacity: 1;
}
#ih-panel-macro-map .ih-mm-griddesk-chip.is-on:not([disabled]) {
  border-color: rgba(232, 180, 74, 0.85);
  color: #E8B44A;
}

#ih-panel-macro-map .ih-mm-griddesk-dock__meta {
  display: flex;
  flex: 0 0 auto;
  gap: 22px;
}

#ih-panel-macro-map .ih-mm-griddesk-dock__hd {
  color: var(--griddesk-muted, #7a8494);
  font: 700 13px/1.2 "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

#ih-panel-macro-map .ih-mm-griddesk-dock__name,
#ih-panel-macro-map .ih-mm-griddesk-dock__asof {
  color: #d4dce6;
  font: 600 16px/1.35 "Segoe UI", sans-serif;
}

#ih-panel-macro-map .ih-mm-griddesk-clock-lab {
  color: var(--griddesk-muted, #7a8494);
  font: 700 12px/1.2 "Segoe UI", sans-serif;
  letter-spacing: 0.1em;
}

#ih-panel-macro-map .ih-mm-griddesk-clock {
  color: #E8B44A;
  font: 700 22px/1.2 "Segoe UI", sans-serif;
}

#ih-panel-macro-map .ih-mm-griddesk-foot {
  align-items: center;
  background: #07090c;
  border-top: 1px solid rgba(232, 180, 74, 0.22);
  bottom: 0;
  color: var(--griddesk-muted, #7a8494);
  display: flex;
  font: 600 16px/1 "Segoe UI", sans-serif;
  gap: 16px;
  height: var(--griddesk-foot-h, 54px);
  left: 0;
  letter-spacing: 0.08em;
  padding: 0 16px;
  pointer-events: auto;
  position: absolute;
  right: 0;
  z-index: 12;
}

#ih-panel-macro-map .ih-mm-griddesk-foot button {
  background: transparent;
  border: 0;
  color: #E8B44A;
  cursor: pointer;
  font: 700 16px/1 "Segoe UI", sans-serif;
}

#ih-panel-macro-map:has(#ih-mm-region-foot:not([hidden])) .ih-mm-griddesk-foot {
  bottom: var(--mm-region-foot-h, 60px) !important;
}
#ih-panel-macro-map:has(#ih-mm-region-foot:not([hidden])) .ih-mm-griddesk-dock {
  bottom: calc(var(--griddesk-foot-h, 54px) + var(--mm-region-foot-h, 60px)) !important;
}

#ih-panel-macro-map .ih-mm-eq-popup--griddesk.maplibregl-popup,
.ih-mm-eq-popup--griddesk.maplibregl-popup {
  max-width: 280px !important;
}

#ih-panel-macro-map .ih-mm-eq-popup--griddesk .maplibregl-popup-content,
.ih-mm-eq-popup--griddesk .maplibregl-popup-content {
  box-sizing: border-box;
  font: 16px/1.3 "Segoe UI", sans-serif !important;
  max-width: 280px !important;
  min-width: 0 !important;
  padding: 12px 14px 12px !important;
  width: 280px !important;
  border-color: rgba(232, 180, 74, 0.4);
}

#ih-panel-macro-map .ih-mm-eq-popup--griddesk .ih-mm-eq-tip,
.ih-mm-eq-popup--griddesk .ih-mm-griddesk-tip {
  max-width: 252px;
}

.ih-mm-eq-popup--griddesk .ih-mm-griddesk-tip b {
  color: #E8B44A;
  display: block;
  font: 700 18px/1.2 "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ih-mm-eq-popup--griddesk .ih-mm-griddesk-tip div {
  color: #c8d0da;
  font-size: 15px;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
