/* Mapa compacto sobre la escena. Su desplegable empieza cerrado. */
.lunar-map {
  position: absolute;
  z-index: 8;
  top: 72px;
  bottom: 48px;
  right: 10px;
  width: min(250px, calc(100% - 20px));
  font-size: 12px;
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  pointer-events: none;
}
.lunar-map[hidden] {
  display: none !important;
}
.lunar-map-panel {
  width: 100%;
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  pointer-events: auto;
  color: #e5edff;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #697297;
  border-radius: 12px;
  box-shadow: 0 5px 20px #0007;
}
.lunar-map-panel > summary {
  cursor: pointer;
  padding: 9px 11px;
  font-weight: 650;
}
.lunar-map-region {
  color: #a9bee6;
  font-weight: 400;
}
.lunar-map-content {
  padding: 0 10px 10px;
}
.lunar-map-region-label {
  display: block;
  font-size: 11px;
}
.lunar-map-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}
.lunar-map-image canvas,
.lunar-map-image svg {
  display: block;
  width: 100%;
  height: 100%;
}
.lunar-map-image svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lunar-map-destinations circle {
  fill: #131d33;
  stroke: #f4cd8a;
  stroke-width: 1;
}
.lunar-map-destinations text {
  fill: #fff0ce;
  font: 9px system-ui;
  text-anchor: middle;
}
.lunar-map-position path {
  fill: #66e6ec;
  stroke: #06121e;
  stroke-width: 1.5;
}
.lunar-map-position circle {
  fill: white;
}
.lunar-map p {
  margin: 6px 0;
  font-size: 11px;
  line-height: 1.4;
}
.lunar-map-position-text {
  color: #90e6ec;
  font-variant-numeric: tabular-nums;
}
.lunar-map-legend {
  color: #c6cedf;
}
.lunar-map-legend span {
  display: inline-block;
  width: 25px;
  height: 6px;
  background: linear-gradient(90deg, #16263e, #d9c9a2);
  border-radius: 3px;
}
.lunar-map-destination-controls,
.lunar-map-route-controls {
  display: flex;
  align-items: end;
  gap: 5px;
  margin-top: 8px;
}
.lunar-map-destination-controls label {
  flex: 1;
  min-width: 0;
  font-size: 11px;
}
.lunar-map button,
.lunar-map select {
  font-size: 11px;
  padding: 6px;
  min-height: 32px;
  margin: 0;
  border-radius: 7px;
}
.lunar-map select {
  width: 100%;
  display: block;
  margin-top: 3px;
}
.lunar-map button {
  white-space: nowrap;
}
.lunar-map-start {
  flex: 1;
}
.lunar-map-previous,
.lunar-map-next {
  min-width: 32px;
}
.lunar-map-route-status {
  color: #e4ccff;
}
.lunar-map-note {
  color: #9cabc6;
}
@media (max-width: 560px) {
  .lunar-map {
    top: 100px;
  }
}
