@charset "UTF-8";

.map-page {
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 0, rgba(55,198,227,.13), transparent 34%),
    #090b0a;
}

.map-main {
  height: 100svh;
  min-height: 520px;
  padding: calc(var(--header) + 16px) 16px 16px;
}

.map-shell {
  width: min(1600px, 100%);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr);
  overflow: hidden;
  background: #0d100e;
  border: 1px solid #303630;
  box-shadow: 0 22px 70px rgba(0,0,0,.38);
}

.map-toolbar {
  position: relative;
  z-index: 3;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 12px 0 18px;
  background: rgba(13,16,14,.96);
  border-bottom: 1px solid #303630;
}

.map-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.map-heading > span:last-child {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.map-heading strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-heading small {
  overflow: hidden;
  color: #979d97;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .04em;
  line-height: 1.3;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.map-live-dot {
  position: relative;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  background: #37c6e3;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(55,198,227,.12);
}

.map-live-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(55,198,227,.45);
  border-radius: inherit;
  animation: map-pulse 2.2s ease-out infinite;
}

.map-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-action {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  color: #f4f5ef;
  background: #171b18;
  border: 1px solid #303630;
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .02em;
  line-height: 1;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s var(--ease);
}

.map-action:hover {
  color: #fff;
  background: #202521;
  border-color: #566057;
  transform: translateY(-1px);
}

.map-action-primary {
  color: #fff;
  background: #37c6e3;
  border-color: #37c6e3;
}

.map-action-primary:hover {
  color: #090b0a;
  background: #8ee8f5;
  border-color: #8ee8f5;
}

.map-action svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.8;
}

.map-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(55,198,227,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55,198,227,.035) 1px, transparent 1px),
    #090b0a;
  background-size: 46px 46px;
}

.map-frame {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  opacity: 0;
  transition: opacity .45s ease;
}

.map-stage.is-ready .map-frame {
  opacity: 1;
}

.map-loading {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  color: #f4f5ef;
  background: #090b0a;
  text-align: center;
  transition: opacity .3s ease, visibility .3s ease;
}

.map-loading > span:last-child {
  display: grid;
  gap: 3px;
}

.map-loading strong {
  font-size: 16px;
}

.map-loading small {
  color: #979d97;
  font-size: 12px;
}

.map-stage.is-ready .map-loading {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.map-spinner {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(55,198,227,.22);
  border-top-color: #37c6e3;
  border-radius: 50%;
  animation: map-spin .75s linear infinite;
}

.map-noscript {
  position: absolute;
  z-index: 4;
  inset: 50% auto auto 50%;
  margin: 0;
  padding: 14px 18px;
  color: #f4f5ef;
  background: #171b18;
  border: 1px solid #303630;
  transform: translate(-50%,-50%);
}

.map-shell:fullscreen {
  width: 100%;
  height: 100%;
  grid-template-rows: 64px minmax(0, 1fr);
  border: 0;
  background: #090b0a;
}

.map-shell:fullscreen .map-toolbar {
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
}

@keyframes map-spin {
  to { transform: rotate(360deg); }
}

@keyframes map-pulse {
  0% { opacity: .9; transform: scale(.75); }
  70%, 100% { opacity: 0; transform: scale(1.45); }
}

@media (max-width: 700px) {
  .map-main {
    padding: var(--header) 0 0;
  }

  .map-shell {
    grid-template-rows: 56px minmax(0, 1fr);
    border: 0;
    box-shadow: none;
  }

  .map-toolbar {
    padding: 0 8px 0 14px;
  }

  .map-heading {
    gap: 9px;
  }

  .map-heading small {
    display: none;
  }

  .map-action {
    width: 40px;
    padding: 0;
  }

  .map-action span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .map-shell:fullscreen {
    grid-template-rows: 56px minmax(0, 1fr);
  }
}

@media (max-width: 390px) {
  .map-heading strong {
    max-width: 130px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-live-dot::after {
    display: none;
  }
}
