/* ========================================================
   HORIZON VECTOR - Mobile Compass & Forward Horizon Radar
   Aesthetics: Deep Cyber-Obsidian, Neon Luminescence & 3D Runway HUD
   ======================================================== */

:root {
  --bg-deep: #060911;
  --bg-surface: rgba(13, 20, 36, 0.75);
  --bg-card: rgba(18, 27, 49, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.35);

  /* Category Neon Palettes */
  --neon-city: #00f0ff;
  --neon-city-glow: rgba(0, 240, 255, 0.35);
  
  --neon-landmark: #ffb703;
  --neon-landmark-glow: rgba(255, 183, 3, 0.35);
  
  --neon-nature: #00f59b;
  --neon-nature-glow: rgba(0, 245, 155, 0.35);
  
  --neon-sacred: #d066ff;
  --neon-sacred-glow: rgba(208, 102, 255, 0.4);
  
  --neon-entertainment: #ff2e83;
  --neon-entertainment-glow: rgba(255, 46, 131, 0.35);
  
  --neon-wonder: #ff8500;
  --neon-wonder-glow: rgba(255, 133, 0, 0.35);

  --accent-cyan: #00f0ff;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #8b5cf6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Space Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.4;
  position: fixed;
}

/* Background Atmosphere */
.space-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 50% 0%, rgba(0, 150, 255, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(130, 40, 255, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #070a14 0%, #04060c 100%);
  z-index: 0;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 1;
}

/* Main Container */
.app-container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

/* ========================================================
   TOP CONTROLS & COMPACT HUD HEADER
   ======================================================== */
.top-hud-bar {
  flex-shrink: 0;
  background: rgba(10, 15, 29, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  padding: 5px 10px 6px 10px;
  z-index: 25;
}

/* Top Action Header */
.hud-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 5px;
}

.brand-icon {
  font-size: 1.0rem;
  filter: drop-shadow(0 0 6px #00f0ff);
  animation: pulseBeacon 2.5s infinite;
}

@keyframes pulseBeacon {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px #00f0ff); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 12px #00f0ff); }
}

.brand-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffffff, #00f0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hud-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.flat-sensor-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 14px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #34d399;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
}

.flat-sensor-pill.tilt-warn {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.flat-sensor-pill.tilt-bad {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.5);
  color: #fb7185;
}

.bubble-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.action-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover, .action-btn:active {
  background: rgba(0, 240, 255, 0.2);
  border-color: rgba(0, 240, 255, 0.5);
  color: #00f0ff;
  transform: scale(1.05);
}

.btn-install-pwa {
  display: none; /* Shown dynamically if beforeinstallprompt fires */
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(0, 119, 255, 0.3));
  border: 1px solid rgba(0, 240, 255, 0.5);
  color: #00f0ff;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
}

/* Animated Direction Banner */
.direction-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px 0 3px 0;
}

.heading-readout-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.heading-readout-wrap.north-aligned {
  animation: northLockPulse 1.5s infinite;
}

@keyframes northLockPulse {
  0%, 100% { filter: drop-shadow(0 0 10px #ff3366); }
  50% { filter: drop-shadow(0 0 20px #ffb703); }
}

.heading-deg {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.7);
  line-height: 1;
}

.heading-cardinal {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #00f0ff;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.heading-cardinal.is-north {
  color: #ffb703;
  text-shadow: 0 0 14px rgba(255, 183, 3, 0.8);
}

.forward-beam-reticle {
  position: relative;
  width: 100%;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.beam-laser {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #00f0ff 0%, transparent 100%);
  box-shadow: 0 0 10px #00f0ff;
}

.beam-arrow-up {
  width: 0; 
  height: 0; 
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 6px solid #00f0ff;
  filter: drop-shadow(0 0 5px #00f0ff);
  animation: bounceForward 1.2s infinite ease-in-out;
}

/* Compass Tape (Sleek 18px height) */
.compass-tape-container {
  width: 100%;
  height: 18px;
  position: relative;
  overflow: hidden;
  margin-top: 1px;
  mask-image: linear-gradient(90deg, transparent 0%, black 20%, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 20%, black 80%, transparent 100%);
}

.compass-tape-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  display: flex;
  align-items: flex-end;
  height: 100%;
  will-change: transform;
}

.compass-center-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: #ff2e83;
  box-shadow: 0 0 8px #ff2e83;
  z-index: 5;
  pointer-events: none;
}

.tape-tick {
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
}

.tick-line {
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
  height: 5px;
}

.tick-line.major {
  height: 9px;
  background: rgba(0, 240, 255, 0.7);
  width: 1.5px;
}

.tick-line.cardinal {
  height: 12px;
  background: #ffb703;
  width: 2px;
  box-shadow: 0 0 6px #ffb703;
}

.tick-line.cardinal-north {
  background: #ff3366;
  width: 2.5px;
  box-shadow: 0 0 8px #ff3366;
}

.tick-label {
  font-size: 0.60rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 1px;
}

.tick-label.cardinal {
  font-weight: 800;
  color: #ffb703;
}

.tick-label.cardinal-north {
  color: #ff3366;
  font-weight: 900;
}

/* Slim Horizontal Dual Sliders (Saves ~60px vertical space) */
.sliders-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.slider-slim-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-slim-label {
  font-size: 0.70rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: 46px;
  flex-shrink: 0;
}

.slider-slim-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 1px 6px;
  border-radius: 10px;
  white-space: nowrap;
  min-width: 78px;
  text-align: right;
  flex-shrink: 0;
}

.slider-slim-badge.detail-badge {
  color: #ffb703;
  background: rgba(255, 183, 3, 0.12);
  border-color: rgba(255, 183, 3, 0.3);
}

/* Sensor Auto-Start / Calibration Prompt */
.sensor-prompt-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 5px auto 2px auto;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(0, 240, 255, 0.16);
  border: 1px solid rgba(0, 240, 255, 0.6);
  color: #00f0ff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  animation: pulsePrompt 1.8s infinite;
}

.prompt-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
}

@keyframes pulsePrompt {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(0, 240, 255, 0.3); }
  50% { transform: scale(1.04); box-shadow: 0 0 20px rgba(0, 240, 255, 0.6); }
}

.range-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, #1e293b, #334155);
  outline: none;
  cursor: pointer;
  touch-action: pan-x;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
  cursor: pointer;
}

.range-slider.slider-detail::-webkit-slider-thumb {
  border-color: #ffb703;
  box-shadow: 0 0 8px #ffb703;
}

/* ========================================================
   NORTH FINDER ARROW & AURA (Makes finding North effortless)
   ======================================================== */
.north-finder-indicator {
  position: absolute;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 51, 102, 0.18);
  border: 1px solid rgba(255, 51, 102, 0.6);
  color: #ff3366;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(255, 51, 102, 0.4);
  z-index: 30;
  cursor: pointer;
  transition: all 0.25s ease;
  pointer-events: auto;
}

.north-finder-indicator.to-left {
  left: 12px;
}

.north-finder-indicator.to-right {
  right: 12px;
}

.north-finder-indicator.behind {
  top: auto;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
}

.north-finder-indicator.aligned {
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 183, 3, 0.22);
  border-color: #ffb703;
  color: #ffb703;
  box-shadow: 0 0 20px rgba(255, 183, 3, 0.6);
}

/* ========================================================
   LARGE CENTER SLIDER ADJUSTMENT HUD OVERLAY
   ======================================================== */
.slider-live-hud {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 26px;
  border-radius: 22px;
  background: rgba(6, 12, 24, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid #00f0ff;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.45), 0 14px 45px rgba(0, 0, 0, 0.9);
  z-index: 150;
  pointer-events: none;
  min-width: 260px;
  max-width: 88%;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  animation: hudPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hudPopIn {
  0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.slider-live-hud.detail-theme {
  border-color: #ffb703;
  box-shadow: 0 0 40px rgba(255, 183, 3, 0.45), 0 14px 45px rgba(0, 0, 0, 0.9);
}

.hud-category-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 3px;
}

.hud-main-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.8);
}

.slider-live-hud.detail-theme .hud-main-value {
  color: #fffbeb;
  text-shadow: 0 0 20px rgba(255, 183, 3, 0.8);
}

.hud-sub-value {
  font-family: var(--font-display);
  font-size: 0.80rem;
  font-weight: 600;
  color: #00f0ff;
  margin-top: 5px;
}

.slider-live-hud.detail-theme .hud-sub-value {
  color: #ffb703;
}
.radar-viewport {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
  perspective: 900px;
  perspective-origin: 50% 100%;
}

/* The Runway Grid Plane receding toward top */
.runway-grid-plane {
  position: absolute;
  inset: 0;
  transform: rotateX(24deg);
  transform-origin: 50% 100%;
  pointer-events: none;
  z-index: 1;
}

/* Central Forward Vector Beam Line */
.center-laser-guide {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, 
    rgba(0, 240, 255, 0.95) 0%, 
    rgba(0, 240, 255, 0.45) 50%, 
    rgba(0, 240, 255, 0.15) 100%);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

.horizon-glow-cap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 240, 255, 0.22) 0%, transparent 75%);
  pointer-events: none;
  z-index: 2;
}

/* Radar Distance Range Rings (Concentric perspective arcs) */
.range-ring {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 1px dashed rgba(0, 240, 255, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.range-ring-label {
  position: absolute;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(0, 240, 255, 0.45);
  transform: translateY(-50%);
  pointer-events: none;
}

/* The Live Items Container */
.radar-objects-container {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: auto;
}

/* Individual Facing Landmark Beacon Pill (Ultra-compact, minimal details) */
.landmark-card {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border-subtle);
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.2s ease, 
              border-color 0.2s ease,
              opacity 0.2s ease;
  will-change: transform, left, top;
  white-space: nowrap;
  line-height: 1;
  z-index: 5;
}

.landmark-card:active {
  transform: translate(-50%, -50%) scale(1.08) !important;
}

/* Category Color Variations */
.landmark-card.cat-city {
  background: rgba(8, 28, 48, 0.92);
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2), 0 4px 14px rgba(0, 0, 0, 0.7);
}
.landmark-card.cat-city .card-name { color: #ffffff; }
.landmark-card.cat-city .card-distance { color: var(--neon-city); }

.landmark-card.cat-landmark {
  background: rgba(36, 26, 8, 0.92);
  border-color: rgba(255, 183, 3, 0.5);
  box-shadow: 0 0 10px rgba(255, 183, 3, 0.22), 0 4px 14px rgba(0, 0, 0, 0.7);
}
.landmark-card.cat-landmark .card-name { color: #ffffff; }
.landmark-card.cat-landmark .card-distance { color: var(--neon-landmark); }

.landmark-card.cat-nature {
  background: rgba(7, 34, 23, 0.92);
  border-color: rgba(0, 245, 155, 0.5);
  box-shadow: 0 0 10px rgba(0, 245, 155, 0.22), 0 4px 14px rgba(0, 0, 0, 0.7);
}
.landmark-card.cat-nature .card-name { color: #ffffff; }
.landmark-card.cat-nature .card-distance { color: var(--neon-nature); }

.landmark-card.cat-sacred {
  background: rgba(32, 10, 48, 0.92);
  border-color: rgba(208, 102, 255, 0.55);
  box-shadow: 0 0 12px rgba(208, 102, 255, 0.28), 0 4px 14px rgba(0, 0, 0, 0.7);
}
.landmark-card.cat-sacred .card-name { color: #ffffff; }
.landmark-card.cat-sacred .card-distance { color: var(--neon-sacred); }

.landmark-card.cat-entertainment {
  background: rgba(38, 10, 28, 0.92);
  border-color: rgba(255, 46, 131, 0.5);
  box-shadow: 0 0 10px rgba(255, 46, 131, 0.22), 0 4px 14px rgba(0, 0, 0, 0.7);
}
.landmark-card.cat-entertainment .card-name { color: #ffffff; }
.landmark-card.cat-entertainment .card-distance { color: var(--neon-entertainment); }

.landmark-card.cat-wonder {
  background: rgba(38, 20, 7, 0.92);
  border-color: rgba(255, 133, 0, 0.5);
  box-shadow: 0 0 10px rgba(255, 133, 0, 0.22), 0 4px 14px rgba(0, 0, 0, 0.7);
}
.landmark-card.cat-wonder .card-name { color: #ffffff; }
.landmark-card.cat-wonder .card-distance { color: var(--neon-wonder); }

/* Tier / Fame Sizing */
.landmark-card.tier-1 {
  padding: 4px 10px;
  border-radius: 18px;
}
.landmark-card.tier-1 .card-name {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}
.landmark-card.tier-1 .card-icon {
  font-size: 1.05rem;
}
.landmark-card.tier-1 .card-distance {
  font-size: 0.62rem;
  font-weight: 700;
}

.landmark-card.tier-2 {
  padding: 3px 7px;
  border-radius: 14px;
}
.landmark-card.tier-2 .card-name {
  font-size: 0.76rem;
  font-weight: 700;
}
.landmark-card.tier-2 .card-icon {
  font-size: 0.92rem;
}
.landmark-card.tier-2 .card-distance {
  font-size: 0.56rem;
  font-weight: 600;
}

.landmark-card.tier-3, .landmark-card.tier-4 {
  padding: 2px 6px;
  border-radius: 12px;
  opacity: 0.88;
}
.landmark-card.tier-3 .card-name, .landmark-card.tier-4 .card-name {
  font-size: 0.68rem;
  font-weight: 600;
}
.landmark-card.tier-3 .card-icon, .landmark-card.tier-4 .card-icon {
  font-size: 0.82rem;
}
.landmark-card.tier-3 .card-distance, .landmark-card.tier-4 .card-distance {
  font-size: 0.52rem;
  font-weight: 600;
}

/* Card Elements */
.card-icon {
  line-height: 1;
  display: inline-block;
}

.card-name {
  white-space: nowrap;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 105px;
}

.card-sep {
  display: none;
}

.card-distance {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1;
  background: rgba(255, 255, 255, 0.09);
  padding: 1.5px 4px;
  border-radius: 4px;
  margin-left: 2px;
}

/* Direct Center Lock-On Effect */
.landmark-card.locked-on {
  border-color: #ffffff !important;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.9), 0 0 35px rgba(0, 240, 255, 0.8) !important;
  transform: translate(-50%, -50%) scale(1.15) !important;
  z-index: 200 !important;
}

.lock-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
  animation: pulseBeacon 1.2s infinite;
  flex-shrink: 0;
}

/* Empty State / No Places in Cone */
.radar-empty-state {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  gap: 8px;
  pointer-events: none;
  opacity: 0.7;
}

.empty-radar-pulse {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  animation: emptyPulse 2s infinite;
}

@keyframes emptyPulse {
  0% { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ========================================================
   BOTTOM HUD & STATUS BAR (Slim, maximizes vertical space)
   ======================================================== */
.bottom-hud-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 10px;
  background: rgba(10, 15, 29, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  color: var(--text-muted);
  z-index: 20;
  height: 28px;
}

.gps-info-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.gps-info-chip:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.3);
  color: #00f0ff;
}

.bottom-north-status {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.68rem;
  color: #ffb703;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gps-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.gps-indicator-dot.searching {
  background-color: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  animation: pulseBeacon 1.5s infinite;
}



/* ========================================================
   MODAL / SLIDE-UP CARDS & SETTINGS DRAWER
   ======================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Bottom Sheet Details Card */
.detail-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0f172a;
  border-top: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 20px 20px 0 0;
  padding: 16px 20px calc(20px + var(--safe-bottom)) 20px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.15);
  z-index: 55;
  transform: translateY(105%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 80vh;
  overflow-y: auto;
}

.detail-sheet.active {
  transform: translateY(0);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0 auto 14px auto;
}

.sheet-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sheet-icon-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sheet-big-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.sheet-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.sheet-loc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.sheet-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.sheet-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.sheet-metric-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
}

.metric-card-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.metric-card-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #00f0ff;
}

.sheet-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 12px;
  border-left: 3px solid #00f0ff;
}

.sheet-actions {
  display: flex;
  gap: 10px;
}

.sheet-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sheet-btn.primary {
  background: linear-gradient(135deg, #00f0ff, #0099ff);
  color: #040d1a;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.4);
}

.sheet-btn.primary:active {
  transform: scale(0.98);
}

/* Settings Modal */
.settings-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 88%;
  max-width: 400px;
  background: #0b1120;
  border-left: 1px solid rgba(0, 240, 255, 0.25);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.8);
  z-index: 60;
  padding: calc(16px + var(--safe-top)) 18px calc(18px + var(--safe-bottom)) 18px;
  transform: translateX(105%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.settings-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-section {
  margin-bottom: 22px;
}

.setting-section-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00f0ff;
  margin-bottom: 10px;
  font-weight: 700;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-label-text {
  font-size: 0.86rem;
  color: #f1f5f9;
  font-weight: 500;
}

.setting-subtext {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Segmented Control Pill */
.seg-control {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.seg-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.seg-btn.active {
  background: #00f0ff;
  color: #070e1b;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Category Checkbox Grid */
.category-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cat-check-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-check-chip.checked {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.4);
}

.cat-check-chip input {
  display: none;
}

.cat-chip-icon {
  font-size: 1rem;
}

.cat-chip-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
}

/* Teleport Selector */
.teleport-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  outline: none;
  margin-top: 6px;
}

.teleport-select option {
  background: #0b1120;
  color: #ffffff;
}

/* iOS Safari Sensor Permission Banner */
.permission-gate {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 17, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.permission-box {
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.permission-icon-hero {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 20px #00f0ff);
  animation: pulseBeacon 2s infinite;
}

.permission-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.permission-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
}

.permission-start-btn {
  background: linear-gradient(135deg, #00f0ff, #0077ff);
  color: #040d1a;
  border: none;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.permission-start-btn:active {
  transform: scale(0.97);
}

.permission-secondary-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
}
