.claude-map-preview-interactive {
  gap: 16px;
}

.claude-map-demo-head {
  display: grid;
  gap: 12px;
}

.map-demo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-demo-stat {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(226, 222, 212, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #5a564f;
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-mode-button {
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.map-mode-button:hover {
  transform: translateY(-1px);
}

.claude-map-chip.map-mode-button,
.claude-map-live.map-mode-button {
  border: 1px solid rgba(226, 222, 212, 0.95);
}

.claude-map-chip.map-mode-button.is-active {
  border-color: rgba(31, 92, 77, 0.22);
  background: rgba(238, 247, 242, 0.96);
  color: var(--gx-primary);
}

.claude-map-live.map-mode-button.is-active {
  border-color: rgba(31, 92, 77, 0.22);
}

.claude-map-live.map-mode-button:not(.is-active) {
  background: #ffffff;
  color: #726d63;
}

.map-demo-toolbar {
  display: grid;
  gap: 10px;
}

.map-radius-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #5f5a52;
  font-size: 0.92rem;
}

.map-radius-control strong {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  color: var(--gx-primary);
  letter-spacing: 0.06em;
}

.map-demo-toolbar input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--gx-primary);
}

.interactive-map-surface {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.96), transparent 24%),
    radial-gradient(circle at 74% 24%, rgba(238, 247, 242, 0.95), transparent 28%),
    repeating-linear-gradient(
      -45deg,
      rgba(244, 240, 232, 0.86) 0,
      rgba(244, 240, 232, 0.86) 10px,
      rgba(252, 249, 244, 0.94) 10px,
      rgba(252, 249, 244, 0.94) 20px
    );
}

.map-demo-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-road {
  fill: none;
  stroke: rgba(80, 76, 69, 0.34);
  stroke-linecap: round;
  stroke-width: 1.3;
  stroke-dasharray: 0.4 1.8;
}

.map-demo-route {
  fill: none;
  stroke: rgba(31, 92, 77, 0.28);
  stroke-linecap: round;
  stroke-width: 1.9;
  opacity: 0;
  transition: opacity 180ms ease, stroke 180ms ease;
}

.map-demo-route.is-active {
  opacity: 1;
}

.map-demo-route.route-highlight {
  stroke: rgba(31, 92, 77, 0.7);
}

.map-demo-geofence {
  fill: rgba(31, 92, 77, 0.08);
  stroke: rgba(31, 92, 77, 0.48);
  stroke-width: 0.45;
  transition: cx 180ms ease, cy 180ms ease, r 180ms ease, opacity 180ms ease;
}

.interactive-map-surface[data-mode="live"] .map-demo-geofence {
  opacity: 0.18;
}

.interactive-map-surface[data-mode="routes"] .map-demo-geofence {
  opacity: 0.08;
}

.map-vehicle-marker {
  position: absolute;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(31, 92, 77, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px -18px rgba(15, 38, 32, 0.55);
  color: #163f35;
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.map-vehicle-marker::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(31, 92, 77, 0.1);
  border-radius: 999px;
  animation: mapPulse 2.8s infinite;
}

.map-vehicle-marker span {
  position: relative;
  z-index: 1;
}

.map-vehicle-marker.is-selected {
  background: var(--gx-primary);
  color: #f4efe4;
  border-color: rgba(31, 92, 77, 0.3);
}

.map-geofence-pin {
  position: absolute;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -100%);
  transition: left 180ms ease, top 180ms ease, opacity 180ms ease;
}

.map-geofence-pin::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1px;
  width: 20px;
  height: 20px;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 8px 8px 12px 8px;
  background: var(--gx-primary);
  box-shadow: 0 12px 24px -16px rgba(15, 38, 32, 0.72);
}

.map-geofence-pin span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 7px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #f4efe4;
  z-index: 1;
}

.interactive-map-surface[data-mode="live"] .map-geofence-pin {
  opacity: 0.34;
}

.map-demo-hint {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(226, 222, 212, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: #5a564f;
  font-size: 0.92rem;
  line-height: 1.55;
  backdrop-filter: blur(10px);
}

.map-demo-footer {
  display: grid;
  gap: 12px;
}

.map-demo-summary,
.map-demo-detail-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(226, 222, 212, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.map-demo-summary .eyebrow,
.map-demo-summary p,
.map-demo-summary strong,
.map-demo-detail-card p,
.map-demo-detail-card strong,
.map-demo-detail-card span {
  margin: 0;
}

.map-demo-summary strong,
.map-demo-detail-card strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.map-demo-summary p:last-child,
.map-demo-detail-card p {
  color: #5f5a52;
  line-height: 1.55;
}

.map-detail-label {
  color: var(--gx-primary);
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes mapPulse {
  0% {
    transform: scale(0.96);
    opacity: 0.7;
  }

  70% {
    transform: scale(1.18);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .interactive-map-surface {
    min-height: 340px;
  }

  .map-demo-hint {
    position: static;
    margin: 14px;
  }
}
