/* ========================================= 🎨 COOLRIDE V16.3 - MODERN UI THEME ========================================= */ /* --- CORE TYPOGRAPHY & RESET --- */ body { margin: 0; padding: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; overflow: hidden; -webkit-tap-highlight-color: transparent; background: #f8fafc; color: #1e293b; } #map { position: absolute; top: 0; bottom: 0; width: 100%; z-index: 1; } /* --- 1. HEADS UP DISPLAY (HUD) --- */ /* Floating card at top for navigation instructions */ #nav-hud { position: absolute; top: 0; left: 0; width: 100%; background: rgba(37, 99, 235, 0.95); /* Semi-transparent Blue */ backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: white; z-index: 4000; padding: 20px 24px 28px 24px; box-sizing: border-box; display: none; /* Hidden by default */ box-shadow: 0 8px 32px rgba(37, 99, 235, 0.25); border-bottom-left-radius: 24px; border-bottom-right-radius: 24px; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); } /* Green gradient for success state */ #nav-hud.arrived { background: linear-gradient(135deg, #059669 0%, #10b981 100%); box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3); } .hud-instruction { font-size: 22px; font-weight: 700; margin-bottom: 6px; line-height: 1.2; text-shadow: 0 1px 2px rgba(0,0,0,0.1); } .hud-sub { font-size: 13px; opacity: 0.9; font-weight: 500; display: flex; align-items: center; gap: 6px; letter-spacing: 0.3px; } .hud-close { position: absolute; top: 22px; right: 22px; font-size: 24px; cursor: pointer; opacity: 0.8; transition: opacity 0.2s; background: rgba(255,255,255,0.2); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; } .hud-close:hover { opacity: 1; background: rgba(255,255,255,0.3); } /* --- 2. FLOATING CONTROLS --- */ .controls-layer { position: absolute; bottom: 34px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: flex-end; z-index: 2000; pointer-events: none; } .control-group { display: flex; gap: 12px; pointer-events: auto; } .control-btn { width: 52px; height: 52px; border-radius: 16px; /* Squircle shape */ background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #334155; border: 1px solid rgba(255,255,255,0.5); box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; pointer-events: auto; transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy press */ } .control-btn:active { transform: scale(0.92); } /* Primary Search Button (Floating Action Button) */ .control-btn.primary { width: 56px; height: 56px; background: #2563eb; color: white; border: none; box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4); } .control-btn.logger { background: white; color: #ef4444; border: 1px solid #fee2e2; } /* Callout Bubble */ .callout { position: absolute; bottom: 95px; left: 18px; background: #1e293b; color: white; padding: 10px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; display: none; box-shadow: 0 4px 15px rgba(0,0,0,0.2); animation: floatIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 2001; } .callout:after { content:''; position: absolute; bottom: -6px; left: 20px; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 6px solid #1e293b; } /* --- 3. MAIN SLIDING PANEL --- */ #panel { position: absolute; z-index: 1500; background: white; padding: 24px; box-shadow: 0 -8px 40px rgba(0,0,0,0.12); transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1); display: flex; flex-direction: column; gap: 16px; bottom: 0; left: 0; right: 0; width: 100%; border-radius: 28px 28px 0 0; transform: translateY(110%); max-height: 85vh; overflow-y: auto; box-sizing: border-box; padding-bottom: 100px; /* Space for controls */ } #panel.active { transform: translateY(0); } /* Panel Header */ .header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .header-row h2 { margin: 0; font-size: 20px; font-weight: 800; background: linear-gradient(90deg, #1e293b, #334155); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .badge-v { font-size: 10px; color: white; background: #22c55e; padding: 3px 8px; border-radius: 20px; vertical-align: middle; font-weight: 700; letter-spacing: 0.5px; -webkit-text-fill-color: white; /* Override gradient */ } /* User Status Chip */ .user-chip { display: flex; align-items: center; cursor: pointer; background: #f1f5f9; padding: 4px 10px 4px 6px; border-radius: 20px; transition: background 0.2s; } .user-chip:active { background: #e2e8f0; } .status-dot { width: 8px; height: 8px; background: #cbd5e1; border-radius: 50%; display: inline-block; margin-right: 6px; } .status-dot.active { background: #22c55e; box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2); } #userStatus { font-size: 12px; font-weight: 600; color: #475569; } .header-controls { display: flex; gap: 10px; align-items: center; } .close-btn { cursor: pointer; padding: 6px; color: #94a3b8; font-size: 20px; font-weight: bold; background: #f8fafc; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; } .lang-select { padding: 4px 8px; font-size: 11px; border-radius: 6px; background: #f1f5f9; border: none; font-weight: 600; color: #475569; cursor: pointer; } /* Inputs */ .input-group { display: flex; gap: 10px; align-items: center; } .map-target-btn { width: 48px; height: 48px; flex-shrink: 0; background: white; border: 1px solid #e2e8f0; border-radius: 12px; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.03); transition: all 0.2s; } .map-target-btn:active { transform: scale(0.95); } .map-target-btn.active { background: #eff6ff; color: #2563eb; border-color: #2563eb; } input { width: 100%; padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 12px; font-family: 'Inter'; font-size: 15px; color: #1e293b; background: #f8fafc; box-sizing: border-box; transition: all 0.2s; } input:focus { outline: none; border-color: #2563eb; background: white; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); } label { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; margin-bottom: -6px; display: block; letter-spacing: 0.5px; margin-left: 4px; } /* Stop Box (Hidden Logic) */ .stop-box { background: #fff1f2; border: 1px dashed #f43f5e; padding: 12px; border-radius: 12px; display: none; margin-bottom: 12px; } .stop-header { display: flex; justify-content: space-between; align-items: center; } .stop-header span:first-child { font-size: 11px; font-weight: 800; color: #be123c; letter-spacing: 0.5px; } .remove-stop { font-size: 11px; text-decoration: underline; cursor: pointer; color: #be123c; font-weight: 600; } .stop-name { font-size: 14px; font-weight: 600; color: #881337; margin-top: 4px; } /* Buttons */ .primary-btn { width: 100%; padding: 16px; background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: white; border: none; border-radius: 14px; font-weight: 600; font-size: 16px; letter-spacing: 0.3px; cursor: pointer; margin-top: 8px; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); transition: transform 0.2s; } .primary-btn:active { transform: scale(0.98); } .primary-btn:disabled { background: #cbd5e1; cursor: not-allowed; box-shadow: none; opacity: 0.7; } .action-row { display: flex; gap: 10px; margin-top: 10px; display: none; } .sec-btn, .nav-btn { flex: 1; padding: 14px; border-radius: 12px; font-weight: 600; font-size: 14px; cursor: pointer; text-align: center; transition: transform 0.2s; } .sec-btn { border: 1px solid #cbd5e1; background: white; color: #334155; } .nav-btn { background: #10b981; border: none; color: white; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); } .sec-btn:active, .nav-btn:active { transform: scale(0.96); } /* --- 4. AI & STATS CARDS --- */ .ai-card { display: none; margin-top: 20px; background: white; border-radius: 18px; padding: 18px; border: 1px solid #e2e8f0; box-shadow: 0 4px 20px rgba(0,0,0,0.03); } .ai-stats { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; } .ai-temp { font-size: 32px; font-weight: 800; color: #0f172a; letter-spacing: -1px; line-height: 1; } .ai-sub { font-size: 11px; color: #64748b; font-weight: 600; text-transform: uppercase; margin-top: 4px; } .meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; } .meta-badge { font-size: 11px; padding: 6px 10px; border-radius: 8px; background: #f8fafc; color: #475569; font-weight: 600; border: 1px solid #e2e8f0; } .eta-badge { background: #eff6ff; color: #1d4ed8; border-color: #dbeafe; } .ai-insight-box { font-size: 13px; line-height: 1.6; color: #334155; padding: 14px; background: #f1f5f9; border-radius: 10px; border-left: 4px solid #3b82f6; margin-top: 16px; } .nav-list { margin-top: 16px; border-top: 1px solid #e2e8f0; padding-top: 12px; display: none; } .nav-header { font-size: 11px; font-weight: 700; color: #94a3b8; margin-bottom: 8px; letter-spacing: 0.5px; } #steps-container div { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid #f1f5f9; font-size: 13px; } #steps-container div:last-child { border: none; } /* --- 5. MODALS --- */ .modal { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); } .modal-content { background: white; margin: 25vh auto; padding: 28px; border-radius: 24px; width: 85%; max-width: 340px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); text-align: center; animation: scaleIn 0.2s ease-out; } @keyframes scaleIn { from{transform: scale(0.9); opacity: 0;} to{transform: scale(1); opacity: 1;} } .modal-content h3 { margin-top: 0; font-size: 20px; font-weight: 700; color: #0f172a; } .modal-content p { color: #64748b; font-size: 14px; line-height: 1.5; margin-bottom: 20px; } .lg-input { font-size: 24px; text-align: center; font-weight: 700; color: #2563eb; padding: 12px; border: 2px solid #e2e8f0; border-radius: 12px; width: 100%; } .lg-input:focus { border-color: #2563eb; outline: none; } .cancel-link { margin-top: 16px; font-size: 13px; color: #64748b; cursor: pointer; text-decoration: underline; } .auth-toggle { font-size: 13px; color: #2563eb; cursor: pointer; margin-top: 12px; font-weight: 500; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; } #feedbackComment { width: 100%; height: 80px; border: 1px solid #cbd5e1; border-radius: 12px; padding: 12px; font-size: 14px; resize: none; margin-bottom: 16px; font-family: 'Inter'; } #starRating { font-size: 36px; margin: 10px 0 20px 0; cursor: pointer; color: #e2e8f0; } #starRating span.active { color: #f59e0b; } /* --- 6. PINS & MARKERS --- */ .pin-start { background: #22c55e; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid white; box-shadow: 2px 2px 6px rgba(0,0,0,0.3); margin-top: -28px !important; margin-left: -14px !important; } .pin-end { background: #ef4444; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid white; box-shadow: 2px 2px 6px rgba(0,0,0,0.3); margin-top: -28px !important; margin-left: -14px !important; } .user-puck { width: 20px; height: 20px; background: #2563eb; border-radius: 50%; border: 3px solid white; box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4); } .user-puck.live { animation: pulse 2s infinite; transition: transform 0.8s ease-out; } .emoji-icon { font-size: 26px; text-align: center; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); } @keyframes popIn { from{transform: translateY(15px); opacity: 0;} to{transform: translateY(0); opacity: 1;} } @keyframes floatIn { from{transform: translateY(20px); opacity: 0;} to{transform: translateY(0); opacity: 1;} } @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6); } 70% { box-shadow: 0 0 0 18px rgba(37, 99, 235, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); } } /* --- RESPONSIVE TWEAKS --- */ @media (max-width: 380px) { #panel { padding: 16px 12px 90px 12px; } .control-btn { width: 48px; height: 48px; font-size: 20px; } input { padding: 12px; font-size: 15px !important; } } /* Safe area handling for iPhone X+ */ @supports (padding: env(safe-area-inset-bottom)) { @media (max-width: 600px) { #panel.active { padding-bottom: calc(90px + env(safe-area-inset-bottom)); } .controls-layer { bottom: calc(20px + env(safe-area-inset-bottom)); } #nav-hud { padding-top: calc(20px + env(safe-area-inset-top)); } } } /* ========================================= V16.15 — Route UI, Layers & Popups ========================================= */ /* --- Route selector strip (below HUD or top of map) --- */ #route-switcher { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3999; display: flex; gap: 6px; background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 5px; border-radius: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.14); transition: top 0.35s cubic-bezier(0.32,0.72,0,1); white-space: nowrap; } .route-switch-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 14px; border: none; font-size: 13px; font-weight: 700; cursor: pointer; background: transparent; color: #64748b; transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1); letter-spacing: 0.2px; } .route-switch-btn:active { transform: scale(0.94); } .route-switch-btn.active { background: #10b981; color: white; box-shadow: 0 3px 10px rgba(16,185,129,0.35); } .route-switch-btn[data-type="fast"].active { background: #ef4444; box-shadow: 0 3px 10px rgba(239,68,68,0.35); } .route-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } .cool-dot { background: #10b981; } .fast-dot { background: #ef4444; } .route-switch-btn.active .cool-dot, .route-switch-btn.active .fast-dot { background: white; } /* --- Polyline click popup card --- */ .route-info-popup .leaflet-popup-content-wrapper { border-radius: 16px; padding: 0; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.16); } .route-info-popup .leaflet-popup-content { margin: 0; } .route-info-popup .leaflet-popup-tip { background: white; } .route-popup-card { font-family: 'Inter', sans-serif; padding: 14px; min-width: 200px; } .popup-label { font-size: 13px; font-weight: 800; padding: 6px 10px; border-radius: 8px; margin-bottom: 10px; display: block; letter-spacing: 0.3px; } .popup-label.cool { background: #d1fae5; color: #065f46; } .popup-label.fast { background: #fee2e2; color: #7f1d1d; } .popup-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; font-weight: 500; color: #334155; } .popup-row:last-of-type { border-bottom: none; } .popup-icon { font-size: 15px; min-width: 20px; text-align: center; } .popup-row.thermal { color: #dc2626; } .popup-row.shade { color: #15803d; } .popup-select-btn { width: 100%; margin-top: 10px; padding: 9px; border: none; border-radius: 10px; font-size: 12px; font-weight: 700; cursor: pointer; transition: transform 0.15s; } .popup-select-btn:active { transform: scale(0.97); } .cool-select { background: #10b981; color: white; } .fast-select { background: #ef4444; color: white; } /* --- Center on Me button --- */ .control-btn.center-btn { background: #2563eb; color: white; border: none; box-shadow: 0 4px 14px rgba(37,99,235,0.35); font-size: 20px; } /* --- Layer control panel --- */ #layer-panel { position: absolute; bottom: 108px; right: 16px; background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 16px; padding: 12px; z-index: 2500; box-shadow: 0 4px 24px rgba(0,0,0,0.13); display: none; min-width: 168px; animation: floatIn 0.25s cubic-bezier(0.34,1.56,0.64,1); } .layer-panel-title { font-size: 10px; font-weight: 800; color: #94a3b8; letter-spacing: 0.8px; margin-bottom: 8px; padding: 0 2px; } .layer-toggle-btn { display: block; width: 100%; padding: 9px 12px; border: 1.5px solid #e2e8f0; border-radius: 10px; background: white; font-size: 12px; font-weight: 600; color: #475569; cursor: pointer; margin-bottom: 6px; text-align: left; transition: all 0.18s; font-family: 'Inter', sans-serif; } .layer-toggle-btn:last-child { margin-bottom: 0; } .layer-toggle-btn:active { transform: scale(0.97); } .layer-toggle-btn.active { background: #eff6ff; border-color: #2563eb; color: #1d4ed8; } /* --- POI pit stop popup --- */ .poi-popup { font-family: 'Inter', sans-serif; padding: 4px 2px; min-width: 160px; } .poi-popup b { display: block; font-size: 13px; font-weight: 700; color: #1e293b; margin-bottom: 8px; line-height: 1.3; } .poi-add-btn, .poi-remove-btn { width: 100%; padding: 9px 12px; border: none; border-radius: 10px; font-size: 12px; font-weight: 700; cursor: pointer; transition: transform 0.15s; font-family: 'Inter', sans-serif; } .poi-add-btn { background: #10b981; color: white; } .poi-remove-btn { background: #ef4444; color: white; } .poi-add-btn:active, .poi-remove-btn:active { transform: scale(0.97); }