2026-04-20 04:47:44 +00:00
|
|
|
@import "tailwindcss";
|
|
|
|
|
|
2026-04-20 20:59:18 +00:00
|
|
|
/* ═══════════════════════════════════════════════════════
|
|
|
|
|
NAVI DESIGN TOKENS
|
|
|
|
|
Warm grays, sage greens, khaki tans, deep blacks.
|
|
|
|
|
No blue in UI chrome.
|
|
|
|
|
═══════════════════════════════════════════════════════ */
|
|
|
|
|
|
|
|
|
|
:root {
|
|
|
|
|
/* ── Typography ── */
|
|
|
|
|
--font-sans: 'Inter', system-ui, -apple-system, sans-serif;
|
|
|
|
|
--font-mono: 'JetBrains Mono', ui-monospace, monospace;
|
|
|
|
|
|
|
|
|
|
/* ── Type scale ── */
|
|
|
|
|
--text-xs: 0.6875rem; /* 11px */
|
|
|
|
|
--text-sm: 0.8125rem; /* 13px */
|
|
|
|
|
--text-base: 0.875rem; /* 14px */
|
|
|
|
|
--text-md: 1rem; /* 16px */
|
|
|
|
|
--text-lg: 1.125rem; /* 18px */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ═══ DARK MODE (default) ═══ */
|
|
|
|
|
[data-theme="dark"] {
|
|
|
|
|
--bg-base: #1c1917; /* warm off-black (was #0f1210) */
|
|
|
|
|
--bg-raised: #252220; /* raised surface (was #181d1a) */
|
|
|
|
|
--bg-overlay: #2e2a27; /* overlay/dropdown (was #1e2522) */
|
|
|
|
|
--bg-input: #201d1a; /* input fields (was #141a16) */
|
|
|
|
|
|
|
|
|
|
--text-primary: #dde3dc;
|
|
|
|
|
--text-secondary: #8f9a8e;
|
|
|
|
|
--text-tertiary: #5e6b5d;
|
|
|
|
|
--text-inverse: #1c1917;
|
|
|
|
|
|
|
|
|
|
--border: #3a3530; /* warm brown-gray (was #2a3329) */
|
|
|
|
|
--border-subtle: #2a2624; /* (was #1f261e) */
|
|
|
|
|
|
|
|
|
|
--accent: #7a9a6b; /* sage green — interactive states */
|
|
|
|
|
--accent-hover: #8fad7f;
|
|
|
|
|
--accent-muted: #3d4d36;
|
|
|
|
|
|
|
|
|
|
--tan: #b8a88a; /* khaki — secondary highlights */
|
|
|
|
|
--tan-muted: #4a4235;
|
|
|
|
|
|
|
|
|
|
--pin-origin: #6b8f5e; /* sage */
|
|
|
|
|
--pin-destination: #a67c52; /* rust/tan */
|
|
|
|
|
--pin-intermediate: #6b7268; /* warm gray */
|
|
|
|
|
--pin-stroke: #1c1917;
|
|
|
|
|
|
|
|
|
|
--status-success: #6b8f5e;
|
|
|
|
|
--status-warning: #b89a4a;
|
|
|
|
|
--status-danger: #a65c52;
|
|
|
|
|
|
|
|
|
|
--route-line: #7a9a6b;
|
|
|
|
|
|
|
|
|
|
--shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
|
|
|
|
|
--shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.5);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ═══ LIGHT MODE ═══ */
|
|
|
|
|
[data-theme="light"] {
|
2026-04-22 03:27:21 +00:00
|
|
|
--bg-base: #ddd2b9; /* warm khaki-tan (was #ece8e1) */
|
|
|
|
|
--bg-raised: #e8dec8; /* raised surface (was #f5f2ec) */
|
|
|
|
|
--bg-overlay: #e3d9c1; /* overlay/dropdown (was #f0ece5) */
|
|
|
|
|
--bg-input: #e8dec8; /* input fields (was #f5f2ec) */
|
2026-04-20 20:59:18 +00:00
|
|
|
|
|
|
|
|
--text-primary: #1a1d1a;
|
2026-04-22 03:27:21 +00:00
|
|
|
--text-secondary: #4f5a49; /* darkened for WCAG AA on new base (was #5c6558) */
|
|
|
|
|
--text-tertiary: #7a8674; /* darkened proportionally (was #8a9486) */
|
2026-04-20 20:59:18 +00:00
|
|
|
--text-inverse: #f5f2ed;
|
|
|
|
|
|
2026-04-22 03:27:21 +00:00
|
|
|
--border: #c4b89e; /* warmer border (was #d4cfc5) */
|
|
|
|
|
--border-subtle: #d5cab2; /* warmer subtle border (was #e8e3db) */
|
2026-04-20 20:59:18 +00:00
|
|
|
|
|
|
|
|
--accent: #4a7040;
|
|
|
|
|
--accent-hover: #3d5e35;
|
|
|
|
|
--accent-muted: #dce8d6;
|
|
|
|
|
|
|
|
|
|
--tan: #8a7556;
|
|
|
|
|
--tan-muted: #f0e8d8;
|
|
|
|
|
|
|
|
|
|
--pin-origin: #4a7040;
|
|
|
|
|
--pin-destination: #8a5c35;
|
|
|
|
|
--pin-intermediate: #6b6960;
|
|
|
|
|
--pin-stroke: #1a1d1a;
|
|
|
|
|
|
|
|
|
|
--status-success: #4a7040;
|
|
|
|
|
--status-warning: #8a7040;
|
|
|
|
|
--status-danger: #8a4040;
|
|
|
|
|
|
|
|
|
|
--route-line: #4a7040;
|
|
|
|
|
|
|
|
|
|
--shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
|
|
|
--shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ═══ BASE STYLES ═══ */
|
2026-04-20 04:47:44 +00:00
|
|
|
html, body, #root {
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
height: 100%;
|
feat: search, multi-stop routing, and route display
Full navigation UI with:
- Search bar with 150ms debounced autocomplete from /api/geocode
- Keyboard navigation (arrow keys, Enter, Escape)
- Exact match badge for verified address results
- Multi-stop list with drag-to-reorder (dnd-kit)
- 10-stop cap with disabled state
- Mode selector (drive/walk/bike)
- Valhalla route display with per-leg color polyline
- Maneuver list with instructions, distance, time remaining
- Click maneuver to fly map to that point
- Optimize stops button (3+ stops, uses /optimized_route)
- Responsive: side panel (desktop ≥768px), bottom sheet (mobile)
- Stop pins: green origin, red destination, blue intermediate
- Pin popup with remove button
- Geolocation permission requested on first route, not on load
- Error handling for unroutable pairs
- nginx proxy for /api/ and /valhalla/ endpoints
Dependencies added: zustand, @dnd-kit/core, @dnd-kit/sortable,
@dnd-kit/utilities
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-20 16:50:53 +00:00
|
|
|
overflow: hidden;
|
2026-04-20 20:59:18 +00:00
|
|
|
font-family: var(--font-sans);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
body {
|
|
|
|
|
background: var(--bg-base);
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Mono class utility */
|
|
|
|
|
.font-mono {
|
|
|
|
|
font-family: var(--font-mono);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ═══ FOCUS RING — accent, never blue ═══ */
|
|
|
|
|
*:focus-visible {
|
|
|
|
|
outline: 2px solid var(--accent);
|
|
|
|
|
outline-offset: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ═══ TRANSITIONS — respect reduced motion ═══ */
|
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
|
|
|
*, *::before, *::after {
|
|
|
|
|
animation-duration: 0.01ms !important;
|
|
|
|
|
transition-duration: 0.01ms !important;
|
|
|
|
|
}
|
feat: search, multi-stop routing, and route display
Full navigation UI with:
- Search bar with 150ms debounced autocomplete from /api/geocode
- Keyboard navigation (arrow keys, Enter, Escape)
- Exact match badge for verified address results
- Multi-stop list with drag-to-reorder (dnd-kit)
- 10-stop cap with disabled state
- Mode selector (drive/walk/bike)
- Valhalla route display with per-leg color polyline
- Maneuver list with instructions, distance, time remaining
- Click maneuver to fly map to that point
- Optimize stops button (3+ stops, uses /optimized_route)
- Responsive: side panel (desktop ≥768px), bottom sheet (mobile)
- Stop pins: green origin, red destination, blue intermediate
- Pin popup with remove button
- Geolocation permission requested on first route, not on load
- Error handling for unroutable pairs
- nginx proxy for /api/ and /valhalla/ endpoints
Dependencies added: zustand, @dnd-kit/core, @dnd-kit/sortable,
@dnd-kit/utilities
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-20 16:50:53 +00:00
|
|
|
}
|
|
|
|
|
|
2026-04-20 20:59:18 +00:00
|
|
|
/* ═══ MAPLIBRE POPUP ═══ */
|
feat: search, multi-stop routing, and route display
Full navigation UI with:
- Search bar with 150ms debounced autocomplete from /api/geocode
- Keyboard navigation (arrow keys, Enter, Escape)
- Exact match badge for verified address results
- Multi-stop list with drag-to-reorder (dnd-kit)
- 10-stop cap with disabled state
- Mode selector (drive/walk/bike)
- Valhalla route display with per-leg color polyline
- Maneuver list with instructions, distance, time remaining
- Click maneuver to fly map to that point
- Optimize stops button (3+ stops, uses /optimized_route)
- Responsive: side panel (desktop ≥768px), bottom sheet (mobile)
- Stop pins: green origin, red destination, blue intermediate
- Pin popup with remove button
- Geolocation permission requested on first route, not on load
- Error handling for unroutable pairs
- nginx proxy for /api/ and /valhalla/ endpoints
Dependencies added: zustand, @dnd-kit/core, @dnd-kit/sortable,
@dnd-kit/utilities
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-20 16:50:53 +00:00
|
|
|
.maplibregl-popup-content {
|
2026-04-20 20:59:18 +00:00
|
|
|
background: var(--bg-raised) !important;
|
|
|
|
|
border: 1px solid var(--border) !important;
|
feat: search, multi-stop routing, and route display
Full navigation UI with:
- Search bar with 150ms debounced autocomplete from /api/geocode
- Keyboard navigation (arrow keys, Enter, Escape)
- Exact match badge for verified address results
- Multi-stop list with drag-to-reorder (dnd-kit)
- 10-stop cap with disabled state
- Mode selector (drive/walk/bike)
- Valhalla route display with per-leg color polyline
- Maneuver list with instructions, distance, time remaining
- Click maneuver to fly map to that point
- Optimize stops button (3+ stops, uses /optimized_route)
- Responsive: side panel (desktop ≥768px), bottom sheet (mobile)
- Stop pins: green origin, red destination, blue intermediate
- Pin popup with remove button
- Geolocation permission requested on first route, not on load
- Error handling for unroutable pairs
- nginx proxy for /api/ and /valhalla/ endpoints
Dependencies added: zustand, @dnd-kit/core, @dnd-kit/sortable,
@dnd-kit/utilities
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-20 16:50:53 +00:00
|
|
|
border-radius: 8px !important;
|
|
|
|
|
padding: 8px 12px !important;
|
2026-04-20 20:59:18 +00:00
|
|
|
box-shadow: var(--shadow-lg) !important;
|
|
|
|
|
color: var(--text-primary) !important;
|
feat: search, multi-stop routing, and route display
Full navigation UI with:
- Search bar with 150ms debounced autocomplete from /api/geocode
- Keyboard navigation (arrow keys, Enter, Escape)
- Exact match badge for verified address results
- Multi-stop list with drag-to-reorder (dnd-kit)
- 10-stop cap with disabled state
- Mode selector (drive/walk/bike)
- Valhalla route display with per-leg color polyline
- Maneuver list with instructions, distance, time remaining
- Click maneuver to fly map to that point
- Optimize stops button (3+ stops, uses /optimized_route)
- Responsive: side panel (desktop ≥768px), bottom sheet (mobile)
- Stop pins: green origin, red destination, blue intermediate
- Pin popup with remove button
- Geolocation permission requested on first route, not on load
- Error handling for unroutable pairs
- nginx proxy for /api/ and /valhalla/ endpoints
Dependencies added: zustand, @dnd-kit/core, @dnd-kit/sortable,
@dnd-kit/utilities
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-20 16:50:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.maplibregl-popup-tip {
|
2026-04-20 20:59:18 +00:00
|
|
|
border-top-color: var(--bg-raised) !important;
|
|
|
|
|
border-bottom-color: var(--bg-raised) !important;
|
feat: search, multi-stop routing, and route display
Full navigation UI with:
- Search bar with 150ms debounced autocomplete from /api/geocode
- Keyboard navigation (arrow keys, Enter, Escape)
- Exact match badge for verified address results
- Multi-stop list with drag-to-reorder (dnd-kit)
- 10-stop cap with disabled state
- Mode selector (drive/walk/bike)
- Valhalla route display with per-leg color polyline
- Maneuver list with instructions, distance, time remaining
- Click maneuver to fly map to that point
- Optimize stops button (3+ stops, uses /optimized_route)
- Responsive: side panel (desktop ≥768px), bottom sheet (mobile)
- Stop pins: green origin, red destination, blue intermediate
- Pin popup with remove button
- Geolocation permission requested on first route, not on load
- Error handling for unroutable pairs
- nginx proxy for /api/ and /valhalla/ endpoints
Dependencies added: zustand, @dnd-kit/core, @dnd-kit/sortable,
@dnd-kit/utilities
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-20 16:50:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.maplibregl-popup-close-button {
|
2026-04-20 20:59:18 +00:00
|
|
|
color: var(--text-secondary) !important;
|
feat: search, multi-stop routing, and route display
Full navigation UI with:
- Search bar with 150ms debounced autocomplete from /api/geocode
- Keyboard navigation (arrow keys, Enter, Escape)
- Exact match badge for verified address results
- Multi-stop list with drag-to-reorder (dnd-kit)
- 10-stop cap with disabled state
- Mode selector (drive/walk/bike)
- Valhalla route display with per-leg color polyline
- Maneuver list with instructions, distance, time remaining
- Click maneuver to fly map to that point
- Optimize stops button (3+ stops, uses /optimized_route)
- Responsive: side panel (desktop ≥768px), bottom sheet (mobile)
- Stop pins: green origin, red destination, blue intermediate
- Pin popup with remove button
- Geolocation permission requested on first route, not on load
- Error handling for unroutable pairs
- nginx proxy for /api/ and /valhalla/ endpoints
Dependencies added: zustand, @dnd-kit/core, @dnd-kit/sortable,
@dnd-kit/utilities
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-20 16:50:53 +00:00
|
|
|
font-size: 16px !important;
|
|
|
|
|
padding: 2px 6px !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.maplibregl-popup-close-button:hover {
|
2026-04-20 20:59:18 +00:00
|
|
|
color: var(--text-primary) !important;
|
feat: search, multi-stop routing, and route display
Full navigation UI with:
- Search bar with 150ms debounced autocomplete from /api/geocode
- Keyboard navigation (arrow keys, Enter, Escape)
- Exact match badge for verified address results
- Multi-stop list with drag-to-reorder (dnd-kit)
- 10-stop cap with disabled state
- Mode selector (drive/walk/bike)
- Valhalla route display with per-leg color polyline
- Maneuver list with instructions, distance, time remaining
- Click maneuver to fly map to that point
- Optimize stops button (3+ stops, uses /optimized_route)
- Responsive: side panel (desktop ≥768px), bottom sheet (mobile)
- Stop pins: green origin, red destination, blue intermediate
- Pin popup with remove button
- Geolocation permission requested on first route, not on load
- Error handling for unroutable pairs
- nginx proxy for /api/ and /valhalla/ endpoints
Dependencies added: zustand, @dnd-kit/core, @dnd-kit/sortable,
@dnd-kit/utilities
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-20 16:50:53 +00:00
|
|
|
background: transparent !important;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-20 20:59:18 +00:00
|
|
|
/* ═══ SCROLLBAR ═══ */
|
feat: search, multi-stop routing, and route display
Full navigation UI with:
- Search bar with 150ms debounced autocomplete from /api/geocode
- Keyboard navigation (arrow keys, Enter, Escape)
- Exact match badge for verified address results
- Multi-stop list with drag-to-reorder (dnd-kit)
- 10-stop cap with disabled state
- Mode selector (drive/walk/bike)
- Valhalla route display with per-leg color polyline
- Maneuver list with instructions, distance, time remaining
- Click maneuver to fly map to that point
- Optimize stops button (3+ stops, uses /optimized_route)
- Responsive: side panel (desktop ≥768px), bottom sheet (mobile)
- Stop pins: green origin, red destination, blue intermediate
- Pin popup with remove button
- Geolocation permission requested on first route, not on load
- Error handling for unroutable pairs
- nginx proxy for /api/ and /valhalla/ endpoints
Dependencies added: zustand, @dnd-kit/core, @dnd-kit/sortable,
@dnd-kit/utilities
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-20 16:50:53 +00:00
|
|
|
::-webkit-scrollbar {
|
|
|
|
|
width: 6px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar-track {
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
2026-04-20 20:59:18 +00:00
|
|
|
background: var(--border);
|
feat: search, multi-stop routing, and route display
Full navigation UI with:
- Search bar with 150ms debounced autocomplete from /api/geocode
- Keyboard navigation (arrow keys, Enter, Escape)
- Exact match badge for verified address results
- Multi-stop list with drag-to-reorder (dnd-kit)
- 10-stop cap with disabled state
- Mode selector (drive/walk/bike)
- Valhalla route display with per-leg color polyline
- Maneuver list with instructions, distance, time remaining
- Click maneuver to fly map to that point
- Optimize stops button (3+ stops, uses /optimized_route)
- Responsive: side panel (desktop ≥768px), bottom sheet (mobile)
- Stop pins: green origin, red destination, blue intermediate
- Pin popup with remove button
- Geolocation permission requested on first route, not on load
- Error handling for unroutable pairs
- nginx proxy for /api/ and /valhalla/ endpoints
Dependencies added: zustand, @dnd-kit/core, @dnd-kit/sortable,
@dnd-kit/utilities
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-20 16:50:53 +00:00
|
|
|
border-radius: 3px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
2026-04-20 20:59:18 +00:00
|
|
|
background: var(--text-tertiary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ═══ GPS CHEVRON MARKER ═══ */
|
|
|
|
|
.navi-chevron {
|
|
|
|
|
width: 16px;
|
|
|
|
|
height: 16px;
|
|
|
|
|
transition: transform 0.3s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.navi-gps-dot {
|
|
|
|
|
width: 12px;
|
|
|
|
|
height: 12px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
background: var(--accent);
|
|
|
|
|
border: 2px solid var(--bg-raised);
|
|
|
|
|
box-shadow: 0 0 0 2px var(--accent);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ═══ STOP PIN MARKERS (map) ═══ */
|
|
|
|
|
.navi-pin {
|
|
|
|
|
width: 26px;
|
|
|
|
|
height: 26px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
font-family: var(--font-sans);
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: #fff;
|
|
|
|
|
border: 2px solid var(--pin-stroke);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
box-shadow: var(--shadow);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.navi-pin--origin { background: var(--pin-origin); }
|
|
|
|
|
.navi-pin--destination { background: var(--pin-destination); }
|
|
|
|
|
.navi-pin--intermediate { background: var(--pin-intermediate); }
|
|
|
|
|
|
|
|
|
|
/* ═══ FORM ELEMENTS ═══ */
|
|
|
|
|
.navi-input {
|
|
|
|
|
padding: 0.5rem 0.75rem;
|
|
|
|
|
font-size: var(--text-sm);
|
|
|
|
|
font-family: var(--font-sans);
|
|
|
|
|
background: var(--bg-input);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: 0.5rem;
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
transition: border-color 0.1s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.navi-input::placeholder {
|
|
|
|
|
color: var(--text-tertiary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.navi-input:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
border-color: var(--accent);
|
|
|
|
|
box-shadow: 0 0 0 2px var(--accent-muted);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.navi-input:disabled {
|
|
|
|
|
opacity: 0.5;
|
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.navi-btn-secondary {
|
|
|
|
|
padding: 0.375rem 0.75rem;
|
|
|
|
|
font-size: var(--text-xs);
|
|
|
|
|
font-family: var(--font-sans);
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
background: var(--tan-muted);
|
|
|
|
|
color: var(--tan);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: 0.5rem;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: background 0.1s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.navi-btn-secondary:hover:not(:disabled) {
|
|
|
|
|
background: var(--accent-muted);
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.navi-btn-secondary:disabled {
|
|
|
|
|
opacity: 0.5;
|
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ═══ PREVIEW PIN (selected but not committed) ═══ */
|
|
|
|
|
.navi-pin-preview {
|
|
|
|
|
width: 28px;
|
|
|
|
|
height: 28px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
border: 3px solid var(--accent);
|
|
|
|
|
background: transparent;
|
|
|
|
|
box-shadow: 0 0 0 3px var(--accent-muted), var(--shadow);
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ═══ PLACE DETAIL PANEL ═══ */
|
|
|
|
|
.navi-place-detail {
|
|
|
|
|
transition: transform 150ms ease, opacity 150ms ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.navi-place-detail-enter {
|
|
|
|
|
transform: translateX(-10px);
|
|
|
|
|
opacity: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.navi-place-detail-active {
|
|
|
|
|
transform: translateX(0);
|
|
|
|
|
opacity: 1;
|
2026-04-20 04:47:44 +00:00
|
|
|
}
|
2026-04-21 00:52:20 +00:00
|
|
|
|
|
|
|
|
/* ═══ LAYER CONTROL ═══ */
|
|
|
|
|
.layer-control {
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 32px;
|
|
|
|
|
right: 10px;
|
|
|
|
|
z-index: 10;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.layer-control-btn {
|
|
|
|
|
width: 36px;
|
|
|
|
|
height: 36px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
background: var(--bg-raised);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
box-shadow: var(--shadow);
|
|
|
|
|
transition: color 0.1s, border-color 0.1s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.layer-control-btn:hover {
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
border-color: var(--accent);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.layer-control-popover {
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 44px;
|
|
|
|
|
right: 0;
|
|
|
|
|
min-width: 160px;
|
|
|
|
|
background: var(--bg-raised);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
padding: 8px 0;
|
|
|
|
|
box-shadow: var(--shadow-lg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.layer-control-header {
|
|
|
|
|
padding: 4px 12px 6px;
|
|
|
|
|
font-size: var(--text-xs);
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: var(--text-tertiary);
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
letter-spacing: 0.05em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.layer-control-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
padding: 6px 12px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: background 0.1s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.layer-control-item:hover {
|
|
|
|
|
background: var(--bg-overlay);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.layer-control-label {
|
|
|
|
|
font-size: var(--text-sm);
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.layer-control-toggle {
|
|
|
|
|
appearance: none;
|
|
|
|
|
width: 32px;
|
|
|
|
|
height: 18px;
|
|
|
|
|
background: var(--border);
|
|
|
|
|
border-radius: 9px;
|
|
|
|
|
position: relative;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: background 0.15s;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
margin-left: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.layer-control-toggle::after {
|
|
|
|
|
content: '';
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 2px;
|
|
|
|
|
left: 2px;
|
|
|
|
|
width: 14px;
|
|
|
|
|
height: 14px;
|
|
|
|
|
background: var(--text-primary);
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
transition: transform 0.15s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.layer-control-toggle:checked {
|
|
|
|
|
background: var(--accent);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.layer-control-toggle:checked::after {
|
|
|
|
|
transform: translateX(14px);
|
|
|
|
|
}
|
2026-04-22 03:27:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/* ═══ PLACE DETAIL ENRICHMENT ═══ */
|
|
|
|
|
.place-detail-section {
|
|
|
|
|
margin-top: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.place-detail-section-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 4px;
|
|
|
|
|
padding-bottom: 6px;
|
|
|
|
|
font-size: 10px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: var(--text-tertiary);
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
letter-spacing: 0.05em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.category-badge {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
padding: 2px 8px;
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
background: var(--accent-muted);
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* ═══ LOCATE BUTTON ═══ */
|
|
|
|
|
.locate-btn {
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 80px;
|
|
|
|
|
right: 10px;
|
|
|
|
|
z-index: 10;
|
|
|
|
|
width: 36px;
|
|
|
|
|
height: 36px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
background: var(--bg-raised);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
box-shadow: var(--shadow);
|
|
|
|
|
transition: color 0.1s, border-color 0.1s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.locate-btn:hover {
|
|
|
|
|
color: var(--text-primary);
|
|
|
|
|
border-color: var(--accent);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ═══ STOP REMOVE BUTTON (touch-friendly) ═══ */
|
|
|
|
|
.stop-remove-btn {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
transition: opacity 0.15s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.group:hover .stop-remove-btn {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ═══ MOBILE OVERRIDES ═══ */
|
|
|
|
|
@media (max-width: 767px) {
|
|
|
|
|
body {
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.layer-control {
|
|
|
|
|
bottom: auto;
|
|
|
|
|
top: 120px;
|
|
|
|
|
right: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.locate-btn {
|
|
|
|
|
bottom: auto;
|
|
|
|
|
top: 166px;
|
|
|
|
|
right: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.stop-remove-btn {
|
|
|
|
|
opacity: 0.6;
|
|
|
|
|
}
|
|
|
|
|
}
|
Add contacts/phone book UI with search integration
New components:
- ContactModal.jsx: Save/edit overlay with form fields and soft delete
- ContactList.jsx: Contacts tab with filter, create, and tap-to-navigate
Modified:
- store.js: Add contacts slice (contacts, activeTab, editingContact)
- api.js: Add contacts API functions (fetch, create, update, delete, nearby)
- config.js: Add has_contacts fallback flag
- Panel.jsx: Routes/Contacts tab bar (only when has_contacts enabled)
- PlaceDetail.jsx: Save button opens ContactModal, proximity annotation
- SearchBar.jsx: Prepend matching contacts before Photon results
- App.jsx: Render ContactModal at top level
- index.css: Modal overlay, tab bar, contact list item styles
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-22 05:30:19 +00:00
|
|
|
|
|
|
|
|
/* ═══ CONTACT MODAL ═══ */
|
|
|
|
|
.contact-modal-overlay {
|
|
|
|
|
position: fixed;
|
|
|
|
|
inset: 0;
|
|
|
|
|
z-index: 50;
|
|
|
|
|
background: rgba(0, 0, 0, 0.5);
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.contact-modal {
|
|
|
|
|
background: var(--bg-raised);
|
|
|
|
|
border: 1px solid var(--border);
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
width: 90%;
|
|
|
|
|
max-width: 420px;
|
|
|
|
|
max-height: 85vh;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
padding: 20px;
|
|
|
|
|
box-shadow: var(--shadow-lg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ═══ PANEL TAB BAR ═══ */
|
|
|
|
|
.navi-tab-bar {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 4px;
|
|
|
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.navi-tab {
|
|
|
|
|
padding: 6px 12px;
|
|
|
|
|
font-size: var(--text-xs);
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: var(--text-tertiary);
|
|
|
|
|
background: transparent;
|
|
|
|
|
border: none;
|
|
|
|
|
border-bottom: 2px solid transparent;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: color 0.1s, border-color 0.1s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.navi-tab:hover {
|
|
|
|
|
color: var(--text-secondary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.navi-tab-active {
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
border-bottom-color: var(--accent);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ═══ CONTACT LIST ITEMS ═══ */
|
|
|
|
|
.contact-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 10px;
|
|
|
|
|
padding: 8px;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
transition: background 0.1s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.contact-item:hover {
|
|
|
|
|
background: var(--bg-overlay);
|
|
|
|
|
}
|