/**
 * TrekMap - Pixel-Perfect Vanilla JS Map Component
 * 
 * Surgical transplant from Leaflet implementation.
 * All CSS values extracted from existing kilimanjaro-map.css and kilimanjaro-map-v2.css
 */

/* =============================================================================
   CSS VARIABLES (Transplanted from original)
   ============================================================================= */
:root {
  /* Route Colors - EXACT from original */
  --trek-route-lemosho: #5B8C5A;
  --trek-route-machame: #F4B942;
  --trek-route-marangu: #C84B31;
  --trek-route-shared: #6B7280;
  
  /* Primary Colors - EXACT from original */
  --trek-primary: #5B8C5A;
  --trek-gold: #F59E0B;
  --trek-blue: #3B82F6;
  
  /* Neutrals - EXACT from original */
  --trek-bg: #F9FAFB;
  --trek-card-bg: #FFFFFF;
  --trek-border: #E5E7EB;
  --trek-text: #1F2937;
  --trek-text-muted: #6B7280;
  --trek-text-subtle: #9CA3AF;
  
  /* Typography - EXACT from original */
  --trek-font-heading: 'Inter', -apple-system, sans-serif;
  --trek-font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Shadows - EXACT from original */
  --trek-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --trek-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --trek-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --trek-shadow-card: 
    0 2px 4px rgba(0, 0, 0, 0.02),
    0 8px 16px rgba(0, 0, 0, 0.03),
    0 16px 48px rgba(0, 0, 0, 0.04),
    0 32px 80px -8px rgba(0, 0, 0, 0.05);
  
  /* Geometry - EXACT from original */
  --trek-radius: 12px;
  --trek-radius-sm: 8px;
  --trek-radius-lg: 24px;
  --trek-transition: 0.2s ease;
}

/* =============================================================================
   SECTION CONTAINER (Transplanted from map-section styles)
   ============================================================================= */
.trek-map-section {
  width: 100%;
  padding: 80px 24px 100px 24px;
  background: var(--trek-bg);
  position: relative;
  z-index: 1;
}

.trek-map-section-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* =============================================================================
   SECTION HEADER (Transplanted from map-section-header styles)
   ============================================================================= */
.trek-map-header {
  text-align: center;
  margin-bottom: 40px;
}

.trek-map-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 100px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.trek-map-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.trek-map-badge-dot.lemosho { background: var(--trek-route-lemosho); }
.trek-map-badge-dot.machame { background: var(--trek-route-machame); }
.trek-map-badge-dot.marangu { background: var(--trek-route-marangu); }

.trek-map-badge-text {
  font-family: var(--trek-font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--trek-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trek-map-title {
  font-family: var(--trek-font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--trek-text);
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.trek-map-description {
  font-family: var(--trek-font-body);
  font-size: 16px;
  color: var(--trek-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =============================================================================
   MAP WRAPPER (Transplanted from map-card styles)
   ============================================================================= */
.trek-map-layout {
  position: relative;
}

.trek-map-wrapper {
  position: relative;
  width: 100%;
  height: 750px;
  background: #E8F4F8;
  border-radius: var(--trek-radius-lg);
  overflow: hidden;
  box-shadow: var(--trek-shadow-card);
}

/* =============================================================================
   MAP SCROLLER (Horizontal scroll container)
   ============================================================================= */
.trek-map-scroller {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.trek-map-scroller:active {
  cursor: grabbing;
}

/* =============================================================================
   MAP CANVAS (Transformed content)
   ============================================================================= */
.trek-map-canvas {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.trek-map-canvas.animating {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================================================
   SVG MAP
   ============================================================================= */
.trek-map-svg {
  display: block;
}

.trek-map-background {
  pointer-events: none;
}

/* =============================================================================
   LOADING OVERLAY (Transplanted from map-loading-overlay)
   ============================================================================= */
.trek-map-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--trek-card-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: opacity 0.3s ease;
}

.trek-map-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.trek-map-loading-logo {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  animation: trek-pulse 2s ease-in-out infinite;
}

@keyframes trek-pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
}

.trek-map-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--trek-border);
  border-top-color: var(--trek-primary);
  border-radius: 50%;
  animation: trek-spin 1s linear infinite;
}

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

.trek-map-loading-text {
  margin-top: 16px;
  font-family: var(--trek-font-body);
  font-size: 14px;
  color: var(--trek-text-muted);
}

/* =============================================================================
   ROUTE LINES (Transplanted from kili-map-route styles)
   ============================================================================= */
.trek-map-route {
  transition: stroke-width 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}

.trek-map-route-buffer {
  cursor: pointer;
}

/* =============================================================================
   MARKERS (Transplanted from kili-map-marker styles)
   ============================================================================= */
.trek-map-marker {
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

/* Marker hover effect - scale and glow */
.trek-map-marker:hover {
  cursor: pointer;
}

.trek-map-marker-glow {
  transition: fill-opacity 0.2s ease;
}

/* Marker border transitions */
.trek-map-marker circle {
  transition: r 0.2s ease, stroke-width 0.2s ease;
}

/* Summit marker pulse */
.trek-map-marker-pulse {
  animation: trek-marker-pulse 2s ease-out infinite;
}

@keyframes trek-marker-pulse {
  0% { r: 14; stroke-opacity: 0.6; }
  100% { r: 30; stroke-opacity: 0; }
}

/* =============================================================================
   GPS MARKER (Transplanted from kili-map-gps styles)
   ============================================================================= */
.trek-map-gps-marker {
  transition: transform 0.1s linear;
}

.trek-map-gps-pulse {
  animation: trek-gps-pulse 1.5s ease-out infinite;
}

@keyframes trek-gps-pulse {
  0% { r: 8; stroke-opacity: 0.8; }
  100% { r: 30; stroke-opacity: 0; }
}

.trek-map-gps-glow {
  animation: trek-gps-glow 1.5s ease-in-out infinite;
}

@keyframes trek-gps-glow {
  0%, 100% { fill-opacity: 0.15; }
  50% { fill-opacity: 0.3; }
}

/* =============================================================================
   ZOOM CONTROLS (Transplanted from custom-zoom-controls)
   ============================================================================= */
.trek-map-zoom-controls {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}

.trek-map-zoom-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--trek-radius-sm);
  
  /* LEGO-style: 3D button surface - EXACT from original */
  background: #f5f7f9;
  border-bottom: 3px solid #e0e3e7;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--trek-primary);
  font-size: 20px;
  font-weight: 600;
  transition: all 60ms cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}

.trek-map-zoom-btn:hover:not(:disabled) {
  background: #eef0f3;
  color: #4A7249;
}

.trek-map-zoom-btn:active:not(:disabled) {
  transform: translateY(2px);
  border-bottom-width: 1px;
  background: #e5e8eb;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.trek-map-zoom-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.trek-map-zoom-btn svg {
  width: 18px;
  height: 18px;
}

/* =============================================================================
   CONTROL BUTTONS (Transplanted from map-control-btn)
   ============================================================================= */
.trek-map-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.trek-map-control-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 10px;
  
  /* LEGO-style: 3D button surface - EXACT from original */
  background: #f5f7f9;
  border-bottom: 3px solid #e0e3e7;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--trek-primary);
  transition: all 60ms cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}

.trek-map-control-btn:hover {
  background: #eef0f3;
  color: #4A7249;
}

.trek-map-control-btn:active {
  transform: translateY(2px);
  border-bottom-width: 1px;
  background: #e5e8eb;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.trek-map-control-btn svg {
  width: 20px;
  height: 20px;
}

/* =============================================================================
   ROUTE LEGEND - INLINE HORIZONTAL LAYOUT (EXACT from original kilimanjaro-map.css)
   Desktop: Clean inline button row positioned bottom-left
   Mobile: Hidden (replaced by mobile bottom bar)
   ============================================================================= */
.trek-map-legend-wrapper {
  position: absolute;
  bottom: 20px;
  left: 20px; /* Aligned with zoom buttons above */
  z-index: 10000;
  pointer-events: auto;
}

/* Route Legend - Clean INLINE design (no card background) */
.trek-map-legend {
  position: relative;
  /* TRANSPARENT - No card background */
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  /* INLINE LAYOUT - Clean button row */
  display: flex;
  align-items: center;
  height: auto;
  padding: 0;
  gap: 8px;
  overflow: visible;
}

/* HIDE header, title, subtitle - EXACT from original */
.trek-map-legend-header {
  display: none;
}

.trek-map-legend-title {
  display: none;
}

.trek-map-legend-subtitle {
  display: none;
}

.trek-map-legend-routes {
  display: flex;
  align-items: center;
  gap: 8px; /* Ultra-tight like Google Maps */
  padding: 0;
}

/* LEGEND ROUTE BUTTON - Clean Nintendo-style interactive button - EXACT from original */
.trek-map-legend-item {
  /* Native button reset */
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
  
  /* Layout */
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  box-sizing: border-box;
  
  /* Visual styling - Nintendo LEGO 3D */
  background: #f5f7f9;
  border: none;
  border-bottom: 3px solid; /* Color set via inline style */
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  
  cursor: pointer;
  transition: all 100ms ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Hover state - subtle lift effect */
.trek-map-legend-item:hover {
  background: #eef0f3;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Active/pressed state - LEGO press effect */
.trek-map-legend-item:active {
  transform: translateY(1px);
  border-bottom-width: 2px;
  background: #e5e8eb;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Disable during animation */
.trek-map-legend.animation-active .trek-map-legend-item {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Route Color Badge - VERTICAL bar (tall line) - EXACT from original */
.trek-map-legend-dot {
  width: 3px;
  height: 22px;
  border-radius: 1.5px;
  flex-shrink: 0;
  opacity: 0.9;
  transition: all 60ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover state - badge grows slightly */
.trek-map-legend-item:hover .trek-map-legend-dot {
  opacity: 1;
  height: 26px;
}

.trek-map-legend-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.trek-map-legend-name {
  font-family: var(--trek-font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--trek-text);
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  font-feature-settings: 'tnum' on;
}

.trek-map-legend-duration {
  font-family: var(--trek-font-body);
  font-size: 10px;
  font-weight: 500;
  color: var(--trek-text-subtle);
  line-height: 1;
}

/* Route Action Icon - Game Boy style - EXACT from original */
.trek-map-legend-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(91, 140, 90, 0.08);
  color: #5B8C5A;
  flex-shrink: 0;
  transition: all 60ms cubic-bezier(0.4, 0, 0.2, 1);
}

.trek-map-legend-item:hover .trek-map-legend-action {
  background: rgba(91, 140, 90, 0.1);
  color: #5B8C5A;
}

.trek-map-legend-item:active .trek-map-legend-action {
  transform: none;
}

.trek-map-legend-action svg {
  width: 14px;
  height: 14px;
  transition: transform 60ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* CRITICAL: All children pass clicks to parent button */
.trek-map-legend-item * {
  pointer-events: none !important;
}

/* HIDE legend key - self-explanatory on map - EXACT from original */
.trek-map-legend-key {
  display: none;
}

.trek-map-legend-key-item,
.trek-map-legend-key-marker {
  display: none;
}

/* =============================================================================
   PREVIEW CONTROLS - EXACT from original kilimanjaro-map.css
   Nintendo-style info panel + separate buttons
   ============================================================================= */
.trek-map-preview-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: none;
  gap: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  /* CRITICAL: Container should be TRANSPARENT - only children have backgrounds */
  background: transparent;
  box-shadow: none;
}

.trek-map-preview-controls.visible {
  display: flex;
  align-items: center;
  animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px) scale(0.95);
  }
  to {
  opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* Info Panel with Location Name and Progress - NINTENDO DEPTH STYLE */
.trek-map-preview-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 20px;
  min-width: 240px;
  
  /* Depth Button Surface */
  background: #f5f7f9;
  border: none;
  border-bottom: 3px solid #5B8C5A; /* Green depth indicator */
  border-radius: 12px;
  
  /* Simple shadow for depth */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  
  /* Fast transition */
  transition: 
    transform 45ms cubic-bezier(0.15, 0, 0.35, 1),
    border-bottom-width 45ms cubic-bezier(0.15, 0, 0.35, 1),
    background-color 45ms ease-out;
}

.trek-map-preview-location {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.trek-map-preview-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.01em;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trek-map-preview-counter {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.trek-map-preview-progress {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.trek-map-preview-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #5B8C5A 0%, #5A9B4A 100%);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Control Buttons - NINTENDO DEPTH STYLE */
.trek-map-preview-btn {
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  
  /* Depth Button Surface */
  background: #f5f7f9;
  border: none;
  border-bottom: 3px solid #9CA3AF; /* Grey depth indicator */
  border-radius: 12px;
  color: #111827;
  
  /* Simple shadow for depth */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  
  /* Fast Nintendo-style transition */
  transition: 
    transform 45ms cubic-bezier(0.15, 0, 0.35, 1),
    border-bottom-width 45ms cubic-bezier(0.15, 0, 0.35, 1),
    background-color 45ms ease-out;
}

.trek-map-preview-btn:hover {
  background: #eef0f3;
}

/* 3D Press Effect */
.trek-map-preview-btn:active {
  transform: translateY(3px);
  border-bottom-width: 0;
  background: #e8eaed;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.trek-map-preview-btn.pause-btn {
  color: #111827;
  border-bottom-color: #9CA3AF; /* Grey for pause */
}

/* Exit button - Red depth */
.trek-map-preview-btn[data-trek-preview-exit] {
  background: #f5f7f9;
  color: #dc2626;
  border-bottom-color: #dc2626; /* Red depth for exit */
}

.trek-map-preview-btn[data-trek-preview-exit]:hover {
  background: #fef2f2;
}

.trek-map-preview-btn[data-trek-preview-exit]:active {
  background: #fee2e2;
}

/* =============================================================================
   ROUTE COMPLETION CTA CARD - EXACT FROM ORIGINAL
   ============================================================================= */
.route-cta-card {
  position: absolute;
  bottom: -600px; /* Hidden below viewport */
  left: 16px;
  z-index: 10500; /* Higher than legend (10000) */
  
  /* Apple/Google glassmorphism for desktop CTA */
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  padding: 28px 32px 36px 32px;
  min-width: 360px;
  max-width: 400px;
  
  /* Performance: Simplified shadow */
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  
  /* Snappy, precise animation */
  transition: bottom 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
              opacity 0.4s ease;
  opacity: 0;
  overflow: visible;
}

.route-cta-card.show {
  bottom: 16px;
  opacity: 1;
}

/* Success badge - clean and minimal */
.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.04) 100%);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 18px;
  color: #16A34A;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.cta-badge svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.cta-title {
  font-family: var(--trek-font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--trek-text);
  margin: 0 0 10px 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cta-description {
  font-size: 14px;
  font-weight: 500;
  color: #6B7280;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

/* Price Section */
.cta-price-section {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px 20px;
  background: rgba(91, 140, 90, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(91, 140, 90, 0.12);
  margin-bottom: 16px;
  justify-content: center;
}

.price-starting-from {
  font-size: 10px;
  font-weight: 600;
  color: #6B7280;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.price-main {
  font-size: 26px;
  font-weight: 800;
  color: #5B8C5A;
  line-height: 1;
  letter-spacing: -0.02em;
}

.price-sublabel {
  font-size: 10px;
  font-weight: 500;
  color: #9CA3AF;
  letter-spacing: 0.01em;
}

/* Stats Grid */
.cta-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.route-cta-card .stat-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 14px 10px !important;
  min-height: 70px !important;
  background: transparent !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.route-cta-card .stat-item:hover {
  background: transparent !important;
}

.route-cta-card .stat-label {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: rgba(91, 140, 90, 0.7) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  line-height: 1 !important;
  text-align: center !important;
  transition: color 0.2s ease !important;
  white-space: nowrap !important;
}

.route-cta-card .stat-item:hover .stat-label {
  color: rgba(91, 140, 90, 0.9) !important;
}

.route-cta-card .stat-value {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #2D5A2C !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  text-align: center !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
}

.route-cta-card .stat-item:hover .stat-value {
  color: #5B8C5A !important;
  transform: scale(1.05) !important;
}

/* Value propositions */
.cta-value-props {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.value-prop {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.value-prop svg {
  flex-shrink: 0;
  color: #16A34A;
  width: 16px;
  height: 16px;
}

/* CTA Actions */
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* CTA Primary Button - Nintendo depth style */
.cta-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  min-height: 52px;
  width: 100%;
  background: #5B8C5A;
  color: white;
  border: none;
  border-bottom: 3px solid #3d5f3c;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--trek-font-body);
  white-space: nowrap;
  transition: 
    transform 45ms cubic-bezier(0.15, 0, 0.35, 1),
    border-bottom-width 45ms cubic-bezier(0.15, 0, 0.35, 1),
    background-color 45ms ease-out;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

.cta-btn-primary svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transition: transform 45ms ease-out;
}

.cta-btn-primary:hover {
  background: #6B9C6A;
}

.cta-btn-primary:active {
  transform: translateY(3px);
  border-bottom-width: 0;
  background: #4a7a49;
}

.cta-btn-primary:active svg {
  transform: scale(0.96);
}

/* CTA Secondary Button */
.cta-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  min-height: 52px;
  width: 100%;
  background: #f5f7f9;
  color: #374151;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 3px solid #9CA3AF;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--trek-font-body);
  white-space: nowrap;
  transition: 
    transform 45ms cubic-bezier(0.15, 0, 0.35, 1),
    border-bottom-width 45ms cubic-bezier(0.15, 0, 0.35, 1),
    background-color 45ms ease-out;
  -webkit-tap-highlight-color: transparent;
}

.cta-btn-secondary:hover {
  background: #e5e7eb;
  color: #1f2937;
}

.cta-btn-secondary:active {
  transform: translateY(3px);
  border-bottom-width: 0;
  background: #d1d5db;
}

/* =============================================================================
   TOOLTIPS - Original design, smaller size, with arrow
   ============================================================================= */
.trek-map-tooltip-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3000;
}

.trek-map-tooltip {
  position: absolute;
  pointer-events: auto;
  z-index: 3001;
  --arrow-offset: 0px;
  
  /* Glassmorphism wrapper */
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.08);
  overflow: visible; /* Allow arrow to extend outside */
}

/* =============================================================================
   TOOLTIP ANIMATIONS - Smooth entrance/exit with spring
   ============================================================================= */
.trek-map-tooltip {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: bottom center;
  transition: 
    opacity 0.18s cubic-bezier(0.2, 0, 0.4, 1),
    transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trek-map-tooltip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Below tooltip animates from top */
.trek-map-tooltip.tooltip-below {
  transform-origin: top center;
  transform: translateY(-8px) scale(0.96);
}

.trek-map-tooltip.tooltip-below.visible {
  transform: translateY(0) scale(1);
}

/* Arrow removed - modern tooltip design without pointer */

/* ==========================================
   CUSTOM INFO WINDOW - BASE STYLES
   ========================================== */
.custom-info-window {
  background: transparent;
  border-radius: 14px;
  padding: 0;
  min-width: 240px;
  max-width: 320px;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  overflow: visible; /* Allow arrow to show */
  border: none;
}

/* Starting point windows - wider for more content */
.custom-info-window.starting-point-window {
  min-width: 300px;
  max-width: 340px;
}

/* Summit windows - moderate size */
.custom-info-window.summit-window {
  min-width: 240px;
  max-width: 280px;
}

/* ==========================================
   TOOLTIP CLOSE BUTTON
   ========================================== */
.info-window-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: #6B7280;
  box-shadow: none;
  transition: all 0.15s ease;
  z-index: 1;
  padding: 0;
}

.info-window-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #374151;
}

.info-window-close:active {
  transform: scale(0.95);
  background: rgba(0, 0, 0, 0.1);
}

/* ==========================================
   TOOLTIP HEADER
   ========================================== */
.tooltip-header {
  padding: 16px 48px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.route-tag {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  align-self: flex-start;
}

.route-tags-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-self: flex-start;
}

.tooltip-title {
  font-family: var(--trek-font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--trek-text);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* ==========================================
   ELEVATION BANNER
   ========================================== */
.elevation-banner {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.elevation-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.elev-label {
  font-size: 11px;
  font-weight: 600;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.elev-value {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}

.elevation-divider {
  width: 1px;
  height: 32px;
  background: rgba(0, 0, 0, 0.1);
  margin: 0 16px;
}

/* ==========================================
   TOOLTIP CONTENT
   ========================================== */
.tooltip-content {
  padding: 14px 20px 0 20px;
}

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

.info-row:last-of-type {
  border-bottom: none;
  padding-bottom: 10px;
}

.info-row.description-row {
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 0 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 4px;
}

/* Remove border when description is the last item (checkpoint tooltips) */
.info-row.description-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 8px;
}

.description-text {
  font-size: 13px;
  font-weight: 400;
  color: rgba(75, 85, 99, 0.9);
  line-height: 1.6;
  text-align: left;
  width: 100%;
  letter-spacing: 0.01em;
  /* Override any truncation from .info-value class */
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  max-width: none !important;
}

/* Ensure description row allows full text display */
.info-row.description-row .description-text,
.summit-row.description-row .description-text {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  max-width: none !important;
  display: block;
}

.info-label {
  font-size: 13px;
  font-weight: 500;
  color: #6B7280;
  flex-shrink: 0;
  margin-right: 16px;
}

.info-value {
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  text-align: right;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
  min-width: 0;
  word-wrap: break-word;
}

/* 2-column grid for starting point info */
.tooltip-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}

.tooltip-info-grid .info-row {
  padding: 5px 0;
  border-bottom: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tooltip-info-grid .info-row:nth-child(odd) {
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  padding-right: 10px;
}

.tooltip-info-grid .info-row:nth-child(even) {
  padding-left: 4px;
}

/* Make labels smaller to fit translations */
.tooltip-info-grid .info-label {
  font-size: 10px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tooltip-info-grid .info-value {
  font-size: 12px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================
   TOOLTIP ACTIONS - BUTTONS
   ========================================== */
.tooltip-actions {
  margin-top: 12px;
  padding: 12px 16px 14px 16px;
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.3) 0%, rgba(249, 250, 251, 0.5) 100%);
  border-top: 1px solid rgba(229, 231, 235, 0.4);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tooltip-preview-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  background: #5B8C5A;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  width: 100%;
  margin-bottom: 6px;
}

.tooltip-preview-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  filter: brightness(1.08);
}

.tooltip-preview-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.tooltip-preview-btn svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

/* Hide Preview Route button during animation */
body.preview-animation-active .tooltip-preview-btn {
  display: none !important;
}

.tooltip-book-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(249, 250, 251, 0.8);
  border: 1px solid rgba(91, 140, 90, 0.15);
  border-radius: 8px;
  color: #5B8C5A;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tooltip-book-btn:hover {
  background: linear-gradient(135deg, rgba(91, 140, 90, 0.12) 0%, rgba(91, 140, 90, 0.06) 100%);
  border-color: rgba(91, 140, 90, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(91, 140, 90, 0.2);
}

.tooltip-book-btn:active {
  transform: translateY(0);
}

.tooltip-book-btn svg {
  flex-shrink: 0;
}

/* =============================================================================
   ROUTE-SPECIFIC BUTTON COLORS
   ============================================================================= */
/* Lemosho - Green (default) */
.tooltip-preview-btn[data-route="lemosho"] {
  background: #5B8C5A !important;
}
.tooltip-book-btn[data-route="lemosho"] {
  border-color: rgba(91, 140, 90, 0.2) !important;
  color: #5B8C5A !important;
}
.tooltip-book-btn[data-route="lemosho"]:hover {
  background: linear-gradient(135deg, rgba(91, 140, 90, 0.12) 0%, rgba(91, 140, 90, 0.06) 100%) !important;
  border-color: rgba(91, 140, 90, 0.3) !important;
}

/* Machame - Gold */
.tooltip-preview-btn[data-route="machame"] {
  background: #E5A52D !important;
}
.tooltip-book-btn[data-route="machame"] {
  border-color: rgba(229, 165, 45, 0.25) !important;
  color: #C48B1F !important;
  background: rgba(229, 165, 45, 0.08) !important;
}
.tooltip-book-btn[data-route="machame"]:hover {
  background: linear-gradient(135deg, rgba(229, 165, 45, 0.15) 0%, rgba(229, 165, 45, 0.08) 100%) !important;
  border-color: rgba(229, 165, 45, 0.4) !important;
  box-shadow: 0 2px 10px rgba(229, 165, 45, 0.2) !important;
}

/* Marangu - Red/Terracotta */
.tooltip-preview-btn[data-route="marangu"] {
  background: #C84B31 !important;
}
.tooltip-book-btn[data-route="marangu"] {
  border-color: rgba(200, 75, 49, 0.2) !important;
  color: #C84B31 !important;
  background: rgba(200, 75, 49, 0.08) !important;
}
.tooltip-book-btn[data-route="marangu"]:hover {
  background: linear-gradient(135deg, rgba(200, 75, 49, 0.12) 0%, rgba(200, 75, 49, 0.06) 100%) !important;
  border-color: rgba(200, 75, 49, 0.3) !important;
  box-shadow: 0 2px 10px rgba(200, 75, 49, 0.2) !important;
}

.tooltip-disclaimer {
  font-size: 10px;
  color: rgba(107, 114, 128, 0.55);
  font-style: italic;
  text-align: center;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}

/* ==========================================
   TOOLTIP FOOTER (Summit)
   ========================================== */
.tooltip-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(249, 250, 251, 0.5);
}

.tooltip-book-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  background: linear-gradient(135deg, rgba(91, 140, 90, 0.08) 0%, rgba(91, 140, 90, 0.04) 100%);
  border: 1px solid rgba(91, 140, 90, 0.2);
  border-radius: 9px;
  color: #5B8C5A;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tooltip-book-link:hover {
  background: linear-gradient(135deg, rgba(91, 140, 90, 0.12) 0%, rgba(91, 140, 90, 0.06) 100%);
  border-color: rgba(91, 140, 90, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(91, 140, 90, 0.2);
}

.tooltip-book-link:active {
  transform: translateY(0);
}

.tooltip-book-link svg {
  flex-shrink: 0;
}

/* ==========================================
   SUMMIT TOOLTIP - SPECIAL GOLDEN STYLING
   ========================================== */
.summit-window {
  min-width: 280px !important;
  max-width: 320px !important;
}

.summit-elevation-banner {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(255, 199, 54, 0.08) 0%, rgba(73, 114, 133, 0.03) 100%);
  border-top: 1px solid rgba(73, 114, 133, 0.15);
  border-bottom: 1px solid rgba(73, 114, 133, 0.15);
}

.summit-elev-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.summit-elev-label {
  font-size: 11px;
  font-weight: 600;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summit-elev-val {
  font-size: 18px;
  font-weight: 700;
  color: #497285;
  letter-spacing: -0.02em;
}

.summit-elev-divider {
  width: 1px;
  height: 32px;
  background: rgba(73, 114, 133, 0.2);
  margin: 0 16px;
}

.summit-content {
  padding: 14px 20px 16px 20px;
}

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

.summit-row:last-child {
  border-bottom: none;
}

.summit-label {
  font-size: 13px;
  font-weight: 500;
  color: #6B7280;
  flex-shrink: 0;
  white-space: nowrap;
  margin-right: 16px;
}

.summit-value {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  text-align: right;
  flex: 1;
  min-width: 0;
  line-height: 1.5;
}

/* ==========================================
   SIMPLE TOOLTIP (waypoint labels during animation)
   ========================================== */
.trek-map-tooltip-simple {
  padding: 10px 16px;
  font-family: var(--trek-font-body);
  font-size: 13px;
  font-weight: 500;
  min-width: auto;
  max-width: none;
  white-space: nowrap;
  border-radius: 10px;
  
  /* Glassmorphism - matching original */
  background: rgba(255, 255, 255, 0.85);
  border: 0.5px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  color: var(--trek-text);
}

.trek-map-tooltip-simple::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.85) transparent transparent;
}

/* ==========================================
   MOBILE RESPONSIVE - TOOLTIPS
   ========================================== */
@media (max-width: 768px) {
  .trek-map-tooltip {
    max-width: 280px !important;
    margin-left: 12px;
    margin-right: 12px;
  }
  
  .custom-info-window {
    max-width: 250px;
    min-width: 210px;
  }
  
  .custom-info-window.starting-point-window {
    max-width: 280px;
    min-width: 250px;
  }
  
  .starting-point-window .tooltip-info-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .summit-window {
    min-width: 230px !important;
    max-width: 260px !important;
  }
  
  /* AWWWARD-recommended mobile typography scale */
  .tooltip-header {
    padding: 10px 32px 8px 12px;
    gap: 5px;
  }
  
  .route-tag {
    padding: 3px 7px;
    font-size: 10px; /* Up from 8px - readable but compact */
  }
  
  .tooltip-title {
    font-size: 14px; /* Up from 12px - primary info prominence */
  }
  
  .elevation-banner {
    padding: 8px 12px;
    flex-direction: row !important;
    gap: 10px;
  }
  
  .elevation-col {
    flex: 1;
    min-width: 0;
  }
  
  .elev-label {
    font-size: 10px; /* Up from 8px - context labels readable */
  }
  
  .elev-value {
    font-size: 14px; /* Up from 12px - numbers need emphasis */
  }
  
  .elevation-divider {
    height: 24px;
    margin: 0 8px;
  }
  
  .summit-elevation-banner {
    padding: 8px 12px;
    flex-direction: row !important;
    gap: 10px !important;
  }
  
  .summit-elev-col {
    flex: 1;
  }
  
  .summit-elev-label {
    font-size: 10px; /* Up from 8px */
  }
  
  .summit-elev-val {
    font-size: 14px; /* Up from 12px */
  }
  
  .tooltip-content,
  .summit-content {
    padding: 8px 12px;
  }
  
  .description-text {
    font-size: 11px !important; /* Up from 9px - minimum for sustained reading */
    line-height: 1.5 !important; /* Up from 1.4 - breathing room */
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
  }
  
  .info-label,
  .info-value,
  .summit-label,
  .summit-value {
    font-size: 10px; /* Up from 9px - consistent with labels */
  }
  
  .tooltip-actions {
    padding: 8px 12px 10px;
    gap: 8px;
  }
  
  .tooltip-preview-btn {
    padding: 8px 12px; /* Up from 6px 10px - button affordance */
    font-size: 12px; /* Up from 10px - tappable */
    margin-bottom: 3px;
  }
  
  .tooltip-book-btn {
    padding: 6px 10px;
    font-size: 11px; /* Up from 9.5px - secondary action */
  }
  
  .tooltip-disclaimer {
    font-size: 9px; /* Keep small - truly optional info */
  }
  
  .info-window-close {
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    font-size: 16px;
  }
}

/* =============================================================================
   HELP MODAL (Transplanted from help-modal)
   ============================================================================= */
.trek-map-help-modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 15000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* When help modal is visible, dim the legend buttons */
.trek-map-help-modal.visible ~ .trek-map-legend-wrapper,
.trek-map-container:has(.trek-map-help-modal.visible) .trek-map-legend-wrapper {
  opacity: 0.3;
  pointer-events: none;
}

.trek-map-help-modal.visible {
  opacity: 1;
}

.trek-map-help-content {
  background: var(--trek-card-bg);
  border-radius: var(--trek-radius);
  padding: 24px;
  max-width: 360px;
  width: 90%;
  box-shadow: var(--trek-shadow-xl);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.trek-map-help-modal.visible .trek-map-help-content {
  transform: scale(1);
}

.trek-map-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.trek-map-help-title {
  font-family: var(--trek-font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--trek-text);
  margin: 0;
}

.trek-map-help-close {
  width: 28px;
  height: 28px;
  background: var(--trek-bg);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--trek-text-muted);
  font-size: 18px;
  transition: all var(--trek-transition);
}

.trek-map-help-close:hover {
  background: var(--trek-border);
  color: var(--trek-text);
}

.trek-map-help-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trek-map-help-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--trek-border);
}

.trek-map-help-item:last-child {
  border-bottom: none;
}

.trek-map-help-icon {
  width: 32px;
  height: 32px;
  background: var(--trek-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--trek-primary);
}

.trek-map-help-text h4 {
  font-family: var(--trek-font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--trek-text);
  margin: 0 0 4px 0;
}

.trek-map-help-text p {
  font-family: var(--trek-font-body);
  font-size: 13px;
  color: var(--trek-text-muted);
  margin: 0;
  line-height: 1.4;
}

.trek-map-help-done {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: var(--trek-bg);
  border: none;
  border-radius: var(--trek-radius-sm);
  font-family: var(--trek-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--trek-text);
  cursor: pointer;
  transition: background var(--trek-transition);
}

.trek-map-help-done:hover {
  background: var(--trek-border);
}

/* =============================================================================
   MOBILE BOTTOM BAR - EXACT from original kilimanjaro-map.css
   Connected to map card as one coherent unit
   ============================================================================= */
.trek-map-mobile-bar {
  display: none; /* Hidden on desktop */
}

/* =============================================================================
   FULLSCREEN MODE (Transplanted from kili-map-fullscreen)
   ============================================================================= */
.trek-map-section.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  padding: 0;
  background: var(--trek-text);
}

.trek-map-section.fullscreen .trek-map-section-container {
  max-width: none;
  height: 100%;
}

.trek-map-section.fullscreen .trek-map-header {
  display: none;
}

.trek-map-section.fullscreen .trek-map-layout {
  height: 100%;
}

.trek-map-section.fullscreen .trek-map-wrapper {
  height: 100%;
  border-radius: 0;
}

body.trek-map-fullscreen {
  overflow: hidden;
}

/* =============================================================================
   RESPONSIVE - MOBILE (Transplanted from @media max-width: 768px)
   ============================================================================= */
@media (max-width: 768px) {
  .trek-map-section {
    padding: 50px 16px 0 16px;
    /* Prevent any overflow issues */
    overflow: hidden;
  }
  
  /* Container for map + bottom bar - stable fixed layout */
  .trek-map-section-container {
    display: flex;
    flex-direction: column;
    /* Don't allow internal elements to push/change size */
    overflow: hidden;
  }
  
  /* Layout wrapper needs position:relative for CTA overlay */
  .trek-map-layout {
    position: relative;
  }
  
  .trek-map-header {
    margin-bottom: 20px;
  }
  
  .trek-map-title {
    font-size: 24px;
  }
  
  .trek-map-description {
    font-size: 13px;
  }
  
  /* FIXED mobile container - NEVER changes size */
  .trek-map-wrapper {
    /* Explicit fixed height - no dynamic calculations */
    height: 400px !important; /* Standard mobile map height */
    min-height: 400px !important;
    max-height: 400px !important;
    border-radius: 16px 16px 0 0;
    /* Lock the container completely */
    overflow: hidden;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
  }
  
  /* Taller phones get slightly more map area */
  @media (min-height: 700px) {
    .trek-map-wrapper {
      height: 450px !important;
      min-height: 450px !important;
      max-height: 450px !important;
    }
  }
  
  /* Very tall phones (e.g., iPhone Pro Max) */
  @media (min-height: 850px) {
    .trek-map-wrapper {
      height: 500px !important;
      min-height: 500px !important;
      max-height: 500px !important;
    }
  }
  
  /* Hide desktop legend on mobile */
  .trek-map-legend-wrapper {
    display: none;
  }
  
  /* Hide desktop controls on mobile */
  .trek-map-controls {
    display: none;
  }
  
  .trek-map-zoom-controls {
    top: 12px;
    left: 12px;
  }
  
  .trek-map-zoom-btn {
    width: 36px;
    height: 36px;
  }
  
  /* ==========================================
     MOBILE BOTTOM BAR - Connected to map card
     EXACT from original kilimanjaro-map.css
     ========================================== */
  .trek-map-mobile-bar {
    display: block !important;
    position: relative;
    margin-top: 0 !important; /* No gap - directly connected to map card */
    padding-top: 0;
    z-index: 100;
    
    /* Connected to map card - same background */
    background: #f5f7f9;
    border: none;
    /* Bottom corners match map card bottom corners */
    border-radius: 0 0 16px 16px;
    
    /* Subtle shadow matching map card shadow */
    box-shadow: 
      0 4px 16px rgba(0, 0, 0, 0.04),
      0 2px 8px rgba(0, 0, 0, 0.03);
    
    /* Seamless connection */
    margin-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  
  /* Mobile Mini-Legend - LEGO-style button row container */
  .trek-map-mobile-legend {
    display: flex;
    align-items: stretch;
    padding: 0;
    gap: 0; /* No gap - seamless buttons */
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    
    /* Connected to map - same surface */
    background: #f5f7f9;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0 0 16px 16px;
    
    /* NO extra shadow - bar handles this */
    box-shadow: none;
    
    /* Seamless bottom connection */
    margin-top: 0 !important;
    margin-bottom: 0;
    padding-bottom: 0;
    overflow: hidden;
    
    /* Safari fix */
    -webkit-box-align: stretch;
  }
  
  .trek-map-mobile-legend.hidden {
    display: none;
  }
  
  /* ==========================================
     MINI ROUTE CARD - Nintendo LEGO 3D Buttons
     EXACT from original kilimanjaro-map.css
     ========================================== */
  .trek-map-mobile-route-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 11px 6px;
    min-height: 58px;
    
    /* SOLID surface - Nintendo style */
    background: linear-gradient(180deg, 
      #fafbfc 0%, 
      #f5f7f9 40%, 
      #f0f2f4 100%);
    
    /* Borders */
    border: none;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 3px solid; /* Color set via inline style */
    border-radius: 0;
    
    /* Stable shadow system */
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      inset 0 0 0 rgba(0, 0, 0, 0),
      inset 0 0 0 1px rgba(0, 0, 0, 0);
    
    cursor: pointer;
    transition: 
      transform 45ms cubic-bezier(0.15, 0, 0.35, 1),
      border-bottom-width 45ms cubic-bezier(0.15, 0, 0.35, 1),
      box-shadow 45ms cubic-bezier(0.15, 0, 0.35, 1),
      background 60ms ease-out;
    
    /* GPU acceleration */
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-tap-highlight-color: transparent;
    
    user-select: none;
    -webkit-user-select: none;
  }
  
  /* First button - only bottom-left corner rounded (top connects to map) */
  .trek-map-mobile-route-btn:first-child {
    border-radius: 0 0 0 16px;
  }
  
  /* Last route button - no rounded corners (connects to help button) */
  .trek-map-mobile-route-btn:last-of-type {
    border-radius: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
  }
  
  /* 3D PHYSICAL PRESS EFFECT */
  .trek-map-mobile-route-btn:active {
    transform: translateY(3px) translateZ(0);
    border-bottom-width: 0px;
    background: #e8eaed;
    box-shadow: 
      inset 0 1px 0 rgba(255, 255, 255, 0),
      inset 0 3px 8px rgba(0, 0, 0, 0.12),
      inset 0 0 0 1px rgba(0, 0, 0, 0.02);
  }
  
  /* Route dot - REMOVED, now using colored border-bottom */
  .trek-map-mobile-route-dot {
    display: none;
  }
  
  /* Button Typography */
  .trek-map-mobile-route-name {
    font-size: 11.5px;
    font-weight: 700;
    color: #1F2937;
    line-height: 1.1;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    pointer-events: none;
  }
  
  .trek-map-mobile-route-meta {
    font-size: 10px;
    font-weight: 600;
    color: #6B7280;
    line-height: 1.05;
    letter-spacing: 0.01em;
    pointer-events: none;
  }
  
  .trek-map-mobile-route-btn:active .trek-map-mobile-route-name {
    color: #1F2937;
  }
  
  .trek-map-mobile-route-btn:active .trek-map-mobile-route-meta {
    color: #4B5563;
  }
  
  /* All children pass clicks to parent button */
  .trek-map-mobile-route-btn * {
    pointer-events: none !important;
  }
  
  /* ==========================================
     HELP BUTTON - Chikima Brand GREEN
     EXACT from original kilimanjaro-map.css
     ========================================== */
  .trek-map-mobile-help-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 58px;
    min-height: 58px;
    min-width: 44px; /* Accessibility touch target */
    margin-left: 0;
    padding: 0;
    
    /* Premium surface matching other buttons */
    background: linear-gradient(180deg, 
      #fafbfc 0%, 
      #f5f7f9 40%, 
      #f0f2f4 100%);
    
    /* Bottom-right rounded (top connects to map) */
    border: none;
    /* GREEN depth indicator - Chikima brand */
    border-bottom: 3px solid #5B8C5A;
    border-radius: 0 0 16px 0;
    
    /* Stable shadow system */
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      inset 0 0 0 rgba(0, 0, 0, 0),
      inset 0 0 0 1px rgba(0, 0, 0, 0);
    
    color: #5B8C5A;
    cursor: pointer;
    
    transition: 
      transform 45ms cubic-bezier(0.15, 0, 0.35, 1),
      border-bottom-width 45ms cubic-bezier(0.15, 0, 0.35, 1),
      box-shadow 45ms cubic-bezier(0.15, 0, 0.35, 1),
      background 60ms ease-out;
    
    /* GPU acceleration */
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    
    user-select: none;
    -webkit-user-select: none;
  }
  
  .trek-map-mobile-help-btn svg {
    width: 22px;
    height: 22px;
    transition: transform 60ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* 3D PHYSICAL PRESS - Green tinted */
  .trek-map-mobile-help-btn:active {
    transform: translateY(3px) translateZ(0);
    border-bottom-width: 0px;
    background: #e8eaed;
    box-shadow: 
      inset 0 1px 0 rgba(255, 255, 255, 0),
      inset 0 3px 8px rgba(91, 140, 90, 0.15),
      inset 0 0 0 1px rgba(91, 140, 90, 0.05);
  }
  
  .trek-map-mobile-help-btn:active svg {
    transform: scale(0.94);
  }
  
  /* ==========================================
     MOBILE PREVIEW CONTROLS - During animation
     EXACT from original kilimanjaro-map.css
     ========================================== */
  /* Mobile preview controls - HIDDEN by default, shown during animation via JS */
  .trek-map-mobile-preview {
    display: none; /* Hidden by default - JS shows it when animation starts */
    align-items: stretch;
    padding: 0;
    gap: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: #f5f7f9;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0 0 16px 16px;
    box-shadow: none;
    overflow: hidden;
    margin-top: 0 !important;
    margin-bottom: 0;
    padding-bottom: 0;
    -webkit-box-align: stretch;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    position: relative;
    z-index: 1;
  }
  
  /* Static shadow via pseudo-element */
  .trek-map-mobile-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    pointer-events: none;
    z-index: -1;
  }
  
  /* Preview Buttons - Nintendo depth style */
  .trek-map-mobile-preview-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    min-height: 58px;
    margin: 0;
    padding: 0;
    
    background: #f5f7f9;
    border: none;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 3px solid #6B7280;
    border-radius: 0;
    
    box-shadow: none;
    cursor: pointer;
    
    transition: 
      transform 45ms cubic-bezier(0.15, 0, 0.35, 1),
      border-bottom-width 45ms cubic-bezier(0.15, 0, 0.35, 1),
      background-color 45ms ease-out;
    
    -webkit-tap-highlight-color: transparent;
    color: #374151;
    min-width: 44px;
    will-change: transform;
    transform: translateZ(0);
    position: relative;
    z-index: 1;
  }
  
  /* First button (pause) - bottom-left rounded */
  .trek-map-mobile-preview-btn.pause {
    border-radius: 0 0 0 16px;
    border-bottom-color: #6B7280;
  }
  
  /* Exit button - red accent, bottom-right rounded */
  .trek-map-mobile-preview-btn.exit {
    border-radius: 0 0 16px 0;
    border-right: none;
    border-bottom: 3px solid #dc2626;
    background: #f5f7f9;
    color: #6B7280;
  }
  
  .trek-map-mobile-preview-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 45ms ease-out;
  }
  
  /* 3D PRESS */
  .trek-map-mobile-preview-btn:active {
    transform: translateY(3px) translateZ(0);
    border-bottom-width: 0px;
    background: #e2e4e7;
    box-shadow: none;
  }
  
  .trek-map-mobile-preview-btn:active svg {
    transform: scale(0.96);
  }
  
  .trek-map-mobile-preview-btn.exit:active {
    transform: translateY(3px) translateZ(0);
    border-bottom-width: 0px;
    background: #fecaca;
    color: #991b1b;
    box-shadow: none;
  }
  
  /* Preview Info Panel - Green accent */
  .trek-map-mobile-preview-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 8px;
    margin: 0;
    
    background: #f5f7f9;
    border: none;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 3px solid #5B8C5A;
    border-radius: 0;
    box-shadow: none;
    min-height: 58px;
    position: relative;
    z-index: 1;
  }
  
  .trek-map-mobile-preview-name {
    font-size: 12px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  
  .trek-map-mobile-preview-progress {
    width: 100%;
    max-width: 80px;
    height: 4px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
  }
  
  .trek-map-mobile-preview-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #5B8C5A 0%, #5A9B4A 100%);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .trek-map-mobile-preview-counter {
    font-size: 10px;
    font-weight: 600;
    color: #6B7280;
    line-height: 1.05;
  }
  
  .trek-map-mobile-preview-actions {
    display: contents; /* Children become direct children of parent */
  }
  
  /* Hide desktop preview controls on mobile */
  .trek-map-preview-controls {
    display: none !important;
  }
  
  /* Mobile CTA Card - Semi-transparent overlay showing map container beneath */
  .route-cta-card {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 999999 !important; /* Above absolutely everything */
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 24px;
    padding-top: calc(40px + env(safe-area-inset-top, 0));
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0));
    border-radius: 0 !important;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
    
    /* Smooth, snappy transition for showing/hiding */
    transition: 
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.35s ease;
    
    /* Semi-transparent light gray with frosted glass effect - map visible beneath */
    background: rgba(245, 248, 245, 0.82) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    
    /* Subtle inner border for depth/definition */
    box-shadow: 
      inset 0 0 0 1px rgba(91, 140, 90, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }
  
  .route-cta-card.show {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
  }
  
  /* Mobile CTA - Compact layout for map container */
  .cta-title {
    font-size: 18px !important;
    margin-bottom: 8px !important;
  }
  
  .cta-description {
    font-size: 12px !important;
    margin-bottom: 14px !important;
  }
  
  .cta-badge {
    padding: 4px 10px !important;
    font-size: 9px !important;
    margin-bottom: 12px !important;
    display: none; /* Hide badge on mobile like original */
  }
  
  .cta-price-section {
    padding: 12px 16px !important;
    margin-bottom: 14px !important;
  }
  
  .price-main {
    font-size: 26px !important;
  }
  
  .cta-stats-grid {
    gap: 8px !important;
    margin-bottom: 16px !important;
  }
  
  .route-cta-card .stat-item {
    padding: 10px 8px !important;
    min-height: 60px !important;
  }
  
  .route-cta-card .stat-value {
    font-size: 16px !important;
  }
  
  .cta-value-props {
    gap: 8px !important;
    margin-bottom: 20px !important;
    padding-top: 16px !important;
  }
  
  .value-prop {
    font-size: 13px !important;
  }
  
  .cta-actions {
    gap: 8px !important;
  }
  
  .cta-btn-primary,
  .cta-btn-secondary {
    min-height: 48px !important;
    padding: 12px 16px !important;
  }
  
  /* ==========================================
     MOBILE STARTING POINT TOOLTIP - FULL INFO
     All content from desktop, mobile-optimized layout
     ========================================== */
  .starting-point-window.mobile-full {
    max-width: 260px !important;
    min-width: 240px !important;
    padding: 10px 12px !important;
  }
  
  /* Header: Tag + Title */
  .mobile-full-header {
    margin-bottom: 8px;
    padding-right: 24px; /* Space for close button */
  }
  
  .mobile-full-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-bottom: 4px;
  }
  
  .mobile-full-title {
    font-size: 14px !important;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0;
  }
  
  /* Elevation Row */
  .mobile-full-elevation {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(91, 140, 90, 0.08) 0%, rgba(91, 140, 90, 0.03) 100%);
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 8px;
    gap: 12px;
  }
  
  .mobile-full-elev-item {
    flex: 1;
    text-align: center;
  }
  
  .mobile-full-elev-label {
    display: block;
    font-size: 8px;
    font-weight: 600;
    color: #5B8C5A;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
  }
  
  .mobile-full-elev-value {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #2D5A2C;
  }
  
  .mobile-full-elev-divider {
    width: 1px;
    height: 24px;
    background: rgba(91, 140, 90, 0.2);
    flex-shrink: 0;
  }
  
  /* Stats Grid - 2x2 */
  .mobile-full-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
    margin-bottom: 8px;
  }
  
  .mobile-full-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }
  
  .mobile-full-stat-label {
    font-size: 9px;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  
  .mobile-full-stat-value {
    font-size: 10px;
    font-weight: 600;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 80px;
  }
  
  /* Actions */
  .mobile-full-actions {
    display: flex;
    gap: 6px;
  }
  
  .mobile-full-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 10px !important;
    font-size: 11px !important;
    font-weight: 600;
    color: white !important;
    background: linear-gradient(135deg, #5B8C5A 0%, #4A7A49 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    min-height: 36px;
    cursor: pointer;
  }
  
  .mobile-full-preview svg {
    width: 12px;
    height: 12px;
  }
  
  .mobile-full-book {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px !important;
    font-size: 11px !important;
    font-weight: 600;
    color: #5B8C5A !important;
    background: rgba(91, 140, 90, 0.1) !important;
    border: 1px solid rgba(91, 140, 90, 0.3) !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    min-height: 36px;
  }
  
  /* Hide original tooltip elements on mobile-full */
  .starting-point-window.mobile-full .tooltip-header,
  .starting-point-window.mobile-full .elevation-banner,
  .starting-point-window.mobile-full .tooltip-content,
  .starting-point-window.mobile-full .tooltip-actions {
    display: none !important;
  }
  
  /* Also make checkpoint tooltips more compact on mobile */
  .checkpoint-window {
    max-width: 240px !important;
    min-width: 200px !important;
  }
  
  .checkpoint-window .tooltip-header {
    padding: 8px 28px 6px 10px !important;
  }
  
  .checkpoint-window .tooltip-title {
    font-size: 12px !important;
  }
  
  .checkpoint-window .elevation-banner {
    padding: 6px 10px !important;
  }
  
  .checkpoint-window .elev-value {
    font-size: 12px !important;
  }
  
  .checkpoint-window .tooltip-content {
    padding: 6px 10px !important;
  }
  
  .checkpoint-window .description-text {
    font-size: 10px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
  }
  
  /* ==========================================
     MOBILE HELP MODAL - FULLSCREEN OVERLAY
     Matches CTA card fullscreen behavior
     ========================================== */
  .trek-map-help-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 999999 !important;
    background: white !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  
  .trek-map-help-content {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    padding: 24px !important;
    padding-top: calc(24px + env(safe-area-inset-top, 0)) !important;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0)) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .trek-map-help-header {
    flex-shrink: 0;
    margin-bottom: 20px;
  }
  
  .trek-map-help-title {
    font-size: 22px !important;
  }
  
  .trek-map-help-close {
    width: 36px !important;
    height: 36px !important;
    font-size: 22px !important;
  }
  
  .trek-map-help-list {
    flex: 1;
    overflow-y: auto;
  }
  
  .trek-map-help-item {
    padding: 14px 0 !important;
  }
}

/* =============================================================================
   RESPONSIVE - TABLET
   ============================================================================= */
@media (min-width: 769px) and (max-width: 1024px) {
  .trek-map-section {
    padding: 70px 24px 90px 24px;
  }
  
  .trek-map-title {
    font-size: 32px;
  }
  
  .trek-map-wrapper {
    height: 600px;
    border-radius: 20px;
  }
}

/* =============================================================================
   RESPONSIVE - LARGE DESKTOP
   ============================================================================= */
@media (min-width: 1440px) {
  .trek-map-section {
    padding: 100px 40px 120px 40px;
  }
  
  .trek-map-section-container {
    max-width: 1400px;
  }
  
  .trek-map-title {
    font-size: 42px;
  }
  
  .trek-map-description {
    font-size: 18px;
  }
  
  .trek-map-wrapper {
    height: 800px;
    border-radius: 28px;
  }
  
  .trek-map-zoom-controls {
    top: 24px;
    left: 24px;
  }
  
  .trek-map-legend-wrapper {
    bottom: 24px;
    left: 24px; /* Aligned with zoom buttons above */
  }
  
  .trek-map-controls {
    bottom: 24px;
    right: 24px;
  }
}

/* =============================================================================
   PRINT STYLES
   ============================================================================= */
@media print {
  .trek-map-section {
    break-inside: avoid;
  }
  
  .trek-map-zoom-controls,
  .trek-map-controls,
  .trek-map-preview-controls,
  .trek-map-mobile-bar {
    display: none !important;
  }
}

