/* ImperoAtlas — fullscreen geospatial shell (SiteHive / NovaFrame chrome kill + layout) */

html.site-atlas,
html.nf-product-fullscreen.nf-option-com_imperoatlas,
body.site-atlas,
body.nf-product-fullscreen.site-atlas,
body.nf-product-fullscreen.nf-option-com_imperoatlas {
  margin: 0 !important;
  padding: 0 !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  background: #0b1220 !important;
}

/* Hide third-party a11y floating widget on Atlas product surface */
html.site-atlas #accesswidget,
html.site-atlas .accesswidget,
html.site-atlas .asw-menu,
html.site-atlas .asw-container,
html.site-atlas [class*="accessibility"],
html.site-atlas [id*="accessibility"],
html.site-atlas .pojo-a11y-toolbar,
html.site-atlas .uwy,
body.site-atlas #accesswidget,
body.site-atlas .accesswidget,
body.site-atlas .asw-menu,
body.site-atlas .asw-container,
body.site-atlas [class*="accessibility-widget"],
body.site-atlas .pojo-a11y-toolbar,
body.site-atlas .uwy {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.site-atlas #nf-content,
body.site-atlas .nf-shell,
body.site-atlas .nf-main,
body.site-atlas .nf-main__inner,
body.site-atlas .nf-component,
body.site-atlas .component-content,
body.nf-product-fullscreen.nf-option-com_imperoatlas #nf-content,
body.nf-product-fullscreen.nf-option-com_imperoatlas .nf-shell,
body.nf-product-fullscreen.nf-option-com_imperoatlas .nf-main,
body.nf-product-fullscreen.nf-option-com_imperoatlas .nf-main__inner,
body.nf-product-fullscreen.nf-option-com_imperoatlas .nf-component,
body.nf-product-fullscreen.nf-option-com_imperoatlas .component-content {
  margin: 0 !important;
  padding: 0 !important;
  height: 100vh !important;
  max-height: 100vh !important;
  width: 100% !important;
  max-width: none !important;
  overflow: hidden !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.site-atlas .nf-header,
body.site-atlas .nf-footer,
body.site-atlas .nf-topbar,
body.site-atlas .nf-suite-strip,
body.site-atlas .nf-aurora,
body.site-atlas .nf-orb,
body.site-atlas .nf-breadcrumb,
body.site-atlas .nf-gototop,
body.site-atlas .nf-offcanvas,
body.site-atlas .nf-skip,
body.site-atlas .nf-brand,
body.site-atlas #nf-home-h1,
body.site-atlas .nf-sidebar,
body.site-atlas aside.nf-sidebar,
body.site-atlas .nf-portal-grid__sidebar,
body.site-atlas #nf-customizer,
body.site-atlas .nf-cz,
body.site-atlas #imperoprivacy-reopen,
body.site-atlas .ip-reopen,
body.nf-product-fullscreen.nf-option-com_imperoatlas .nf-header,
body.nf-product-fullscreen.nf-option-com_imperoatlas .nf-footer,
body.nf-product-fullscreen.nf-option-com_imperoatlas .nf-topbar,
body.nf-product-fullscreen.nf-option-com_imperoatlas .nf-suite-strip,
body.nf-product-fullscreen.nf-option-com_imperoatlas .nf-aurora,
body.nf-product-fullscreen.nf-option-com_imperoatlas .nf-orb,
body.nf-product-fullscreen.nf-option-com_imperoatlas .nf-breadcrumb,
body.nf-product-fullscreen.nf-option-com_imperoatlas .nf-gototop,
body.nf-product-fullscreen.nf-option-com_imperoatlas .nf-offcanvas,
body.nf-product-fullscreen.nf-option-com_imperoatlas .nf-skip,
body.nf-product-fullscreen.nf-option-com_imperoatlas .nf-brand,
body.nf-product-fullscreen.nf-option-com_imperoatlas #nf-home-h1,
body.nf-product-fullscreen.nf-option-com_imperoatlas .nf-sidebar,
body.nf-product-fullscreen.nf-option-com_imperoatlas #nf-customizer,
body.nf-product-fullscreen.nf-option-com_imperoatlas .nf-cz,
body.nf-product-fullscreen.nf-option-com_imperoatlas #imperoprivacy-reopen,
body.nf-product-fullscreen.nf-option-com_imperoatlas .ip-reopen,
body.site-atlas #imperoprivacy-banner,
body.site-atlas .ip-banner,
body.nf-product-fullscreen.nf-option-com_imperoatlas #imperoprivacy-banner,
body.nf-product-fullscreen.nf-option-com_imperoatlas .ip-banner,
body.site-atlas ._access-monitor,
body.site-atlas .accesswatch-toolbar,
body.site-atlas #accessibilityWidget,
body.site-atlas .accessibility-menu,
body.site-atlas [class*="accessibility"],
body.nf-product-fullscreen.nf-option-com_imperoatlas ._access-monitor,
body.nf-product-fullscreen.nf-option-com_imperoatlas [class*="accessibility"] {
  display: none !important;
}

/* Force map canvas size even if parent chain collapses */
html.site-atlas #imperoatlas-app.iatlas-app,
body.site-atlas #imperoatlas-app.iatlas-app {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 50 !important;
}
html.site-atlas #imperoatlas-map.iatlas-map,
body.site-atlas #imperoatlas-map.iatlas-map {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100vh !important;
  z-index: 1 !important;
}

.iatlas-app {
  --iatlas-ink: #e8eef7;
  --iatlas-muted: rgba(232, 238, 247, 0.72);
  --iatlas-panel: rgba(18, 28, 48, 0.45);
  --iatlas-line: rgba(255, 255, 255, 0.22);
  --iatlas-accent: #7dd3fc;
  --iatlas-accent-2: #34d399;
  --iatlas-glass-bg:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 42%, rgba(56, 189, 248, 0.08));
  --iatlas-glass-border: 1px solid rgba(255, 255, 255, 0.28);
  --iatlas-glass-shadow:
    0 10px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  --iatlas-glass-blur: blur(22px) saturate(1.55);
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  color: var(--iatlas-ink);
  font-family: "Segoe UI", "IBM Plex Sans", system-ui, sans-serif;
  background: #0b1220;
}

/* Liquid glass surface */
.iatlas-glass {
  background: var(--iatlas-glass-bg) !important;
  border: var(--iatlas-glass-border) !important;
  box-shadow: var(--iatlas-glass-shadow) !important;
  backdrop-filter: var(--iatlas-glass-blur);
  -webkit-backdrop-filter: var(--iatlas-glass-blur);
}

.iatlas-disabled {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 2rem;
  color: var(--iatlas-muted);
}

.iatlas-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #0b1220;
}
.iatlas-map .maplibregl-canvas-container,
.iatlas-map .maplibregl-canvas {
  background: #0b1220;
}

.iatlas-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.72), transparent);
}

.iatlas-topbar > * {
  pointer-events: auto;
}

.iatlas-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.iatlas-brand__mark {
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  border-radius: 10px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.35),
    0 8px 20px rgba(14, 165, 233, 0.28);
}

.iatlas-brand__name {
  font-size: 1.08rem;
  color: #e2e8f0;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.iatlas-brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  line-height: 1.15;
}

.iatlas-brand__sub {
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  color: #f8fafc;
}

.iatlas-brand__tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7dd3fc;
  opacity: 0.95;
}

/* Unified topbar action chip family — LIVE / Naviga / Copilot same height & radius */
.iatlas-topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.iatlas-live-pill,
.iatlas-topbar__actions .iatlas-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 2.15rem;
  min-height: 2.15rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1;
  border: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
  white-space: nowrap;
}

.iatlas-live-pill {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(6, 78, 59, 0.55);
  color: #d1fae5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.iatlas-live-pill__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: iatlas-pulse 1.6s ease-out infinite;
}

.iatlas-topbar__actions .iatlas-btn {
  background: transparent;
  color: #cbd5e1;
  border-color: transparent;
}

.iatlas-topbar__actions .iatlas-btn:hover,
.iatlas-topbar__actions .iatlas-btn:focus-visible {
  background: rgba(51, 65, 85, 0.85);
  border-color: rgba(148, 163, 184, 0.35);
  color: #f8fafc;
  transform: none;
}

.iatlas-topbar__actions .iatlas-btn[aria-expanded="true"],
.iatlas-topbar__actions .iatlas-btn.is-active {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  border-color: transparent;
  color: #0b1220;
  font-weight: 800;
}

.iatlas-topbar__actions .iatlas-btn--ghost {
  background: transparent;
  color: #cbd5e1;
  padding: 0 0.95rem;
  font-size: 0.78rem;
}

.iatlas-intel {
  /* Top-right under LIVE/Naviga — never overlapping topbar actions */
  position: absolute;
  top: 4.75rem;
  right: 0.85rem;
  left: auto;
  bottom: auto;
  z-index: 22;
  width: min(15rem, calc(100vw - 2rem));
  padding: 0.75rem 0.85rem;
  border-radius: 18px;
  background: var(--iatlas-glass-bg);
  border: var(--iatlas-glass-border);
  box-shadow: var(--iatlas-glass-shadow);
  backdrop-filter: var(--iatlas-glass-blur);
  -webkit-backdrop-filter: var(--iatlas-glass-blur);
  max-height: none;
  overflow: visible;
}
.iatlas-intel__legend {
  display: none; /* legend is redundant; badges are on-map */
}

.iatlas-intel__title {
  margin: 0 0 0.55rem;
  color: var(--iatlas-accent);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.iatlas-intel__icons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.65rem;
}
.iatlas-intel__icon {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.iatlas-intel__ico {
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border: 1px solid rgba(125, 211, 252, 0.22);
}
.iatlas-intel__ico--alert {
  background: rgba(244, 63, 94, 0.14);
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.28);
}
.iatlas-intel__val {
  font-size: 0.92rem;
  font-weight: 700;
  color: #e8eef7;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.iatlas-intel__grid { display: none; }

.iatlas-traffic-legend {
  margin-top: 0.7rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--iatlas-line);
  display: flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: space-between;
}
.iatlas-traffic-legend__title { display: none; }
.iatlas-traffic-legend__item {
  flex: 1;
  height: 0.42rem;
  border-radius: 999px;
  background: #94a3b8;
  font-size: 0;
  color: transparent;
}
.iatlas-traffic-legend__item::before { display: none; }
.iatlas-traffic-legend__item[data-cong="free"] { background: #22c55e; }
.iatlas-traffic-legend__item[data-cong="slow"] { background: #eab308; }
.iatlas-traffic-legend__item[data-cong="moderate"] { background: #f97316; }
.iatlas-traffic-legend__item[data-cong="heavy"] { background: #dc2626; }

.iatlas-nav__suggest-wrap { position: relative; }
.iatlas-nav__suggest {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 2px);
  z-index: 40;
  margin: 0; padding: 0.25rem 0;
  list-style: none;
  max-height: 12rem;
  overflow: auto;
  border-radius: 12px;
  background: rgba(8, 15, 28, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}
.iatlas-nav__suggest li button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.iatlas-nav__suggest li button:hover,
.iatlas-nav__suggest li button:focus {
  background: rgba(56, 189, 248, 0.14);
}
.iatlas-nav__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0 0.15rem;
}
.iatlas-nav__cat {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.iatlas-nav__cat:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.55);
}

/* Left FAB stack — webcam / 3D / locate with even rhythm */
.iatlas-fab-stack {
  position: absolute;
  z-index: 36;
  left: 0.85rem;
  bottom: 4.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  align-items: stretch;
  padding: 0.2rem;
}
.iatlas-fab-stack .iatlas-3d-btn,
.iatlas-fab-stack .iatlas-livecam-btn,
.iatlas-fab-stack .iatlas-report-fab,
.iatlas-fab-stack .iatlas-bike-fab,
.iatlas-fab-stack .iatlas-locate {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #0f172a;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.iatlas-fab-stack .iatlas-report-fab {
  color: #fecdd3;
  border-color: rgba(244, 63, 94, 0.45);
}
.iatlas-fab-stack .iatlas-bike-fab {
  color: #a7f3d0;
  border-color: rgba(52, 211, 153, 0.45);
  font-size: 1rem;
}
.iatlas-fab-stack .iatlas-3d-btn[aria-pressed="true"],
.iatlas-fab-stack .iatlas-livecam-btn[aria-pressed="true"] {
  color: #0b1220;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  border-color: transparent;
}
.iatlas-bike-assist {
  position: absolute;
  z-index: 42;
  left: 0.85rem;
  bottom: 12.5rem;
  width: min(22rem, calc(100vw - 1.7rem));
  max-height: 40vh;
  overflow: auto;
  padding: 0.75rem 0.9rem 1rem;
}
.iatlas-bike-assist__body {
  font-size: 0.86rem;
  line-height: 1.45;
  color: #e2e8f0;
}
.iatlas-bike-assist__body ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.iatlas-cesium {
  position: absolute;
  inset: 0;
  z-index: 8;
  background: #0b1220;
  display: none;
}
.iatlas-cesium:not([hidden]) {
  display: block !important;
}
.iatlas-cesium .cesium-viewer,
.iatlas-cesium .cesium-viewer-cesiumWidgetContainer,
.iatlas-cesium .cesium-widget,
.iatlas-cesium .cesium-widget canvas {
  width: 100% !important;
  height: 100% !important;
}
.iatlas-cesium .cesium-viewer-bottom,
.iatlas-cesium .cesium-viewer-toolbar,
.iatlas-cesium .cesium-viewer-animationContainer,
.iatlas-cesium .cesium-viewer-timelineContainer {
  display: none !important;
}
.iatlas-app.is-cesium #imperoatlas-map { visibility: hidden; pointer-events: none; }
.iatlas-app.is-cesium .maplibregl-ctrl-top-right,
.iatlas-app.is-cesium .maplibregl-ctrl-bottom-right,
.iatlas-app.is-cesium .maplibregl-ctrl-bottom-left {
  display: none !important;
}
.iatlas-app.is-cesium #imperoatlas-cesium { display: block !important; }
.iatlas-app.is-cesium .iatlas-3d-btn {
  color: #0b1220;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  border-color: transparent;
}
.iatlas-app.is-cesium-ml #imperoatlas-map {
  /* MapLibre pitch 3D fallback — keep map visible */
}

.iatlas-livecam {
  position: absolute;
  z-index: 55;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  right: auto;
  bottom: auto;
  width: min(26rem, calc(100vw - 1.5rem));
  max-height: min(78vh, 34rem);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  background: #0b1424 !important;
  border: 1px solid rgba(148, 163, 184, 0.5) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  color: #f1f5f9;
}
.iatlas-livecam[hidden] { display: none !important; }
.iatlas-livecam__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  background: #111c30;
  color: #7dd3fc;
  font-weight: 700;
}
.iatlas-livecam__close {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  border: 1px solid rgba(248, 250, 252, 0.35);
  background: #ef4444;
  color: #fff !important;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.iatlas-livecam__close:hover { background: #f87171; }
.iatlas-livecam__frame {
  aspect-ratio: 16 / 10;
  background: #020617;
  position: relative;
  overflow: hidden;
}
.iatlas-livecam__frame iframe,
.iatlas-livecam__frame > img {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}
.iatlas-livecam__mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  background: #0f172a;
}
.iatlas-livecam__tile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}
.iatlas-livecam__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #fff;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.28);
  z-index: 2;
}
.iatlas-livecam__caption {
  position: absolute;
  left: 0.6rem;
  bottom: 0.55rem;
  z-index: 2;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.78);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 700;
}
.iatlas-livecam__hint {
  margin: 0;
  padding: 1.2rem;
  color: #94a3b8;
  font-size: 0.85rem;
  text-align: center;
}
.iatlas-livecam__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-top: 1px solid rgba(148,163,184,0.25);
  background: #0f172a;
}
.iatlas-livecam__meta a,
.iatlas-livecam__meta .iatlas-livecam__open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  background: #38bdf8;
  color: #0b1220;
  border: 0;
  cursor: pointer;
}
.iatlas-livecam__meta span {
  font-size: 0.78rem;
  color: #cbd5e1;
}
.iatlas-livecam__list {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.55rem 0.65rem 0.75rem;
  background: #0b1424;
  scrollbar-width: thin;
}
.iatlas-livecam__chip {
  flex: 0 0 auto;
  border: 1px solid rgba(148,163,184,0.35);
  background: #1e293b;
  color: #f1f5f9;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  cursor: pointer;
}
.iatlas-livecam__chip.is-active {
  background: rgba(56,189,248,0.28);
  border-color: #38bdf8;
  color: #fff;
}

/* Hide overlapping chrome while Live is open */
.iatlas-app.is-livecam .iatlas-ctx-btn,
.iatlas-app.is-livecam .iatlas-intel,
.iatlas-app.is-livecam .iatlas-fab-stack,
.iatlas-app.is-livecam .maplibregl-ctrl-bottom-right,
.iatlas-app:has(#iatlas-livecam:not([hidden])) .iatlas-ctx-btn,
.iatlas-app:has(#iatlas-livecam:not([hidden])) .iatlas-intel,
.iatlas-app:has(#iatlas-livecam:not([hidden])) .iatlas-fab-stack,
.iatlas-app:has(#iatlas-livecam:not([hidden])) .maplibregl-ctrl-bottom-right {
  display: none !important;
}
.iatlas-app.is-livecam::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.55);
  pointer-events: none;
}
.iatlas-popup__live {
  margin-top: 0.55rem;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #020617;
}
.iatlas-popup__live iframe,
.iatlas-popup__live img {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

.iatlas-nav__hint {
  margin: 0.35rem 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(226, 232, 240, 0.78);
}
.iatlas-nav__modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin: 0.2rem 0 0.4rem;
}
.iatlas-nav__mode {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 4.1rem;
  padding: 0.55rem 0.25rem 0.5rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05) 48%, rgba(56, 189, 248, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 22px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  color: #f8fafc;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}
.iatlas-nav__mode:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.6);
}
.iatlas-nav__mode:has(input:checked),
.iatlas-nav__mode.is-checked {
  border-color: rgba(186, 230, 253, 0.95);
  background:
    linear-gradient(165deg, rgba(125, 211, 252, 0.45), rgba(14, 165, 233, 0.18) 55%, rgba(255, 255, 255, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 0 0 1px rgba(125, 211, 252, 0.4),
    0 12px 30px rgba(14, 165, 233, 0.32);
  color: #fff;
}
.iatlas-nav__mode input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.iatlas-nav__mode-ico {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #04111f;
  background: linear-gradient(145deg, #f0f9ff, #7dd3fc 70%, #38bdf8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 4px 12px rgba(0, 0, 0, 0.28);
}
.iatlas-nav__mode-ico svg {
  display: block;
}
.iatlas-nav__mode-txt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}
.iatlas-nav__alts,
.iatlas-nav__services,
.iatlas-nav__guide {
  padding: 0 0.85rem 0.75rem;
}
.iatlas-nav__alts-title,
.iatlas-nav__services-title {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3fc;
  font-weight: 700;
}
.iatlas-nav__alt {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0 0 0.4rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--iatlas-line);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  cursor: pointer;
}
.iatlas-nav__alt strong { display: block; font-size: 0.88rem; }
.iatlas-nav__alt span { display: block; font-size: 0.75rem; color: #94a3b8; margin-top: 0.15rem; }
.iatlas-nav__alt em { display: block; font-size: 0.72rem; color: #a5f3fc; font-style: normal; margin-top: 0.2rem; }
.iatlas-nav__alt.is-active {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(14, 165, 233, 0.16);
}
.iatlas-nav__service-btn {
  display: inline-flex;
  margin: 0 0.35rem 0.35rem 0;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.14);
  color: #e0f2fe;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
}
.iatlas-nav__guide {
  border-top: 1px solid var(--iatlas-line);
  padding-top: 0.7rem;
}
.iatlas-nav__guide-step {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  color: #f8fafc;
  line-height: 1.35;
}
.iatlas-nav__guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.iatlas-nav__steps li.is-current {
  color: #7dd3fc;
  font-weight: 700;
}
.iatlas-popup__actions {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.iatlas-popup__actions a {
  display: inline-flex;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #e0f2fe;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
}

/* When Naviga/Copilot open, hide Mission HUD — no stacked overlap */
.iatlas-app:has(#iatlas-nav:not([hidden])) .iatlas-intel,
.iatlas-app:has(#iatlas-copilot:not([hidden])) .iatlas-intel {
  display: none !important;
}

/* Site a11y floater (i._access-icon) — kill hard */
html.site-atlas i._access-icon,
html.site-atlas i._access,
html.site-atlas ._access-icon,
html.site-atlas ._access-menu,
body.site-atlas i._access-icon,
body.site-atlas i._access,
body.site-atlas ._access-icon,
body.site-atlas ._access-menu {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

.iatlas-nav {
  position: absolute;
  top: 4.5rem;
  right: 1rem;
  z-index: 38;
  width: min(24rem, calc(100vw - 2rem));
  max-height: calc(100vh - 6.5rem);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #0b1424 !important;
  border: 1px solid rgba(148, 163, 184, 0.45) !important;
  color: #f1f5f9 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.iatlas-nav[hidden] {
  display: none !important;
}
.iatlas-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--iatlas-line);
}
.iatlas-nav__form {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.iatlas-nav__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--iatlas-muted);
}
.iatlas-nav__form input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--iatlas-line);
  background: rgba(15, 23, 42, 0.75);
  color: var(--iatlas-ink);
  padding: 0.55rem 0.7rem;
  font-size: 0.92rem;
}
.iatlas-nav__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.iatlas-nav__summary {
  padding: 0 0.85rem 0.55rem;
  font-size: 0.88rem;
  color: #a5f3fc;
  font-weight: 600;
}
.iatlas-nav__steps {
  margin: 0;
  padding: 0 0.85rem 0.85rem 1.6rem;
  overflow: auto;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.35;
}
.iatlas-nav__steps li {
  margin: 0 0 0.45rem;
}

/* MapLibre controls — zoom BR; attribution pinned bottom bar (no mid-screen clutter) */
.iatlas-app .maplibregl-ctrl-top-right,
.iatlas-app .maplibregl-ctrl-top-left {
  display: none !important;
}
.iatlas-app .maplibregl-ctrl-bottom-right {
  right: 0.7rem;
  bottom: 7.2rem;
}
.iatlas-app .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group {
  margin: 0 !important;
  background: rgba(12, 22, 38, 0.92) !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.iatlas-app .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group button {
  background-color: transparent !important;
  width: 2.35rem !important;
  height: 2.35rem !important;
}
.iatlas-app .maplibregl-ctrl-bottom-left {
  bottom: 2.55rem;
  left: 0.45rem;
}
/* Hide MapLibre attrib — we use our own visible credit strip */
.iatlas-app .maplibregl-ctrl-attrib,
.iatlas-app .maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib,
.iatlas-app .maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib {
  display: none !important;
}

/* Always-visible Imperoweb credit bar (liquid glass) */
.iatlas-attrib {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.85rem;
  min-height: 1.55rem;
  padding: 0.28rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f1f5f9;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(15, 23, 42, 0.72));
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  pointer-events: none;
}
.iatlas-attrib span + span::before {
  content: "·";
  margin-right: 0.85rem;
  color: rgba(148, 163, 184, 0.85);
  font-weight: 400;
}

@keyframes iatlas-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@keyframes iatlas-hazard-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(244, 63, 94, 0)); }
  50% { filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.65)); }
}

.iatlas-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05) 55%, rgba(56, 189, 248, 0.1));
  color: var(--iatlas-ink);
  border-radius: 14px;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 6px 18px rgba(0, 0, 0, 0.22);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.iatlas-btn:hover,
.iatlas-btn:focus-visible {
  border-color: rgba(125, 211, 252, 0.7);
  transform: translateY(-1px);
  outline: none;
}

.iatlas-btn--primary {
  background:
    linear-gradient(160deg, rgba(125, 211, 252, 0.75), rgba(14, 165, 233, 0.55) 55%, rgba(2, 132, 199, 0.45));
  border-color: rgba(186, 230, 253, 0.65);
  color: #04111f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 28px rgba(14, 165, 233, 0.35);
}

.iatlas-btn--glass {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  color: #e2e8f0;
}

.iatlas-btn--ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.2rem 0.45rem;
  backdrop-filter: none;
}

.iatlas-layers {
  position: absolute;
  top: 4.25rem;
  left: 1rem;
  z-index: 20;
  width: min(15.5rem, calc(100vw - 2rem));
  max-height: calc(100vh - 6.5rem);
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 0.55rem 0.65rem;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.iatlas-layers__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #e0f2fe;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  cursor: pointer;
  border-radius: 12px;
}
.iatlas-layers__toggle-ico {
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.95;
  letter-spacing: 0;
}
.iatlas-layers.is-collapsed {
  width: 2.9rem;
  min-width: 2.9rem;
  padding: 0.35rem;
}
.iatlas-ctx-btn {
  position: absolute;
  right: 0.7rem;
  bottom: 10.2rem;
  z-index: 36;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #04111f;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.iatlas-context,
.iatlas-community {
  position: absolute;
  top: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(26rem, calc(100vw - 1.5rem));
  max-height: min(70vh, 32rem);
  overflow: auto;
  border-radius: 18px;
  padding: 0.75rem 0.85rem 0.9rem;
}
.iatlas-context[hidden],
.iatlas-community[hidden] {
  display: none !important;
}
.iatlas-context__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}
.iatlas-context__body {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #e2e8f0;
  margin-bottom: 0.75rem;
}
.iatlas-timeline__title {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7dd3fc;
  font-weight: 800;
}
.iatlas-timeline__tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}
.iatlas-timeline__tab {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  cursor: pointer;
}
.iatlas-timeline__tab.is-active {
  background: rgba(125, 211, 252, 0.35);
  border-color: rgba(186, 230, 253, 0.7);
  color: #fff;
}
.iatlas-timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.iatlas-timeline__list li {
  padding: 0.45rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.8rem;
  color: #cbd5e1;
}
.iatlas-timeline__list strong {
  display: block;
  color: #f8fafc;
  font-size: 0.84rem;
}
.iatlas-community__form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.iatlas-community__form select,
.iatlas-community__form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.65);
  color: #e8eef7;
  padding: 0.55rem 0.65rem;
  font: inherit;
}
.iatlas-layers__panel {
  overflow-y: auto;
  max-height: calc(100vh - 9rem);
  padding: 0.15rem 0.15rem 0.35rem;
  -webkit-overflow-scrolling: touch;
}
.iatlas-layers.is-collapsed {
  width: auto;
  max-height: none;
  padding: 0.4rem 0.65rem;
}
.iatlas-layers.is-collapsed .iatlas-layers__panel,
.iatlas-layers.is-collapsed .iatlas-layers__title {
  display: none;
}
.iatlas-layers__acc {
  margin: 0 0 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 15, 28, 0.28);
  overflow: hidden;
}
.iatlas-layers__acc > summary.iatlas-layers__group {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  padding: 0.45rem 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7dd3fc;
  font-weight: 800;
  user-select: none;
}
.iatlas-layers__acc > summary::-webkit-details-marker {
  display: none;
}
.iatlas-layers__chev::before {
  content: "▸";
  display: inline-block;
  transition: transform 0.15s ease;
  opacity: 0.75;
}
.iatlas-layers__acc[open] > summary .iatlas-layers__chev::before {
  transform: rotate(90deg);
}
.iatlas-layers__acc .iatlas-layers__list {
  margin: 0;
  padding: 0 0.4rem 0.45rem;
  list-style: none;
}

#iatlas-nav-toggle {
  background:
    linear-gradient(160deg, rgba(125, 211, 252, 0.72), rgba(14, 165, 233, 0.5)) !important;
  border-color: rgba(186, 230, 253, 0.65) !important;
  color: #04111f !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 8px 22px rgba(14, 165, 233, 0.32) !important;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 8px 20px rgba(3, 105, 161, 0.35);
}
#iatlas-nav-toggle[aria-expanded="true"] {
  background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
}
.iatlas-layers__group {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7dd3fc;
  font-weight: 700;
}
.iatlas-layers__group:first-of-type {
  margin-top: 0.15rem;
}

.iatlas-layers__title {
  color: #e8eef7;

  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e8eef7;
}

.iatlas-layers__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.iatlas-layer {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.9rem;
  user-select: none;
  color: #e8eef7;
  padding: 0.15rem 0;
}

.iatlas-layer__swatch {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  flex-shrink: 0;
  background: #64748b;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.6);
}

.iatlas-layer__swatch[data-layer-swatch="traffic"] { background: #f97316; }
.iatlas-layer__swatch[data-layer-swatch="flights"] { background: #e2e8f0; }
.iatlas-layer__swatch[data-layer-swatch="webcam"] { background: #a78bfa; }
.iatlas-layer__swatch[data-layer-swatch="marine"] { background: #22d3ee; }
.iatlas-layer__swatch[data-layer-swatch="news"] { background: #38bdf8; }
.iatlas-layer__swatch[data-layer-swatch="business"] { background: #fbbf24; }
.iatlas-layer__swatch[data-layer-swatch="cycling"],
.iatlas-layer__swatch[data-layer-swatch="bike"] { background: #34d399; }
.iatlas-layer__swatch[data-layer-swatch="weather"] { background: #60a5fa; }
.iatlas-layer__swatch[data-layer-swatch="train"] { background: #f472b6; }
.iatlas-layer__swatch[data-layer-swatch="metro"] { background: #818cf8; }
.iatlas-layer__swatch[data-layer-swatch="bus"] { background: #fb923c; }
.iatlas-layer__swatch[data-layer-swatch="taxi"] { background: #facc15; }
.iatlas-layer__swatch[data-layer-swatch="scooter"] { background: #2dd4bf; }
.iatlas-layer__swatch[data-layer-swatch="moped"] { background: #f97316; }

.iatlas-geo {
  position: absolute;
  left: 50%;
  bottom: max(5.5rem, calc(env(safe-area-inset-bottom, 0px) + 5rem));
  top: auto;
  transform: translateX(-50%);
  z-index: 35;
  width: min(420px, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(12, 22, 38, 0.96), rgba(8, 15, 28, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  color: #e2e8f0;
  pointer-events: auto;
}
.iatlas-geo__title {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3fc;
}
.iatlas-geo__text {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #cbd5e1;
}
.iatlas-geo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.iatlas-geo__actions .iatlas-btn {
  color: #0b1220;
  background: #38bdf8;
  border-color: #38bdf8;
  font-weight: 700;
}
.iatlas-geo__actions .iatlas-btn--ghost {
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(148, 163, 184, 0.45);
}
.iatlas-locate {
  /* Legacy absolute locate — overridden inside .iatlas-fab-stack */
  position: absolute;
  right: 0.7rem;
  bottom: 4.1rem;
  z-index: 35;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(12, 22, 38, 0.94);
  color: #7dd3fc;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.iatlas-fab-stack .iatlas-locate {
  position: static;
  right: auto;
  bottom: auto;
  color: #e2e8f0;
}
.iatlas-locate:hover {
  border-color: rgba(56, 189, 248, 0.55);
  color: #e0f2fe;
}
.iatlas-popup__link {
  color: #7dd3fc;
  text-decoration: underline;
}
.iatlas-layer__swatch[data-layer-swatch="hazards"] {
  background: #f43f5e;
  animation: iatlas-hazard-glow 2s ease-in-out infinite;
}
.iatlas-layer__swatch[data-layer-swatch="ev"] { background: #22c55e; }
.iatlas-layer__swatch[data-layer-swatch="fuel"] { background: #f59e0b; }
.iatlas-layer__swatch[data-layer-swatch="hospital"] { background: #ef4444; }
.iatlas-layer__swatch[data-layer-swatch="clinic"] { background: #fb7185; }
.iatlas-layer__swatch[data-layer-swatch="pharmacy"] { background: #10b981; }
.iatlas-layer__swatch[data-layer-swatch="vet"] { background: #a78bfa; }
.iatlas-layer__swatch[data-layer-swatch="electrician"] { background: #eab308; }
.iatlas-layer__swatch[data-layer-swatch="plumber"] { background: #38bdf8; }
.iatlas-layer__swatch[data-layer-swatch="carpenter"] { background: #fb923c; }
.iatlas-layer__swatch[data-layer-swatch="hardware"] { background: #94a3b8; }
.iatlas-layer__swatch[data-layer-swatch="supermarket"] { background: #facc15; }
.iatlas-layer__swatch[data-layer-swatch="convenience"] { background: #fde047; }
.iatlas-layer__swatch[data-layer-swatch="mall"] { background: #fbbf24; }
.iatlas-layer__swatch[data-layer-swatch="clothes"] { background: #e879f9; }
.iatlas-layer__swatch[data-layer-swatch="bakery"] { background: #fde68a; }
.iatlas-layer__swatch[data-layer-swatch="electronics"] { background: #38bdf8; }
.iatlas-layer__swatch[data-layer-swatch="laundry"] { background: #67e8f9; }
.iatlas-layer__swatch[data-layer-swatch="hairdresser"] { background: #f9a8d4; }
.iatlas-layer__swatch[data-layer-swatch="car_repair"] { background: #fb923c; }

.iatlas-layer__label {
  color: #e8eef7;
  font-size: 0.92rem;
  font-weight: 600;
  flex: 1;
}

.iatlas-layer__badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0b1220;
  background: var(--iatlas-accent);
  border-radius: 3px;
  padding: 0.12rem 0.3rem;
}

.iatlas-layer__input {
  accent-color: var(--iatlas-accent);
  width: 1rem;
  height: 1rem;
}

.iatlas-layer.is-active .iatlas-layer__label {
  color: var(--iatlas-accent);
}

.iatlas-copilot {
  position: absolute;
  top: 4.25rem;
  right: 1rem;
  bottom: 3.25rem;
  z-index: 40;
  width: min(24rem, calc(100vw - 2rem));
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #0b1424;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  color: #f1f5f9;
}

/* When Copilot/Naviga open — hide overlapping chrome but KEEP 3D toggle visible */
.iatlas-app:has(#iatlas-copilot:not([hidden])) .iatlas-ctx-btn,
.iatlas-app:has(#iatlas-copilot:not([hidden])) .iatlas-intel,
.iatlas-app:has(#iatlas-copilot:not([hidden])) .iatlas-fab-stack .iatlas-report-btn,
.iatlas-app:has(#iatlas-copilot:not([hidden])) .iatlas-fab-stack .iatlas-bike-btn,
.iatlas-app:has(#iatlas-copilot:not([hidden])) .iatlas-livecam-btn,
.iatlas-app:has(#iatlas-nav:not([hidden])) .iatlas-ctx-btn,
.iatlas-app:has(#iatlas-nav:not([hidden])) .iatlas-intel {
  display: none !important;
}

/* 3D control must stay reachable — never hide with Copilot */
.iatlas-app .iatlas-3d-btn {
  display: inline-flex !important;
  z-index: 40;
  pointer-events: auto;
}

.iatlas-copilot[hidden] {
  display: none !important;
}

.iatlas-copilot__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  background: #111c30;
  color: #7dd3fc;
  font-weight: 700;
}

.iatlas-copilot__messages {
  flex: 1;
  overflow: auto;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: #0b1424;
}

.iatlas-msg {
  max-width: 96%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  color: #f8fafc !important;
}

.iatlas-msg--user {
  align-self: flex-end;
  background: #1e3a5f;
  border: 1px solid #38bdf8;
  color: #f0f9ff !important;
}

.iatlas-msg--bot {
  align-self: flex-start;
  background: #1a2438;
  border: 1px solid #64748b;
  color: #f1f5f9 !important;
}

.iatlas-msg__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}
.iatlas-msg__actions button {
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  background: #38bdf8;
  color: #0b1220;
}
.iatlas-msg__actions button:hover {
  background: #7dd3fc;
}

.iatlas-copilot__form {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  background: #111c30;
}

.iatlas-copilot__form input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 10px;
  background: #0b1424;
  color: #f8fafc !important;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
}

.iatlas-copilot__form input::placeholder {
  color: #94a3b8;
}

.iatlas-copilot__form input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.iatlas-copilot__form .iatlas-btn {
  background: #38bdf8;
  color: #0b1220;
  border: 0;
  font-weight: 700;
}

.iatlas-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.55rem; /* above visible Imperoweb credit strip */
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  padding: 0.45rem 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--iatlas-muted);
  background: linear-gradient(0deg, rgba(11, 18, 32, 0.82), rgba(11, 18, 32, 0.45) 70%, transparent);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

.iatlas-status__item::before {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--iatlas-accent-2);
  vertical-align: middle;
}

.maplibregl-ctrl-attrib {
  font-size: 10px !important;
}

.iatlas-map-popup .maplibregl-popup-content {
  background: rgba(12, 22, 38, 0.94);
  color: #e8eef7;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.iatlas-map-popup .maplibregl-popup-tip {
  border-top-color: rgba(12, 22, 38, 0.94);
}

.iatlas-popup__layer {
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
}

.iatlas-popup__prop {
  opacity: 0.9;
  font-size: 0.78rem;
}

/* Hide floating a11y / site chrome widgets on Atlas fullscreen */
html.site-atlas #accessibilityWidget,
html.site-atlas .accessibility-widget,
html.site-atlas .userway_buttons_wrapper,
html.site-atlas .uwy,
html.site-atlas .asw-container,
html.site-atlas .accesswidget,
html.site-atlas [id*="accessibility"],
html.site-atlas [class*="Accessibility"],
html.site-atlas [class*="userway"],
html.site-atlas iframe[src*="userway"],
html.site-atlas iframe[title*="Accessib"],
body.site-atlas #accessibilityWidget,
body.site-atlas .accessibility-widget,
body.site-atlas .userway_buttons_wrapper,
body.site-atlas .uwy,
body.site-atlas .asw-container,
body.site-atlas .accesswidget,
body.site-atlas [id*="accessibility"],
body.site-atlas [class*="Accessibility"],
body.site-atlas [class*="userway"],
body.nf-product-fullscreen.nf-option-com_imperoatlas #accessibilityWidget,
body.nf-product-fullscreen.nf-option-com_imperoatlas .userway_buttons_wrapper,
body.nf-product-fullscreen.nf-option-com_imperoatlas .uwy {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

@media (max-width: 720px) {
  html.site-atlas,
  body.site-atlas,
  #imperoatlas-app.iatlas-app,
  #imperoatlas-map.iatlas-map {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
  }
  .iatlas-map .maplibregl-canvas,
  .iatlas-map .maplibregl-canvas-container {
    width: 100% !important;
    height: 100% !important;
  }
  .iatlas-topbar {
    padding: 0.45rem 0.55rem;
  }
  .iatlas-brand__sub,
  .iatlas-brand__tag {
    display: none;
  }
  .iatlas-intel {
    top: 3.6rem;
    right: 0.45rem;
    left: auto;
    width: min(10.2rem, 42vw);
    padding: 0.45rem 0.5rem;
    max-height: 32vh;
    overflow: auto;
  }
  .iatlas-traffic-legend {
    display: none; /* declutter mobile map */
  }
  .iatlas-intel__grid dd {
    font-size: 0.8rem;
  }
  .iatlas-nav {
    top: 3.6rem;
    right: 0.45rem;
    left: 0.45rem;
    width: auto;
    max-height: min(70vh, 28rem);
  }
  /* Layers: collapsed drawer from bottom-left chip */
  .iatlas-layers {
    top: auto;
    bottom: 4.4rem;
    left: 0.45rem;
    width: min(12.5rem, calc(100vw - 4.5rem));
    max-height: 42vh;
    padding: 0.55rem 0.6rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .iatlas-layers.is-collapsed {
    width: auto;
    max-height: none;
    padding: 0.4rem 0.55rem;
  }
  .iatlas-layers.is-collapsed .iatlas-layers__panel {
    display: none;
  }
  .iatlas-app .maplibregl-ctrl-bottom-right {
    bottom: 7.2rem;
    right: 0.45rem;
  }
  .iatlas-fab-stack {
    left: 0.55rem;
    bottom: 4.8rem;
    gap: 0.65rem;
  }
  .iatlas-livecam {
    width: min(24rem, calc(100vw - 1rem));
    max-height: min(82vh, 36rem);
  }
  .iatlas-status {
    font-size: 0.62rem;
    gap: 0.35rem 0.55rem;
    padding: 0.25rem 0.5rem 0.3rem;
    bottom: 1.55rem;
  }
  .iatlas-status__item:nth-child(n+4) {
    display: none; /* keep coords/zoom/geo only on small screens */
  }
  .iatlas-app .maplibregl-ctrl-bottom-left .maplibregl-ctrl-scale {
    display: none; /* avoid clash with status on mobile */
  }
  .iatlas-geo {
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
    top: auto;
    bottom: max(4.75rem, calc(env(safe-area-inset-bottom, 0px) + 4.25rem));
    transform: none;
  }
  .iatlas-copilot {
    inset: auto 0 0 0;
    width: 100%;
    /* Grow with keyboard via --iatlas-vvh (set in JS visualViewport) */
    height: min(52vh, calc(var(--iatlas-vvh, 100dvh) * 0.52));
    max-height: calc(var(--iatlas-vvh, 100dvh) - 3.5rem);
    border-radius: 14px 14px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    display: flex;
    flex-direction: column;
  }
  .iatlas-copilot.is-keyboard,
  html.iatlas-keyboard-open .iatlas-copilot:not([hidden]) {
    /* Sit inside the visible viewport above the soft keyboard */
    top: var(--iatlas-vv-top, 0px);
    bottom: auto;
    height: calc(var(--iatlas-vvh, 100dvh) - 0.25rem);
    max-height: calc(var(--iatlas-vvh, 100dvh) - 0.25rem);
    border-radius: 0;
  }
  .iatlas-copilot__messages {
    min-height: 4rem;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .iatlas-copilot__form {
    position: sticky;
    bottom: 0;
    z-index: 2;
    flex: 0 0 auto;
    background: inherit;
    padding-bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
  }
  .iatlas-copilot__form input {
    font-size: 16px; /* prevent iOS zoom on focus */
    color: #f8fafc;
    background: #0f172a;
    caret-color: #38bdf8;
  }
  .iatlas-msg--bot.is-loading {
    opacity: 0.95;
    min-height: 1.4rem;
  }
  .iatlas-msg--bot.is-loading::after {
    content: '';
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    margin-left: 0.4rem;
    border-radius: 50%;
    background: #38bdf8;
    animation: iatlas-pulse 1s ease-in-out infinite;
    vertical-align: middle;
  }
  @keyframes iatlas-pulse {
    0%, 100% { opacity: 0.25; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.1); }
  }
}
