.atlas-map-view,
.atlas-map-overlay,
.atlas-scheme,
.atlas-mode-scan {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.intro-camera { isolation: isolate; }
.atlas-map-view { z-index: 3; overflow: hidden; }
.atlas-scheme {
  clip-path: inset(0 100% 0 0);
  transition: clip-path .66s cubic-bezier(.42,0,.24,1);
}
.atlas-scheme-photo { filter: grayscale(1) contrast(.81); opacity: .18; }
[data-atlas-mode="plan"] .atlas-scheme { clip-path: inset(0); }
.atlas-mode-scan {
  width: 2px;
  height: 100%;
  background: #e6cb69;
  box-shadow: 0 0 12px 1px #f4e5a973;
  opacity: 0;
}
.atlas-mode-scan[data-direction="forward"] { animation: atlas-sweep .66s cubic-bezier(.42,0,.24,1) both; }
.atlas-mode-scan[data-direction="back"] { animation: atlas-sweep .66s cubic-bezier(.42,0,.24,1) reverse both; }
@keyframes atlas-sweep { 0% { left: 0; opacity: 0; } 5%, 95% { opacity: .85; } 100% { left: 100%; opacity: 0; } }

.atlas-map-dim { fill: #22271b; opacity: 0; transition: opacity .23s; }
[data-atlas-mode="render"]:is([data-atlas-scenario="warehouse"],[data-atlas-scenario="office"]) .atlas-map-dim { opacity: .075; }
.atlas-zone { outline: 0; }
.atlas-zone-fill { fill: #ecd169; fill-opacity: 0; transition: fill-opacity .22s; }
.atlas-zone-edge,
.atlas-office-light,
.atlas-selection-link {
  fill: none;
  stroke: #eed36c;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.atlas-zone-edge,
.atlas-selection-link {
  opacity: 0;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .5s ease, opacity .18s;
}
.atlas-office-light { opacity: 0; fill: #ffdf88; stroke: none; filter: drop-shadow(0 0 1.8px #ffe8a2); transition: opacity .35s; }
[data-atlas-mode="render"]:not([data-atlas-scroll="active"]) .atlas-zone-fill,
[data-atlas-mode="plan"] .atlas-zone:not(.is-filtered) .atlas-zone-fill { pointer-events: fill; cursor: pointer; }
.atlas-zone.is-previewed .atlas-zone-edge,
.atlas-zone.is-rental .atlas-zone-edge,
[data-atlas-scenario="select-space"] .atlas-zone[data-type="warehouse"] .atlas-zone-edge,
[data-atlas-scenario="map-preview"] .atlas-zone-edge,
[data-atlas-scenario="select-space"] .atlas-selection-link {
  opacity: 1;
  stroke-dashoffset: 0;
}
.atlas-zone.is-previewed .atlas-zone-fill,
.atlas-zone.is-rental .atlas-zone-fill { fill-opacity: .22; }
.atlas-zone.is-previewed .atlas-office-light { opacity: .8; }
[data-atlas-scenario="select-space"] .atlas-zone[data-type="warehouse"] .atlas-zone-edge { transition-delay: calc(var(--order) * 90ms); }
[data-atlas-scenario="select-space"] .atlas-zone[data-type="warehouse"] .atlas-zone-fill { fill-opacity: .12; transition-delay: calc(var(--order) * 90ms); }
[data-atlas-scenario="map-preview"] .atlas-zone-edge { opacity: .7; stroke-width: 1.1; }
.atlas-selection-link { stroke-width: 1.5; }
.atlas-zone-number {
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.atlas-zone-number circle { fill: #f8f7ed; stroke: #4b5941; stroke-width: 2; }
.atlas-zone-number text {
  fill: #293723;
  font: 600 15px/1 'IBM Plex Mono', monospace;
  letter-spacing: -.02em;
}
[data-atlas-mode="plan"] .atlas-zone-number { opacity: 1; pointer-events: all; cursor: pointer; transition-delay: .22s; }
[data-atlas-mode="plan"] .atlas-zone-edge { stroke: #5d6e53; stroke-width: 1; opacity: .7; stroke-dashoffset: 0; }
[data-atlas-mode="plan"] .atlas-zone-fill { fill: #6b7958; fill-opacity: .14; }
[data-atlas-mode="plan"] .atlas-zone[data-type="office"] .atlas-zone-fill { fill: #c39149; fill-opacity: .22; }
[data-atlas-mode="plan"] .atlas-zone:is(:hover,:focus-visible,.is-selected):not(.is-filtered) .atlas-zone-fill { fill: #c6a13b; fill-opacity: .48; }
[data-atlas-mode="plan"] .atlas-zone:is(:hover,:focus-visible,.is-selected):not(.is-filtered) .atlas-zone-edge { stroke: #534a22; opacity: 1; stroke-width: 2.6; }
[data-atlas-mode="plan"] .atlas-zone:is(:hover,:focus-visible,.is-selected):not(.is-filtered) .atlas-zone-number circle { fill: #e9cb67; stroke: #393d2c; }
[data-atlas-mode="plan"] .atlas-zone:focus-visible .atlas-zone-number circle { stroke-width: 5; }
[data-atlas-mode="plan"] .atlas-zone.is-filtered { visibility: hidden; }

.atlas-route { visibility: hidden; opacity: 0; transition: opacity .18s; }
[data-atlas-scenario="entry"] .atlas-route-entry,
[data-atlas-scenario="loading"] .atlas-route-loading { visibility: visible; opacity: 1; }
.atlas-route-line, .atlas-highway {
  stroke: #edd071;
  stroke-width: 4.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1.6px #33402c);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.atlas-highway { stroke: #e0c991; stroke-width: 5.5; opacity: .7; }
.atlas-route-arrow { fill: none; stroke: #35432d; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
[data-atlas-scenario="entry"] .atlas-route-entry :is(.atlas-highway,.atlas-route-line),
[data-atlas-scenario="loading"] .atlas-route-loading .atlas-route-line { animation: atlas-route-draw .85s ease-out both; }
[data-atlas-scenario="entry"] .atlas-route-entry .atlas-route-line { animation-delay: .14s; }
[data-atlas-scenario="entry"] .atlas-route-entry .atlas-route-arrow,
[data-atlas-scenario="loading"] .atlas-route-loading .atlas-route-arrow { animation: atlas-route-reveal .25s .62s both; }
.atlas-gate-frame { fill: #f1d27942; stroke: #f3d477; stroke-width: 2; }
.atlas-gate-ring { fill: #f6f4db; stroke: #aa882f; stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.atlas-route-tag rect { fill: #394631; }
.atlas-route-tag text { fill: #fff8d9; font: 500 16px 'IBM Plex Mono', monospace; }
[data-atlas-scenario="entry"] :is(.atlas-route-tag,.atlas-gate-frame) { animation: atlas-route-reveal .25s .55s both; }
[data-atlas-scenario="entry"] .atlas-gate-ring { animation: atlas-gate-pulse .55s .5s both; }
.atlas-dock { fill: #f8e599; stroke: #596243; stroke-width: 1.6; }
[data-atlas-scenario="loading"] .atlas-dock { animation: atlas-route-reveal .22s calc(.16s + var(--order) * .13s) both; }
.atlas-route-truck { stroke: #36432e; stroke-width: 1; filter: drop-shadow(1px 1.5px 1px #26312399); }
@keyframes atlas-route-draw { to { stroke-dashoffset: 0; } }
@keyframes atlas-route-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes atlas-gate-pulse { 0% { scale:.6; opacity:0; } 58% { scale:1.65; opacity:1; } 100% { scale:1; opacity:1; } }
.leaders circle { transition: translate .13s ease-out; }
.map-key-icon { transition: transform .5s ease; }
.map-key-icon::after { transform-origin: center; }
@media (hover:hover) and (pointer:fine) {
  [data-atlas-mode="render"] .map-key:is(:hover,:focus-visible) { background: #536047; }
  [data-atlas-mode="render"] .map-key:is(:hover,:focus-visible) .map-key-icon { transform: rotate(360deg); }
  [data-atlas-mode="render"] .map-key::before {
    content: attr(data-tip);
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    width: max-content;
    max-width: 90vw;
    padding: 8px 12px;
    background: #fbfaf4;
    border: 1px solid #ccd0c1;
    color: #384330;
    font: 500 12px Manrope, sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: opacity .16s;
    pointer-events: none;
  }
  [data-atlas-mode="render"] .map-key:is(:hover,:focus-visible)::before { opacity: 1; visibility: visible; }
}
.atlas-place-card[hidden], .atlas-plan-toolbar[hidden], .atlas-plan-info[hidden],
.atlas-inspector-actions[hidden], .atlas-inspector-actions [hidden] { display: none; }
.atlas-place-card,
.atlas-plan-info,
.atlas-plan-filters,
.atlas-map-tools > div {
  background: #fbfaf4;
  color: #293024;
  border: 1px solid #b9c0ac;
}
.atlas-place-card {
  position: absolute;
  z-index: 5;
  left: var(--atlas-card-x, 58%);
  top: var(--atlas-card-y, 46%);
  width: 254px;
  padding: 14px 17px 13px;
  border-top: 3px solid #a88a37;
  box-shadow: 0 6px 18px #26312025;
  animation: atlas-card-in .18s ease-out;
}
@keyframes atlas-card-in { from { opacity:0; transform:translateY(-5px); } to { opacity:1; transform:none; } }
.atlas-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.atlas-place-card h2, .atlas-plan-info h3 { margin: 0; font-size: 18px; line-height: 1.18; letter-spacing: -.035em; font-weight: 700; }
.atlas-place-card p, .atlas-plan-info p { margin: 8px 0 10px; font-size: 13px; line-height: 1.43; }
.atlas-card-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  margin: -7px -10px -5px 0;
  font-size: 22px;
  line-height: 1;
}
.atlas-text-action, .atlas-secondary-action {
  padding: 5px 0;
  color: #3e4c35;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  text-align: left;
}
.atlas-text-action::after { content: ' ↗'; padding-left: 3px; }
.atlas-text-action:hover, .atlas-secondary-action:hover { color: #242e1e; text-decoration-thickness: 2px; }
[data-atlas-mode="plan"] :is(.offer,.facilities,.map-key),
[data-atlas-mode="plan"] .map-scene :is(.leaders,.map-label) { visibility: hidden; pointer-events: none; }
[data-atlas-mode="plan"] .offer { opacity: 0; transform: translateX(-19%) scale(.93); }
[data-atlas-mode="plan"] .intro-camera {
  transform-origin: var(--atlas-origin, 51% 55%);
  scale: var(--atlas-zoom, 1);
  transition: scale .38s cubic-bezier(.2,.67,.3,1), transform-origin .3s;
}
[data-atlas-mode="rental"] .intro-camera {
  transform-origin: var(--atlas-rental-origin, 60% 50%);
  scale: var(--atlas-rental-zoom, 1.14);
  transition: scale .55s cubic-bezier(.2,.67,.3,1), transform-origin .4s;
}
[data-atlas-mode="render"] .intro-camera { transition: scale .45s ease; }
.atlas-plan-toolbar {
  position: absolute;
  z-index: 3;
  top: clamp(15px,2.6vw,42px);
  left: clamp(15px,3vw,48px);
  right: clamp(15px,3vw,48px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  pointer-events: none;
}
.atlas-plan-filters, .atlas-map-tools > div, .atlas-plan-info { box-shadow: 0 3px 15px #24302013; }
.atlas-plan-filters { padding: 16px 19px 13px; pointer-events: auto; }
@media (min-width: 961px) {
  .atlas-plan-filters { margin-left: auto; }
}
.atlas-plan-filters h2 { margin: 0 0 11px; font: 500 clamp(18px,1.6vw,24px)/1.15 Unbounded, sans-serif; letter-spacing: -.07em; }
.atlas-filter-options, .atlas-mode-switch, .atlas-zoom-tools, .atlas-inspector-actions { display: flex; align-items: center; }
.atlas-filter-options { flex-wrap: wrap; gap: 4px; }
.atlas-filter-options button, .atlas-mode-switch button {
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid transparent;
  color: #46523c;
  font-size: 13px;
  font-weight: 600;
}
.atlas-filter-options button { background: #f2f2e8; }
.atlas-filter-options button[aria-pressed="true"], .atlas-mode-switch button[aria-pressed="true"] { background: #44513a; color: #fff; }
.atlas-filter-options button:hover:not([aria-pressed="true"]), .atlas-mode-switch button:hover:not([aria-pressed="true"]) { border-color: #b9c0ac; }
.atlas-map-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.atlas-mode-switch, .atlas-zoom-tools { pointer-events: auto; padding: 3px; }
.atlas-zoom-tools button { min-width: 35px; height: 34px; font-size: 22px; }
.atlas-zoom-tools .atlas-zoom-reset { min-width: 57px; font: 500 12px 'IBM Plex Mono', monospace; }
.atlas-zoom-tools button:disabled { opacity: .32; cursor: default; }
.atlas-zoom-tools button:hover:enabled { background: #e9eddf; }
.atlas-plan-info {
  position: absolute;
  z-index: 3;
  left: clamp(15px,3vw,48px);
  bottom: clamp(15px,2.6vw,42px);
  width: min(335px, 70vw);
  padding: 15px 19px;
  border-left: 4px solid #697853;
}
.atlas-plan-info p:last-of-type { margin-bottom: 0; }
.atlas-inspector-actions { gap: 16px; flex-wrap: wrap; margin-top: 9px; }
.atlas-secondary-action { font-weight: 500; }
.atlas-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 960px) {
  [data-atlas-mode="plan"] :is(.offer,.facilities,.map-key) { display: none; }
  .map-key::before { display: none; }
  .atlas-plan-toolbar, .atlas-plan-info { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .atlas-place-card {
    position: relative;
    inset: auto;
    grid-column: 1 / -1;
    width: auto;
    margin: 8px 16px 2px;
    box-shadow: none;
  }
  .atlas-card-close { width: 44px; height: 44px; margin: -10px -9px -10px 0; }
  .atlas-place-card .atlas-text-action, .atlas-inspector-actions button { min-height: 40px; }
  .atlas-plan-toolbar {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px 16px 10px;
    background: #f8f8f0;
  }
  .atlas-plan-filters { padding: 0; border: 0; background: transparent; box-shadow: none; }
  .atlas-plan-filters h2 { margin: 0 0 10px; font-size: 19px; }
  .atlas-filter-options { gap: 4px; }
  .atlas-filter-options button { min-height: 42px; padding: 6px 10px; }
  .atlas-map-tools { flex-direction: row; justify-content: space-between; align-items: center; gap: 8px; }
  .atlas-map-tools > div { box-shadow: none; }
  .atlas-mode-switch button, .atlas-zoom-tools button { min-height: 36px; }
  .atlas-zoom-tools button { min-width: 36px; }
  .atlas-zoom-tools .atlas-zoom-reset { min-width: 45px; }
  .atlas-plan-info { position: static; width: auto; margin: 12px 16px 16px; padding: 12px 15px; box-shadow: none; }
  .atlas-inspector-actions { margin-top: 4px; }
  [data-atlas-mode="plan"] .map-scene { aspect-ratio: 1.55; }
  [data-atlas-mode="plan"] .intro-camera {
    top: 0;
    right: auto;
    bottom: auto;
    left: 50%;
    width: auto;
    height: 100%;
    aspect-ratio: 1440 / 754;
    translate: -50% 0;
  }
  .atlas-zone-number circle { r: 37px; stroke-width: 3; }
  .atlas-zone-number text { font-size: 32px; }
}

@media (min-width: 761px) {
  .atlas-place-card .atlas-card-top h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .atlas-place-card .atlas-card-close { position: absolute; right: 15px; top: 10px; }
  .atlas-place-card p { margin-top: 0; padding-right: 14px; }
  .map-label[aria-expanded="true"] { border-radius: 2px 2px 0 0; }
}

@media (min-width: 761px) and (max-width: 960px) {
  .atlas-plan-toolbar {
    position: static;
    padding: 12px 24px;
    align-items: center;
    background: var(--paper);
  }
  .atlas-plan-filters { border: 0; padding: 0; box-shadow: none; }
  .atlas-map-tools { flex-direction: row; }
  .atlas-plan-info { position: static; width: auto; margin: 14px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-scheme, .atlas-zone-edge, .atlas-selection-link, .atlas-map-dim, .atlas-zone-number, .atlas-zone-fill,
  .atlas-office-light, .leaders circle, .map-key-icon, .atlas-route, [data-atlas-mode] .intro-camera { transition: none !important; }
  .atlas-mode-scan, .atlas-place-card, .atlas-route * { animation-duration: .001ms !important; animation-delay: 0s !important; }
  .atlas-mode-scan { display: none; }
}
