/* ==================== MotoTracker - Design System ==================== */

:root {
    /* Cores principais */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-tertiary: #1a1f35;
    --bg-card: rgba(17, 24, 39, 0.8);
    --bg-glass: rgba(17, 24, 39, 0.6);
    
    /* Acentos */
    --accent-cyan: #00d4ff;
    --accent-green: #00ff88;
    --accent-red: #ff4757;
    --accent-orange: #ffa502;
    --accent-purple: #7c5cff;
    
    /* Texto */
    --text-primary: #f0f4f8;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Gradientes */
    --gradient-cyan: linear-gradient(135deg, #00d4ff, #0099ff);
    --gradient-green: linear-gradient(135deg, #00ff88, #00cc6a);
    --gradient-red: linear-gradient(135deg, #ff4757, #ff2d3b);
    --gradient-brand: linear-gradient(135deg, #00d4ff, #7c5cff);
    
    /* Glass */
    --glass-bg: rgba(17, 24, 39, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* Dimensões */
    --navbar-height: 60px;
    --sidebar-width: 280px;
    --border-radius: 16px;
    --border-radius-sm: 10px;
    
    /* Tipografia */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==================== Reset & Base ==================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar customizada */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ==================== Glassmorphism ==================== */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
}

/* ==================== Navbar ==================== */

.navbar {
    height: var(--navbar-height);
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-accent {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-status {
    display: flex;
    align-items: center;
    gap: 20px;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: all 0.3s;
}

.status-dot.online {
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse 2s infinite;
}

.status-dot.offline {
    background: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.3); }
}

.navbar-time {
    font-size: 13px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* ==================== Layout Principal ==================== */

.app-layout {
    display: flex;
    height: calc(100vh - var(--navbar-height));
    margin-top: var(--navbar-height);
}

/* ==================== Sidebar ==================== */

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 16px;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 900;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-align: left;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    font-weight: 600;
}

.nav-icon { font-size: 18px; }

/* Device Card */
.device-card {
    padding: 16px;
}

.device-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.device-name {
    font-weight: 700;
    font-size: 16px;
}

.device-status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.device-status-badge.online {
    background: rgba(0, 255, 136, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.device-status-badge.offline {
    background: rgba(255, 71, 87, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.device-imei {
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
    margin-bottom: 12px;
}

.device-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.quick-stat {
    text-align: center;
    padding: 8px 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.quick-stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-cyan);
}

.quick-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar Actions */
.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

/* ==================== Buttons ==================== */

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.action-btn.primary {
    background: var(--gradient-cyan);
    color: #000;
    border: none;
}

.action-btn.primary:hover {
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

.action-btn.success {
    background: rgba(0, 255, 136, 0.15);
    color: var(--accent-green);
    border-color: rgba(0, 255, 136, 0.3);
}

.action-btn.success:hover {
    background: rgba(0, 255, 136, 0.25);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2);
}

.action-btn.danger {
    background: rgba(255, 71, 87, 0.15);
    color: var(--accent-red);
    border-color: rgba(255, 71, 87, 0.3);
}

.action-btn.danger:hover {
    background: rgba(255, 71, 87, 0.25);
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.2);
}

/* ==================== Main Content ==================== */

.main-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.page {
    display: none;
    height: 100%;
    flex-direction: column;
}

.page.active {
    display: flex;
}

/* ==================== Mapa ==================== */

.map-container {
    flex: 1;
    position: relative;
    min-height: 300px;
}

#map {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
}

.map-controls {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 800;
}

.map-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    color: var(--text-primary);
}

.map-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--accent-cyan);
    transform: scale(1.05);
}

/* ==================== Data Panel ==================== */

.data-panel {
    display: grid;
    grid-template-columns: auto repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    overflow-x: auto;
}

/* Speed Gauge */
.gauge-card {
    padding: 12px;
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speed-gauge {
    position: relative;
    width: 140px;
    height: 140px;
}

.gauge-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 12;
}

.gauge-fill {
    fill: none;
    stroke: url(#gaugeGradient);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 534;
    stroke-dashoffset: 534;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.5));
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gauge-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.gauge-unit {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Info Cards */
.info-card {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.info-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.info-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.info-data {
    flex: 1;
    min-width: 0;
}

.info-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.info-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.info-value.small {
    font-size: 12px;
    font-weight: 500;
    font-family: monospace;
}

/* Battery bar */
.battery-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-top: 6px;
}

.battery-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--gradient-green);
    transition: width 0.5s;
    width: 0%;
}

/* ==================== Pages ==================== */

.page-header {
    padding: 20px 24px;
    margin: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.history-controls, .geofence-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.date-inputs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.input-field {
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 14px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 13px;
    transition: border-color 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* History stats */
.history-stats {
    margin: 0 16px;
    padding: 16px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-cyan);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Replay controls */
.replay-controls {
    margin: 12px 16px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.replay-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

.replay-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-cyan);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

/* Geofence list */
.geofence-list, .alerts-list {
    padding: 0 16px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.geofence-item, .alert-item {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.geofence-info, .alert-info {
    flex: 1;
}

.geofence-name, .alert-type {
    font-weight: 600;
    font-size: 14px;
}

.geofence-details, .alert-message {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.alert-time {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.btn-delete {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-delete:hover {
    background: rgba(255, 71, 87, 0.25);
}

.empty-message {
    color: var(--text-muted);
    text-align: center;
    padding: 40px 20px;
    font-size: 14px;
}

/* ==================== Modal ==================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    width: 90%;
    max-width: 420px;
    padding: 24px;
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.modal-body {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ==================== Toast Notifications ==================== */

#toast-container {
    position: fixed;
    top: 76px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--border-radius-sm);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
}

.toast.success { border-left: 3px solid var(--accent-green); }
.toast.error { border-left: 3px solid var(--accent-red); }
.toast.warning { border-left: 3px solid var(--accent-orange); }
.toast.info { border-left: 3px solid var(--accent-cyan); }

.toast-icon { font-size: 20px; flex-shrink: 0; }

.toast.removing {
    animation: toastOut 0.3s ease-in forwards;
}

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    to { transform: translateX(120%); opacity: 0; }
}

/* ==================== Marker ==================== */

.moto-marker {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    filter: drop-shadow(0 2px 8px rgba(0, 212, 255, 0.6));
    animation: markerBounce 0.5s ease-out;
}

.marker-pulse {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.3);
    animation: markerPulse 2s infinite;
}

@keyframes markerBounce {
    0% { transform: translateY(-20px); opacity: 0; }
    60% { transform: translateY(4px); }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes markerPulse {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* ==================== Leaflet overrides ==================== */

.leaflet-control-zoom a {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px);
    color: var(--text-primary) !important;
    border-color: var(--glass-border) !important;
}

.leaflet-control-attribution {
    background: rgba(10, 14, 26, 0.8) !important;
    color: var(--text-muted) !important;
    font-size: 10px !important;
}

.leaflet-control-attribution a { color: var(--accent-cyan) !important; }

.leaflet-popup-content-wrapper {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-radius: var(--border-radius-sm) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-popup-tip { background: var(--bg-secondary) !important; }

/* ==================== Responsive ==================== */

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .sidebar {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .data-panel {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 10px;
    }

    .gauge-card {
        grid-row: auto;
        grid-column: 1 / -1;
    }

    .speed-gauge {
        width: 100px;
        height: 100px;
    }

    .gauge-number { font-size: 28px; }
    .navbar-time { display: none; }
    
    .page-header { margin: 8px; padding: 14px; }
    .history-controls { flex-direction: column; }
    .date-inputs { flex-direction: column; }
}

@media (max-width: 480px) {
    .data-panel {
        grid-template-columns: 1fr;
    }

    .logo-text { font-size: 18px; }
}

/* ==================== TELA DE LOGIN ==================== */

.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.10), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(124, 92, 255, 0.10), transparent 45%),
        var(--bg-primary);
}

.login-overlay[hidden] { display: none; }

.login-card {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 2.25rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.login-icon { font-size: 2rem; }

.login-subtitle {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

.login-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.login-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 14, 26, 0.7);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.login-error {
    margin: 0;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 71, 87, 0.3);
    background: rgba(255, 71, 87, 0.12);
    color: var(--accent-red);
    font-size: 0.85rem;
}

.login-error[hidden] { display: none; }

.login-btn {
    margin-top: 0.5rem;
    padding: 0.9rem 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #06121c;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.2s, box-shadow 0.2s;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.28);
}

.login-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Seta de direção do marcador — gira conforme o course do GT06.
   Fica fora do círculo do ícone, apontando pra onde a moto segue. */
.marker-heading {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: transform .6s ease-out;
}

.marker-heading::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    margin-left: -6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 11px solid #00ff88;
    filter: drop-shadow(0 0 4px rgba(0, 255, 136, .9));
}

/* Posição vinda do banco, sem confirmação recente: sem pulso e esmaecida,
   pra não passar a impressão de que a moto está ali agora. */
.moto-marker.antigo {
    filter: grayscale(1) drop-shadow(0 2px 6px rgba(0, 0, 0, .5));
    opacity: .65;
    animation: none;
}
