/* ==========================================================================
   Maps - Placeholders & Navigation
   ========================================================================== */

/* Base Map Container */
.map {
  position: relative;
  width: 100%;
  background: var(--color-surface-2);
  overflow: hidden;
  border-radius: var(--radius-md);
}

.map--fullscreen {
  flex: 1;
  border-radius: 0;
  min-height: 360px;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.35;
}

.map-streets {
  position: absolute;
  inset: 0;
  opacity: 0.5;
}

.route-line {
  position: absolute;
  left: 30%;
  top: 12%;
  width: 40%;
  height: 68%;
  border: 3px solid var(--color-orange);
  border-left: 0;
  border-top: 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  opacity: 0.95;
}

.current-position {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: var(--color-orange);
  border: 3px solid var(--color-bg);
  border-radius: 50% 50% 50% 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.current-position--arrow {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 22px solid var(--color-orange);
  background: transparent;
  border-radius: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

.map-marker {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-bg);
}

.map-marker--start { background: var(--color-black); }
.map-marker--end { background: var(--color-orange); }

.map-label {
  position: absolute;
  font-size: 10px;
  color: var(--color-text-muted);
  background: var(--color-bg);
  padding: 1px 4px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--color-border);
}

/* Navigation Instruction Bar */
.nav-instruction {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.nav-instruction--dark {
  background: #171717;
  color: var(--color-white);
  border-bottom-color: #333;
}

.nav-instruction__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-instruction__icon svg { width: 32px; height: 32px; }
.nav-instruction__distance { font-size: var(--font-xl); font-weight: 700; line-height: 1; }
.nav-instruction__text { font-size: var(--font-sm); color: var(--color-text-secondary); margin-top: 2px; }
.nav-instruction--dark .nav-instruction__text { color: rgba(255,255,255,0.7); }

/* Navigation Bottom Bar */
.nav-bottom-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5) calc(var(--space-4) + var(--safe-bottom));
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.nav-bottom-bar--dark {
  background: #171717;
  border-top-color: #333;
  color: var(--color-white);
}

.nav-bottom-bar__value { font-size: var(--font-lg); font-weight: 600; }
.nav-bottom-bar__label { font-size: 11px; color: var(--color-text-muted); margin-top: 2px; }
.nav-bottom-bar--dark .nav-bottom-bar__label { color: rgba(255,255,255,0.6); }

/* Dark navigation mode */
.nav-dark .nav-instruction { background: #171717; color: #f4f4f4; border-color: #333; }
.nav-dark .nav-instruction__text { color: rgba(255,255,255,0.7); }
.nav-dark .nav-bottom-bar { background: #171717; border-color: #333; color: #f4f4f4; }
.nav-dark .nav-bottom-bar__label { color: rgba(255,255,255,0.6); }
.nav-dark .map { filter: brightness(0.75) contrast(1.05); }