/* Macro Map · MODE · CARGO AIS · mockup 10 · pixel fidelity · neon cyan */

#ih-panel-macro-map[data-mm-mode="cargo_ships"] {
  --cargo-cyan: #00E5FF;
  --cargo-cyan-dim: rgba(0, 229, 255, 0.45);
  --cargo-cyan-mute: rgba(0, 229, 255, 0.22);
  --cargo-bg: #000000;
  --cargo-panel: rgba(10, 12, 16, 0.92);
  --cargo-muted: #8a9298;
  --cargo-text: #e8eef2;
  --cargo-ok: #3DDC84;
  --cargo-land: #1A1D23;
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-map-stage {
  background: #000 !important;
  border: 1px solid rgba(40, 48, 56, 0.9) !important;
  outline: none;
  overflow: hidden;
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] #cal-map-host,
body.ih-hub-full #view-caleco.ih-view.active.ih-show-calendar #ih-panel-macro-map[data-mm-mode="cargo_ships"] #cal-map-host,
#view-caleco.ih-show-calendar #ih-panel-macro-map[data-mm-mode="cargo_ships"] #cal-map-host {
  background: #000 !important;
  bottom: 96px !important;
  height: auto !important;
  inset: auto !important;
  left: 72px !important;
  max-height: none !important;
  min-height: 0 !important;
  right: 0 !important;
  top: 118px !important;
  width: auto !important;
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] #cal-map-host,
#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-mm-maplibre {
  background: #000 !important;
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] .maplibregl-ctrl-attrib,
#ih-panel-macro-map[data-mm-mode="cargo_ships"] .maplibregl-ctrl-bottom-left,
#ih-panel-macro-map[data-mm-mode="cargo_ships"] .maplibregl-ctrl-bottom-right {
  display: none !important;
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-mm-kpi,
#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-mm-sessions,
#ih-panel-macro-map[data-mm-mode="cargo_ships"] #ih-mm-disaster-foot,
#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-module-bar,
#ih-panel-macro-map[data-mm-mode="cargo_ships"] #ih-mm-data-source,
#ih-panel-macro-map[data-mm-mode="cargo_ships"] #ih-mm-eq-legend,
#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-mm-layer-menu {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] #ih-mm-bmap {
  display: flex !important;
  height: auto !important;
  max-height: none !important;
  opacity: 1 !important;
  overflow: visible !important;
  pointer-events: none !important;
  visibility: visible !important;
  z-index: 130 !important;
}
#ih-panel-macro-map[data-mm-mode="cargo_ships"] #ih-mm-bmap .ih-mm-bmap__chrome,
#ih-panel-macro-map[data-mm-mode="cargo_ships"] #ih-mm-bmap .ih-mm-bmap__fab,
#ih-panel-macro-map[data-mm-mode="cargo_ships"] #ih-mm-bmap .ih-mm-bmap__row,
#ih-panel-macro-map[data-mm-mode="cargo_ships"] #ih-mm-bmap .ih-mm-bmap__collapse {
  pointer-events: auto !important;
}

/* Film header */
#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-mm-film {
  background: #05070a !important;
  border-bottom: 1px solid rgba(0, 229, 255, 0.18) !important;
  left: 0;
  padding: 0 !important;
  pointer-events: auto !important;
  right: 0;
  z-index: 140 !important;
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-mm-film__burger {
  pointer-events: auto !important;
  position: relative;
  z-index: 141 !important;
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-mm-film__top {
  align-items: center;
  display: flex !important;
  gap: 16px;
  min-height: 58px;
  padding: 10px 18px 6px;
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-mm-film__brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-mm-film__burger {
  font-size: 22px !important;
  height: 40px !important;
  min-width: 40px !important;
  width: 40px !important;
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-mm-film__cargo-brand {
  color: #f2f4f6;
  font: 700 21px/1.15 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.06em;
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-mm-film__center {
  display: flex !important;
  flex: 1 1 auto;
  justify-content: center;
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-mm-film__mode-center {
  color: var(--cargo-cyan) !important;
  font: 700 23px/1.15 "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing: 0.16em !important;
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-mm-film__mode-center span {
  color: rgba(200, 210, 218, 0.75);
  font-weight: 600;
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-mm-film__right {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-left: auto;
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-mm-film__utc {
  color: var(--cargo-text) !important;
  display: inline-block !important;
  font: 600 17px/1 "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing: 0.1em;
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-mm-film__icons {
  display: inline-flex !important;
  gap: 8px;
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-mm-cargo-ico {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--cargo-cyan);
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-mm-film__sub {
  align-items: center;
  border-top: 1px solid rgba(40, 48, 56, 0.9);
  display: flex !important;
  gap: 6px;
  justify-content: space-between;
  padding: 0 14px 0 72px;
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-mm-cargo-tabs {
  display: flex;
  gap: 4px;
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-mm-cargo-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--cargo-muted);
  cursor: pointer;
  font: 700 16px/1.15 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.1em;
  padding: 12px 14px 10px;
  text-transform: uppercase;
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-mm-cargo-tab.is-on {
  border-bottom-color: var(--cargo-cyan);
  color: var(--cargo-cyan);
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-mm-cargo-search {
  align-items: center;
  display: flex;
  gap: 10px;
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-mm-cargo-search input {
  background: rgba(12, 16, 22, 0.95);
  border: 1px solid rgba(70, 80, 90, 0.55);
  color: var(--cargo-text);
  font: 500 15px/1.2 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  min-width: 220px;
  padding: 9px 12px 9px 32px;
}

#ih-panel-macro-map[data-mm-mode="cargo_ships"] .ih-mm-basemap-tog {
  border-color: rgba(0, 229, 255, 0.4);
  color: var(--cargo-cyan);
  font-size: 15px !important;
  letter-spacing: 0.1em;
  min-height: 36px;
  padding: 8px 14px !important;
}

/* Left icon rail */
#ih-panel-macro-map .ih-mm-cargo-rail {
  align-items: center;
  background: #07090c;
  border-right: 1px solid rgba(0, 229, 255, 0.16);
  bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  left: 0;
  padding: 14px 0 12px;
  pointer-events: auto;
  position: absolute;
  top: 118px;
  width: 72px;
  z-index: 12;
}

#ih-panel-macro-map .ih-mm-cargo-rail[hidden] {
  display: none !important;
}

#ih-panel-macro-map .ih-mm-cargo-rail__btn {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: #7a848c;
  cursor: pointer;
  display: inline-flex;
  font-size: 22px;
  height: 46px;
  justify-content: center;
  width: 46px;
}

#ih-panel-macro-map .ih-mm-cargo-rail__btn.is-on {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
  color: var(--cargo-cyan);
}

#ih-panel-macro-map .ih-mm-cargo-rail__help {
  margin-top: auto;
}

/* Floating panels */
#ih-panel-macro-map .ih-mm-cargo-float {
  background: rgba(8, 10, 14, 0.92);
  border: 1px solid rgba(70, 80, 90, 0.5);
  border-radius: 6px;
  pointer-events: auto;
  position: absolute;
  right: 16px;
  width: 260px;
  z-index: 12;
}

#ih-panel-macro-map .ih-mm-cargo-float[hidden] {
  display: none !important;
}

#ih-panel-macro-map .ih-mm-cargo-legend {
  padding: 14px 16px;
  top: 132px;
}

#ih-panel-macro-map .ih-mm-cargo-sug {
  padding: 14px 16px;
  top: 228px;
}

#ih-panel-macro-map .ih-mm-cargo-float__hd {
  color: var(--cargo-muted);
  font: 700 15px/1.2 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

#ih-panel-macro-map .ih-mm-cargo-legend__row {
  align-items: center;
  color: var(--cargo-text);
  display: flex;
  font: 600 17px/1.2 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  gap: 12px;
}

#ih-panel-macro-map .ih-mm-cargo-legend__dot {
  background: var(--cargo-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.7);
  display: inline-block;
  height: 12px;
  width: 12px;
}

#ih-panel-macro-map .ih-mm-cargo-sug__row {
  align-items: center;
  color: var(--cargo-text);
  display: flex;
  font: 600 17px/1.2 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  justify-content: space-between;
}

#ih-panel-macro-map .ih-mm-cargo-tog {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--cargo-cyan);
  cursor: pointer;
  display: inline-flex;
  font: 700 14px/1 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  gap: 10px;
  letter-spacing: 0.08em;
}

#ih-panel-macro-map .ih-mm-cargo-tog > i {
  background: #2a3238;
  border-radius: 999px;
  display: inline-block;
  height: 22px;
  position: relative;
  width: 42px;
}

#ih-panel-macro-map .ih-mm-cargo-tog > i::after {
  background: #bbb;
  border-radius: 50%;
  content: '';
  height: 16px;
  left: 3px;
  position: absolute;
  top: 3px;
  width: 16px;
}

#ih-panel-macro-map .ih-mm-cargo-tog.is-on > i {
  background: var(--cargo-cyan);
}

#ih-panel-macro-map .ih-mm-cargo-tog.is-on > i::after {
  background: #061018;
  left: 22px;
}

/* Map chrome · scale / zoom / coords */
#ih-panel-macro-map .ih-mm-cargo-scale {
  bottom: 118px;
  color: #c8d0d4;
  font: 600 14px/1 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  left: 88px;
  letter-spacing: 0.06em;
  pointer-events: none;
  position: absolute;
  z-index: 11;
}

#ih-panel-macro-map .ih-mm-cargo-scale[hidden] { display: none !important; }

#ih-panel-macro-map .ih-mm-cargo-scale > i {
  border-bottom: 2px solid #e8eef2;
  border-left: 2px solid #e8eef2;
  border-right: 2px solid #e8eef2;
  display: block;
  height: 8px;
  margin-bottom: 5px;
  width: 110px;
}

#ih-panel-macro-map .ih-mm-cargo-zoom {
  bottom: 118px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: auto;
  position: absolute;
  right: 16px;
  z-index: 12;
}

#ih-panel-macro-map .ih-mm-cargo-zoom[hidden] { display: none !important; }

#ih-panel-macro-map .ih-mm-cargo-zoom button {
  appearance: none;
  background: rgba(8, 10, 14, 0.9);
  border: 1px solid rgba(70, 80, 90, 0.55);
  color: #d8e0e4;
  cursor: pointer;
  font: 700 20px/1 "Segoe UI", sans-serif;
  height: 42px;
  width: 42px;
}

#ih-panel-macro-map .ih-mm-cargo-coords {
  background: rgba(8, 10, 14, 0.9);
  border: 1px solid rgba(70, 80, 90, 0.5);
  bottom: 118px;
  color: #c8d0d4;
  font: 600 14px/1.2 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.04em;
  padding: 9px 12px;
  pointer-events: none;
  position: absolute;
  right: 68px;
  z-index: 11;
}

#ih-panel-macro-map .ih-mm-cargo-coords[hidden] { display: none !important; }

/* Time bar */
#ih-panel-macro-map .ih-mm-cargo-timebar {
  align-items: center;
  background: rgba(6, 8, 12, 0.96);
  border-top: 1px solid rgba(50, 60, 70, 0.7);
  bottom: 40px;
  display: flex;
  gap: 20px;
  height: 58px;
  justify-content: center;
  left: 0;
  padding: 0 18px;
  pointer-events: auto;
  position: absolute;
  right: 0;
  z-index: 12;
}

#ih-panel-macro-map .ih-mm-cargo-timebar[hidden] { display: none !important; }

#ih-panel-macro-map .ih-mm-cargo-range {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--cargo-muted);
  cursor: pointer;
  font: 700 16px/1 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.08em;
  padding: 8px 10px;
}

#ih-panel-macro-map .ih-mm-cargo-range.is-on {
  border-bottom-color: var(--cargo-cyan);
  color: var(--cargo-cyan);
}

#ih-panel-macro-map .ih-mm-cargo-date {
  align-items: center;
  border: 1px solid rgba(70, 80, 90, 0.55);
  color: var(--cargo-text);
  display: inline-flex;
  font: 600 16px/1 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  gap: 10px;
  letter-spacing: 0.06em;
  padding: 9px 14px;
}

#ih-panel-macro-map .ih-mm-cargo-date b {
  color: var(--cargo-cyan);
  font-weight: 700;
}

/* Footer */
#ih-panel-macro-map .ih-mm-cargo-foot {
  align-items: center;
  background: #05070a;
  border-top: 1px solid rgba(40, 48, 56, 0.9);
  bottom: 0;
  color: var(--cargo-muted);
  display: flex;
  font: 600 14px/1.15 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  height: 40px;
  justify-content: space-between;
  left: 0;
  letter-spacing: 0.08em;
  padding: 0 18px;
  pointer-events: auto;
  position: absolute;
  right: 0;
  text-transform: uppercase;
  z-index: 13;
}

#ih-panel-macro-map .ih-mm-cargo-foot[hidden] { display: none !important; }

#ih-panel-macro-map .ih-mm-cargo-foot__ok {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

#ih-panel-macro-map .ih-mm-cargo-foot__ok > i {
  background: var(--cargo-ok);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(61, 220, 132, 0.7);
  display: inline-block;
  height: 10px;
  width: 10px;
}
