:root {
  --ink: #18322b;
  --muted: #60736d;
  --paper: rgba(255, 255, 255, 0.94);
  --line: rgba(24, 50, 43, 0.13);
  --shadow: 0 18px 50px rgba(25, 50, 43, 0.14), 0 2px 8px rgba(25, 50, 43, 0.08);
  --sales: #ed7a2c;
  --security: #3679d8;
  --cleaning: #29a66f;
  --operations: #8759c7;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: var(--ink);
  background: #e9eeea;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  color: inherit;
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.map-app {
  display: grid;
  grid-template-rows: 68px 1fr;
  height: 100%;
}

.app-bar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 22px;
  background: rgba(250, 252, 249, 0.93);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 18px rgba(25, 50, 43, 0.05);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  background: var(--ink);
  border-radius: 11px;
}

.brand-mark i {
  position: absolute;
  width: 4px;
  height: 22px;
  background: #f0a35b;
  border-radius: 4px;
  transform: rotate(30deg);
}

.brand-mark i:first-child {
  translate: -8px 5px;
  height: 12px;
}

.brand-mark i:last-child {
  translate: 8px -5px;
  height: 12px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.app-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  color: #405850;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.app-nav a:hover,
.app-nav a:focus-visible {
  color: var(--ink);
  background: #eef2ed;
  outline: none;
}

.layers-open,
.layers-close {
  border: 0;
  cursor: pointer;
}

.layers-open {
  display: none;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 9px 12px;
  background: #edf2ed;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 750;
}

.map-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.75), transparent 34%),
    #e7ece8;
  outline: none;
}

.map-stage:focus-visible::after {
  position: absolute;
  z-index: 19;
  inset: 5px;
  border: 2px solid #3f7f67;
  border-radius: 12px;
  content: "";
  pointer-events: none;
}

.map-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  overscroll-behavior: none;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.map-canvas.is-dragging {
  cursor: grabbing;
}

.map-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 6000px;
  height: 3121px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(26, 51, 44, 0.08);
  backface-visibility: hidden;
  transform-origin: 0 0;
  will-change: transform;
}

.map-scene > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 6000px;
  height: 3121px;
  pointer-events: none;
}
